From 4b70908a529317ce4e57448fe4f4a59e75416537 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 27 Mar 2009 18:54:04 +0100 Subject: Fixed inventory window. Not resizable though. Resizing of the inventory window may come back later. Also did some more code cleanups, moving defines to enums, getting rid of eAthena-specific offset handling (to be done in the network layer), etc. Mantis-issue: 666 --- src/gui/popupmenu.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/popupmenu.cpp') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 0b019fef..5b5b2b8c 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -284,11 +284,13 @@ void PopupMenu::handleLink(const std::string &link) else if (link == "split") { - new ItemAmountWindow(AMOUNT_ITEM_SPLIT, inventoryWindow, mItem); + new ItemAmountWindow(ItemAmountWindow::ItemSplit, + inventoryWindow, mItem); } else if (link == "drop") { - new ItemAmountWindow(AMOUNT_ITEM_DROP, inventoryWindow, mItem); + new ItemAmountWindow(ItemAmountWindow::ItemDrop, + inventoryWindow, mItem); } #ifdef EATHENA_SUPPORT else if (link == "party-invite" && -- cgit v1.2.3-70-g09d2