aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/dialog.cpp10
-rw-r--r--gui/dialog.h5
-rw-r--r--gui/widget.cpp4
-rw-r--r--gui/widget.h2
-rw-r--r--newgui.cpp6
5 files changed, 21 insertions, 6 deletions
diff --git a/gui/dialog.cpp b/gui/dialog.cpp
index d0bd4dfe2b..d59a6c34bc 100644
--- a/gui/dialog.cpp
+++ b/gui/dialog.cpp
@@ -369,6 +369,16 @@ void OptionsDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data
#pragma mark -
+AboutDialog::AboutDialog(NewGui *gui)
+ : Dialog (gui, 30, 10, 260, 134)
+{
+ addButton(110, 110, 40, 15, CUSTOM_STRING(23), kCloseCmd, 'C'); // Close dialog - FIXME
+ new StaticTextWidget(this, 10, 17, 240, 16, "Build " SCUMMVM_VERSION " (" SCUMMVM_CVS ")", true);
+ new StaticTextWidget(this, 10, 37, 240, 16, "ScummVM http://scummvm.sourceforge.net", true);
+ new StaticTextWidget(this, 10, 67, 240, 16, "All games (c) LucasArts", true);
+ new StaticTextWidget(this, 10, 84, 240, 16, "Except", true);
+ new StaticTextWidget(this, 10, 97, 240, 16, "Simon the Sorcerer (c) Adventuresoft", true);
+}
PauseDialog::PauseDialog(NewGui *gui)
: Dialog (gui, 50, 80, 220, 16)
diff --git a/gui/dialog.h b/gui/dialog.h
index bccd2b9cf2..40c109c220 100644
--- a/gui/dialog.h
+++ b/gui/dialog.h
@@ -92,6 +92,11 @@ class SoundDialog;
class KeysDialog;
class MiscDialog;
+class AboutDialog : public Dialog {
+public:
+ AboutDialog(NewGui *gui);
+};
+
class OptionsDialog : public Dialog {
protected:
SoundDialog *_soundDialog;
diff --git a/gui/widget.cpp b/gui/widget.cpp
index 8dc40e8740..b2967f85d2 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -76,8 +76,8 @@ void Widget::draw()
#pragma mark -
-StaticTextWidget::StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text)
- : Widget (boss, x, y, w, h), _label(0), _centred(false)
+StaticTextWidget::StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text, bool centred)
+ : Widget (boss, x, y, w, h), _label(0), _centred(centred)
{
_type = kStaticTextWidget;
setLabel(text);
diff --git a/gui/widget.h b/gui/widget.h
index a02fc71cb5..3acb063218 100644
--- a/gui/widget.h
+++ b/gui/widget.h
@@ -120,7 +120,7 @@ protected:
char *_label;
bool _centred;
public:
- StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text);
+ StaticTextWidget(Dialog *boss, int x, int y, int w, int h, const char *text, bool centred = false);
~StaticTextWidget();
void setLabel(const char *label);
const char *getLabel() const { return _label; }
diff --git a/newgui.cpp b/newgui.cpp
index 9b0ac54662..eaf49ea849 100644
--- a/newgui.cpp
+++ b/newgui.cpp
@@ -60,9 +60,9 @@ void NewGui::saveloadDialog()
void NewGui::aboutDialog()
{
-// if (!_aboutDialog)
-// _aboutDialog = new AboutDialog(this);
-// openDialog(_aboutDialog);
+ if (!_aboutDialog)
+ _aboutDialog = new AboutDialog(this);
+ openDialog(_aboutDialog);
}
void NewGui::optionsDialog()