aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/tattoo_user_interface.h
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-25 11:26:09 -0400
committerPaul Gilbert2015-07-25 11:26:09 -0400
commitcb9aab65b0b49770f3552bbe001be012d45827e6 (patch)
treeca1256c32481da3235626198ab7a6e70c1d5fd28 /engines/sherlock/tattoo/tattoo_user_interface.h
parente77f9f1779adc885f85299840b4ab58a8dcb6c13 (diff)
downloadscummvm-rg350-cb9aab65b0b49770f3552bbe001be012d45827e6.tar.gz
scummvm-rg350-cb9aab65b0b49770f3552bbe001be012d45827e6.tar.bz2
scummvm-rg350-cb9aab65b0b49770f3552bbe001be012d45827e6.zip
SHERLOCK: RT: Clean up handling of WidgetLab for lab table scene
Diffstat (limited to 'engines/sherlock/tattoo/tattoo_user_interface.h')
-rw-r--r--engines/sherlock/tattoo/tattoo_user_interface.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.h b/engines/sherlock/tattoo/tattoo_user_interface.h
index a5a678fa21..f894e2e0be 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.h
+++ b/engines/sherlock/tattoo/tattoo_user_interface.h
@@ -31,7 +31,6 @@
#include "sherlock/tattoo/widget_credits.h"
#include "sherlock/tattoo/widget_files.h"
#include "sherlock/tattoo/widget_inventory.h"
-#include "sherlock/tattoo/widget_lab.h"
#include "sherlock/tattoo/widget_options.h"
#include "sherlock/tattoo/widget_quit.h"
#include "sherlock/tattoo/widget_text.h"
@@ -48,6 +47,11 @@ class WidgetBase;
enum ScrollHighlight { SH_NONE = 0, SH_SCROLL_UP = 1, SH_PAGE_UP = 2, SH_THUMBNAIL = 3, SH_PAGE_DOWN = 4, SH_SCROLL_DOWN = 5 };
+class WidgetList : public Common::List <WidgetBase *> {
+public:
+ bool contains(const WidgetBase *item) const;
+};
+
class TattooUserInterface : public UserInterface {
friend class WidgetBase;
private:
@@ -57,7 +61,8 @@ private:
WidgetInventory _inventoryWidget;
WidgetMessage _messageWidget;
WidgetQuit _quitWidget;
- Common::List<WidgetBase *> _widgets;
+ WidgetList _fixedWidgets;
+ WidgetList _widgets;
byte _lookupTable[PALETTE_COUNT];
byte _lookupTable1[PALETTE_COUNT];
private:
@@ -106,7 +111,6 @@ public:
int _maskCounter;
ImageFile *_interfaceImages;
WidgetCredits _creditsWidget;
- WidgetLab _labWidget;
WidgetOptions _optionsWidget;
WidgetText _textWidget;
WidgetSceneTooltip _tooltipWidget;
@@ -216,6 +220,12 @@ public:
* Show the save game dialog, and allow the user to save the game
*/
void saveGame();
+
+ /**
+ * Add a widget to the current scene to be executed if there are no active widgets in the
+ * main _widgets list
+ */
+ void addFixedWidget(WidgetBase *widget);
public:
/**
* Resets the user interface