From b1b0f6be2e46f690a3543415a22e121ea6db09cf Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 27 Jan 2018 21:39:40 -0500 Subject: XEEN: Control panel dialog now showing --- engines/xeen/dialogs.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'engines/xeen/dialogs.h') 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); -- cgit v1.2.3