19 #ifndef PAWS_STORAGE_WINDOW 20 #define PAWS_STORAGE_WINDOW 22 #include <csutil/csstring.h> 46 void DoTrade(
int count,
const char* itemName,
const char* itemID);
56 void UpdateMoney(
const char* moneyName,
const char* imageName,
int value );
void HandleItems(const char *data)
virtual ~pawsStorageWindow()
void SetColumnText(pawsListBoxRow *row, int colNum, const csString &text)
The structure of 1 queue entry (pointer to a message)
pawsListBox * categoryBox
index of item, selected in the itemsBox
void HandleCategories(const char *data)
void TradeSelectedItem(bool all=false, bool single=false)
Handles the command of trading the item by interacting with the player.
void HandleStorage(const char *data)
A simple list box widget.
void DoTrade(int count, const char *itemName, const char *itemID)
The window that deals with interacting with a NPC storage.
CREATE_PAWS_FACTORY(pawsStorageWindow)
void HandleMoney(const char *data)
void OnNumberEntered(const char *name, int param, int value)
bool PostSetup()
This is called after the widget and all of it's children have been created.
void HandleMessage(MsgEntry *me)
csString GetColumnText(pawsListBoxRow *row, int colNum)
void SetTradeMode(bool buy)
void Close()
Simply calls Hide() unless overidden.
void UpdateMoney(const char *moneyName, const char *imageName, int value)
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
void OnListAction(pawsListBox *listbox, int status)
Called whenever an item in a child list box is selected.