aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/tattoo/widget_base.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-07-21 08:12:47 -0400
committerPaul Gilbert2015-07-21 08:12:47 -0400
commitc38d8d9617dbea00eb9343233796b80955a0f564 (patch)
tree7a47ad60ef5430ac16902574060b9030231d6e7a /engines/sherlock/tattoo/widget_base.cpp
parent959c4eceda2b2f4417e5d24ab7eccadaa30de77d (diff)
downloadscummvm-rg350-c38d8d9617dbea00eb9343233796b80955a0f564.tar.gz
scummvm-rg350-c38d8d9617dbea00eb9343233796b80955a0f564.tar.bz2
scummvm-rg350-c38d8d9617dbea00eb9343233796b80955a0f564.zip
SHERLOCK: RT: Keep lab scene widget active after displaying messages
Diffstat (limited to 'engines/sherlock/tattoo/widget_base.cpp')
-rw-r--r--engines/sherlock/tattoo/widget_base.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/sherlock/tattoo/widget_base.cpp b/engines/sherlock/tattoo/widget_base.cpp
index 66ade474c2..9d95fed9bf 100644
--- a/engines/sherlock/tattoo/widget_base.cpp
+++ b/engines/sherlock/tattoo/widget_base.cpp
@@ -57,6 +57,17 @@ void WidgetBase::banishWindow() {
ui._widgets.remove(this);
}
+bool WidgetBase::active() const {
+ TattooUserInterface &ui = *(TattooUserInterface *)_vm->_ui;
+ for (Common::List<WidgetBase *>::iterator i = ui._widgets.begin(); i != ui._widgets.end(); ++i) {
+ if ((*i) == this)
+ return true;
+ }
+
+ return false;
+}
+
+
void WidgetBase::erase() {
Screen &screen = *_vm->_screen;