22 #ifndef ULTIMA8_GUMPS_MODALGUMP_H 23 #define ULTIMA8_GUMPS_MODALGUMP_H 25 #include "ultima/ultima8/gumps/gump.h" 26 #include "ultima/ultima8/misc/classtype.h" 39 ENABLE_RUNTIME_CLASSTYPE()
42 ModalGump(
int x,
int y,
int width,
int height, uint16 owner = 0,
43 uint32 flags = FLAG_DONT_SAVE | FLAG_PREVENT_SAVE, int32 layer = LAYER_MODAL,
44 bool pauseGame =
true);
48 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
50 void Close(
bool no_del =
false)
override;
54 uint16
TraceObjId(int32 mx, int32 my)
override;
56 Gump *onMouseDown(
int button, int32 mx, int32 my)
override;
void Close(bool no_del=false) override
Gump * FindGump(int mx, int my) override
Definition: modal_gump.h:34
Definition: detection.h:27
bool PointOnGump(int mx, int my) override
Detect if a point is on the gump.
uint16 TraceObjId(int32 mx, int32 my) override
Trace a click, and return ObjId.
void InitGump(Gump *newparent, bool take_focus=true) override