Merge pull request #21233 from hrydgard/misc-fixes

Fix R-Type saving problem, redesign the run-behind button on the pause screen
This commit is contained in:
Henrik Rydgård
2026-02-10 13:12:09 +01:00
committed by GitHub
20 changed files with 118 additions and 62 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();