111 "sell_background.xml");
271 const std::string &eventId =
event.getId();
273 if (eventId ==
"quit")
282 if (selectedItem == -1
288 if (eventId ==
"slider")
296 else if (eventId ==
"inc" &&
304 else if (eventId ==
"dec" &&
312 else if (eventId ==
"max" &&
319 else if (eventId ==
"presell" ||
322 eventId ==
"confirm")
352 if (selectedItem > -1 && (
mShopItems->
at(selectedItem) !=
nullptr))
#define fromBool(val, name)
ItemColor getColor() const
ItemTypeT getType() const
void setAlignment(Graphics::Alignment alignment)
void setCaption(const std::string &caption)
void setRowHeight(const int n, const int h)
void setDistributeMousePressed(const bool b)
void setSelected(const int selected)
void addSelectionListener(SelectionListener *const selectionListener)
SellDialog(const IsSell isSell, const Advanced advanced)
virtual void initButtons()
virtual void sellAction(const ActionEvent &event)=0
void addItem(const Item *const item, const int price)
void updateButtonsAndLabels()
void setVisible(Visible visible)
void valueChanged(const SelectionEvent &event)
void setMoney(const int amount)
void action(const ActionEvent &event)
std::list< SellDialog * > DialogList
static DialogList instances
ShopListBox * mShopItemList
void registerWindowForReset(Window *const window)
ShopItem * addItem2(const int inventoryIndex, const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
ShopItem * addItem(const int id, const ItemTypeT type, const ItemColor color, const int amount, const int price)
int getNumberOfElements()
void setMergeDuplicates(const bool b)
ShopItem * at(const size_t i) const
void setPlayersMoney(const int money)
void setPriceCheck(const bool check)
void setProtectItems(bool p)
void setScale(const double scaleStart, const double scaleEnd)
void setValue(const double value)
void setResizable(const bool resize)
ContainerPlacer getPlacer(const int x, const int y)
virtual void setVisible(Visible visible)
bool getOptionBool(const std::string &name, const bool def) const
void setWindowName(const std::string &name)
void setMinHeight(const int height)
void setMinWidth(const int width)
void enableVisibleSound(bool b)
void setCloseButton(const bool flag)
virtual void scheduleDelete()
void setStickyButtonLock(const bool sticky)
const std::string DEFAULT_CURRENCY
#define FOR_EACH(type, iter, array)
std::string formatCurrency(const int value)
SetupWindow * setupWindow
std::string strprintf(const char *const format,...)