aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/user_interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-19 23:33:18 -0400
committerPaul Gilbert2014-03-19 23:33:18 -0400
commit8d252f4f0e81cfd43e5b311df4a1ed5fb478953b (patch)
tree3e37aa66ca3ff9ef92d94cb317c26da16dce3d19 /engines/mads/user_interface.cpp
parent4ab73a89abd66890391a977ebf4a23eb361a44a4 (diff)
downloadscummvm-rg350-8d252f4f0e81cfd43e5b311df4a1ed5fb478953b.tar.gz
scummvm-rg350-8d252f4f0e81cfd43e5b311df4a1ed5fb478953b.tar.bz2
scummvm-rg350-8d252f4f0e81cfd43e5b311df4a1ed5fb478953b.zip
MADS: Implemented methods for checking action at mouse position and clicking
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r--engines/mads/user_interface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index f46a4c4150..f6be725ac2 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -460,6 +460,9 @@ void UserInterface::loadElements() {
_vm->_game->_screenObjects.add(bounds, LAYER_GUI, CAT_TALK_ENTRY, idx);
}
}
+
+ // Store the number of UI elements loaded for easy nuking/refreshing hotspots added later
+ _vm->_game->_screenObjects._uiCount = _vm->_game->_screenObjects.size();
}
bool UserInterface::getBounds(ScrCategory category, int v, Common::Rect &bounds) {