Add sublabels

This commit is contained in:
twinaphex 2017-02-02 05:41:34 +01:00
parent 731f743e2f
commit faa518a32d
3 changed files with 35 additions and 3 deletions

View File

@ -2587,3 +2587,19 @@ MSG_HASH(
MENU_ENUM_SUBLABEL_AUDIO_OUTPUT_RATE,
"Audio output samplerate."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_OVERLAY_OPACITY,
"Opacity of all UI elements of the overlay."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_OVERLAY_SCALE,
"Scale of all UI elements of the overlay."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_INPUT_OVERLAY_ENABLE,
"Enable the overlay."
)
MSG_HASH(
MENU_ENUM_SUBLABEL_OVERLAY_PRESET,
"Select an overlay from the file browser."
)

View File

@ -180,6 +180,10 @@ default_sublabel_macro(action_bind_sublabel_dynamic_wallpaper, MENU_
default_sublabel_macro(action_bind_sublabel_audio_device, MENU_ENUM_SUBLABEL_AUDIO_DEVICE)
default_sublabel_macro(action_bind_sublabel_audio_output_rate, MENU_ENUM_SUBLABEL_AUDIO_OUTPUT_RATE)
default_sublabel_macro(action_bind_sublabel_audio_dsp_plugin, MENU_ENUM_SUBLABEL_AUDIO_DSP_PLUGIN)
default_sublabel_macro(action_bind_sublabel_overlay_opacity, MENU_ENUM_SUBLABEL_OVERLAY_OPACITY)
default_sublabel_macro(action_bind_sublabel_overlay_scale, MENU_ENUM_SUBLABEL_OVERLAY_SCALE)
default_sublabel_macro(action_bind_sublabel_overlay_enable, MENU_ENUM_SUBLABEL_INPUT_OVERLAY_ENABLE)
default_sublabel_macro(action_bind_sublabel_overlay_preset, MENU_ENUM_SUBLABEL_OVERLAY_PRESET)
static int action_bind_sublabel_cheevos_entry(
file_list_t *list,
@ -241,6 +245,18 @@ int menu_cbs_init_bind_sublabel(menu_file_list_cbs_t *cbs,
{
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_OVERLAY_PRESET:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_overlay_preset);
break;
case MENU_ENUM_LABEL_INPUT_OVERLAY_ENABLE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_overlay_enable);
break;
case MENU_ENUM_LABEL_OVERLAY_OPACITY:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_overlay_opacity);
break;
case MENU_ENUM_LABEL_OVERLAY_SCALE:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_overlay_scale);
break;
case MENU_ENUM_LABEL_AUDIO_DSP_PLUGIN:
BIND_ACTION_SUBLABEL(cbs, action_bind_sublabel_audio_dsp_plugin);
break;

View File

@ -319,7 +319,7 @@
# Defines a directory where overlays are kept for easy access.
# overlay_directory =
# Enable or disable the current overlay.
# Enable the overlay.
# input_overlay_enable = true
# Hide the current overlay from appearing inside the menu.
@ -328,10 +328,10 @@
# Path to input overlay.
# input_overlay =
# Overlay opacity.
# Opacity of all the UI elements of the overlay.
# input_overlay_opacity = 1.0
# Overlay scale.
# Scale of all UI elements of the overlay.
# input_overlay_scale = 1.0
#### Input