Add sublabels

This commit is contained in:
twinaphex 2017-02-02 20:26:24 +01:00
parent c1df5a0a7c
commit 57fc477fed
2 changed files with 16 additions and 2 deletions

View File

@ -393,7 +393,7 @@ MSG_HASH(
) )
MSG_HASH( MSG_HASH(
MENU_ENUM_LABEL_VALUE_CHEAT_APPLY_CHANGES, MENU_ENUM_LABEL_VALUE_CHEAT_APPLY_CHANGES,
"Apply Cheat Changes" "Apply Changes"
) )
MSG_HASH( MSG_HASH(
MENU_ENUM_LABEL_VALUE_CHEAT_DATABASE_PATH, MENU_ENUM_LABEL_VALUE_CHEAT_DATABASE_PATH,
@ -1273,7 +1273,7 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_SETTINGS_TAB,
MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER, MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER,
"Shader") "Shader")
MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_APPLY_CHANGES, MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_APPLY_CHANGES,
"Apply Shader Changes") "Apply Changes")
MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS, MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_OPTIONS,
"Shaders") "Shaders")
MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON, MSG_HASH(MENU_ENUM_LABEL_VALUE_SHADER_PIPELINE_RIBBON,
@ -2892,3 +2892,9 @@ MSG_HASH(MENU_ENUM_SUBLABEL_RECORDING_CONFIG_DIRECTORY,
"Recording configurations will be kept here.") "Recording configurations will be kept here.")
MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_FONT_PATH, MSG_HASH(MENU_ENUM_SUBLABEL_VIDEO_FONT_PATH,
"Select a different font for onscreen notifications.") "Select a different font for onscreen notifications.")
MSG_HASH(MENU_ENUM_SUBLABEL_SHADER_APPLY_CHANGES,
"Changes to the shader configuration will take effect immediately. Use this if you changed the amount of shader passes, filtering, FBO scale, etc.")
MSG_HASH(
MENU_ENUM_SUBLABEL_VIDEO_SHADER_NUM_PASSES,
"Increase or decrease the amount of shader pipeline passes. You can bind a separate shader to each pipeline pass and configure its scale and filtering."
)

View File

@ -293,6 +293,8 @@ default_sublabel_macro(action_bind_sublabel_video_shader_directory,
default_sublabel_macro(action_bind_sublabel_recording_output_directory, MENU_ENUM_SUBLABEL_RECORDING_OUTPUT_DIRECTORY) default_sublabel_macro(action_bind_sublabel_recording_output_directory, MENU_ENUM_SUBLABEL_RECORDING_OUTPUT_DIRECTORY)
default_sublabel_macro(action_bind_sublabel_recording_config_directory, MENU_ENUM_SUBLABEL_RECORDING_CONFIG_DIRECTORY) default_sublabel_macro(action_bind_sublabel_recording_config_directory, MENU_ENUM_SUBLABEL_RECORDING_CONFIG_DIRECTORY)
default_sublabel_macro(action_bind_sublabel_video_font_path, MENU_ENUM_SUBLABEL_VIDEO_FONT_PATH) default_sublabel_macro(action_bind_sublabel_video_font_path, MENU_ENUM_SUBLABEL_VIDEO_FONT_PATH)
default_sublabel_macro(action_bind_sublabel_shader_apply_changes, MENU_ENUM_SUBLABEL_SHADER_APPLY_CHANGES)
default_sublabel_macro(action_bind_sublabel_shader_num_passes, MENU_ENUM_SUBLABEL_VIDEO_SHADER_NUM_PASSES)
static int action_bind_sublabel_cheevos_entry( static int action_bind_sublabel_cheevos_entry(
file_list_t *list, file_list_t *list,
@ -354,6 +356,12 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{ {
switch (cbs->enum_idx) switch (cbs->enum_idx)
{ {
case MENU_ENUM_LABEL_VIDEO_SHADER_NUM_PASSES:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_num_passes);
break;
case MENU_ENUM_LABEL_SHADER_APPLY_CHANGES:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_shader_apply_changes);
break;
case MENU_ENUM_LABEL_VIDEO_FONT_PATH: case MENU_ENUM_LABEL_VIDEO_FONT_PATH:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_font_path); BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_video_font_path);
break; break;