(Menu/intl) Create MENU_VALUE_BACK

This commit is contained in:
twinaphex 2015-06-25 07:15:19 +02:00
parent 8dbc3ce0b1
commit 45e008d3b0
5 changed files with 9 additions and 2 deletions

View File

@ -424,7 +424,7 @@ static void glui_frame(void)
title_color, TEXT_ALIGN_CENTER);
if (menu_entries_show_back())
glui_blit_line(glui->margin, 0, "BACK",
glui_blit_line(glui->margin, 0, menu_hash_to_str(MENU_VALUE_BACK),
title_color, TEXT_ALIGN_LEFT);
glui_render_quad(gl,

View File

@ -476,7 +476,8 @@ static void rgui_render(void)
if (menu_entries_show_back())
blit_line(menu,
RGUI_TERM_START_X, RGUI_TERM_START_X,
"BACK", TITLE_COLOR(settings));
menu_hash_to_str(MENU_VALUE_BACK),
TITLE_COLOR(settings));
blit_line(menu,
RGUI_TERM_START_X + (RGUI_TERM_WIDTH - strlen(title_buf)) * FONT_WIDTH_STRIDE / 2,

View File

@ -734,6 +734,8 @@ const char *menu_hash_to_str_nl(uint32_t hash)
return "Nee";
case MENU_LABEL_VALUE_SCREEN_RESOLUTION:
return "Scherm Resolutie";
case MENU_VALUE_BACK:
return "TERUG";
default:
break;
}

View File

@ -1295,6 +1295,8 @@ const char *menu_hash_to_str_us(uint32_t hash)
return "Yes";
case MENU_LABEL_VALUE_NO:
return "No";
case MENU_VALUE_BACK:
return "BACK";
case MENU_LABEL_VALUE_SCREEN_RESOLUTION:
return "Screen Resolution";
default:

View File

@ -898,6 +898,8 @@ extern "C" {
#define MENU_LABEL_VALUE_YES 0x957cbc05U
#define MENU_LABEL_VALUE_NO 0x521b0c11U
#define MENU_VALUE_BACK 0x7c825df6U
const char *menu_hash_to_str_de(uint32_t hash);
const char *menu_hash_to_str_en(uint32_t hash);