diff options
-rw-r--r-- | scumm/script_v2.cpp | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index 908d428cf6..07af801f9b 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -1377,15 +1377,30 @@ void Scumm_v2::setUserState(byte state) { } if (state & 2) { // Cursor Show/Hide + + // Mark verbs as hidden/visible + for (int i = 0; i < _maxVerbs; i++) { + _verbs[i].saveid = !(state & 16); + } + if (state & 16) { _userPut = 1; _cursor.state = 1; + + // Draw all verbs + redrawVerbs(); } else { _userPut = 0; _cursor.state = 0; + + // Hide all verbs + ScummVM::Rect rect; + rect.top = virtscr[2].topline; + rect.bottom = virtscr[2].topline + 6*88; + rect.left = 0; + rect.right = 319; + restoreBG(rect); } - - verbMouseOver(0); } } |