diff options
Diffstat (limited to 'src/resources/petdb.cpp')
-rw-r--r-- | src/resources/petdb.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/resources/petdb.cpp b/src/resources/petdb.cpp index 806e20e72..a85480e7b 100644 --- a/src/resources/petdb.cpp +++ b/src/resources/petdb.cpp @@ -24,6 +24,7 @@ #include "logger.h" +#include "resources/beingcommon.h" #include "resources/beinginfo.h" #include "utils/dtor.h" @@ -76,20 +77,7 @@ void PETDB::load() currentInfo->setTargetSelection(XML::getBoolProperty(petNode, "targetSelection", false)); - currentInfo->setTargetCursorSize(XML::getProperty(petNode, - "targetCursor", "medium")); - - currentInfo->setHoverCursor(XML::getProperty(petNode, - "hoverCursor", "talk")); - - currentInfo->setTargetOffsetX(XML::getProperty(petNode, - "targetOffsetX", 0)); - - currentInfo->setTargetOffsetY(XML::getProperty(petNode, - "targetOffsetY", 0)); - - currentInfo->setSortOffsetY(XML::getProperty(petNode, - "sortOffsetY", 0)); + BeingCommon::readBasicAttributes(currentInfo, petNode, "talk"); currentInfo->setDeadSortOffsetY(XML::getProperty(petNode, "deadSortOffsetY", 31)); |