From: Holger Schemel Date: Sun, 3 Nov 2024 08:33:02 +0000 (+0100) Subject: added configuration options for menu title text positions X-Git-Tag: 4.4.0.0-test-4~100 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e0ccd8f55003bfefc653a9888af59e6d9b036ec2;p=rocksndiamonds.git added configuration options for menu title text positions --- diff --git a/src/conf_gfx.c b/src/conf_gfx.c index 885f9151..1db6da64 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -9393,6 +9393,17 @@ struct ConfigInfo image_config[] = { "menu.extra_spacing.INFO[LEVEL]", "2" }, { "menu.extra_spacing.SETUP[INPUT]", "2" }, + { "menu.text.title_1.x", "-1" }, + { "menu.text.title_1.y", "8" }, + { "menu.text.title_1.align", "center" }, + { "menu.text.title_1.valign", "top" }, + { "menu.text.title_1.font", "font.title_1" }, + { "menu.text.title_2.x", "-1" }, + { "menu.text.title_2.y", "46" }, + { "menu.text.title_2.align", "center" }, + { "menu.text.title_2.valign", "top" }, + { "menu.text.title_2.font", "font.title_2" }, + { "main.button.name.x", "0" }, { "main.button.name.y", "64" }, { "main.button.levels.x", "0" }, diff --git a/src/main.h b/src/main.h index 7eb0e47f..9ca6638e 100644 --- a/src/main.h +++ b/src/main.h @@ -3241,6 +3241,12 @@ struct RequestButtonInfo struct TextPosInfo touch_confirm; }; +struct MenuTextInfo +{ + struct TextPosInfo title_1; + struct TextPosInfo title_2; +}; + struct MenuMainButtonInfo { struct MenuPosInfo name; @@ -3431,6 +3437,7 @@ struct MenuInfo int sound[NUM_SPECIAL_GFX_ARGS]; int music[NUM_SPECIAL_GFX_ARGS]; + struct MenuTextInfo text; struct MenuMainInfo main; struct MenuSetupInfo setup; struct MenuScoresInfo scores; diff --git a/src/screens.c b/src/screens.c index 39b748da..0eb40b42 100644 --- a/src/screens.c +++ b/src/screens.c @@ -178,8 +178,8 @@ #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_TITLE1_YPOS 8 -#define MENU_TITLE2_YPOS 46 +#define MENU_TITLE1_YPOS (menu.text.title_1.y) +#define MENU_TITLE2_YPOS (menu.text.title_2.y) #define MENU_INFO_FONT_TITLE FONT_TEXT_1 #define MENU_INFO_FONT_HEAD FONT_TEXT_2 #define MENU_INFO_FONT_TEXT FONT_TEXT_3