#include <MovieGump.h>
Inheritance diagram for MovieGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
MovieGump () | |
MovieGump (int width, int height, RawArchive *skf, bool introMusicHack=false, uint32 _Flags=0, sint32 layer=LAYER_MODAL) | |
virtual | ~MovieGump (void) |
virtual void | InitGump (Gump *newparent, bool take_focus=true) |
virtual void | Close (bool no_del=false) |
virtual bool | Run (const uint32 framenum) |
virtual void | PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled) |
virtual bool | OnKeyDown (int key, int mod) |
bool | loadData (IDataSource *ids) |
Static Public Member Functions | |
static ProcId | U8MovieViewer (RawArchive *skf, bool introMusicHack=false) |
static void | ConCmd_play (const Console::ArgvType &argv) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Protected Attributes | |
SKFPlayer * | player |
Definition at line 27 of file MovieGump.h.
MovieGump::MovieGump | ( | ) |
MovieGump::MovieGump | ( | int | width, | |
int | height, | |||
RawArchive * | skf, | |||
bool | introMusicHack = false , |
|||
uint32 | _Flags = 0 , |
|||
sint32 | layer = LAYER_MODAL | |||
) |
MovieGump::~MovieGump | ( | void | ) | [virtual] |
void MovieGump::Close | ( | bool | no_del = false |
) | [virtual] |
Close the gump
no_del | If true, do not delete after closing |
Reimplemented from ModalGump.
Definition at line 62 of file MovieGump.cpp.
References ModalGump::Close(), GUIApp::get_instance(), and GUIApp::popMouseCursor().
Referenced by OnKeyDown(), and Run().
void MovieGump::ConCmd_play | ( | const Console::ArgvType & | argv | ) | [static] |
"play" console command
Definition at line 112 of file MovieGump.cpp.
References FileSystem::get_instance(), pout, FileSystem::ReadFile(), and U8MovieViewer().
Referenced by GUIApp::shutdownGame(), and GUIApp::startupGame().
MovieGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from ModalGump.
void MovieGump::InitGump | ( | Gump * | newparent, | |
bool | take_focus = true | |||
) | [virtual] |
Init the gump and add it to parent; call after construction When newparent is 0, this will call GUIApp::addGump().
newparent | The Gump's new parent or 0. | |
takefocus | If true, set parent's focus_child to this |
Reimplemented from ModalGump.
Definition at line 53 of file MovieGump.cpp.
References GUIApp::get_instance(), ModalGump::InitGump(), GUIApp::MOUSE_NONE, player, GUIApp::pushMouseCursor(), GUIApp::setMouseCursor(), and SKFPlayer::start().
bool MovieGump::loadData | ( | IDataSource * | ids | ) |
Definition at line 132 of file MovieGump.cpp.
bool MovieGump::OnKeyDown | ( | int | key, | |
int | mod | |||
) | [virtual] |
void MovieGump::PaintThis | ( | RenderSurface * | , | |
sint32 | lerp_factor, | |||
bool | scaled | |||
) | [virtual] |
Overloadable method to Paint just this Gump (RenderSurface is relative to this).
Reimplemented from Gump.
Definition at line 81 of file MovieGump.cpp.
References SKFPlayer::paint(), and player.
bool MovieGump::Run | ( | const uint32 | framenum | ) | [virtual] |
Run the gump
Reimplemented from Gump.
Definition at line 69 of file MovieGump.cpp.
References Close(), SKFPlayer::isPlaying(), player, SKFPlayer::run(), and Gump::Run().
void MovieGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from ModalGump.
Definition at line 137 of file MovieGump.cpp.
ProcId MovieGump::U8MovieViewer | ( | RawArchive * | skf, | |
bool | introMusicHack = false | |||
) | [static] |
Definition at line 102 of file MovieGump.cpp.
References Gump::CENTER, Gump::CreateNotifier(), Gump::GetNotifyProcess(), Process::getPid(), Gump::InitGump(), MovieGump(), and Gump::setRelativePosition().
Referenced by ConCmd_play(), U8Game::playEndgameMovie(), and U8Game::playIntroMovie().
SKFPlayer* MovieGump::player [protected] |
Definition at line 57 of file MovieGump.h.
Referenced by InitGump(), MovieGump(), PaintThis(), Run(), and ~MovieGump().