diff options
Diffstat (limited to 'engines/wage/dialog.h')
-rw-r--r-- | engines/wage/dialog.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/wage/dialog.h b/engines/wage/dialog.h index 747d9dea05..7983417b47 100644 --- a/engines/wage/dialog.h +++ b/engines/wage/dialog.h @@ -53,6 +53,14 @@ namespace Wage { struct DialogButton { Common::String text; Common::Rect bounds; + + DialogButton(const char *t, int x1, int y1, int x2, int y2) { + text = t; + bounds.left = x1; + bounds.top = y1; + bounds.right = x2; + bounds.bottom = y2; + } }; typedef Common::Array<DialogButton *> DialogButtonArray; @@ -62,6 +70,8 @@ public: Dialog(Gui *gui, const char *text, DialogButtonArray *buttons); ~Dialog(); + void run(); + private: Gui *_gui; Graphics::Surface _tempSurface; |