{ "menu.line_spacing.INFO[LEVELSET]", "0" },
{ "menu.line_spacing.SETUP[INPUT]", "0" },
- { "menu.extra_spacing", "2" },
+ { "menu.extra_spacing.INFO", "2" },
+ { "menu.extra_spacing.INFO[TITLE]", "2" },
+ { "menu.extra_spacing.INFO[ELEMENTS]", "2" },
+ { "menu.extra_spacing.INFO[MUSIC]", "2" },
+ { "menu.extra_spacing.INFO[CREDITS]", "2" },
+ { "menu.extra_spacing.INFO[PROGRAM]", "2" },
+ { "menu.extra_spacing.INFO[VERSION]", "2" },
+ { "menu.extra_spacing.INFO[LEVELSET]", "2" },
+ { "menu.extra_spacing.SETUP[INPUT]", "2" },
{ "main.button.name.x", "0" },
{ "main.button.name.y", "64" },
char *value_2 = getHashEntry(setup_file_hash,"menu.headline1_spacing.INFO");
char *value_3 = getHashEntry(setup_file_hash,"menu.headline2_spacing.INFO");
char *value_4 = getHashEntry(setup_file_hash,"menu.line_spacing.INFO");
+ char *value_5 = getHashEntry(setup_file_hash,"menu.extra_spacing.INFO");
if (value_1 != NULL)
menu.paragraph_spacing_info[i] = get_integer_from_string(value_1);
menu.headline2_spacing_info[i] = get_integer_from_string(value_3);
if (value_4 != NULL)
menu.line_spacing_info[i] = get_integer_from_string(value_4);
+ if (value_5 != NULL)
+ menu.extra_spacing_info[i] = get_integer_from_string(value_5);
}
/* special case: initialize with default values that may be overwritten */
int line_spacing[NUM_SPECIAL_GFX_INFO_ARGS];
int line_spacing_info[NUM_SPECIAL_GFX_INFO_ARGS];
int line_spacing_setup[NUM_SPECIAL_GFX_INFO_ARGS];
- int extra_spacing;
+ int extra_spacing[NUM_SPECIAL_GFX_INFO_ARGS];
+ int extra_spacing_info[NUM_SPECIAL_GFX_INFO_ARGS];
+ int extra_spacing_setup[NUM_SPECIAL_GFX_INFO_ARGS];
struct TitleFadingInfo enter_menu;
struct TitleFadingInfo leave_menu;
#define DRAW_YOFFSET_INFO(i) (DRAW_MODE_INFO(i) == INFO_MODE_MAIN ? \
menu.draw_yoffset[GAME_MODE_INFO] : \
menu.draw_yoffset_info[DRAW_MODE_INFO(i)])
+#define EXTRA_SPACING_INFO(i) (DRAW_MODE_INFO(i) == INFO_MODE_MAIN ? \
+ menu.extra_spacing[GAME_MODE_INFO] : \
+ menu.extra_spacing_info[DRAW_MODE_INFO(i)])
#define DRAW_XOFFSET_SETUP(i) (DRAW_MODE_SETUP(i) == SETUP_MODE_MAIN ? \
menu.draw_xoffset[GAME_MODE_SETUP] : \
#define DRAW_YOFFSET_SETUP(i) (DRAW_MODE_SETUP(i) == SETUP_MODE_MAIN ? \
menu.draw_yoffset[GAME_MODE_SETUP] : \
menu.draw_yoffset_setup[DRAW_MODE_SETUP(i)])
+#define EXTRA_SPACING_SETUP(i) (DRAW_MODE_SETUP(i) == SETUP_MODE_MAIN ? \
+ menu.extra_spacing[GAME_MODE_SETUP] : \
+ menu.extra_spacing_setup[DRAW_MODE_SETUP(i)])
#define DRAW_XOFFSET(s) ((s) == GAME_MODE_INFO ? \
DRAW_XOFFSET_INFO(info_mode) : \
(s) == GAME_MODE_SETUP ? \
DRAW_YOFFSET_SETUP(setup_mode) : \
menu.draw_yoffset[DRAW_MODE(s)])
+#define EXTRA_SPACING(s) ((s) == GAME_MODE_INFO ? \
+ EXTRA_SPACING_INFO(info_mode) : \
+ (s) == GAME_MODE_SETUP ? \
+ EXTRA_SPACING_SETUP(setup_mode) : \
+ menu.extra_spacing[DRAW_MODE(s)])
#define mSX (SX + DRAW_XOFFSET(game_status))
#define mSY (SY + DRAW_YOFFSET(game_status))
static int getMenuFontSpacing(int spacing_height, int font_nr)
{
- int font_spacing = getFontHeight(font_nr) + menu.extra_spacing;
+ int font_spacing = getFontHeight(font_nr) + EXTRA_SPACING(game_status);
return (spacing_height < 0 ? ABS(spacing_height) * font_spacing :
spacing_height);
static int getMenuTextSpacing(int spacing_height, int font_nr)
{
- return getMenuFontSpacing(spacing_height, font_nr) + menu.extra_spacing;
+ return (getMenuFontSpacing(spacing_height, font_nr) +
+ EXTRA_SPACING(game_status));
}
static int getMenuTextStep(int spacing_height, int font_nr)