summaryrefslogtreecommitdiff
path: root/src/gui/widgets/playerbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-01 22:30:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-01 22:30:44 +0300
commitd13de51121a332cf8613a38d7ed5468f971c999f (patch)
tree253c2911e291303fd90eb5d61c23076630782a11 /src/gui/widgets/playerbox.cpp
parent6915c38ca9c35bfb9a5ea05fe957463d644a75de (diff)
downloadManaVerse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.gz
ManaVerse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.bz2
ManaVerse-d13de51121a332cf8613a38d7ed5468f971c999f.tar.xz
ManaVerse-d13de51121a332cf8613a38d7ed5468f971c999f.zip
replace tile size from 32 to mapTitleSize.
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r--src/gui/widgets/playerbox.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp
index ff865bdbe..21617c57b 100644
--- a/src/gui/widgets/playerbox.cpp
+++ b/src/gui/widgets/playerbox.cpp
@@ -40,8 +40,8 @@ PlayerBox::PlayerBox(Being *const being, const std::string &skin,
mSelectedBackground(),
mSkin(nullptr),
mSelectedSkin(nullptr),
- mOffsetX(-16),
- mOffsetY(-32),
+ mOffsetX(-mapTileSize / 2),
+ mOffsetY(-mapTileSize),
mDrawBackground(false),
mSelected(false)
{
@@ -57,8 +57,8 @@ PlayerBox::PlayerBox(const std::string &skin,
mSelectedBackground(),
mSkin(nullptr),
mSelectedSkin(nullptr),
- mOffsetX(-16),
- mOffsetY(-32),
+ mOffsetX(-mapTileSize / 2),
+ mOffsetY(-mapTileSize),
mDrawBackground(false),
mSelected(false)
{
@@ -94,8 +94,8 @@ void PlayerBox::init(std::string name, std::string selectedName)
if (mSkin)
{
mDrawBackground = (mSkin->getOption("drawbackground") != 0);
- mOffsetX = mSkin->getOption("offsetX", -16);
- mOffsetY = mSkin->getOption("offsetY", -32);
+ mOffsetX = mSkin->getOption("offsetX", -mapTileSize / 2);
+ mOffsetY = mSkin->getOption("offsetY", -mapTileSize);
mFrameSize = mSkin->getOption("frameSize", 2);
}
if (selectedName.empty())