diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-25 01:13:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-25 01:18:02 +0300 |
commit | 1e4aa6a5e7476bea736b89fe5d7094b6a68705e5 (patch) | |
tree | e1f4bda6bcdf5497ae3e7a6b96afc1af563ee7f7 /src/resources/itemdb.cpp | |
parent | efcee136d7ab46a73286f1ac016d6e3b6a3faed4 (diff) | |
download | mv-1e4aa6a5e7476bea736b89fe5d7094b6a68705e5.tar.gz mv-1e4aa6a5e7476bea736b89fe5d7094b6a68705e5.tar.bz2 mv-1e4aa6a5e7476bea736b89fe5d7094b6a68705e5.tar.xz mv-1e4aa6a5e7476bea736b89fe5d7094b6a68705e5.zip |
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.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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) |