From 7c34adebb068549ca6a56bdf1b211398a0b1de11 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 May 2011 00:23:08 +0300 Subject: Allow show equipment from other players from context menu "show items". Also allow undress separate items from players locally. --- src/game.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 999a89664..82a77c0bb 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -126,6 +126,7 @@ ShopWindow *shopWindow = NULL; SkillDialog *skillDialog = NULL; Minimap *minimap = NULL; EquipmentWindow *equipmentWindow = NULL; +EquipmentWindow *beingEquipmentWindow = NULL; TradeWindow *tradeWindow = NULL; HelpWindow *helpWindow = NULL; DebugWindow *debugWindow = NULL; @@ -189,7 +190,10 @@ static void createGuiWindows() // Create dialogs chatWindow = new ChatWindow; tradeWindow = new TradeWindow; - equipmentWindow = new EquipmentWindow(PlayerInfo::getEquipment()); + equipmentWindow = new EquipmentWindow(PlayerInfo::getEquipment(), + player_node); + beingEquipmentWindow = new EquipmentWindow(0, 0, true); + beingEquipmentWindow->setVisible(false); statusWindow = new StatusWindow; miniStatusWindow = new MiniStatusWindow; inventoryWindow = new InventoryWindow(PlayerInfo::getInventory()); @@ -292,6 +296,7 @@ static void destroyGuiWindows() del_0(skillDialog) del_0(minimap) del_0(equipmentWindow) + del_0(beingEquipmentWindow) del_0(tradeWindow) del_0(helpWindow) del_0(debugWindow) -- cgit v1.2.3-70-g09d2