diff options
author | Jan-Fabian Humann <malastare@gmx.net> | 2005-03-05 20:43:41 +0000 |
---|---|---|
committer | Jan-Fabian Humann <malastare@gmx.net> | 2005-03-05 20:43:41 +0000 |
commit | c545fc021ccdaa6a253eafd649b5aebdef677047 (patch) | |
tree | 5fc4eee703aaac9decb183adec130c3cd278ce47 /src/engine.cpp | |
parent | 1b637982b44635d6326dc8fd3b62d0d0aa731320 (diff) | |
download | mana-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.gz mana-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.bz2 mana-c545fc021ccdaa6a253eafd649b5aebdef677047.tar.xz mana-c545fc021ccdaa6a253eafd649b5aebdef677047.zip |
Now you can decide how many items to drop
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 7a37af25..0f3c8d42 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -28,6 +28,7 @@ #include "gui/minimap.h" #include "gui/chargedialog.h" #include "gui/itemcontainer.h" +#include "gui/item_amount.h" #include "main.h" #include "being.h" #include "floor_item.h" @@ -50,6 +51,7 @@ BuyDialog *buyDialog; SellDialog *sellDialog; BuySellDialog *buySellDialog; InventoryWindow *inventoryWindow; +ItemAmountWindow *itemAmountWindow; NpcListDialog *npcListDialog; NpcTextDialog *npcTextDialog; SkillDialog *skillDialog; @@ -172,6 +174,12 @@ Engine::Engine() inventoryWindow->setPosition(screen->w - statusWindow->getWidth() - inventoryWindow->getWidth() - 10, 5); + itemAmountWindow = new ItemAmountWindow(); + itemAmountWindow->setVisible(false); + itemAmountWindow->setPosition(screen->w - statusWindow->getWidth() - + inventoryWindow->getWidth() - 10, inventoryWindow->getHeight() + + 10); + npcTextDialog = new NpcTextDialog(); npcTextDialog->setVisible(false); @@ -249,7 +257,8 @@ Engine::~Engine() delete minimap; delete equipmentWindow; delete newSkillWindow; - + delete itemAmountWindow; + delete monsterset; delete npcset; delete emotionset; |