diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-27 03:30:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-27 03:30:58 +0300 |
commit | 003043714367009efaf07015cc63a901ae2ee47c (patch) | |
tree | f441091a46ac07419977a0dba4cfd6b5ceab667b /src/gui/widgets/playerbox.cpp | |
parent | 916a3d76da98d078a807044c43d1a70bc146ba70 (diff) | |
download | manaverse-003043714367009efaf07015cc63a901ae2ee47c.tar.gz manaverse-003043714367009efaf07015cc63a901ae2ee47c.tar.bz2 manaverse-003043714367009efaf07015cc63a901ae2ee47c.tar.xz manaverse-003043714367009efaf07015cc63a901ae2ee47c.zip |
Remove default parameters from theme.
Diffstat (limited to 'src/gui/widgets/playerbox.cpp')
-rw-r--r-- | src/gui/widgets/playerbox.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/gui/widgets/playerbox.cpp b/src/gui/widgets/playerbox.cpp index b6217383f..98e6e8d5a 100644 --- a/src/gui/widgets/playerbox.cpp +++ b/src/gui/widgets/playerbox.cpp @@ -79,8 +79,8 @@ PlayerBox::~PlayerBox() if (gui != nullptr) gui->removeDragged(this); - Theme::unloadRect(mBackground); - Theme::unloadRect(mSelectedBackground); + Theme::unloadRect(mBackground, 0, 8); + Theme::unloadRect(mSelectedBackground, 0, 8); mBeing = nullptr; } @@ -95,7 +95,10 @@ void PlayerBox::init(std::string name, std::string selectedName) if (name.empty()) name = "playerbox.xml"; mSkin = theme->loadSkinRect(mBackground, - name, "playerbox_background.xml"); + name, + "playerbox_background.xml", + 0, + 8); if (mSkin != nullptr) { mDrawBackground = (mSkin->getOption("drawbackground") != 0); @@ -106,7 +109,10 @@ void PlayerBox::init(std::string name, std::string selectedName) if (selectedName.empty()) selectedName = "playerboxselected.xml"; mSelectedSkin = theme->loadSkinRect(mSelectedBackground, - selectedName, "playerbox_background.xml"); + selectedName, + "playerbox_background.xml", + 0, + 8); } else { |