#define MENU_CHOOSE_TREE_FONT(x) (FONT_TEXT_1 + (x))
#define MENU_CHOOSE_TREE_COLOR(ti, a) TREE_COLOR(ti, a)
+#define TEXT_NEXT_PAGE "Press any key or button for next page"
+#define TEXT_INFO_MENU "Press any key or button for info menu"
+
// for input setup functions
#define SETUPINPUT_SCREEN_POS_START 0
#define SETUPINPUT_SCREEN_POS_EMPTY1 3
static void UnmapScreenTreeGadgets(void);
static void UpdateScreenMenuGadgets(int, boolean);
-static void AdjustScoreInfoButtons(int, int, int);
+static void AdjustScoreInfoButtons_SelectScore(int, int, int);
static boolean OfferUploadTapes(void);
static void execOfferUploadTapes(void);
DrawTextSCentered(ystart1, font_title, text_title);
DrawTextSCentered(ystart2, font_error, text_error);
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for info menu");
+ DrawTextSCentered(ybottom, font_foot, TEXT_INFO_MENU);
FadeIn(REDRAW_FIELD);
}
DrawHeadline();
DrawTextSCentered(ystart1, font_title, "The Game Elements:");
-
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for next page");
+ DrawTextSCentered(ybottom, font_foot, TEXT_NEXT_PAGE);
FrameCounter = 0;
}
ClearField();
DrawHeadline();
- DrawTextSCentered(ystart, font_title,
- "No music info for this level set.");
-
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for info menu");
+ DrawTextSCentered(ystart, font_title, "No music info for this level set.");
+ DrawTextSCentered(ybottom, font_foot, TEXT_INFO_MENU);
return;
}
ystart += ystep_head;
}
- DrawTextSCentered(ybottom, FONT_TEXT_4,
- "Press any key or button for next page");
+ DrawTextSCentered(ybottom, font_foot, TEXT_NEXT_PAGE);
if (button != MB_MENU_INITIALIZE)
FadeIn(REDRAW_FIELD);
filename, font_text, chars, -1, lines, line_spacing, -1,
autowrap, centered, parse_comments);
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for next page");
+ boolean last_screen = (screen_nr == num_credits_screens - 1);
+ char *text_foot = (last_screen ? TEXT_INFO_MENU : TEXT_NEXT_PAGE);
+
+ DrawTextSCentered(ybottom, font_foot, text_foot);
}
static void DrawInfoScreen_Credits(void)
ClearField();
DrawHeadline();
- DrawTextSCentered(ystart, font_title,
- "No credits for this level set.");
-
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for info menu");
+ DrawTextSCentered(ystart, font_title, "No credits for this level set.");
+ DrawTextSCentered(ybottom, font_foot, TEXT_INFO_MENU);
return;
}
filename, font_text, chars, -1, lines, line_spacing, -1,
autowrap, centered, parse_comments);
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for next page");
+ boolean last_screen = (screen_nr == num_program_info_screens - 1);
+ char *text_foot = (last_screen ? TEXT_INFO_MENU : TEXT_NEXT_PAGE);
+
+ DrawTextSCentered(ybottom, font_foot, text_foot);
}
static void DrawInfoScreen_Program(void)
ClearField();
DrawHeadline();
- DrawTextSCentered(ystart, font_title,
- "No program info available.");
-
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for info menu");
+ DrawTextSCentered(ystart, font_title, "No program info available.");
+ DrawTextSCentered(ybottom, font_foot, TEXT_INFO_MENU);
return;
}
DrawTextF(xstart2, ystart, font_text, "%s", setup.system.sdl_audiodriver);
DrawTextF(xstart3, ystart, font_text, "%s", driver_name);
- DrawTextSCentered(ybottom, font_foot,
- "Press any key or button for info menu");
+ DrawTextSCentered(ybottom, font_foot, TEXT_INFO_MENU);
FadeIn(REDRAW_FIELD);
}
struct TitleMessageInfo *tmi = &readme;
char *filename = getLevelSetInfoFilename();
char *title = "Level Set Information:";
+ int font_foot = MENU_INFO_FONT_FOOT;
int ystart = mSY - SY + MENU_SCREEN_INFO_YSTART1;
int ybottom = mSY - SY + MENU_SCREEN_INFO_YBOTTOM;
filename, tmi->font, tmi->chars, -1, tmi->lines, 0, -1,
tmi->autowrap, tmi->centered, tmi->parse_comments);
- DrawTextSCentered(ybottom, FONT_TEXT_4,
- "Press any key or button for info menu");
+ DrawTextSCentered(ybottom, font_foot, TEXT_INFO_MENU);
FadeIn(REDRAW_FIELD);
}
int ybottom = mSY - SY + SYSIZE - menu.bottom_spacing[GAME_MODE_SCOREINFO];
int xstart1 = mSX - SX + 2 * xstep;
int xstart2 = mSX - SX + 13 * xstep;
- int button_x = SX + xstart1;
- int button_y1, button_y2;
+ int select_x = SX + xstart1;
+ int select_y1, select_y2;
int font_width = getFontWidth(font_text);
int font_height = getFontHeight(font_text);
int pad_left = xstart2;
TRUE, FALSE, FALSE);
ystart += ystep_para + (lines > 0 ? lines - 1 : 0) * font_height;
- button_y1 = SY + ystart;
+ select_y1 = SY + ystart;
ystart += graphic_info[IMG_MENU_BUTTON_PREV_SCORE].height;
DrawTextF(xstart1, ystart, font_head, "Rank");
TRUE, FALSE, FALSE);
ystart += ystep_line;
- button_y2 = SY + ystart;
+ select_y2 = SY + ystart;
DrawTextSCentered(ybottom, font_foot, "Press any key or button to go back");
- AdjustScoreInfoButtons(button_x, button_y1, button_y2);
+ AdjustScoreInfoButtons_SelectScore(select_x, select_y1, select_y2);
}
static void DrawScoreInfo(int entry_nr)
UnmapScreenGadgets();
}
-static void AdjustScoreInfoButtons(int x, int y1, int y2)
+static void AdjustScoreInfoButtons_SelectScore(int x, int y1, int y2)
{
struct GadgetInfo *gi_1 = screen_gadget[SCREEN_CTRL_ID_PREV_SCORE];
struct GadgetInfo *gi_2 = screen_gadget[SCREEN_CTRL_ID_NEXT_SCORE];