Add sublabels

This commit is contained in:
twinaphex 2017-02-02 01:03:14 +01:00
parent eba97ed761
commit 70392edfeb
3 changed files with 21 additions and 3 deletions

View File

@ -1787,7 +1787,7 @@ MSG_HASH(MENU_ENUM_SUBLABEL_SSH_ENABLE,
MSG_HASH(MENU_ENUM_SUBLABEL_SUSPEND_SCREENSAVER_ENABLE,
"Prevents your system's screensaver from becoming active.")
MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_WINDOW_SCALE,
"Sets the window size relative to the core viewport size. Alternatively you can set a window width and height below for a fixed window size")
"Sets the window size relative to the core viewport size. Alternatively you can set a window width and height below for a fixed window size.")
MSG_HASH(MENU_ENUM_SUBLABEL_USER_LANGUAGE,
"Sets the language of the interface.")
MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_BLACK_FRAME_INSERTION,
@ -2399,3 +2399,9 @@ MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_SMOOTH,
"Add a slight blur to the image to take the edge off of the hard pixel edges. This option has very little impact on performance.")
MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_FILTER,
"Apply a CPU-powered video filter. NOTE: Might come at a high performance cost. Some video filters might only work for cores that use 32bit or 16bit color.")
MSG_HASH(MENU_ENUM_SUBLABEL_CHEEVOS_USERNAME,
"Input the username of your Retro Achievements account.")
MSG_HASH(MENU_ENUM_SUBLABEL_CHEEVOS_PASSWORD,
"Input the password of your Retro Achievements account.")
MSG_HASH(MENU_ENUM_SUBLABEL_NETPLAY_NICKNAME,
"Input your user name here. This will be used for netplay sessions among other things.")

View File

@ -125,6 +125,9 @@ default_sublabel_macro(action_bind_sublabel_menu_input_unified_controls, MENU_
default_sublabel_macro(action_bind_sublabel_onscreen_notifications_enable, MENU_ENUM_SUBLABEL_VIDEO_FONT_ENABLE)
default_sublabel_macro(action_bind_sublabel_video_crop_overscan, MENU_ENUM_SUBLABEL_VIDEO_CROP_OVERSCAN)
default_sublabel_macro(action_bind_sublabel_video_filter, MENU_ENUM_SUBLABEL_VIDEO_FILTER)
default_sublabel_macro(action_bind_sublabel_netplay_nickname, MENU_ENUM_SUBLABEL_NETPLAY_NICKNAME)
default_sublabel_macro(action_bind_sublabel_cheevos_username, MENU_ENUM_SUBLABEL_CHEEVOS_USERNAME)
default_sublabel_macro(action_bind_sublabel_cheevos_password, MENU_ENUM_SUBLABEL_CHEEVOS_PASSWORD)
/* MENU_ENUM_LABEL_CONNECT_NETPLAY_ROOM*/
@ -188,6 +191,15 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_NETPLAY_NICKNAME:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_netplay_nickname);
break;
case MENU_ENUM_LABEL_CHEEVOS_USERNAME:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheevos_username);
break;
case MENU_ENUM_LABEL_CHEEVOS_PASSWORD:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_cheevos_password);
break;
case MENU_ENUM_LABEL_VIDEO_FILTER:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_filter);
break;

View File

@ -759,8 +759,8 @@ enum msg_hash_enums
MENU_ENUM_LABEL_VALUE_CHEEVOS_SETTINGS,
MENU_ENUM_LABEL_CHEEVOS_USERNAME,
MENU_ENUM_LABEL_CHEEVOS_PASSWORD,
MENU_LABEL(CHEEVOS_USERNAME),
MENU_LABEL(CHEEVOS_PASSWORD),
MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_SETTINGS,
MENU_ENUM_LABEL_VALUE_ACCOUNTS_CHEEVOS_PASSWORD,