22 #ifndef ULTIMA8_GUMPS_REMORSEMENUGUMP_H 23 #define ULTIMA8_GUMPS_REMORSEMENUGUMP_H 25 #include "ultima/ultima8/gumps/modal_gump.h" 26 #include "ultima/ultima8/misc/classtype.h" 38 ENABLE_RUNTIME_CLASSTYPE()
40 enum WeaselGumpState {
42 kWeaselConfirmPurchaseMovie,
43 kWeaselConfirmPurchaseText,
44 kWeaselCancelledPurchaseMovie,
45 kWeaselCancelledPurchaseText,
46 kWeaselCompletedPurchase,
47 kWeaselInsufficientFunds,
50 kWeaselCheckBuyMoreMovie,
51 kWeaselCheckBuyMoreText,
59 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
60 void Close(
bool no_del =
false)
override;
67 bool OnKeyDown(
int key,
int mod)
override;
68 bool OnTextInput(
int unicode)
override;
71 static uint32 I_showWeaselGump(
const uint8 *args,
unsigned int );
75 void onButtonClick(
int entry);
80 void updateForAmmoMode();
82 void completePurchase();
85 void confirmPurchase();
87 void browsingMode(
bool browsing);
88 int purchasedCount(uint16 shape)
const;
90 void updateItemDisplay();
103 WeaselGumpState _state;
123 uint16 _curItemShape;
134 static bool _playedIntroMovie;
void Close(bool no_del=false) override
void InitGump(Gump *newparent, bool take_focus=true) override
Definition: modal_gump.h:34
Definition: render_surface.h:37
void PaintThis(RenderSurface *, int32 lerp_factor, bool scaled) override
Overloadable method to Paint just this Gump (RenderSurface is relative to this)
void ChildNotify(Gump *child, uint32 message) override
Definition: detection.h:27
Definition: weasel_gump.h:36
void run() override
Run the gump.
Definition: weasel_dat.h:34