aboutsummaryrefslogtreecommitdiff
path: root/gui.h
diff options
context:
space:
mode:
authorJames Brown2002-03-14 16:49:59 +0000
committerJames Brown2002-03-14 16:49:59 +0000
commit9f53d9c938808d1e28d406e353cdabed583c8a87 (patch)
tree0c6e7715e8a9ede005ffc4842720dd7ee36e72bc /gui.h
parentd8adad386fd4a59b484534e48be5739705b65897 (diff)
downloadscummvm-rg350-9f53d9c938808d1e28d406e353cdabed583c8a87.tar.gz
scummvm-rg350-9f53d9c938808d1e28d406e353cdabed583c8a87.tar.bz2
scummvm-rg350-9f53d9c938808d1e28d406e353cdabed583c8a87.zip
Last part of the WinCE merge - all should compile and work now.
I've made some changes from Arismes code, to intergrate some stuff into ScummVM - that bit is still a WIP. svn-id: r3753
Diffstat (limited to 'gui.h')
-rw-r--r--gui.h69
1 files changed, 65 insertions, 4 deletions
diff --git a/gui.h b/gui.h
index 2f2e510bed..d2bd8391fc 100644
--- a/gui.h
+++ b/gui.h
@@ -3,9 +3,13 @@
enum {
GUI_NONE = 0,
- GUI_TEXT = 1,
+ GUI_RESTEXT = 1,
GUI_IMAGE = 2,
- GUI_STAT = 3
+ GUI_STAT = 3,
+ GUI_CUSTOMTEXT = 4,
+ GUI_VARTEXT = 5,
+ GUI_ACTIONTEXT = 6,
+ GUI_KEYTEXT = 7
};
enum {
@@ -18,6 +22,52 @@ enum {
};
+static const char* string_map_table_custom[] = {
+ "Master Volume :",
+ "Music Volume :",
+ "SFX Volume :",
+ "+",
+ "-",
+ "Sound",
+ "Keys",
+ "About",
+ "Pocket ScummVM",
+ "Build " SCUMMVM_VERSION "(" SCUMMVM_CVS ")",
+ "ScummVM http://scummvm.sourceforge.net",
+ "All games (c) LucasArts",
+ "Quit",
+ "Pause",
+ "Save",
+ "Skip",
+ "Hide"
+};
+
+static const byte string_map_table_v6[] = {
+ 117, /* How may I serve you? */
+ 109, /* Select a game to LOAD */
+ 108, /* Name your SAVE game */
+ 96, /* Save */
+ 97, /* Load */
+ 98, /* Play */
+ 99, /* Cancel */
+ 100, /* Quit */
+ 101, /* Ok */
+ 93 /* Game paused */
+};
+
+static const byte string_map_table_v5[] = {
+ 0, /* How may I serve you? */
+ 20, /* Select a game to LOAD */
+ 19, /* Name your SAVE game */
+ 7, /* Save */
+ 8, /* Load */
+ 9, /* Play */
+ 10, /* Cancel */
+ 11, /* Quit */
+ 12, /* Ok */
+ 4 /* Game paused */
+};
+
struct GuiWidget {
byte _type;
byte _page;
@@ -47,6 +97,9 @@ struct Gui {
int _clickWidget;
char *_queryMess;
+ /* optiondialog specifics */
+ int _gui_variables[100];
+
/* savedialog specifics */
int _slotIndex;
int _editString;
@@ -75,11 +128,19 @@ struct Gui {
void getSavegameNames(int start);
void editString(int index);
void showCaret(bool show);
- void addLetter(byte letter);
- void saveLoadDialog();
+ void addLetter(byte letter);
void queryMessage(const char *msg, const char *alts);
byte getDefaultColor(int color);
+
+ // Dialogs
+ void saveLoadDialog();
void pause();
+ void options();
+
+ void handleSoundDialogCommand(int cmd);
+ void handleOptionsDialogCommand(int cmd);
+ void handleKeysDialogCommand(int cmd);
+
};
// Built-in font