summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-19 11:43:41 +0000
commitd42e9ea834a07c6f60dd5248db6520d1ff423ac4 (patch)
tree7de19d851aecae83bc8467d70c9a718ebff98205 /src/engine.cpp
parent32ca8ca9551070ba1086cd5b6c973620052061ed (diff)
downloadmana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.gz
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.bz2
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.tar.xz
mana-client-d42e9ea834a07c6f60dd5248db6520d1ff423ac4.zip
Made item amount window a modal dialog and removed support for old map format.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 459af137..7a777f86 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -28,7 +28,6 @@
#include "gui/minimap.h"
#include "gui/chargedialog.h"
#include "gui/itemcontainer.h"
-#include "gui/item_amount.h"
#include "gui/trade.h"
#include "gui/buddywindow.h"
#include "main.h"
@@ -53,7 +52,6 @@ BuyDialog *buyDialog;
SellDialog *sellDialog;
BuySellDialog *buySellDialog;
InventoryWindow *inventoryWindow;
-ItemAmountWindow *itemAmountWindow;
NpcListDialog *npcListDialog;
NpcTextDialog *npcTextDialog;
SkillDialog *skillDialog;
@@ -153,7 +151,6 @@ Engine::Engine()
sellDialog = new SellDialog();
buySellDialog = new BuySellDialog();
inventoryWindow = new InventoryWindow();
- itemAmountWindow = new ItemAmountWindow();
npcTextDialog = new NpcTextDialog();
npcListDialog = new NpcListDialog();
skillDialog = new SkillDialog();
@@ -166,20 +163,17 @@ Engine::Engine()
tradeWindow = new TradeWindow();
buddyWindow = new BuddyWindow();
requestTradeDialog = new RequestTradeDialog();
-
+
/* Menu items */
std::vector<MenuItem> items;
items.push_back(MenuItem("First"));
menu = new Menu("Menu", items);
-
+
// Initialize window posisitons
chatWindow->setPosition(0, screen->h - chatWindow->getHeight());
statusWindow->setPosition(screen->w - statusWindow->getWidth() - 5, 5);
inventoryWindow->setPosition(screen->w - statusWindow->getWidth() -
inventoryWindow->getWidth() - 10, 5);
- itemAmountWindow->setPosition(screen->w - statusWindow->getWidth() -
- inventoryWindow->getWidth() - 10, inventoryWindow->getHeight() +
- 10);
statsWindow->setPosition(
screen->w - 5 - statsWindow->getWidth(),
statusWindow->getHeight() + 20);
@@ -204,7 +198,6 @@ Engine::Engine()
sellDialog->setVisible(false);
buySellDialog->setVisible(false);
inventoryWindow->setVisible(false);
- itemAmountWindow->setVisible(false);
npcTextDialog->setVisible(false);
npcListDialog->setVisible(false);
skillDialog->setVisible(false);
@@ -259,7 +252,6 @@ Engine::~Engine()
delete minimap;
delete equipmentWindow;
delete newSkillWindow;
- delete itemAmountWindow;
delete tradeWindow;
delete buddyWindow;
delete requestTradeDialog;