#include <ReadableGump.h>
Inheritance diagram for ReadableGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
ReadableGump () | |
ReadableGump (ObjId owner, uint16 shape, int font, std::string msg) | |
virtual | ~ReadableGump () |
virtual Gump * | OnMouseDown (int button, int mx, int my) |
virtual void | InitGump (Gump *newparent, bool take_focus=true) |
INTRINSIC (I_readGrave) | |
INTRINSIC (I_readPlaque) | |
bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Private Attributes | |
uint16 | shapenum |
int | fontnum |
std::string | text |
Definition at line 25 of file ReadableGump.h.
ReadableGump::ReadableGump | ( | ) |
Definition at line 42 of file ReadableGump.cpp.
Definition at line 48 of file ReadableGump.cpp.
ReadableGump::~ReadableGump | ( | ) | [virtual] |
Definition at line 53 of file ReadableGump.cpp.
ReadableGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from ModalGump.
void ReadableGump::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 57 of file ReadableGump.cpp.
References Gump::BOTTOM_CENTER, Gump::CENTER, Gump::dims, fontnum, GameInfo::GAMELANG_JAPANESE, CoreApp::get_instance(), GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), ShapeArchive::getShape(), Pentagram::Rect::h, ShapeFrame::height, Gump::InitGump(), ModalGump::InitGump(), jpsub_font, Gump::setRelativePosition(), Gump::SetShape(), Gump::shape, shapenum, text, Pentagram::Font::TEXT_CENTER, Pentagram::Rect::w, and ShapeFrame::width.
Referenced by AvatarDeathProcess::run().
ReadableGump::INTRINSIC | ( | I_readPlaque | ) |
ReadableGump::INTRINSIC | ( | I_readGrave | ) |
bool ReadableGump::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
Gump * ReadableGump::OnMouseDown | ( | int | button, | |
int | mx, | |||
int | my | |||
) | [virtual] |
Reimplemented from ModalGump.
Definition at line 92 of file ReadableGump.cpp.
References ModalGump::Close().
void ReadableGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from ModalGump.
Definition at line 126 of file ReadableGump.cpp.
int ReadableGump::fontnum [private] |
uint16 ReadableGump::shapenum [private] |
std::string ReadableGump::text [private] |