22#ifndef NANCY_ACTION_OVERLAY_H
23#define NANCY_ACTION_OVERLAY_H
25#include "engines/nancy/action/actionrecord.h"
46 enum AnimationType { kStaticAnimation, kInterruptibleAnimation };
53 void updateGraphics()
override;
56 void execute()
override;
60 uint16 _transparency = kPlayOverlayPlain;
61 uint16 _hasSceneChange = kPlayOverlaySceneChange;
62 uint16 _enableHotspotNancy2 = kPlayOverlayNoHotspot;
63 uint16 _overlayType = kPlayOverlayAnimated;
64 uint16 _playDirection = kPlayOverlayForward;
65 uint16 _loop = kPlayOverlayOnce;
66 uint16 _firstFrame = 0;
67 uint16 _loopFirstFrame = 0;
68 uint16 _loopLastFrame = 0;
69 uint32 _frameTime = 0;
82 int16 _currentFrame = -1;
83 int16 _currentViewportFrame = -1;
84 uint32 _nextFrameTime = 0;
85 AnimationType _animationType;
88 bool canHaveHotspot()
const override {
return true; }
89 bool isViewportRelative()
const override {
return true; }
90 bool survivesSceneChange(
bool nextSceneIsNoArt)
const override {
return nextSceneIsNoArt; }
110 Common::String getRecordTypeName()
const override {
return "OverlayStaticTerse"; }
124 Common::String getRecordTypeName()
const override {
return "OverlayMultiframeTerse"; }
133 void init()
override;
138 Common::String getRecordTypeName()
const override {
return "OverlayRandomColor"; }
141 uint32 color = 0xFFFFFFFF;
157 Common::String getRecordTypeName()
const override {
return "OverlayAnimTerse"; }
166 void execute()
override;
169 Common::String getRecordTypeName()
const override {
return "TableIndexOverlay"; }
171 uint16 _tableIndex = 0;
172 int16 _lastIndexVal = -1;
185 void init()
override;
187 void execute()
override;
189 bool isViewportRelative()
const override {
return true; }
192 Common::String getRecordTypeName()
const override {
return "TextLineOverlay"; }
199 static const int16 kZeroTableIndex = 255;
202 uint16 _textColor = 0;
205 int16 _tableIndex = 0;
207 int16 _numDigits = 0;
209 uint16 _digitSpacing = 0;
225 void init()
override;
227 void execute()
override;
230 bool isViewportRelative()
const override {
return true; }
231 bool canHaveHotspot()
const override {
return true; }
232 CursorManager::CursorType getHoverCursor()
const override {
return (CursorManager::CursorType)_hoverCursor; }
233 bool cursorSetFromScript()
const override {
return true; }
239 Common::String getRecordTypeName()
const override {
return "RolloverOverlay"; }
245 uint16 _transparency = kPlayOverlayPlain;
246 uint16 _hoverCursor = 0;
254 uint16 _hoverSoundOnce = 0;
261 bool _isHovered =
false;
262 bool _hoverSoundPlayed =
false;
263 bool _clickSoundStarted =
false;
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
Definition: managed_surface.h:51
Definition: overlay.h:149
Definition: overlay.h:116
Definition: overlay.h:129
Definition: overlay.h:102
Definition: actionrecord.h:173
Definition: overlay.h:220
Definition: overlay.h:160
Definition: overlay.h:180
Definition: actionmanager.h:32
Definition: overlay.h:140
Definition: commontypes.h:203
Definition: commontypes.h:237
Definition: commontypes.h:326
Definition: commontypes.h:188
Definition: commontypes.h:308