{ "menu.extra_spacing.INFO[LEVEL]", "2" },
{ "menu.extra_spacing.SETUP[INPUT]", "2" },
+ { "menu.text.title.x", "-1" },
+ { "menu.text.title.y", "16" },
+ { "menu.text.title.align", "center" },
+ { "menu.text.title.valign", "top" },
+ { "menu.text.title.font", "font.title_1" },
{ "menu.text.title_1.x", "-1" },
{ "menu.text.title_1.y", "8" },
{ "menu.text.title_1.align", "center" },
#define MENU_SCREEN_VALUE_XPOS (SCR_FIELDX - 3)
#define MENU_SCREEN_TEXT2_XPOS (SCR_FIELDX - 2)
#define MENU_SCREEN_MAX_XPOS (SCR_FIELDX - 1)
+#define MENU_TITLE_YPOS MENU_TEXT_ALIGNED_YPOS(menu.text.title)
#define MENU_TITLE1_YPOS MENU_TEXT_ALIGNED_YPOS(menu.text.title_1)
#define MENU_TITLE2_YPOS MENU_TEXT_ALIGNED_YPOS(menu.text.title_2)
#define MENU_FOOTER_YPOS MENU_TEXT_ALIGNED_YPOS(menu.text.footer)
OpenDoor(GetDoorState() | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);
- DrawTextSCentered(mSY - SY + 16, FONT_TITLE_1, STR_INFO_MAIN);
+ DrawTextSCentered(mSY - SY + MENU_TITLE_YPOS, FONT_TITLE_1, STR_INFO_MAIN);
info_info = info_info_main;
static void drawChooseTreeHeadExt(int type, char *title_string)
{
int yoffset_sets = MENU_TITLE1_YPOS;
- int yoffset_setup = 16;
+ int yoffset_setup = MENU_TITLE_YPOS;
int yoffset = (type == TREE_TYPE_SCORE_ENTRY ||
type == TREE_TYPE_LEVEL_DIR ||
type == TREE_TYPE_LEVEL_NR ? yoffset_sets : yoffset_setup);
{
int font_title = FONT_TITLE_1;
int font_foot = FC_BLUE;
- int ystart = mSY - SY + 16;
+ int ystart = mSY - SY + MENU_TITLE_YPOS;
int yfooter = mSY - SY + MENU_FOOTER_YPOS;
char *text = (setup.network_mode ? "Start Network" : "Stop Network");
// use modified setup info without setup entries marked as hidden
setup_info = getSetupInfoFinal(setup_info);
- DrawTextSCentered(mSY - SY + 16, FONT_TITLE_1, title_string);
+ DrawTextSCentered(mSY - SY + MENU_TITLE_YPOS, FONT_TITLE_1, title_string);
// determine maximal number of setup entries that can be displayed on screen
num_setup_info = 0;
setup_info = getSetupInfoFinal(setup_info_input);
- DrawTextSCentered(mSY - SY + 16, FONT_TITLE_1, STR_SETUP_INPUT);
+ DrawTextSCentered(mSY - SY + MENU_TITLE_YPOS, FONT_TITLE_1, STR_SETUP_INPUT);
for (i = 0; setup_info[i].type != 0; i++)
{
ClearField();
- DrawTextSCentered(mSY - SY + 16, FONT_TITLE_1, "Keyboard Input");
+ DrawTextSCentered(mSY - SY + MENU_TITLE_YPOS, FONT_TITLE_1, "Keyboard Input");
step_nr = 0;
DrawText(mSX, mSY + (2 + 2 * step_nr) * 32,
ClearField();
- DrawTextSCentered(mSY - SY + 16, FONT_TITLE_1, "Virtual Buttons");
+ DrawTextSCentered(mSY - SY + MENU_TITLE_YPOS, FONT_TITLE_1, "Virtual Buttons");
DrawTextSCentered(ypos1, font_nr, "Select tiles to");
DrawTextSCentered(ypos2, font_nr, customize_step_text[step_nr]);
ClearField();
- DrawTextSCentered(mSY - SY + 16, FONT_TITLE_1, "Virtual Buttons");
+ DrawTextSCentered(mSY - SY + MENU_TITLE_YPOS, FONT_TITLE_1, "Virtual Buttons");
DrawTextSCentered(ypos1, font_nr, "Select tiles to");
DrawTextSCentered(ypos2, font_nr, customize_step_text[step_nr]);
}