Add sublabels

This commit is contained in:
twinaphex 2017-02-02 05:28:23 +01:00
parent 9e114d5dee
commit 2539de0111
3 changed files with 27 additions and 3 deletions

View File

@ -2563,3 +2563,15 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_WIFI_DRIVER,
"WiFi driver to use."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE,
"Filter files being shown in filebrowser by supported extensions."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_MENU_WALLPAPER,
"Select an image to set as menu wallpaper."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_DYNAMIC_WALLPAPER,
"Dynamically load a new wallpaper depending on context."
)

View File

@ -174,6 +174,9 @@ default_sublabel_macro(action_bind_sublabel_location_driver, MENU_
default_sublabel_macro(action_bind_sublabel_menu_driver, MENU_ENUM_SUBLABEL_MENU_DRIVER)
default_sublabel_macro(action_bind_sublabel_record_driver, MENU_ENUM_SUBLABEL_RECORD_DRIVER)
default_sublabel_macro(action_bind_sublabel_wifi_driver, MENU_ENUM_SUBLABEL_WIFI_DRIVER)
default_sublabel_macro(action_bind_sublabel_filter_supported_extensions, MENU_ENUM_SUBLABEL_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE)
default_sublabel_macro(action_bind_sublabel_wallpaper, MENU_ENUM_SUBLABEL_MENU_WALLPAPER)
default_sublabel_macro(action_bind_sublabel_dynamic_wallpaper, MENU_ENUM_SUBLABEL_DYNAMIC_WALLPAPER)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -235,6 +238,15 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_MENU_WALLPAPER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wallpaper);
break;
case MENU_ENUM_LABEL_DYNAMIC_WALLPAPER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_dynamic_wallpaper);
break;
case MENU_ENUM_LABEL_NAVIGATION_BROWSER_FILTER_SUPPORTED_EXTENSIONS_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_filter_supported_extensions);
break;
case MENU_ENUM_LABEL_WIFI_DRIVER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_wifi_driver);
break;

View File

@ -640,10 +640,10 @@
# If disabled, we use separate controls for menu operation.
# menu_unified_controls = false
# Enable mouse input inside the menu.
# Enable mouse controls inside the menu.
# menu_mouse_enable = false
# Enable touch input inside the menu.
# Enable touch controls inside the menu.
# menu_pointer_enable = false
# Shows current date and/or time inside menu.
@ -667,7 +667,7 @@
# Wrap-around to beginning and/or end if boundary of list is reached horizontally or vertically
# menu_navigation_wraparound_enable = false
# Filter files being show in 'Load Content' by supported extensions
# Filter files being shown in filebrowser by supported extensions
# menu_navigation_browser_filter_supported_extensions_enable = true
# Collapse subgroup settings into main group to create one big listing of settings