22#ifndef ULTIMA8_GUMPS_MOVIEGUMP_H
23#define ULTIMA8_GUMPS_MOVIEGUMP_H
25#include "common/str.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);
49 void Close(
bool no_del =
false)
override;
55 bool OnKeyDown(
int key,
int mod)
override;
63 INTRINSIC(I_playMovieOverlay);
64 INTRINSIC(I_playMovieCutscene);
65 INTRINSIC(I_playMovieCutsceneAlt);
66 INTRINSIC(I_playMovieCutsceneRegret);
Definition: modal_gump.h:34
Definition: movie_gump.h:36
void run() override
Run the gump.
void loadSubtitles(Common::SeekableReadStream *rs)
Load subtitles with format detection.
void ClearPlayerOffset()
Update the offset of the player if a shape has been set.
Common::HashMap< int, Common::String > _subtitles
Subtitles, by frame number. Only used for Crusader movies.
Definition: movie_gump.h:84
void loadTXTSubs(Common::SeekableReadStream *rs)
Load subtitles from a txt file (No Remorse format)
void PaintThis(RenderSurface *, int32 lerp_factor, bool scaled) override
Overloadable method to Paint just this Gump (RenderSurface is relative to this)
void loadIFFSubs(Common::SeekableReadStream *rs)
Load subtitles from a iff file (No Regret format)
void InitGump(Gump *newparent, bool take_focus=true) override
void Close(bool no_del=false) override
int _lastFrameNo
Last frame that was displayed, so we can catch up subtitles.
Definition: movie_gump.h:90
uint16 _subtitleWidget
Last widget used for displaying subtitles.
Definition: movie_gump.h:87
Definition: movie_player.h:30
Definition: render_surface.h:37