aboutsummaryrefslogtreecommitdiff
path: root/newgui.cpp
diff options
context:
space:
mode:
authorMax Horn2002-07-07 22:44:30 +0000
committerMax Horn2002-07-07 22:44:30 +0000
commit10d86be56456b57392cca05d5a2135408289223c (patch)
treeca7d19195a38b260fbd625e9f634a71843c1c4bf /newgui.cpp
parentc90ade1f10d3ff0c2f7e429ec5d688b7db8637c9 (diff)
downloadscummvm-rg350-10d86be56456b57392cca05d5a2135408289223c.tar.gz
scummvm-rg350-10d86be56456b57392cca05d5a2135408289223c.tar.bz2
scummvm-rg350-10d86be56456b57392cca05d5a2135408289223c.zip
added options dialog; added NewGui TODO list;
svn-id: r4485
Diffstat (limited to 'newgui.cpp')
-rw-r--r--newgui.cpp30
1 files changed, 29 insertions, 1 deletions
diff --git a/newgui.cpp b/newgui.cpp
index f660673304..4a9828bb26 100644
--- a/newgui.cpp
+++ b/newgui.cpp
@@ -28,10 +28,23 @@
#define vline(x, y, y2, color) line(x, y, x, y2, color);
+/*
+ * TODO list
+ * - add more widgets
+ * - implement hotkeys
+ * - add "close" widget to all dialogs (with a flag to turn it off) ?
+ * - make dialogs "moveable" ?
+ * - implement the missing / incomplete dialogs
+ * - come up with a new look&feel / theme for the GUI
+ * - ...
+ */
+
NewGui::NewGui(Scumm *s) : _s(s), _need_redraw(false)
{
_pauseDialog = new PauseDialog(this);
_saveLoadDialog = new SaveLoadDialog(this);
+// _aboutDialog = new AboutDialog(this);
+ _optionsDialog = new OptionsDialog(this);
}
void NewGui::pauseDialog()
@@ -44,6 +57,16 @@ void NewGui::saveloadDialog()
openDialog(_saveLoadDialog);
}
+void NewGui::aboutDialog()
+{
+// openDialog(_aboutDialog);
+}
+
+void NewGui::optionsDialog()
+{
+ openDialog(_optionsDialog);
+}
+
void NewGui::loop()
{
Dialog *activeDialog = _dialogStack.top();
@@ -124,7 +147,7 @@ void NewGui::closeTopDialog()
#pragma mark -
-const char *NewGui::queryString(int stringno)
+const char *NewGui::queryResString(int stringno)
{
char *result;
int string;
@@ -151,6 +174,11 @@ const char *NewGui::queryString(int stringno)
return result;
}
+const char *NewGui::queryCustomString(int stringno)
+{
+ return string_map_table_custom[stringno];
+}
+
#pragma mark -
byte *NewGui::getBasePtr(int x, int y)