MADS: Implemented methods for checking action at mouse position and clicking

This commit is contained in:
Paul Gilbert 2014-03-19 23:33:18 -04:00
parent 4ab73a89ab
commit 8d252f4f0e
9 changed files with 326 additions and 26 deletions

View file

@ -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) {