22 #ifndef ULTIMA8_GUMPS_MOVIEGUMP_H 23 #define ULTIMA8_GUMPS_MOVIEGUMP_H 25 #include "ultima/shared/std/string.h" 26 #include "ultima/ultima8/gumps/modal_gump.h" 27 #include "ultima/ultima8/usecode/intrinsics.h" 28 #include "ultima/ultima8/misc/classtype.h" 38 ENABLE_RUNTIME_CLASSTYPE()
42 bool introMusicHack =
false,
bool noScale =
false,
43 const byte *overridePal =
nullptr,
44 uint32 flags = FLAG_PREVENT_SAVE, int32 layer = LAYER_MODAL);
47 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
49 void Close(
bool no_del =
false)
override;
55 bool OnKeyDown(
int key,
int mod)
override;
58 static MovieGump *CruMovieViewer(
const Std::string fname,
int x,
int y,
const byte *pal,
Gump *parent, uint16 frameshape);
63 INTRINSIC(I_playMovieOverlay);
64 INTRINSIC(I_playMovieCutscene);
65 INTRINSIC(I_playMovieCutsceneAlt);
66 INTRINSIC(I_playMovieCutsceneRegret);
void ClearPlayerOffset()
Update the offset of the player if a shape has been set.
uint16 _subtitleWidget
Last widget used for displaying subtitles.
Definition: movie_gump.h:87
Definition: movie_player.h:30
int _lastFrameNo
Last frame that was displayed, so we can catch up subtitles.
Definition: movie_gump.h:90
void PaintThis(RenderSurface *, int32 lerp_factor, bool scaled) override
Overloadable method to Paint just this Gump (RenderSurface is relative to this)
void Close(bool no_del=false) override
Definition: modal_gump.h:34
Definition: render_surface.h:40
Definition: detection.h:27
void InitGump(Gump *newparent, bool take_focus=true) override
void loadTXTSubs(Common::SeekableReadStream *rs)
Load subtitles from a txt file (No Remorse format)
void loadSubtitles(Common::SeekableReadStream *rs)
Load subtitles with format detection.
void loadIFFSubs(Common::SeekableReadStream *rs)
Load subtitles from a iff file (No Regret format)
Common::HashMap< int, Common::String > _subtitles
Subtitles, by frame number. Only used for Crusader movies.
Definition: movie_gump.h:84
void run() override
Run the gump.
Definition: movie_gump.h:36