FullscreenUI: Fix footer text in save state submenu

This commit is contained in:
Stenzek 2024-10-30 20:10:40 +10:00
parent dfc4e0833e
commit 9cb2cabd8b
No known key found for this signature in database
1 changed files with 11 additions and 9 deletions

View File

@ -6119,18 +6119,20 @@ void FullscreenUI::DrawSaveStateSelector(bool is_loading)
if (IsGamepadInputSource()) if (IsGamepadInputSource())
{ {
SetFullscreenFooterText(std::array{std::make_pair(ICON_PF_XBOX_DPAD, FSUI_VSTR("Select State")), SetFullscreenFooterText(
std::make_pair(ICON_PF_BUTTON_Y, FSUI_VSTR("Delete State")), std::array{std::make_pair(ICON_PF_XBOX_DPAD, FSUI_VSTR("Select State")),
std::make_pair(ICON_PF_BUTTON_A, FSUI_VSTR("Load State")), std::make_pair(ICON_PF_BUTTON_Y, FSUI_VSTR("Delete State")),
std::make_pair(ICON_PF_BUTTON_B, FSUI_VSTR("Cancel"))}); std::make_pair(ICON_PF_BUTTON_A, is_loading ? FSUI_VSTR("Load State") : FSUI_VSTR("Save State")),
std::make_pair(ICON_PF_BUTTON_B, FSUI_VSTR("Cancel"))});
} }
else else
{ {
SetFullscreenFooterText(std::array{ SetFullscreenFooterText(
std::make_pair(ICON_PF_ARROW_UP ICON_PF_ARROW_DOWN ICON_PF_ARROW_LEFT ICON_PF_ARROW_RIGHT, std::array{std::make_pair(ICON_PF_ARROW_UP ICON_PF_ARROW_DOWN ICON_PF_ARROW_LEFT ICON_PF_ARROW_RIGHT,
FSUI_VSTR("Select State")), FSUI_VSTR("Select State")),
std::make_pair(ICON_PF_F1, FSUI_VSTR("Delete State")), std::make_pair(ICON_PF_ENTER, FSUI_VSTR("Load State")), std::make_pair(ICON_PF_F1, FSUI_VSTR("Delete State")),
std::make_pair(ICON_PF_ESC, FSUI_VSTR("Cancel"))}); std::make_pair(ICON_PF_ENTER, is_loading ? FSUI_VSTR("Load State") : FSUI_VSTR("Save State")),
std::make_pair(ICON_PF_ESC, FSUI_VSTR("Cancel"))});
} }
if ((!ignore_close_request && WantsToCloseMenu()) || closed) if ((!ignore_close_request && WantsToCloseMenu()) || closed)