22 #ifndef NANCY_ACTION_SECONDARYVIDEO_H 23 #define NANCY_ACTION_SECONDARYVIDEO_H 25 #include "engines/nancy/video.h" 26 #include "engines/nancy/action/actionrecord.h" 37 static const byte kNoVideoHotspots = 1;
38 static const byte kVideoHotspots = 2;
40 enum HoverState { kNoHover, kHover, kEndHover };
46 void updateGraphics()
override;
47 void onPause(
bool pause)
override;
51 void execute()
override;
58 uint16 _videoFormat = kLargeVideoFormat;
59 uint16 _videoHotspots = kVideoHotspots;
61 uint16 _loopFirstFrame = 0;
62 uint16 _loopLastFrame = 0;
63 uint16 _onHoverFirstFrame = 0;
64 uint16 _onHoverLastFrame = 0;
65 uint16 _onHoverEndFirstFrame = 0;
66 uint16 _onHoverEndLastFrame = 0;
72 bool canHaveHotspot()
const override {
return true; }
73 Common::String getRecordTypeName()
const override {
return "PlaySecondaryVideo"; }
74 bool isViewportRelative()
const override {
return true; }
77 HoverState _hoverState = kNoHover;
79 int _currentViewportFrame = -1;
80 int _currentViewportScroll = -1;
81 bool _isInFrame =
false;
82 bool _isHovered =
false;
88 #endif // NANCY_ACTION_SECONDARYVIDEO_H Definition: managed_surface.h:51
Definition: commontypes.h:151
Definition: actionrecord.h:149
Definition: secondaryvideo.h:35
Definition: actionmanager.h:32