From 30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 18 Jul 2013 12:35:51 +0300 Subject: add name offsets for npc and monster names. New attributes: nameOffsetX, nameOffsetY Example for monsters.xml: Example for npcs.xml: --- src/resources/npcdb.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/npcdb.cpp') diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp index bafef22c8..103bbb805 100644 --- a/src/resources/npcdb.cpp +++ b/src/resources/npcdb.cpp @@ -102,6 +102,12 @@ void NPCDB::loadXmlFile(const std::string &fileName) currentInfo->setTargetOffsetY(XML::getProperty(npcNode, "targetOffsetY", 0)); + currentInfo->setNameOffsetX(XML::getProperty(npcNode, + "nameOffsetX", 0)); + + currentInfo->setNameOffsetY(XML::getProperty(npcNode, + "nameOffsetY", 0)); + currentInfo->setSortOffsetY(XML::getProperty(npcNode, "sortOffsetY", 0)); -- cgit v1.2.3-70-g09d2