aboutsummaryrefslogtreecommitdiff
path: root/source/nds/gui.h
diff options
context:
space:
mode:
authorNebuleon Fumika2013-03-30 01:07:36 -0400
committerNebuleon Fumika2013-03-30 01:08:07 -0400
commit55b5c8ff65834d9f9e247694f8b5cc56649c42dd (patch)
treee8f2d517a5eec30aa69585d62e73c94ec9a77780 /source/nds/gui.h
parentfa71ce73458c91ef8cbdbdb2f3beeb6d820e25e2 (diff)
downloadsnes9x2005-55b5c8ff65834d9f9e247694f8b5cc56649c42dd.tar.gz
snes9x2005-55b5c8ff65834d9f9e247694f8b5cc56649c42dd.tar.bz2
snes9x2005-55b5c8ff65834d9f9e247694f8b5cc56649c42dd.zip
Increase the row count from 6 to 8 in the GUI, file selector and cheats. Remove the useless "dynamic cheat" functions.
Diffstat (limited to 'source/nds/gui.h')
-rw-r--r--source/nds/gui.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/nds/gui.h b/source/nds/gui.h
index 9fddc47..570afe6 100644
--- a/source/nds/gui.h
+++ b/source/nds/gui.h
@@ -31,6 +31,17 @@
#define OPTION_TEXT_X 10
#define OPTION_TEXT_SX 236
+// For option rows
+#define GUI_ROW1_Y 36
+#define GUI_ROW_SY 19
+// The following offset is added to the row's Y coordinate to provide
+// the Y coordinate for its text.
+#define TEXT_OFFSET_Y 2
+// The following offset is added to the row's Y coordinate to provide
+// the Y coordinate for its ICON_SUBSELA (sub-screen selection type A).
+#define SUBSELA_OFFSET_Y -2
+#define SUBSELA_X ((NDS_SCREEN_WIDTH - ICON_SUBSELA.x) / 2)
+
// 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)
@@ -45,6 +56,7 @@
// For the file selector
#define FILE_SELECTOR_ICON_X 10
+#define FILE_SELECTOR_ICON_Y (TEXT_OFFSET_Y - 1)
#define FILE_SELECTOR_NAME_X 32
#define FILE_SELECTOR_NAME_SX 214