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

sev- noreply at scummvm.org
Fri May 31 23:08:59 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:
bb82320f6c DIRECTOR: DEBUGGER: Initial code for displaying labels in Score window


Commit: bb82320f6ca9725130dcc5168287b7da9a19c7ad
    https://github.com/scummvm/scummvm/commit/bb82320f6ca9725130dcc5168287b7da9a19c7ad
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-06-01T01:08:48+02:00

Commit Message:
DIRECTOR: DEBUGGER: Initial code for displaying labels in Score window

Changed paths:
    engines/director/debugtools.cpp


diff --git a/engines/director/debugtools.cpp b/engines/director/debugtools.cpp
index bc4413b52e5..424a2ba0982 100644
--- a/engines/director/debugtools.cpp
+++ b/engines/director/debugtools.cpp
@@ -3381,8 +3381,37 @@ static void showScore() {
 				ImGui::TableHeader(column_name);
 			}
 
+			ImGui::TableNextRow();
+
+			ImGui::TableNextColumn();
+
+			float indentSize = 10.0;
+			ImGui::Indent(indentSize);
+			ImGui::Text("Labels");
+			ImGui::Unindent(indentSize);
+
 			ImGui::PopFont();
 
+			if (score->_labels && score->_labels->size()) {
+				auto labels = *score->_labels;
+				auto it = labels.begin();
+
+				for (uint f = 0; f < tableColumns; f++) {
+					ImGui::TableNextColumn();
+
+					while (it != labels.end() && (*it)->number < f + _state->_scoreFrameOffset)
+						it++;
+
+					if (it == labels.end())
+						continue;
+
+					if ((*it)->number == f + _state->_scoreFrameOffset) {
+						ImGui::Text("\ue52d"); // beenhere
+						ImGui::SetItemTooltip((*it)->name.c_str());
+					}
+				}
+			}
+
 			{
 				displayScoreChannel(0, kChTempo, 0);
 				displayScoreChannel(0, kChPalette, 0);




More information about the Scummvm-git-logs mailing list