diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-01 22:30:44 +0300 |
commit | d13de51121a332cf8613a38d7ed5468f971c999f (patch) | |
tree | 253c2911e291303fd90eb5d61c23076630782a11 /src/gui/widgets/playerbox.cpp | |
parent | 6915c38ca9c35bfb9a5ea05fe957463d644a75de (diff) | |
download | ManaVerse-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.cpp | 12 |
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()) |