diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-18 16:40:55 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-18 16:40:55 +0300 |
commit | 0b236e4e04a6d89d34925ce9d2875c002e135b23 (patch) | |
tree | ead38bd486f6018f8a4a608486ea1cc8e2d4ac60 /src/gui | |
parent | 0e21b478636fac986a5e2276662da6a6e1692f9e (diff) | |
download | plus-0b236e4e04a6d89d34925ce9d2875c002e135b23.tar.gz plus-0b236e4e04a6d89d34925ce9d2875c002e135b23.tar.bz2 plus-0b236e4e04a6d89d34925ce9d2875c002e135b23.tar.xz plus-0b236e4e04a6d89d34925ce9d2875c002e135b23.zip |
Remove auction bot support.
This bot for long time offline in tmw and possible will be never online.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/setup_other.cpp | 3 | ||||
-rw-r--r-- | src/gui/shopwindow.cpp | 28 | ||||
-rw-r--r-- | src/gui/shopwindow.h | 2 |
3 files changed, 0 insertions, 33 deletions
diff --git a/src/gui/setup_other.cpp b/src/gui/setup_other.cpp index 965382f71..707d5fa4a 100644 --- a/src/gui/setup_other.cpp +++ b/src/gui/setup_other.cpp @@ -198,9 +198,6 @@ Setup_Other::Setup_Other(const Widget2 *const widget) : new SetupItemLabel(_("Bots support"), "", this); - new SetupItemCheckBox(_("Enable auction bot support"), "", - "enableAuctionBot", this, "enableAuctionBotEvent", false); - new SetupItemCheckBox(_("Enable guild bot support and disable native " "guild support"), "", "enableGuildBot", this, "enableGuildBotEvent", false); diff --git a/src/gui/shopwindow.cpp b/src/gui/shopwindow.cpp index d2cb0f0ea..dfecdbbe5 100644 --- a/src/gui/shopwindow.cpp +++ b/src/gui/shopwindow.cpp @@ -39,7 +39,6 @@ #include "gui/widgets/tradetab.h" #include "actorspritemanager.h" -#include "auctionmanager.h" #include "client.h" #include "configuration.h" #include "confirmdialog.h" @@ -89,12 +88,10 @@ ShopWindow::ShopWindow(): mBuyAddButton(new Button(this, _("Add"), "add buy", this)), mBuyDeleteButton(new Button(this, _("Delete"), "delete buy", this)), mBuyAnnounceButton(new Button(this, _("Announce"), "announce buy", this)), - mBuyAuctionButton(nullptr), mSellAddButton(new Button(this, _("Add"), "add sell", this)), mSellDeleteButton(new Button(this, _("Delete"), "delete sell", this)), mSellAnnounceButton(new Button(this, _("Announce"), "announce sell", this)), - mSellAuctionButton(nullptr), mAnnounceLinks(new CheckBox(this, _("Show links in announce"), false, this, "link announce")), mSelectedItem(-1), @@ -145,21 +142,6 @@ ShopWindow::ShopWindow(): placer(0, 7, mAnnounceLinks, 8); placer(15, 7, mCloseButton); - if (auctionManager && auctionManager->getEnableAuctionBot()) - { - mBuyAuctionButton = new Button(this, - _("Auction"), "auction buy", this); - mSellAuctionButton = new Button(this, - _("Auction"), "auction sell", this); - placer(4, 6, mBuyAuctionButton); - placer(12, 6, mSellAuctionButton); - } - else - { - mBuyAuctionButton = nullptr; - mSellAuctionButton = nullptr; - } - Layout &layout = getLayout(); layout.setRowHeight(0, Layout::AUTO_SET); @@ -232,16 +214,6 @@ void ShopWindow::action(const gcn::ActionEvent &event) { announce(mSellShopItems, SELL); } - else if (eventId == "auction buy" && mBuyShopItems - && mBuyShopItems->getNumberOfElements() > 0) - { - Net::getChatHandler()->privateMessage("AuctionBot", "!pull4144 seek"); - } - else if (eventId == "auction sell" && mSellShopItems - && mSellShopItems->getNumberOfElements() > 0) - { - Net::getChatHandler()->privateMessage("AuctionBot", "!pull4144 offer"); - } if (mSelectedItem < 1) return; diff --git a/src/gui/shopwindow.h b/src/gui/shopwindow.h index 9b7e64572..383016029 100644 --- a/src/gui/shopwindow.h +++ b/src/gui/shopwindow.h @@ -155,11 +155,9 @@ class ShopWindow final : public Window, public gcn::ActionListener, Button *mBuyAddButton; Button *mBuyDeleteButton; Button *mBuyAnnounceButton; - Button *mBuyAuctionButton; Button *mSellAddButton; Button *mSellDeleteButton; Button *mSellAnnounceButton; - Button *mSellAuctionButton; CheckBox *mAnnounceLinks; int mSelectedItem; |