summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-04-04 22:35:58 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-04-04 22:35:58 +0000
commitca03f5a83dbd379d21c20ed4e69ec6836395b694 (patch)
tree93b49faa836f53c3b65e9e78b55b9d5d487f5a7e /src/engine.cpp
parentacb216cbbd50f68710502068bec83e073128d6fc (diff)
downloadmana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.tar.gz
mana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.tar.bz2
mana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.tar.xz
mana-ca03f5a83dbd379d21c20ed4e69ec6836395b694.zip
starting to do the trade window, i know it's not functionable and contains a lot of bugs but ill continue tomorrow.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index e120e026..40aea669 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -29,6 +29,7 @@
#include "gui/chargedialog.h"
#include "gui/itemcontainer.h"
#include "gui/item_amount.h"
+#include "gui/trade.h"
#include "main.h"
#include "being.h"
#include "floor_item.h"
@@ -60,6 +61,7 @@ Setup* setupWindow;
Minimap *minimap;
EquipmentWindow *equipmentWindow;
ChargeDialog *chargeDialog;
+TradeWindow *tradeWindow;
char hairtable[16][4][2] = {
// S(x,y) W(x,y) N(x,y) E(x,y)
@@ -154,7 +156,7 @@ Engine::Engine()
minimap = new Minimap();
equipmentWindow = new EquipmentWindow();
chargeDialog = new ChargeDialog();
-
+ tradeWindow = new TradeWindow();
// Initialize window posisitons
chatWindow->setPosition(0, screen->h - chatWindow->getHeight());
statusWindow->setPosition(screen->w - statusWindow->getWidth() - 5, 5);
@@ -169,7 +171,9 @@ Engine::Engine()
chargeDialog->setPosition(
screen->w - 5 - chargeDialog->getWidth(),
screen->h - chargeDialog->getHeight() - 15);
-
+ tradeWindow->setPosition(screen->w - statusWindow->getWidth() -
+ tradeWindow->getWidth() - 10,
+ chatWindow->getHeight() + 15);
// Set initial window visibility
chatWindow->setVisible(true);
statusWindow->setVisible(true);
@@ -186,7 +190,7 @@ Engine::Engine()
setupWindow->setVisible(false);
equipmentWindow->setVisible(false);
chargeDialog->setVisible(false);
-
+ tradeWindow->setVisible(false);
// Do not focus any text field
gui->focusNone();
@@ -233,6 +237,7 @@ Engine::~Engine()
delete equipmentWindow;
delete newSkillWindow;
delete itemAmountWindow;
+ delete tradeWindow;
// Delete sprite sets
delete monsterset;