aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs.h
diff options
context:
space:
mode:
authorPaul Gilbert2018-01-27 21:39:40 -0500
committerPaul Gilbert2018-01-27 21:39:40 -0500
commitb1b0f6be2e46f690a3543415a22e121ea6db09cf (patch)
treef269ebbf6d6c15d29732e5b4053242145c98abe6 /engines/xeen/dialogs.h
parent68274d1cc66fe3a8f6df2a2064a4a03d1a0678f6 (diff)
downloadscummvm-rg350-b1b0f6be2e46f690a3543415a22e121ea6db09cf.tar.gz
scummvm-rg350-b1b0f6be2e46f690a3543415a22e121ea6db09cf.tar.bz2
scummvm-rg350-b1b0f6be2e46f690a3543415a22e121ea6db09cf.zip
XEEN: Control panel dialog now showing
Diffstat (limited to 'engines/xeen/dialogs.h')
-rw-r--r--engines/xeen/dialogs.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/engines/xeen/dialogs.h b/engines/xeen/dialogs.h
index d0bf20108b..536bd27e82 100644
--- a/engines/xeen/dialogs.h
+++ b/engines/xeen/dialogs.h
@@ -39,12 +39,14 @@ public:
Common::Rect _bounds;
SpriteResource *_sprites;
int _value;
+ uint _frameNum;
bool _draw;
- UIButton(const Common::Rect &bounds, int value, SpriteResource *sprites, bool draw) :
- _bounds(bounds), _value(value), _sprites(sprites), _draw(draw) {}
+ UIButton(const Common::Rect &bounds, int value, uint frameNum, SpriteResource *sprites, bool draw) :
+ _bounds(bounds), _value(value), _frameNum(frameNum),
+ _sprites(sprites), _draw(draw) {}
- UIButton() : _value(0), _sprites(nullptr), _draw(false) {}
+ UIButton() : _value(0), _frameNum(0), _sprites(nullptr), _draw(false) {}
};
class ButtonContainer : public Cutscenes {
@@ -89,9 +91,10 @@ public:
void restoreButtons();
- void addButton(const Common::Rect &bounds, int val, SpriteResource *sprites);
-
- void addButton(const Common::Rect &bounds, int val);
+ void addButton(const Common::Rect &bounds, int val,
+ SpriteResource *sprites = nullptr);
+ void addButton(const Common::Rect &bounds, int val,
+ uint frameNum, SpriteResource *sprites = nullptr);
void addPartyButtons(XeenEngine *vm);