mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-10 18:14:42 -06:00
Add New Menu and Strings
This commit is contained in:
parent
e429f8cf05
commit
64c8eead3c
BIN
bin/Icons/ui/home/256/usb-solid.png
Normal file
BIN
bin/Icons/ui/home/256/usb-solid.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
BIN
bin/Icons/ui/home/32/usb-solid.png
Normal file
BIN
bin/Icons/ui/home/32/usb-solid.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 509 B |
@ -51,6 +51,8 @@ namespace rsx::overlays::home_menu
|
||||
return "sliders-solid.png";
|
||||
case fa_icon::settings_gauge:
|
||||
return "gauge-solid.png";
|
||||
case fa_icon::usb:
|
||||
return "usb-solid.png";
|
||||
case fa_icon::bug:
|
||||
return "bug-solid.png";
|
||||
}
|
||||
|
||||
@ -25,6 +25,7 @@ namespace rsx::overlays::home_menu
|
||||
gamepad,
|
||||
settings_sliders,
|
||||
settings_gauge,
|
||||
usb,
|
||||
bug,
|
||||
};
|
||||
|
||||
|
||||
@ -19,6 +19,7 @@ namespace rsx
|
||||
add_page(home_menu::fa_icon::settings, std::make_shared<home_menu_settings_advanced>(x, y, width, height, use_separators, nullptr));
|
||||
add_page(home_menu::fa_icon::settings_sliders, std::make_shared<home_menu_settings_overlays>(x, y, width, height, use_separators, nullptr));
|
||||
add_page(home_menu::fa_icon::settings_gauge, std::make_shared<home_menu_settings_performance_overlay>(x, y, width, height, use_separators, nullptr));
|
||||
add_page(home_menu::fa_icon::usb, std::make_shared<home_menu_settings_usb_devices>(x, y, width, height, use_separators, nullptr));
|
||||
add_page(home_menu::fa_icon::bug, std::make_shared<home_menu_settings_debug>(x, y, width, height, use_separators, nullptr));
|
||||
|
||||
// Select the first item
|
||||
@ -263,6 +264,13 @@ namespace rsx
|
||||
apply_layout();
|
||||
}
|
||||
|
||||
home_menu_settings_usb_devices::home_menu_settings_usb_devices(s16 x, s16 y, u16 width, u16 height, bool use_separators, home_menu_page* parent)
|
||||
: home_menu_settings_page(x, y, width, height, use_separators, parent, get_localized_string(localized_string_id::HOME_MENU_SETTINGS_USB_DEVICES))
|
||||
{
|
||||
|
||||
apply_layout();
|
||||
}
|
||||
|
||||
home_menu_settings_debug::home_menu_settings_debug(s16 x, s16 y, u16 width, u16 height, bool use_separators, home_menu_page* parent)
|
||||
: home_menu_settings_page(x, y, width, height, use_separators, parent, get_localized_string(localized_string_id::HOME_MENU_SETTINGS_DEBUG))
|
||||
{
|
||||
|
||||
@ -344,6 +344,11 @@ namespace rsx
|
||||
home_menu_settings_performance_overlay(s16 x, s16 y, u16 width, u16 height, bool use_separators, home_menu_page* parent);
|
||||
};
|
||||
|
||||
struct home_menu_settings_usb_devices : public home_menu_settings_page
|
||||
{
|
||||
home_menu_settings_usb_devices(s16 x, s16 y, u16 width, u16 height, bool use_separators, home_menu_page* parent);
|
||||
};
|
||||
|
||||
struct home_menu_settings_debug : public home_menu_settings_page
|
||||
{
|
||||
home_menu_settings_debug(s16 x, s16 y, u16 width, u16 height, bool use_separators, home_menu_page* parent);
|
||||
|
||||
@ -275,6 +275,7 @@ enum class localized_string_id
|
||||
HOME_MENU_SETTINGS_PERFORMANCE_OVERLAY_FONT_SIZE,
|
||||
HOME_MENU_SETTINGS_PERFORMANCE_OVERLAY_OPACITY,
|
||||
HOME_MENU_SETTINGS_PERFORMANCE_OVERLAY_USE_WINDOW_SPACE,
|
||||
HOME_MENU_SETTINGS_USB_DEVICES,
|
||||
HOME_MENU_SETTINGS_DEBUG,
|
||||
HOME_MENU_SETTINGS_DEBUG_OVERLAY,
|
||||
HOME_MENU_SETTINGS_DEBUG_INPUT_OVERLAY,
|
||||
|
||||
@ -295,6 +295,7 @@ private:
|
||||
case localized_string_id::HOME_MENU_SETTINGS_PERFORMANCE_OVERLAY_FONT_SIZE: return tr("Font Size", "Performance Overlay");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_PERFORMANCE_OVERLAY_OPACITY: return tr("Opacity", "Performance Overlay");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_PERFORMANCE_OVERLAY_USE_WINDOW_SPACE: return tr("Use Window Space", "Performance Overlay");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_USB_DEVICES: return tr("USB Devices");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_DEBUG: return tr("Debug");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_DEBUG_OVERLAY: return tr("Debug Overlay", "Debug");
|
||||
case localized_string_id::HOME_MENU_SETTINGS_DEBUG_INPUT_OVERLAY: return tr("Input Debug Overlay", "Debug");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user