mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-05 06:35:04 -06:00
overlays: Left align the savestates menu
- Temporary measure, a proper dialog will be added later
This commit is contained in:
parent
2ea344ce3e
commit
39e6fc5918
@ -69,6 +69,11 @@ namespace rsx
|
|||||||
add_element(spacer_element);
|
add_element(spacer_element);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Left align
|
||||||
|
add_spacer(menu_entry_height);
|
||||||
|
}
|
||||||
|
|
||||||
add_element(icon_view);
|
add_element(icon_view);
|
||||||
add_element(text_stack);
|
add_element(text_stack);
|
||||||
|
|||||||
@ -16,7 +16,7 @@ namespace rsx
|
|||||||
|
|
||||||
std::unique_ptr<overlay_element> save_state = std::make_unique<home_menu_entry>(
|
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,
|
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
|
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))
|
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));
|
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
|
add_item(reload_state, [save_index](pad_button btn) -> page_navigation
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user