Add convenient UI on the pause screen for changing/locking the screen orientation

This commit is contained in:
Henrik Rydgård committed 2025-11-26 11:14:37 +01:00
1 parent 9035485abf
commit ed25b5e991
21 files changed
+247 -87

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ void TouchControlVisibilityScreen::CreateContentViews(UI::ViewGroup *parent) {
} else {
truncate_cpy(translated, sizeof(translated), mc->T(toggle.key));
}
choice = new Choice(std::string(translated) + " (" + std::string(mc->T("tap to customize")) + ")", "", false, new LinearLayoutParams(1.0f));
choice = new Choice(std::string(translated) + " (" + std::string(mc->T("tap to customize")) + ")", "", new LinearLayoutParams(1.0f));
choice->OnClick.Add(toggle.handle);
} else if (toggle.img.isValid()) {
choice = new CheckBoxChoice(toggle.img, checkbox, new LinearLayoutParams(1.0f));