aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/dialogs.h
diff options
context:
space:
mode:
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);