aboutsummaryrefslogtreecommitdiff
path: root/source/nds/gui.h
diff options
context:
space:
mode:
authorNebuleon Fumika2013-03-10 21:21:37 -0400
committerNebuleon Fumika2013-03-10 21:21:37 -0400
commit936cb38b5e0e67c50cf35d23f81059b4a6493ce8 (patch)
treedcc10e90f203b98dfe41b3c5d91d8c7e277ffaa7 /source/nds/gui.h
parent47a63742d7aae6578b74929d7957c86ef1e699be (diff)
downloadsnesemu-936cb38b5e0e67c50cf35d23f81059b4a6493ce8.tar.gz
snesemu-936cb38b5e0e67c50cf35d23f81059b4a6493ce8.tar.bz2
snesemu-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.h6
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