diff options
author | Nebuleon Fumika | 2013-03-10 21:21:37 -0400 |
---|---|---|
committer | Nebuleon Fumika | 2013-03-10 21:21:37 -0400 |
commit | 936cb38b5e0e67c50cf35d23f81059b4a6493ce8 (patch) | |
tree | dcc10e90f203b98dfe41b3c5d91d8c7e277ffaa7 /source/nds/gui.h | |
parent | 47a63742d7aae6578b74929d7957c86ef1e699be (diff) | |
download | snes9x2005-936cb38b5e0e67c50cf35d23f81059b4a6493ce8.tar.gz snes9x2005-936cb38b5e0e67c50cf35d23f81059b4a6493ce8.tar.bz2 snes9x2005-936cb38b5e0e67c50cf35d23f81059b4a6493ce8.zip |
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<n> 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.
Diffstat (limited to 'source/nds/gui.h')
-rw-r--r-- | source/nds/gui.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |