From 5b89fd7dab3dfb5b4c30f12dde00aa203657cda6 Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Fri, 2 Mar 2018 19:10:57 +0100 Subject: 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. --- engines/tucker/locations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/tucker/locations.cpp') 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; -- cgit v1.2.3