[Scummvm-git-logs] scummvm master -> 9f4e33eae5307468e582eb2c3a5e230f9b262fa9

sev- noreply at scummvm.org
Tue May 21 08:33:20 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:
9f4e33eae5 DIRECTOR: DEBUGGER: Improve Score window selection UX


Commit: 9f4e33eae5307468e582eb2c3a5e230f9b262fa9
    https://github.com/scummvm/scummvm/commit/9f4e33eae5307468e582eb2c3a5e230f9b262fa9
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-05-21T10:32:26+02:00

Commit Message:
DIRECTOR: DEBUGGER: Improve Score window selection UX

Changed paths:
    engines/director/debugtools.cpp


diff --git a/engines/director/debugtools.cpp b/engines/director/debugtools.cpp
index 08bbc7f2122..72b3aaba61d 100644
--- a/engines/director/debugtools.cpp
+++ b/engines/director/debugtools.cpp
@@ -1738,21 +1738,21 @@ static void displayScoreChannel(int ch, int mode, int modeSel) {
 		switch (mode) {
 		case kModeMember:
 			if (sprite._castId.member)
-				ImGui::Text("%d", sprite._castId.member);
+				ImGui::Selectable(Common::String::format("%d", sprite._castId.member).c_str());
 			else
-				ImGui::Text("  ");
+				ImGui::Selectable("  ");
 			break;
 
 		case kModeInk:
-			ImGui::Text("%s", inkType2str(sprite._ink));
+			ImGui::Selectable(Common::String::format("%s", inkType2str(sprite._ink)).c_str());
 			break;
 
 		case kModeLocation:
-			ImGui::Text("%d, %d", sprite._startPoint.x, sprite._startPoint.y);
+			ImGui::Selectable(Common::String::format("%d, %d", sprite._startPoint.x, sprite._startPoint.y).c_str());
 			break;
 
 		case kModeBlend:
-			ImGui::Text("%d", sprite._blendAmount);
+			ImGui::Selectable(Common::String::format("%d", sprite._blendAmount).c_str());
 			break;
 
 		case kModeBehavior:
@@ -1761,12 +1761,14 @@ static void displayScoreChannel(int ch, int mode, int modeSel) {
 
 				if (ImGui::IsItemClicked(0))
 					addScriptCastToDisplay(sprite._scriptId);
+			} else {
+				ImGui::Selectable("  ");
 			}
 			break;
 
 		case kModeExtended: // Render empty row
 		default:
-			ImGui::Text("  ");
+			ImGui::Selectable("  ");
 		}
 
 		if (ImGui::IsItemClicked(0)) {




More information about the Scummvm-git-logs mailing list