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"; }
136 Common::String getRecordTypeName()
const override {
return "OverlayAnimTerse"; }
145 void execute()
override;
148 Common::String getRecordTypeName()
const override {
return "TableIndexOverlay"; }
150 uint16 _tableIndex = 0;
151 int16 _lastIndexVal = -1;
164 void init()
override;
166 void execute()
override;
168 bool isViewportRelative()
const override {
return true; }
171 Common::String getRecordTypeName()
const override {
return "TextLineOverlay"; }
178 static const int16 kZeroTableIndex = 255;
181 uint16 _textColor = 0;
184 int16 _tableIndex = 0;
186 int16 _numDigits = 0;
188 uint16 _digitSpacing = 0;
203 void init()
override;
205 void execute()
override;
208 bool isViewportRelative()
const override {
return true; }
209 bool canHaveHotspot()
const override {
return true; }
210 CursorManager::CursorType getHoverCursor()
const override {
return (CursorManager::CursorType)_hoverCursor; }
211 bool cursorSetFromScript()
const override {
return true; }
217 Common::String getRecordTypeName()
const override {
return "RolloverOverlay"; }
222 uint16 _transparency = kPlayOverlayPlain;
223 uint16 _hoverCursor = 0;
231 uint16 _hoverSoundOnce = 0;
236 bool _isHovered =
false;
237 bool _hoverSoundPlayed =
false;
238 bool _clickSoundStarted =
false;
246 #endif // NANCY_ACTION_OVERLAY_H Definition: managed_surface.h:51
Definition: commontypes.h:227
static String format(MSVC_PRINTF const char *fmt,...) GCC_PRINTF(1
Definition: overlay.h:198
Definition: commontypes.h:179
Definition: overlay.h:159
Definition: overlay.h:139
Definition: actionrecord.h:169
Definition: overlay.h:102
Definition: commontypes.h:314
Definition: commontypes.h:296
Definition: overlay.h:116
Definition: commontypes.h:194
Definition: overlay.h:128
Definition: actionmanager.h:32