#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
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);
}