Add sublabels

This commit is contained in:
twinaphex 2017-02-02 19:39:10 +01:00
parent 5ffc746f0f
commit 42a5f69c6b
2 changed files with 66 additions and 0 deletions

View File

@ -2816,3 +2816,25 @@ MSG_HASH(MENU_ENUM_SUBLABEL_XMB_RIBBON_ENABLE,
"Select an animated background effect. Can be GPU-intensive depending on the effect. If performance is unsatisfactory, either turn this off or revert to a simpler effect.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_FONT,
"Select a different main font to be used by the menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_IMAGES,
"Show the image tab inside the main menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_MUSIC,
"Show the music tab inside the main menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_VIDEO,
"Show the video tab inside the main menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS,
"Show the settings tab inside the main menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_HISTORY,
"Show the recent history tab inside the main menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_XMB_SHOW_ADD,
"Show the import content tab inside the main menu.")
MSG_HASH(MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN,
"Show startup screen in menu. Is automatically set to false after we have started up the program for the first time.")
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY,
"Modify the opacity of the header graphic.")
MSG_HASH(MENU_ENUM_SUBLABEL_MATERIALUI_MENU_FOOTER_OPACITY,
"Modify the opacity of the footer graphic.")
MSG_HASH(MENU_ENUM_SUBLABEL_DPI_OVERRIDE_ENABLE,
"The menu normally scales itself dynamically. If you want to set a specific scaling size instead, enable this.")
MSG_HASH(MENU_ENUM_SUBLABEL_DPI_OVERRIDE_VALUE,
"Set the custom scaling size here. NOTE: You have to enable 'DPI Override' for this scaling size to take effect.")

View File

@ -261,6 +261,17 @@ default_sublabel_macro(action_bind_sublabel_menu_color_theme,
default_sublabel_macro(action_bind_sublabel_menu_wallpaper_opacity, MENU_ENUM_SUBLABEL_MENU_WALLPAPER_OPACITY)
default_sublabel_macro(action_bind_sublabel_menu_ribbon_enable, MENU_ENUM_SUBLABEL_XMB_RIBBON_ENABLE)
default_sublabel_macro(action_bind_sublabel_menu_font, MENU_ENUM_SUBLABEL_XMB_FONT)
default_sublabel_macro(action_bind_sublabel_menu_images_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_IMAGES)
default_sublabel_macro(action_bind_sublabel_menu_music_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_MUSIC)
default_sublabel_macro(action_bind_sublabel_menu_video_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_VIDEO)
default_sublabel_macro(action_bind_sublabel_menu_settings_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_SETTINGS)
default_sublabel_macro(action_bind_sublabel_menu_history_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_HISTORY)
default_sublabel_macro(action_bind_sublabel_menu_import_content_tab, MENU_ENUM_SUBLABEL_XMB_SHOW_ADD)
default_sublabel_macro(action_bind_sublabel_rgui_show_start_screen, MENU_ENUM_SUBLABEL_RGUI_SHOW_START_SCREEN)
default_sublabel_macro(action_bind_sublabel_menu_header_opacity, MENU_ENUM_SUBLABEL_MATERIALUI_MENU_HEADER_OPACITY)
default_sublabel_macro(action_bind_sublabel_menu_footer_opacity, MENU_ENUM_SUBLABEL_MATERIALUI_MENU_FOOTER_OPACITY)
default_sublabel_macro(action_bind_sublabel_dpi_override_enable, MENU_ENUM_SUBLABEL_DPI_OVERRIDE_ENABLE)
default_sublabel_macro(action_bind_sublabel_dpi_override_value, MENU_ENUM_SUBLABEL_DPI_OVERRIDE_VALUE)
static int action_bind_sublabel_cheevos_entry(
@ -323,6 +334,39 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_DPI_OVERRIDE_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_dpi_override_enable);
break;
case MENU_ENUM_LABEL_DPI_OVERRIDE_VALUE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_dpi_override_value);
break;
case MENU_ENUM_LABEL_MATERIALUI_MENU_FOOTER_OPACITY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_footer_opacity);
break;
case MENU_ENUM_LABEL_MATERIALUI_MENU_HEADER_OPACITY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_header_opacity);
break;
case MENU_ENUM_LABEL_RGUI_SHOW_START_SCREEN:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_rgui_show_start_screen);
break;
case MENU_ENUM_LABEL_XMB_SHOW_ADD:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_import_content_tab);
break;
case MENU_ENUM_LABEL_XMB_SHOW_HISTORY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_history_tab);
break;
case MENU_ENUM_LABEL_XMB_SHOW_SETTINGS:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_settings_tab);
break;
case MENU_ENUM_LABEL_XMB_SHOW_IMAGES:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_images_tab);
break;
case MENU_ENUM_LABEL_XMB_SHOW_MUSIC:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_music_tab);
break;
case MENU_ENUM_LABEL_XMB_SHOW_VIDEO:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_video_tab);
break;
case MENU_ENUM_LABEL_XMB_FONT:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_menu_font);
break;