diff options
author | Adrian Frühwirth | 2018-03-02 19:10:57 +0100 |
---|---|---|
committer | Adrian Frühwirth | 2018-03-02 19:41:45 +0100 |
commit | 5b89fd7dab3dfb5b4c30f12dde00aa203657cda6 (patch) | |
tree | 52fc160b287550efd72ff03cbc3fcdd8ec61ce07 /engines/tucker/locations.cpp | |
parent | 7aee8f4e4298f2a7c440dc9ffba3eff4d3f25702 (diff) | |
download | scummvm-rg350-5b89fd7dab3dfb5b4c30f12dde00aa203657cda6.tar.gz scummvm-rg350-5b89fd7dab3dfb5b4c30f12dde00aa203657cda6.tar.bz2 scummvm-rg350-5b89fd7dab3dfb5b4c30f12dde00aa203657cda6.zip |
Add PanelState, PanelStyle and PanelType enums
The new _panelState tells if the panel is currently in the process
of being toggled between icon-style and text-style verbs and thus
animated.
The new _panelStyle tells wich verb-style the panel currently uses.
The new _panelType tells which mode the panel currently is in:
- verbs + inventory (normal)
- empty (used for dialogs)
- save, load, play, quit buttons
- save/load savegame
Also, switchPanelType() has been renamed to togglePanelStyle() and
kInputKeyToggleInventory to kInputKeyTogglePanelStyle to better
match the above changes.
_switchPanelFlag has been dropped in favor of using the new _panelState.
TODO: Store _panelStyle in savegames.
Diffstat (limited to 'engines/tucker/locations.cpp')
-rw-r--r-- | engines/tucker/locations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index fee989c904..dc7e43f209 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -3020,11 +3020,11 @@ void TuckerEngine::execData3PreUpdate_locationNum70() { _flagsTable[143] = 0; _updateLocation70StringLen = 0; _forceRedrawPanelItems = true; - _panelState = 1; + _panelType = kPanelTypeEmpty; setCursorState(kCursorStateDisabledHidden); } _forceRedrawPanelItems = true; - _panelState = 1; + _panelType = kPanelTypeEmpty; setCursorState(kCursorStateDisabledHidden); int pos = getPositionForLine(22, _infoBarBuf); const int yPos = (_flagsTable[143] == 0) ? 90 : 72; |