[Scummvm-git-logs] scummvm master -> cd45827b1eda6512136229a702b1df9d172ba33a

sev- noreply at scummvm.org
Thu May 23 22:16:54 UTC 2024


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
cd45827b1e DIRECTOR: DEBUGGER: Added movie file name to control panel


Commit: cd45827b1eda6512136229a702b1df9d172ba33a
    https://github.com/scummvm/scummvm/commit/cd45827b1eda6512136229a702b1df9d172ba33a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-24T00:16:23+02:00

Commit Message:
DIRECTOR: DEBUGGER: Added movie file name to control panel

Changed paths:
    engines/director/debugtools.cpp


diff --git a/engines/director/debugtools.cpp b/engines/director/debugtools.cpp
index 45decfa4370..29dd38f9b58 100644
--- a/engines/director/debugtools.cpp
+++ b/engines/director/debugtools.cpp
@@ -1253,10 +1253,11 @@ static void showControlPanel() {
 
 	ImVec2 vp(ImGui::GetMainViewport()->Size);
 	ImGui::SetNextWindowPos(ImVec2(vp.x - 220.0f, 20.0f), ImGuiCond_FirstUseEver);
-	ImGui::SetNextWindowSize(ImVec2(200, 80), ImGuiCond_FirstUseEver);
+	ImGui::SetNextWindowSize(ImVec2(200, 103), ImGuiCond_FirstUseEver);
 
 	if (ImGui::Begin("Control Panel", &_state->_w.controlPanel)) {
-		Score *score = g_director->getCurrentMovie()->getScore();
+		Movie *movie = g_director->getCurrentMovie();
+		Score *score = movie->getScore();
 		ImDrawList *dl = ImGui::GetWindowDrawList();
 
 		ImU32 color = ImGui::GetColorU32(ImVec4(0.8f, 0.8f, 0.8f, 1.0f));
@@ -1371,10 +1372,16 @@ static void showControlPanel() {
 
 		snprintf(buf, 6, "%d", score->getCurrentFrameNum());
 
-		ImGui::SetNextItemWidth(30);
+		ImGui::SetNextItemWidth(35);
 		ImGui::InputText("##frame", buf, 5, ImGuiInputTextFlags_CharsDecimal);
 		ImGui::SetItemTooltip("Frame");
 
+		{
+			ImGui::Separator();
+			ImGui::TextColored(ImVec4(0.9f, 0.8f, 0.5f, 1.0f), movie->getArchive()->getPathName().toString().c_str());
+			ImGui::SetItemTooltip(movie->getArchive()->getPathName().toString().c_str());
+		}
+
 		ImGui::Separator();
 		ImGui::Separator();
 		ImGui::Text("Lingo:");
@@ -1434,7 +1441,6 @@ static void showControlPanel() {
 			dl->AddCircleFilled(ImVec2(p.x + 9, p.y + 15), 2.0f, color);
 
 			ImGui::SetItemTooltip("Step Out");
-			ImGui::SameLine();
 		}
 	}
 	ImGui::End();




More information about the Scummvm-git-logs mailing list