overlays: Left align the savestates menu

- Temporary measure, a proper dialog will be added later
This commit is contained in:
kd-11 2026-03-17 02:43:29 +03:00 committed by kd-11
parent 2ea344ce3e
commit 39e6fc5918
2 changed files with 7 additions and 2 deletions

View file

@ -69,6 +69,11 @@ namespace rsx
add_element(spacer_element);
}
}
else
{
// Left align
add_spacer(menu_entry_height);
}
add_element(icon_view);
add_element(text_stack);

View file

@ -16,7 +16,7 @@ namespace rsx
std::unique_ptr<overlay_element> save_state = std::make_unique<home_menu_entry>(
suspend_mode ? home_menu::fa_icon::poweroff : home_menu::fa_icon::floppy,
get_localized_string(suspend_mode ? localized_string_id::HOME_MENU_SAVESTATE_AND_EXIT : localized_string_id::HOME_MENU_SAVESTATE_SAVE), width);
get_localized_string(suspend_mode ? localized_string_id::HOME_MENU_SAVESTATE_AND_EXIT : localized_string_id::HOME_MENU_SAVESTATE_SAVE), width, text_align::left);
add_item(save_state, [suspend_mode](pad_button btn) -> page_navigation
{
@ -41,7 +41,7 @@ namespace rsx
if (boot_current_game_savestate(true, save_index))
{
const localized_string_id str_id = static_cast<localized_string_id>(static_cast<usz>(localized_string_id::HOME_MENU_RELOAD_SAVESTATE) + (save_index - 1));
std::unique_ptr<overlay_element> reload_state = std::make_unique<home_menu_entry>(home_menu::fa_icon::restart, get_localized_string(str_id), width);
std::unique_ptr<overlay_element> reload_state = std::make_unique<home_menu_entry>(home_menu::fa_icon::restart, get_localized_string(str_id), width, text_align::left);
add_item(reload_state, [save_index](pad_button btn) -> page_navigation
{