#include <MiniStatsGump.h>
Inheritance diagram for MiniStatsGump:

Public Member Functions | |
| ENABLE_RUNTIME_CLASSTYPE () | |
| MiniStatsGump () | |
| MiniStatsGump (int x, int y, uint32 _Flags=FLAG_DRAGGABLE, sint32 layer=LAYER_NORMAL) | |
| virtual | ~MiniStatsGump (void) |
| virtual void | InitGump (Gump *newparent, bool take_focus=true) |
| virtual void | PaintThis (RenderSurface *, sint32 lerp_factor, bool scaled) |
| virtual uint16 | TraceObjId (int mx, int my) |
| virtual Gump * | OnMouseDown (int button, int mx, int my) |
| virtual void | OnMouseDouble (int button, int mx, int my) |
| bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
| virtual void | saveData (ODataSource *ods) |
Definition at line 24 of file MiniStatsGump.h.
| MiniStatsGump::MiniStatsGump | ( | ) |
Definition at line 47 of file MiniStatsGump.cpp.
| MiniStatsGump::MiniStatsGump | ( | int | x, | |
| int | y, | |||
| uint32 | _Flags = FLAG_DRAGGABLE, |
|||
| sint32 | layer = LAYER_NORMAL | |||
| ) |
Definition at line 52 of file MiniStatsGump.cpp.
| MiniStatsGump::~MiniStatsGump | ( | void | ) | [virtual] |
Definition at line 58 of file MiniStatsGump.cpp.
| MiniStatsGump::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Gump.
| void MiniStatsGump::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 Gump.
Definition at line 63 of file MiniStatsGump.cpp.
References Gump::dims, GameData::get_instance(), Shape::getFrame(), GameData::getGumps(), ShapeArchive::getShape(), gumpshape, Pentagram::Rect::h, ShapeFrame::height, Gump::InitGump(), Gump::shape, Pentagram::Rect::w, and ShapeFrame::width.
| bool MiniStatsGump::loadData | ( | IDataSource * | ids, | |
| uint32 | version | |||
| ) |
Reimplemented from Gump.
Definition at line 141 of file MiniStatsGump.cpp.
References Gump::loadData().
| void MiniStatsGump::OnMouseDouble | ( | int | button, | |
| int | mx, | |||
| int | my | |||
| ) | [virtual] |
Reimplemented from Gump.
Definition at line 125 of file MiniStatsGump.cpp.
References Item::callUsecodeEvent_use(), Gump::Close(), Item::getGump(), and getMainActor().
| Gump * MiniStatsGump::OnMouseDown | ( | int | button, | |
| int | mx, | |||
| int | my | |||
| ) | [virtual] |
| void MiniStatsGump::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 75 of file MiniStatsGump.cpp.
References barheight, bary, RenderSurface::Fill32(), Actor::getHP(), getMainActor(), Actor::getMana(), Actor::getMaxHP(), Actor::getMaxMana(), hpcolour, hpx, manacolour, manax, and Gump::PaintThis().
| void MiniStatsGump::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Object data
Reimplemented from Gump.
Definition at line 136 of file MiniStatsGump.cpp.
References Gump::saveData().
| uint16 MiniStatsGump::TraceObjId | ( | int | mx, | |
| int | my | |||
| ) | [virtual] |
Trace a click, and return ObjId.
Reimplemented from Gump.
Definition at line 107 of file MiniStatsGump.cpp.
References Object::getObjId(), Object::objid, Gump::PointOnGump(), and Gump::TraceObjId().
1.4.7