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

sev- noreply at scummvm.org
Wed Jun 5 22:57:11 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:
cc959a0597 DIRECTOR: DT: Highlight Play button in Control Panel while movie is played


Commit: cc959a0597da992837a2b41dd95ac5e1adacf4dd
    https://github.com/scummvm/scummvm/commit/cc959a0597da992837a2b41dd95ac5e1adacf4dd
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2024-06-06T00:57:02+02:00

Commit Message:
DIRECTOR: DT: Highlight Play button in Control Panel while movie is played

Changed paths:
    engines/director/debugger/dt-controlpanel.cpp


diff --git a/engines/director/debugger/dt-controlpanel.cpp b/engines/director/debugger/dt-controlpanel.cpp
index 486b6c869b0..febaae610dc 100644
--- a/engines/director/debugger/dt-controlpanel.cpp
+++ b/engines/director/debugger/dt-controlpanel.cpp
@@ -241,6 +241,9 @@ void showControlPanel() {
 			if (ImGui::IsItemHovered())
 				dl->AddRectFilled(ImVec2(p.x + bgX1, p.y + bgX1), ImVec2(p.x + bgX2, p.y + bgX2), bgcolor, 3.0f, ImDrawFlags_RoundCornersAll);
 
+			if (score->_playState == kPlayStarted)
+				color = ImGui::GetColorU32(ImVec4(0.3f, 0.3f, 1.0f, 1.0f));
+
 			dl->AddTriangleFilled(ImVec2(p.x, p.y), ImVec2(p.x, p.y + 16), ImVec2(p.x + 14, p.y + 8), color);
 
 			ImGui::SetItemTooltip("Play");




More information about the Scummvm-git-logs mailing list