From 46dd47b2652d0928bc414b12685a89effe41e9ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 16 May 2013 23:26:43 +0300 Subject: improve npcdialog class. allow set avatar size in avatars.xml. --- src/resources/avatardb.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/resources/avatardb.cpp') diff --git a/src/resources/avatardb.cpp b/src/resources/avatardb.cpp index e18eff5c2..39b1184fb 100644 --- a/src/resources/avatardb.cpp +++ b/src/resources/avatardb.cpp @@ -73,6 +73,11 @@ void AvatarDB::load() currentInfo->setTargetOffsetY(XML::getProperty(avatarNode, "targetOffsetY", 0)); + currentInfo->setWidth(XML::getProperty(avatarNode, + "width", 0)); + currentInfo->setHeight(XML::getProperty(avatarNode, + "height", 0)); + SpriteDisplay display; // iterate s and s -- cgit v1.2.3-70-g09d2