mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-22 18:58:21 +00:00
(MaterialUI) Add icons
This commit is contained in:
parent
e060029d4c
commit
736477d4e4
@ -82,6 +82,7 @@ enum
|
||||
MUI_TEXTURE_VIDEO,
|
||||
MUI_TEXTURE_QUIT,
|
||||
MUI_TEXTURE_HELP,
|
||||
MUI_TEXTURE_INFO,
|
||||
MUI_TEXTURE_LAST
|
||||
};
|
||||
|
||||
@ -190,6 +191,8 @@ static const char *mui_texture_path(unsigned id)
|
||||
return "quit.png";
|
||||
case MUI_TEXTURE_HELP:
|
||||
return "help.png";
|
||||
case MUI_TEXTURE_INFO:
|
||||
return "information.png";
|
||||
}
|
||||
|
||||
return NULL;
|
||||
@ -792,7 +795,9 @@ static void mui_render_label_value(mui_handle_t *mui, mui_node_t *node,
|
||||
texture_switch2 = mui->textures.list[MUI_TEXTURE_FOLDER];
|
||||
break;
|
||||
default:
|
||||
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP)))
|
||||
if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INFORMATION)))
|
||||
texture_switch2 = mui->textures.list[MUI_TEXTURE_INFO];
|
||||
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HELP)))
|
||||
texture_switch2 = mui->textures.list[MUI_TEXTURE_HELP];
|
||||
else if (string_is_equal(label, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QUIT_RETROARCH)))
|
||||
texture_switch2 = mui->textures.list[MUI_TEXTURE_QUIT];
|
||||
|
Loading…
Reference in New Issue
Block a user