From 936cb38b5e0e67c50cf35d23f81059b4a6493ce8 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Sun, 10 Mar 2013 21:21:37 -0400 Subject: Center text without needing endless spaces; also support \n in centered text. * Text positioning in message boxes is now controlled by #defines. * The various MSG_PLAY_SLIDE messages are now one, MSG_SCREENSHOT_SLIDESHOW_KEYS, with \n between lines. * Use \n in some more message pairs. * Lengthy scrollers broke. This will be investigated in a later commit. --- source/nds/gui.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/nds/gui.h') diff --git a/source/nds/gui.h b/source/nds/gui.h index 49bfc5f..67d67dc 100644 --- a/source/nds/gui.h +++ b/source/nds/gui.h @@ -31,6 +31,12 @@ #define OPTION_TEXT_X 10 #define OPTION_TEXT_SX 236 +// For message boxes +#define MESSAGE_BOX_TEXT_X ((NDS_SCREEN_WIDTH - ICON_MSG.x) / 2 + 3) +#define MESSAGE_BOX_TEXT_SX (ICON_MSG.x - 6) +// Y is brought down by the "window title" that's part of ICON_MSG +#define MESSAGE_BOX_TEXT_Y ((NDS_SCREEN_HEIGHT - ICON_MSG.y) / 2 + 24) + // For cheats [ NUM. DESC . . . . . +/- ] #define CHEAT_NUMBER_X 10 #define CHEAT_DESC_X 34 -- cgit v1.2.3