summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-18 12:35:51 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-18 12:35:51 +0300
commit30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c (patch)
tree7d3b15f4e42b22e329c632d61e11a16ff0932b58 /src/resources/beinginfo.cpp
parent923bd5817bad530de2652529eaf7f5366188034c (diff)
downloadmv-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.tar.gz
mv-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.tar.bz2
mv-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.tar.xz
mv-30a2658b93cebebeddf9aa9e7d9d37cc4fc80d3c.zip
add name offsets for npc and monster names.
New attributes: nameOffsetX, nameOffsetY Example for monsters.xml: <monster id="0" name="Piou" targetCursor="small" walkType="fly" nameOffsetX="10"> Example for npcs.xml: <npc id="304" nameOffsetX="-10" nameOffsetY="-5">
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r--src/resources/beinginfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index f54673447..bd45ec9ed 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -49,6 +49,8 @@ BeingInfo::BeingInfo() :
mColors(nullptr),
mTargetOffsetX(0),
mTargetOffsetY(0),
+ mNameOffsetX(0),
+ mNameOffsetY(0),
mMaxHP(0),
mSortOffsetY(0),
mDeadSortOffsetY(31),