{ "menu.list_size.INFO[ELEMENTS]", "-1" },
{ "menu.list_size.SETUP", "-1" },
- { "menu.text.paragraph.large_spacing", "-3" },
- { "menu.text.paragraph.normal_spacing", "-2" },
- { "menu.text.headline.large_spacing", "-2" },
- { "menu.text.headline.normal_spacing", "-1" },
- { "menu.text.line.large_spacing", "-1" },
- { "menu.text.line.normal_spacing", "0" },
- { "menu.text.all.extra_spacing", "2" },
+ { "menu.paragraph_spacing.INFO", "-3" },
+ { "menu.paragraph_spacing.INFO[TITLE]", "-3" },
+ { "menu.paragraph_spacing.INFO[ELEMENTS]", "-3" },
+ { "menu.paragraph_spacing.INFO[MUSIC]", "-3" },
+ { "menu.paragraph_spacing.INFO[CREDITS]", "-3" },
+ { "menu.paragraph_spacing.INFO[PROGRAM]", "-3" },
+ { "menu.paragraph_spacing.INFO[VERSION]", "-3" },
+ { "menu.paragraph_spacing.INFO[LEVELSET]", "-3" },
+ { "menu.paragraph_spacing.SETUP[INPUT]", "-1" },
+
+ { "menu.headline1_spacing.INFO", "-2" },
+ { "menu.headline1_spacing.INFO[TITLE]", "-2" },
+ { "menu.headline1_spacing.INFO[ELEMENTS]", "-2" },
+ { "menu.headline1_spacing.INFO[MUSIC]", "-2" },
+ { "menu.headline1_spacing.INFO[CREDITS]", "-2" },
+ { "menu.headline1_spacing.INFO[PROGRAM]", "-2" },
+ { "menu.headline1_spacing.INFO[VERSION]", "-2" },
+ { "menu.headline1_spacing.INFO[LEVELSET]", "-2" },
+ { "menu.headline1_spacing.SETUP[INPUT]", "-2" },
+
+ { "menu.headline2_spacing.INFO", "-1" },
+ { "menu.headline2_spacing.INFO[TITLE]", "-1" },
+ { "menu.headline2_spacing.INFO[ELEMENTS]", "-1" },
+ { "menu.headline2_spacing.INFO[MUSIC]", "-1" },
+ { "menu.headline2_spacing.INFO[CREDITS]", "-1" },
+ { "menu.headline2_spacing.INFO[PROGRAM]", "-1" },
+ { "menu.headline2_spacing.INFO[VERSION]", "-1" },
+ { "menu.headline2_spacing.INFO[LEVELSET]", "-1" },
+ { "menu.headline2_spacing.SETUP[INPUT]", "-1" },
+
+ { "menu.line_spacing.INFO", "0" },
+ { "menu.line_spacing.INFO[TITLE]", "0" },
+ { "menu.line_spacing.INFO[ELEMENTS]", "0" },
+ { "menu.line_spacing.INFO[MUSIC]", "0" },
+ { "menu.line_spacing.INFO[CREDITS]", "0" },
+ { "menu.line_spacing.INFO[PROGRAM]", "0" },
+ { "menu.line_spacing.INFO[VERSION]", "0" },
+ { "menu.line_spacing.INFO[LEVELSET]", "0" },
+ { "menu.line_spacing.SETUP[INPUT]", "0" },
+
+ { "menu.extra_spacing", "2" },
{ "main.button.name.x", "0" },
{ "main.button.name.y", "64" },
#define SETUPINPUT_SCREEN_POS_EMPTY1 (SETUPINPUT_SCREEN_POS_START + 3)
#define SETUPINPUT_SCREEN_POS_EMPTY2 (SETUPINPUT_SCREEN_POS_END - 1)
+#define MENU_SETUP_FONT_TITLE FONT_TEXT_1
+#define MENU_SETUP_FONT_TEXT FONT_REQUEST
+
/* for various menu stuff */
#define MENU_SCREEN_START_XPOS 1
#define MENU_SCREEN_START_YPOS 2
#define MENU_SCREEN_MAX_XPOS (SCR_FIELDX - 1)
#define MENU_TITLE1_YPOS 8
#define MENU_TITLE2_YPOS 46
-#define MENU_TITLE_FONT_INFO FONT_TEXT_1
-#define MENU_SPACING_TITLE (menu.text.headline.normal_spacing)
+#define MENU_INFO_FONT_TITLE FONT_TEXT_1
+#define MENU_INFO_FONT_HEAD FONT_TEXT_2
+#define MENU_INFO_FONT_TEXT FONT_TEXT_3
+#define MENU_INFO_FONT_FOOT FONT_TEXT_4
+#define MENU_INFO_SPACE_HEAD (menu.headline2_spacing_info[info_mode])
#define MENU_SCREEN_INFO_XSTART 16
#define MENU_SCREEN_INFO_YSTART1 100
-#define MENU_SCREEN_INFO_YSTART2 (MENU_SCREEN_INFO_YSTART1 + \
- getMenuTextStep(MENU_SPACING_TITLE, \
- MENU_TITLE_FONT_INFO))
+#define MENU_SCREEN_INFO_YSTART2 (MENU_SCREEN_INFO_YSTART1 + \
+ getMenuTextStep(MENU_INFO_SPACE_HEAD, \
+ MENU_INFO_FONT_TITLE))
#define MENU_SCREEN_INFO_YSTEP (TILEY + 4)
#define MENU_SCREEN_INFO_YBOTTOM (SYSIZE - 20)
#define MENU_SCREEN_INFO_YSIZE (MENU_SCREEN_INFO_YBOTTOM - \
static int getMenuFontSpacing(int spacing_height, int font_nr)
{
- return (spacing_height < 0 ? ABS(spacing_height) * getFontHeight(font_nr) :
+ int font_spacing = getFontHeight(font_nr) + menu.extra_spacing;
+
+ return (spacing_height < 0 ? ABS(spacing_height) * font_spacing :
spacing_height);
}
static int getMenuTextSpacing(int spacing_height, int font_nr)
{
- int extra_spacing = menu.text.all.extra_spacing;
-
- return getMenuFontSpacing(spacing_height, font_nr) + extra_spacing;
+ return getMenuFontSpacing(spacing_height, font_nr) + menu.extra_spacing;
}
static int getMenuTextStep(int spacing_height, int font_nr)
void DrawInfoScreen_NotAvailable(char *text_title, char *text_error)
{
- int font_title = FONT_TEXT_1;
+ int font_title = MENU_INFO_FONT_TITLE;
int font_error = FONT_TEXT_2;
- int font_foot = FONT_TEXT_4;
- int spacing_title = menu.text.headline.large_spacing;
+ int font_foot = MENU_INFO_FONT_FOOT;
+ int spacing_title = menu.headline1_spacing_info[info_mode];
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystart1 = mSY - SY + 100;
int ystart2 = ystart1 + ystep_title;
{
static int infoscreen_step[MAX_INFO_ELEMENTS_ON_SCREEN];
static int infoscreen_frame[MAX_INFO_ELEMENTS_ON_SCREEN];
- int font_title = FONT_TEXT_1;
- int font_foot = FONT_TEXT_4;
+ int font_title = MENU_INFO_FONT_TITLE;
+ int font_foot = MENU_INFO_FONT_FOOT;
int xstart = mSX + MENU_SCREEN_INFO_XSTART;
int ystart1 = mSY - SY + MENU_SCREEN_INFO_YSTART1;
int ystart2 = mSY + MENU_SCREEN_INFO_YSTART2;
void HandleInfoScreen_Music(int button)
{
static struct MusicFileInfo *list = NULL;
- int font_title = FONT_TEXT_1;
- int font_head = FONT_TEXT_2;
- int font_text = FONT_TEXT_3;
- int font_foot = FONT_TEXT_4;
- int spacing_title = menu.text.headline.large_spacing;
- int spacing_head = menu.text.headline.normal_spacing;
- int spacing_line = menu.text.line.large_spacing;
+ int font_title = MENU_INFO_FONT_TITLE;
+ int font_head = MENU_INFO_FONT_HEAD;
+ int font_text = MENU_INFO_FONT_TEXT;
+ int font_foot = MENU_INFO_FONT_FOOT;
+ int spacing_title = menu.headline1_spacing_info[info_mode];
+ int spacing_head = menu.headline2_spacing_info[info_mode];
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystep_head = getMenuTextStep(spacing_head, font_head);
- int ystep_line = getMenuTextStep(spacing_line, font_text);
int ystart = mSY - SY + 100;
int ybottom = mSY - SY + SYSIZE - 20;
}
DrawTextFCentered(ystart, font_text, "\"%s\"", list->title);
- ystart += ystep_line;
+ ystart += ystep_head;
}
if (!strEqual(list->artist, UNKNOWN_NAME))
ystart += ystep_head;
DrawTextFCentered(ystart, font_text, "%s", list->artist);
- ystart += ystep_line;
+ ystart += ystep_head;
}
if (!strEqual(list->album, UNKNOWN_NAME))
ystart += ystep_head;
DrawTextFCentered(ystart, font_text, "\"%s\"", list->album);
- ystart += ystep_line;
+ ystart += ystep_head;
}
if (!strEqual(list->year, UNKNOWN_NAME))
ystart += ystep_head;
DrawTextFCentered(ystart, font_text, "%s", list->year);
- ystart += ystep_line;
+ ystart += ystep_head;
}
DrawTextSCentered(ybottom, FONT_TEXT_4,
static void DrawInfoScreen_CreditsScreen(int screen_nr)
{
- int font_title = FONT_TEXT_1;
- int font_head = FONT_TEXT_2;
- int font_text = FONT_TEXT_3;
- int font_foot = FONT_TEXT_4;
- int spacing_title = menu.text.headline.large_spacing;
- int spacing_head = menu.text.headline.normal_spacing;
- int spacing_para = menu.text.paragraph.large_spacing;
- int spacing_line = menu.text.line.large_spacing;
- int spacing_line1 = menu.text.line.normal_spacing;
+ int font_title = MENU_INFO_FONT_TITLE;
+ int font_head = MENU_INFO_FONT_HEAD;
+ int font_text = MENU_INFO_FONT_TEXT;
+ int font_foot = MENU_INFO_FONT_FOOT;
+ int spacing_title = menu.headline1_spacing_info[info_mode];
+ int spacing_head = menu.headline2_spacing_info[info_mode];
+ int spacing_para = menu.paragraph_spacing_info[info_mode];
+ int spacing_line = menu.line_spacing_info[info_mode];
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystep_head = getMenuTextStep(spacing_head, font_head);
int ystep_para = getMenuTextStep(spacing_para, font_text);
int ystep_line = getMenuTextStep(spacing_line, font_text);
- int ystep_line1 = getMenuTextStep(spacing_line1, font_text);
int ystart = mSY - SY + 100;
int ybottom = mSY - SY + SYSIZE - 20;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Peter Liepa");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for creating");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"\"Boulder Dash\"");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"in the year");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"1984");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"published by");
ystart += ystep_head;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Klaus Heinz & Volker Wertich");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for creating");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"\"Emerald Mine\"");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"in the year");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"1987");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"published by");
ystart += ystep_head;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Michael Stopp & Philip Jespersen");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for creating");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"\"Supaplex\"");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"in the year");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"1991");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"published by");
ystart += ystep_head;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Hiroyuki Imabayashi");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for creating");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"\"Sokoban\"");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"in the year");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"1982");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"published by");
ystart += ystep_head;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Alan Bond");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"and");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"J\xfcrgen Bonhagen");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for the continuous creation");
- ystart += ystep_line1;
+ ystart += ystep_line;
DrawTextSCentered(ystart, font_head,
"of outstanding level sets");
}
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Peter Elzner");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for ideas and inspiration by");
ystart += ystep_head;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Steffest");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for ideas and inspiration by");
ystart += ystep_head;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"David Tritscher");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for the code base used for the");
- ystart += ystep_line1;
+ ystart += ystep_line;
DrawTextSCentered(ystart, font_head,
"native Emerald Mine engine");
}
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Guido Schulz");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for the initial DOS port");
ystart += ystep_para;
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"Karl H\xf6rnell");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"for some additional toons");
}
{
DrawTextSCentered(ystart, font_head,
"And not to forget:");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"Many thanks to");
ystart += ystep_head;
DrawTextSCentered(ystart, font_text,
"All those who contributed");
- ystart += ystep_line1;
+ ystart += ystep_line;
DrawTextSCentered(ystart, font_text,
"levels to this game");
- ystart += ystep_line1;
+ ystart += ystep_line;
DrawTextSCentered(ystart, font_text,
"since 1995");
}
void DrawInfoScreen_Program()
{
- int font_title = FONT_TEXT_1;
- int font_head = FONT_TEXT_2;
- int font_text = FONT_TEXT_3;
- int font_foot = FONT_TEXT_4;
- int spacing_title = menu.text.headline.large_spacing;
- int spacing_head = menu.text.headline.normal_spacing;
- int spacing_para = menu.text.paragraph.large_spacing;
- int spacing_line = menu.text.line.large_spacing;
- int spacing_line1 = menu.text.line.normal_spacing;
+ int font_title = MENU_INFO_FONT_TITLE;
+ int font_head = MENU_INFO_FONT_HEAD;
+ int font_text = MENU_INFO_FONT_TEXT;
+ int font_foot = MENU_INFO_FONT_FOOT;
+ int spacing_title = menu.headline1_spacing_info[info_mode];
+ int spacing_head = menu.headline2_spacing_info[info_mode];
+ int spacing_para = menu.paragraph_spacing_info[info_mode];
+ int spacing_line = menu.line_spacing_info[info_mode];
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystep_head = getMenuTextStep(spacing_head, font_head);
int ystep_para = getMenuTextStep(spacing_para, font_text);
int ystep_line = getMenuTextStep(spacing_line, font_text);
- int ystep_line1 = getMenuTextStep(spacing_line1, font_text);
int ystart = mSY - SY + 100;
int ybottom = mSY - SY + SYSIZE - 20;
DrawTextSCentered(ystart, font_head,
"This game is Freeware!");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"If you like it, send e-mail to:");
ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
"If you have created new levels,");
- ystart += ystep_line1;
+ ystart += ystep_line;
DrawTextSCentered(ystart, font_head,
"send them to me to include them!");
- ystart += ystep_line;
+ ystart += ystep_head;
DrawTextSCentered(ystart, font_head,
":-)");
void DrawInfoScreen_Version()
{
- int font_title = FONT_TEXT_1;
- int font_head = FONT_TEXT_2;
- int font_text = FONT_TEXT_3;
- int font_foot = FONT_TEXT_4;
- int spacing_title = menu.text.headline.large_spacing;
- int spacing_head = menu.text.headline.normal_spacing;
- int spacing_para = menu.text.paragraph.normal_spacing;
- int spacing_line = menu.text.line.normal_spacing;
+ int font_title = MENU_INFO_FONT_TITLE;
+ int font_head = MENU_INFO_FONT_HEAD;
+ int font_text = MENU_INFO_FONT_TEXT;
+ int font_foot = MENU_INFO_FONT_FOOT;
+ int spacing_title = menu.headline1_spacing_info[info_mode];
+ int spacing_head = menu.headline2_spacing_info[info_mode];
+ int spacing_para = menu.paragraph_spacing_info[info_mode];
+ int spacing_line = menu.line_spacing_info[info_mode];
int xstep = getFontWidth(font_text);
int ystep_title = getMenuTextStep(spacing_title, font_title);
int ystep_head = getMenuTextStep(spacing_head, font_head);
int alpha = 200, alpha_step = -1;
int alpha_ticks = 0;
char mapping[4096], temp[4096];
- int font_name = FONT_TEXT_1;
- int font_info = FONT_REQUEST;
- int spacing_name = menu.text.line.normal_spacing;
- int spacing_line = menu.text.line.normal_spacing;
- int spacing_line2 = menu.text.line.large_spacing;
- int ystep_name = getMenuTextStep(spacing_name, font_name);
- int ystep_line = getMenuTextStep(spacing_line, font_info);
- int ystep_line2 = getMenuTextStep(spacing_line2, font_info);
- // int ystep1 = getFontHeight(font_name) + 2;
- // int ystep2 = getFontHeight(font_info) + 2;
+ int font_name = MENU_SETUP_FONT_TITLE;
+ int font_info = MENU_SETUP_FONT_TEXT;
+ int spacing_name = menu.line_spacing_setup[SETUP_MODE_INPUT];
+ int spacing_line = menu.line_spacing_setup[SETUP_MODE_INPUT];
+ int spacing_para = menu.paragraph_spacing_setup[SETUP_MODE_INPUT];
+ int ystep_name = getMenuTextStep(spacing_name, font_name);
+ int ystep_line = getMenuTextStep(spacing_line, font_info);
+ int ystep_para = getMenuTextStep(spacing_para, font_info);
int i, j;
struct
ystart2 += ystep_line;
DrawTextSCentered(ystart2, font_info,
"(Your controller may look different.)");
- ystart2 += ystep_line2;
+ ystart2 += ystep_para;
#if defined(PLATFORM_ANDROID)
DrawTextSCentered(ystart2, font_info,