Fix issue with hiding certain notifications when not in-game (should be per type, not per edge)

This commit is contained in:
Henrik Rydgård committed 2025-10-29 13:39:34 +01:00
1 parent f61ab34b13
commit e7a9a10aac
7 files changed
+30 -19

No files matched your search

+10 -3
View File
@@ -375,6 +375,8 @@ void DeveloperToolsScreen::CreateUITab(UI::LinearLayout *list) {
list->Add(new ItemHeader(si->T("Slider test")));
list->Add(new Slider(&testSliderValue_, 0, 100, 1, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)));
static const char *positions[] = {"Bottom Left", "Bottom Center", "Bottom Right", "Top Left", "Top Center", "Top Right", "Center Left", "Center Right", "None"};
list->Add(new ItemHeader(si->T("Notification tests")));
list->Add(new Choice(si->T("Error")))->OnClick.Add([&](UI::EventParams &) {
std::string str = "Error " + CodepointToUTF8(0x1F41B) + CodepointToUTF8(0x1F41C) + CodepointToUTF8(0x1F914);
@@ -425,10 +427,10 @@ void DeveloperToolsScreen::CreateUITab(UI::LinearLayout *list) {
g_OSD.ShowLeaderboardTracker(1, "", false);
});
static const char *positions[] = {"Bottom Left", "Bottom Center", "Bottom Right", "Top Left", "Top Center", "Top Right", "Center Left", "Center Right", "None"};
list->Add(new ItemHeader(ac->T("Notifications")));
list->Add(new PopupMultiChoice(&g_Config.iAchievementsLeaderboardTrackerPos, ac->T("Leaderboard tracker"), positions, 0, ARRAY_SIZE(positions), I18NCat::DIALOG, screenManager()))->SetEnabledPtr(&g_Config.bAchievementsEnable);
list->Add(new PopupMultiChoice(&g_Config.iNotificationPos, "General notifications", positions, 0, ARRAY_SIZE(positions), I18NCat::DIALOG, screenManager()));
list->Add(new PopupMultiChoice(&g_Config.iAchievementsLeaderboardTrackerPos, ac->T("Leaderboard tracker"), positions, 0, ARRAY_SIZE(positions), I18NCat::DIALOG, screenManager()));
list->Add(new CheckBox(&pretendIngame_, ac->T("Pretend to be in-game (for testing)")));
#ifdef _DEBUG
// Untranslated string because this is debug mode only, only for PPSSPP developers.
@@ -714,6 +716,11 @@ void DeveloperToolsScreen::update() {
UIBaseDialogScreen::update();
allowDebugger_ = !WebServerStopped(WebServerFlags::DEBUGGER);
canAllowDebugger_ = !WebServerStopping(WebServerFlags::DEBUGGER);
// For the UI tab's notification tests.
if (pretendIngame_) {
g_OSD.NudgeIngameNotifications();
}
}
void DeveloperToolsScreen::MemoryMapTest() {