22 #ifndef ULTIMA8_GUMPS_QUITGUMP_H 23 #define ULTIMA8_GUMPS_QUITGUMP_H 25 #include "ultima/ultima8/gumps/modal_gump.h" 26 #include "ultima/ultima8/misc/classtype.h" 36 ENABLE_RUNTIME_CLASSTYPE()
41 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
45 bool OnKeyDown(
int key,
int mod)
override;
46 bool OnTextInput(
int unicode)
override;
49 static void verifyQuit();
55 ObjId _yesWidget, _noWidget;
uint32 _buttonYOff
x offset from either edge of yes/no buttons
Definition: quit_gump.h:62
Definition: modal_gump.h:34
uint32 _askShape
shape number for "no" button
Definition: quit_gump.h:60
Definition: render_surface.h:40
Definition: detection.h:27
uint32 _buttonXOff
shape number for "are you sure?"
Definition: quit_gump.h:61
void InitGump(Gump *newparent, bool take_focus=true) override
void ChildNotify(Gump *child, uint32 message) override
uint32 _yesShape
shape number for the dialog
Definition: quit_gump.h:58
void PaintThis(RenderSurface *, int32 lerp_factor, bool scaled) override
Overloadable method to Paint just this Gump (RenderSurface is relative to this)
Definition: quit_gump.h:34
uint32 _playSound
y offset from bottom of yes/no buttons
Definition: quit_gump.h:63
uint32 _noShape
shape number for "yes" button
Definition: quit_gump.h:59