From 1e4aa6a5e7476bea736b89fe5d7094b6a68705e5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Oct 2012 01:13:56 +0300 Subject: Add support for different hover/pickup cursors for monsters, npc, items, etc. In monsters.xml new monster attribute: hoverCursor - default value "attack". In npcs.xml new npc attribute: hoverCursor - default value "talk". In items.xml new item attribute: pickupCursor - default value "pickup". Warps using "up" cursor for now. --- src/resources/itemdb.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resources/itemdb.cpp') diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index f2e07ce48..c6a854c33 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -313,6 +313,8 @@ void ItemDB::load() itemInfo->setDrawPriority(-1, drawPriority); itemInfo->setColorsList(colors); itemInfo->setMaxFloorOffset(maxFloorOffset); + itemInfo->setPickupCursor(XML::getProperty( + node, "pickupCursor", "pickup")); std::string effect; for (size_t i = 0; i < sizeof(fields) / sizeof(fields[0]); ++ i) -- cgit v1.2.3-70-g09d2