diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-01 23:48:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-02 22:48:03 +0300 |
commit | 6dc1f5e0b68cf390f7938329b50a9b28bd187862 (patch) | |
tree | 29e30e48cc03d95aeff278f6842f3a15de8f4106 /src/gui/windows/buydialog.h | |
parent | c8c51d7550adf9c952a4be54398df7e7a6f341a8 (diff) | |
download | manaverse-6dc1f5e0b68cf390f7938329b50a9b28bd187862.tar.gz manaverse-6dc1f5e0b68cf390f7938329b50a9b28bd187862.tar.bz2 manaverse-6dc1f5e0b68cf390f7938329b50a9b28bd187862.tar.xz manaverse-6dc1f5e0b68cf390f7938329b50a9b28bd187862.zip |
Set correct vending status to local player.
Allow buy from vending shop.
Diffstat (limited to 'src/gui/windows/buydialog.h')
-rw-r--r-- | src/gui/windows/buydialog.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/windows/buydialog.h b/src/gui/windows/buydialog.h index 06e169c92..d697eff5d 100644 --- a/src/gui/windows/buydialog.h +++ b/src/gui/windows/buydialog.h @@ -30,6 +30,7 @@ class Button; class DropDown; +class ShopItem; class ShopItems; class ShopListBox; class SortListModelBuy; @@ -99,11 +100,11 @@ class BuyDialog final : public Window, /** * Adds an item to the shop inventory. */ - void addItem(const int id, - const int type, - const unsigned char color, - const int amount, - const int price); + ShopItem *addItem(const int id, + const int type, + const unsigned char color, + const int amount, + const int price); /** * Called when receiving actions from the widgets. |