summaryrefslogtreecommitdiff
path: root/src/resources/npcdb.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 16:01:51 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 16:30:10 +0100
commit8546361abaa6123acd9dc1429575d1fd1cf6a4ec (patch)
treec104ef0073dbc93ba491ecb03352402c1a8f72c4 /src/resources/npcdb.cpp
parentc7e48aaf7eb0f2df76327b963879416a0cc8d5e7 (diff)
downloadmana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.gz
mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.bz2
mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.tar.xz
mana-8546361abaa6123acd9dc1429575d1fd1cf6a4ec.zip
Added support for customizing NPC and Monster hover cursor
To match support for this in M+, since TMW uses this functionality on two of its NPCs.
Diffstat (limited to 'src/resources/npcdb.cpp')
-rw-r--r--src/resources/npcdb.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp
index 6a0685d2..83d91b20 100644
--- a/src/resources/npcdb.cpp
+++ b/src/resources/npcdb.cpp
@@ -55,6 +55,8 @@ void NPCDB::readNPCNode(xmlNodePtr node, const std::string &filename)
currentInfo->setTargetCursorSize(XML::getProperty(node,
"targetCursor", "medium"));
+ currentInfo->setHoverCursor(XML::getProperty(node, "hoverCursor", "talk"));
+
SpriteDisplay display;
for_each_xml_child_node(spriteNode, node)
{
@@ -72,7 +74,7 @@ void NPCDB::readNPCNode(xmlNodePtr node, const std::string &filename)
}
}
- currentInfo->setDisplay(display);
+ currentInfo->setDisplay(std::move(display));
mNPCInfos[id] = currentInfo;
}