22 #ifndef ULTIMA8_GUMPS_REMORSEMENUGUMP_H 23 #define ULTIMA8_GUMPS_REMORSEMENUGUMP_H 25 #include "ultima/shared/std/string.h" 26 #include "ultima/ultima8/gumps/modal_gump.h" 27 #include "ultima/ultima8/misc/classtype.h" 39 ENABLE_RUNTIME_CLASSTYPE()
41 enum WeaselGumpState {
43 kWeaselConfirmPurchaseMovie,
44 kWeaselConfirmPurchaseText,
45 kWeaselCancelledPurchaseMovie,
46 kWeaselCancelledPurchaseText,
47 kWeaselCompletedPurchase,
48 kWeaselInsufficientFunds,
51 kWeaselCheckBuyMoreMovie,
52 kWeaselCheckBuyMoreText,
60 void InitGump(
Gump *newparent,
bool take_focus =
true)
override;
61 void Close(
bool no_del =
false)
override;
68 bool OnKeyDown(
int key,
int mod)
override;
69 bool OnTextInput(
int unicode)
override;
72 static uint32 I_showWeaselGump(
const uint8 *args,
unsigned int );
76 void onButtonClick(
int entry);
81 void updateForAmmoMode();
83 void completePurchase();
86 void confirmPurchase();
88 void browsingMode(
bool browsing);
89 int purchasedCount(uint16 shape)
const;
91 void updateItemDisplay();
104 WeaselGumpState _state;
124 uint16 _curItemShape;
135 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:40
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:37
void run() override
Run the gump.
Definition: weasel_dat.h:34