diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-03 17:00:07 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-03 17:00:07 +0000 |
commit | 061b9e817ffe73acca163510b276e6ca7dd8f6c2 (patch) | |
tree | c1488381a9a62520f94cdb353bd5bd12ebc1b699 /src/game.cpp | |
parent | 092bf185fc056338bcde2749a304e576edf342fd (diff) | |
download | mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.tar.gz mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.tar.bz2 mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.tar.xz mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.zip |
Made NPC names visible. Windows are now invisible by default.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/src/game.cpp b/src/game.cpp index 6bc37365..a241e8bb 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -43,7 +43,7 @@ #include "gui/buy.h" #include "gui/buysell.h" -#include "gui/chargedialog.h" +//#include "gui/chargedialog.h" #include "gui/chat.h" #include "gui/confirm_dialog.h" #include "gui/equipmentwindow.h" @@ -107,7 +107,7 @@ SkillDialog *skillDialog; Setup* setupWindow; Minimap *minimap; EquipmentWindow *equipmentWindow; -ChargeDialog *chargeDialog; +//ChargeDialog *chargeDialog; TradeWindow *tradeWindow; //BuddyWindow *buddyWindow; HelpWindow *helpWindow; @@ -183,47 +183,23 @@ void createGuiWindows(Network *network) setupWindow = new Setup(); minimap = new Minimap(); equipmentWindow = new EquipmentWindow(player_node->mEquipment.get()); - chargeDialog = new ChargeDialog(); + //chargeDialog = new ChargeDialog(); tradeWindow = new TradeWindow(network); //buddyWindow = new BuddyWindow(); helpWindow = new HelpWindow(); debugWindow = new DebugWindow(); // Initialize window positions - int screenW = graphics->getWidth(); - int screenH = graphics->getHeight(); + //chargeDialog->setPosition( + // graphics->getWidth() - 5 - chargeDialog->getWidth(), + // graphics->getHeight() - chargeDialog->getHeight() - 15); - chargeDialog->setPosition( - screenW - 5 - chargeDialog->getWidth(), - screenH - chargeDialog->getHeight() - 15); - - /*buddyWindow->setPosition(10, - minimap->getHeight() + 30);*/ + //buddyWindow->setPosition(10, minimap->getHeight() + 30); // Set initial window visibility -// chatWindow->setSticky(true); -// miniStatusWindow->setSticky(true); -// menuWindow->setSticky(true); - chatWindow->setVisible(true); miniStatusWindow->setVisible(true); - statusWindow->setVisible(false); menuWindow->setVisible(true); - buyDialog->setVisible(false); - sellDialog->setVisible(false); - buySellDialog->setVisible(false); - inventoryWindow->setVisible(false); - npcTextDialog->setVisible(false); - npcListDialog->setVisible(false); - skillDialog->setVisible(false); - //newSkillWindow->setVisible(false); - setupWindow->setVisible(false); - equipmentWindow->setVisible(false); - chargeDialog->setVisible(false); - tradeWindow->setVisible(false); - //buddyWindow->setVisible(false); - helpWindow->setVisible(false); - debugWindow->setVisible(false); } /** @@ -245,7 +221,7 @@ void destroyGuiWindows() delete setupWindow; delete minimap; delete equipmentWindow; - delete chargeDialog; + //delete chargeDialog; //delete newSkillWindow; delete tradeWindow; //delete buddyWindow; |