mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
(XMB) XMB honors the 'show menu sublabels' setting now - was previously
RGUI only
This commit is contained in:
parent
3e15f1b512
commit
c854d0916b
@ -331,7 +331,7 @@ static bool menu_show_core_updater = false;
|
||||
#else
|
||||
static bool menu_show_core_updater = true;
|
||||
#endif
|
||||
static bool menu_show_sublabels = false;
|
||||
static bool menu_show_sublabels = true;
|
||||
|
||||
static unsigned menu_ticker_type = TICKER_TYPE_BOUNCE;
|
||||
static float menu_ticker_speed = 1.0f;
|
||||
|
@ -2801,6 +2801,9 @@ static int xmb_draw_item(
|
||||
menu_animation_ticker(&ticker);
|
||||
|
||||
label_offset = xmb->margins_label_top;
|
||||
|
||||
if (settings->bools.menu_show_sublabels)
|
||||
{
|
||||
if (i == current && width > 320 && height > 240
|
||||
&& !string_is_empty(entry->sublabel))
|
||||
{
|
||||
@ -2817,6 +2820,7 @@ static int xmb_draw_item(
|
||||
1, node->label_alpha, TEXT_ALIGN_LEFT,
|
||||
width, height, xmb->font2);
|
||||
}
|
||||
}
|
||||
|
||||
xmb_draw_text(video_info, xmb, tmp,
|
||||
node->x + xmb->margins_screen_left +
|
||||
|
@ -9675,14 +9675,12 @@ static bool setting_append_list(
|
||||
general_read_handler,
|
||||
SD_FLAG_ADVANCED);
|
||||
|
||||
if (string_is_equal(settings->arrays.menu_driver, "rgui"))
|
||||
{
|
||||
CONFIG_BOOL(
|
||||
list, list_info,
|
||||
&settings->bools.menu_show_sublabels,
|
||||
MENU_ENUM_LABEL_MENU_SHOW_SUBLABELS,
|
||||
MENU_ENUM_LABEL_VALUE_MENU_SHOW_SUBLABELS,
|
||||
true,
|
||||
menu_show_sublabels,
|
||||
MENU_ENUM_LABEL_VALUE_OFF,
|
||||
MENU_ENUM_LABEL_VALUE_ON,
|
||||
&group_info,
|
||||
@ -9691,7 +9689,6 @@ static bool setting_append_list(
|
||||
general_write_handler,
|
||||
general_read_handler,
|
||||
SD_FLAG_NONE);
|
||||
}
|
||||
|
||||
END_SUB_GROUP(list, list_info, parent_group);
|
||||
END_GROUP(list, list_info, parent_group);
|
||||
|
Loading…
x
Reference in New Issue
Block a user