#include <ShapeViewerGump.h>
Inheritance diagram for ShapeViewerGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
ShapeViewerGump () | |
ShapeViewerGump (int width, int height, std::vector< std::pair< std::string, ShapeArchive * > > &flexes, uint32 _Flags=0, sint32 layer=LAYER_MODAL) | |
virtual | ~ShapeViewerGump (void) |
virtual void | PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled) |
virtual bool | OnKeyDown (int key, int mod) |
virtual bool | OnTextInput (int unicode) |
bool | loadData (IDataSource *ids) |
Static Public Member Functions | |
static void | U8ShapeViewer () |
static void | ConCmd_U8ShapeViewer (const Console::ArgvType &argv) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Protected Attributes | |
std::vector< std::pair< std::string, ShapeArchive * > > | flexes |
unsigned int | curflex |
ShapeArchive * | flex |
uint32 | curshape |
uint32 | curframe |
uint32 | background |
sint32 | shapew |
sint32 | shapeh |
sint32 | shapex |
sint32 | shapey |
Definition at line 29 of file ShapeViewerGump.h.
ShapeViewerGump::ShapeViewerGump | ( | ) |
ShapeViewerGump::ShapeViewerGump | ( | int | width, | |
int | height, | |||
std::vector< std::pair< std::string, ShapeArchive * > > & | flexes, | |||
uint32 | _Flags = 0 , |
|||
sint32 | layer = LAYER_MODAL | |||
) |
ShapeViewerGump::~ShapeViewerGump | ( | void | ) | [virtual] |
Definition at line 66 of file ShapeViewerGump.cpp.
void ShapeViewerGump::ConCmd_U8ShapeViewer | ( | const Console::ArgvType & | argv | ) | [static] |
Definition at line 280 of file ShapeViewerGump.cpp.
References U8ShapeViewer().
Referenced by GUIApp::GUIApp(), and GUIApp::~GUIApp().
ShapeViewerGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from ModalGump.
bool ShapeViewerGump::loadData | ( | IDataSource * | ids | ) |
Definition at line 285 of file ShapeViewerGump.cpp.
bool ShapeViewerGump::OnKeyDown | ( | int | key, | |
int | mod | |||
) | [virtual] |
Reimplemented from Gump.
Definition at line 128 of file ShapeViewerGump.cpp.
References ModalGump::Close(), curflex, curframe, curshape, flex, flexes, Shape::frameCount(), Pentagram::Archive::getCount(), ShapeArchive::getShape(), Shape::getTotalDimensions(), Gump::shape, shapeh, shapew, shapex, and shapey.
bool ShapeViewerGump::OnTextInput | ( | int | unicode | ) | [virtual] |
void ShapeViewerGump::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 71 of file ShapeViewerGump.cpp.
References ShapeInfo::animdata, ShapeInfo::animtype, background, ModalGump::Close(), curflex, curframe, curshape, Gump::dims, ShapeInfo::equiptype, ShapeInfo::family, RenderSurface::Fill32(), ShapeInfo::flags, flex, flexes, font, GameData::get_instance(), FontManager::get_instance(), FontManager::getGameFont(), ShapeArchive::getShape(), MainShapeArchive::getShapeInfo(), Pentagram::Rect::h, RenderSurface::Paint(), Gump::shape, shapeh, shapew, shapex, shapey, ShapeInfo::unknown, ShapeInfo::volume, Pentagram::Rect::w, ShapeInfo::weight, ShapeInfo::x, ShapeInfo::y, and ShapeInfo::z.
void ShapeViewerGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from ModalGump.
Definition at line 291 of file ShapeViewerGump.cpp.
void ShapeViewerGump::U8ShapeViewer | ( | ) | [static] |
Definition at line 234 of file ShapeViewerGump.cpp.
References flex, flexes, GUIApp::get_instance(), PaletteManager::get_instance(), FileSystem::get_instance(), GameData::get_instance(), GUIApp::getDesktopGump(), Gump::GetDims(), GameData::getFonts(), GameData::getGumps(), GameData::getMainShapes(), Pentagram::Rect::h, ModalGump::InitGump(), GameData::OTHER, PaletteManager::Pal_Game, FileSystem::ReadFile(), ShapeViewerGump(), U8SKFShapeFormat, and Pentagram::Rect::w.
Referenced by ConCmd_U8ShapeViewer().
uint32 ShapeViewerGump::background [protected] |
unsigned int ShapeViewerGump::curflex [protected] |
uint32 ShapeViewerGump::curframe [protected] |
uint32 ShapeViewerGump::curshape [protected] |
ShapeArchive* ShapeViewerGump::flex [protected] |
Definition at line 54 of file ShapeViewerGump.h.
Referenced by OnKeyDown(), PaintThis(), ShapeViewerGump(), and U8ShapeViewer().
std::vector<std::pair<std::string,ShapeArchive*> > ShapeViewerGump::flexes [protected] |
Definition at line 52 of file ShapeViewerGump.h.
Referenced by OnKeyDown(), PaintThis(), ShapeViewerGump(), and U8ShapeViewer().
sint32 ShapeViewerGump::shapeh [protected] |
sint32 ShapeViewerGump::shapew [protected] |
sint32 ShapeViewerGump::shapex [protected] |
sint32 ShapeViewerGump::shapey [protected] |