22 #ifndef PAWS_EXCHANGE_WINDOW 23 #define PAWS_EXCHANGE_WINDOW 25 #include <csutil/csstring.h> 34 #define EXCHANGE_VISIBLE 4 35 #define EXCHANGE_VISIBLE_INVENTORY 16
pawsSlot * offeringSlots[EXCHANGE_SLOT_COUNT]
List of slots for items that have been offered.
pawsTextBox * totalTriasReceived
pawsTextBox * totalTriasOffered
CREATE_PAWS_FACTORY(pawsExchangeWindow)
A slot which may contain one item, with icon, and stack count.
bool wasSmallInventoryOpen
retain the state of the inventory window before opening the exchange
The structure of 1 queue entry (pointer to a message)
pawsWidget * receivingBG
The background for the receiving panel.
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
void SendAccept()
Sends psExchangeAcceptMsg message to the server.
pawsWidget * offeringBG
The background for the offering panel.
pawsMoney is widget that holds four items slots - for each coin.
pawsMoney * receivingMoneyWidget
pawsSlot * receivingSlots[EXCHANGE_SLOT_COUNT]
List of slots for items that will be receiving.
pawsMoney * offeringMoneyWidget
#define EXCHANGE_SLOT_COUNT
void HandleMoney(MsgEntry *me)
Handles incomming messages that deal with exchange money.
The trade window in PlaneShift.
void HandleMessage(MsgEntry *me)
void Clear()
Clear out the exchange window and reset the backgrounds.
void SendEnd()
Sends a psExchangeEndMsg message to the server.
void Close()
Simply calls Hide() unless overidden.
int originalWidth
stores width of exchange window
void StartExchange(csString &player, bool withPlayer)
Start a new exchange with a player.
bool PostSetup()
This is called after the widget and all of it's children have been created.
virtual ~pawsExchangeWindow()