21 #ifndef PAWS_MONEY_HEADER 22 #define PAWS_MONEY_HEADER 24 #include <csutil/list.h> 25 #include <iutil/document.h> 42 virtual bool Setup(iDocumentNode * node);
47 void Set(
int coinType,
int count);
49 void Get(
int & circles,
int & octas,
int & hexas,
int & trias);
50 int Get(
int coinType);
61 void Drag(
bool dragOn );
int amount
The total amount of money in trias.
A slot which may contain one item, with icon, and stack count.
void SetContainer(int containerID)
int spacing
distance between slots
bool CreateGUI()
Loads pawsMoney widget content from file.
virtual bool PostSetup()
This is called after the widget and all of it's children have been created.
CREATE_PAWS_FACTORY(pawsMoney)
void RecalculateAmount()
Called when amount of a coin (hexa, octa ... ) is changed.
void Draw()
Draws the widget and all of it's children.
pawsMoney is widget that holds four items slots - for each coin.
bool IsNoAmount()
Tells if the amount of money is Zero (null)
void OnUpdateData(const char *dataname, PAWSData &value)
void Set(int circles, int octas, int hexas, int trias)
Get and set amounts of different coins.
virtual bool Setup(iDocumentNode *node)
Setup this widget.
int GetAmount()
Returns the amount of money in trias.
bool border
should the slot widgets have border ?