#include <BookGump.h>
Inheritance diagram for BookGump:
Public Member Functions | |
ENABLE_RUNTIME_CLASSTYPE () | |
BookGump () | |
BookGump (ObjId owner, std::string msg) | |
virtual | ~BookGump () |
virtual bool | Run (const uint32 framenum) |
virtual void | OnMouseClick (int button, int mx, int my) |
virtual void | OnMouseDouble (int button, int mx, int my) |
virtual void | InitGump (Gump *newparent, bool take_focus=true) |
INTRINSIC (I_readBook) | |
bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
void | NextText () |
virtual void | saveData (ODataSource *ods) |
Private Attributes | |
std::string | text |
ObjId | textwidgetL |
ObjId | textwidgetR |
Definition at line 25 of file BookGump.h.
BookGump::BookGump | ( | ) |
Definition at line 39 of file BookGump.cpp.
BookGump::BookGump | ( | ObjId | owner, | |
std::string | msg | |||
) |
Definition at line 45 of file BookGump.cpp.
BookGump::~BookGump | ( | ) | [virtual] |
Definition at line 50 of file BookGump.cpp.
BookGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from ModalGump.
void BookGump::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 54 of file BookGump.cpp.
References Gump::dims, GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), Object::getObjId(), ShapeArchive::getShape(), Pentagram::Rect::h, ShapeFrame::height, TextWidget::InitGump(), ModalGump::InitGump(), Gump::SetShape(), TextWidget::setupNextText(), Gump::shape, text, textwidgetL, textwidgetR, Pentagram::Rect::w, and ShapeFrame::width.
BookGump::INTRINSIC | ( | I_readBook | ) |
bool BookGump::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
void BookGump::NextText | ( | ) | [protected] |
Definition at line 82 of file BookGump.cpp.
References ModalGump::Close(), getGump(), TextWidget::setupNextText(), textwidgetL, and textwidgetR.
Referenced by OnMouseClick().
void BookGump::OnMouseClick | ( | int | button, | |
int | mx, | |||
int | my | |||
) | [virtual] |
void BookGump::OnMouseDouble | ( | int | button, | |
int | mx, | |||
int | my | |||
) | [virtual] |
Reimplemented from Gump.
Definition at line 109 of file BookGump.cpp.
References ModalGump::Close().
bool BookGump::Run | ( | const uint32 | framenum | ) | [virtual] |
Run the gump
Reimplemented from Gump.
Definition at line 96 of file BookGump.cpp.
References Gump::Run().
void BookGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from ModalGump.
Definition at line 127 of file BookGump.cpp.
std::string BookGump::text [private] |
ObjId BookGump::textwidgetL [private] |
ObjId BookGump::textwidgetR [private] |