diff options
author | Strangerke | 2015-01-07 00:22:25 +0100 |
---|---|---|
committer | Strangerke | 2015-01-07 00:22:25 +0100 |
commit | e4f7a899d36ba6c8d51432fb6c7527227a76f53a (patch) | |
tree | c690e43186cea99b9fa99961185c1b77b6d78eec /engines/access/martian | |
parent | 10e3a4c0bb27d65ab6e427786d0432981704da4c (diff) | |
download | scummvm-rg350-e4f7a899d36ba6c8d51432fb6c7527227a76f53a.tar.gz scummvm-rg350-e4f7a899d36ba6c8d51432fb6c7527227a76f53a.tar.bz2 scummvm-rg350-e4f7a899d36ba6c8d51432fb6c7527227a76f53a.zip |
ACCESS: MM - Implement mainAreaClick
Diffstat (limited to 'engines/access/martian')
-rw-r--r-- | engines/access/martian/martian_room.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/engines/access/martian/martian_room.cpp b/engines/access/martian/martian_room.cpp index 0134d12b5b..d5b03db246 100644 --- a/engines/access/martian/martian_room.cpp +++ b/engines/access/martian/martian_room.cpp @@ -115,8 +115,23 @@ void MartianRoom::roomMenu() { } void MartianRoom::mainAreaClick() { + Common::Point &mousePos = _vm->_events->_mousePos; + Common::Point pt = _vm->_events->calcRawMouse(); + Screen &screen = *_vm->_screen; + Player &player = *_vm->_player; + + if (_selectCommand == -1) { + player._moveTo = pt; + player._playerMove = true; + } else if (mousePos.x >= screen._windowXAdd && + mousePos.x <= (screen._windowXAdd + screen._vWindowBytesWide) && + mousePos.y >= screen._windowYAdd && + mousePos.y <= (screen._windowYAdd + screen._vWindowLinesTall)) { + if (checkBoxes1(pt) >= 0) { + checkBoxes3(); + } + } } } // End of namespace Martian - } // End of namespace Access |