Pause screen: Make the run-behind play/pause button outlined, to differentiate

This commit is contained in:
Henrik Rydgård
2026-02-10 10:46:48 +01:00
parent 00b28e28dc
commit edaab592cc
3 changed files with 45 additions and 27 deletions
+2 -2
View File
@@ -670,10 +670,10 @@ void GamePauseScreen::CreateViews() {
if (middleColumn) {
middleColumn->SetSpacing(portrait ? 8.0f : 0.0f);
playButton_ = middleColumn->Add(new Choice(g_Config.bRunBehindPauseMenu ? ImageID("I_PAUSE") : ImageID("I_PLAY"), new LinearLayoutParams(64, 64)));
playButton_ = middleColumn->Add(new Choice(g_Config.bRunBehindPauseMenu ? ImageID("I_PAUSE_LINE") : ImageID("I_PLAY_LINE"), new LinearLayoutParams(64, 64)));
playButton_->OnClick.Add([this](UI::EventParams &e) {
g_Config.bRunBehindPauseMenu = !g_Config.bRunBehindPauseMenu;
playButton_->SetIconLeft(g_Config.bRunBehindPauseMenu ? ImageID("I_PAUSE") : ImageID("I_PLAY"));
playButton_->SetIconLeft(g_Config.bRunBehindPauseMenu ? ImageID("I_PAUSE_LINE") : ImageID("I_PLAY_LINE"));
});
bool mustRunBehind = MustRunBehind();