summaryrefslogtreecommitdiff
path: root/src/gui/windows/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-22 23:16:11 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-22 23:16:11 +0300
commit86487ca386118d3a06c029c00ad7f75767c3c719 (patch)
tree101db831af413ef0f1c14d453c668bb4305650ed /src/gui/windows/ministatuswindow.cpp
parent854fff82b8aa33f739c5e3d3f54c5fedb78b0e23 (diff)
downloadplus-86487ca386118d3a06c029c00ad7f75767c3c719.tar.gz
plus-86487ca386118d3a06c029c00ad7f75767c3c719.tar.bz2
plus-86487ca386118d3a06c029c00ad7f75767c3c719.tar.xz
plus-86487ca386118d3a06c029c00ad7f75767c3c719.zip
Remove default parameters from statuswindow.
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r--src/gui/windows/ministatuswindow.cpp36
1 files changed, 26 insertions, 10 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index e596f1fae..ebc7edd8e 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -120,14 +120,19 @@ MiniStatusWindow::MiniStatusWindow() :
mIconSpacing(mSkin != nullptr ? mSkin->getOption("iconSpacing", 2) : 2),
mMaxX(0)
{
- StatusWindow::updateHPBar(mHpBar);
+ StatusWindow::updateHPBar(mHpBar,
+ false);
if (statusWindow != nullptr)
- statusWindow->updateMPBar(mMpBar);
+ {
+ statusWindow->updateMPBar(mMpBar,
+ false);
+ }
const bool job = serverConfig.getValueBool("showJob", true);
- StatusWindow::updateXPBar(mXpBar);
+ StatusWindow::updateXPBar(mXpBar,
+ true);
if (job)
{
@@ -137,7 +142,8 @@ MiniStatusWindow::MiniStatusWindow() :
"jobprogressbar.xml", "jobprogressbar_fill.xml",
// TRANSLATORS: status bar name
"job bar", _("job bar"));
- StatusWindow::updateJobBar(mJobBar);
+ StatusWindow::updateJobBar(mJobBar,
+ true);
}
loadBars();
@@ -263,8 +269,12 @@ void MiniStatusWindow::statChanged(const AttributesT id A_UNUSED,
const int oldVal2 A_UNUSED)
{
if (statusWindow != nullptr)
- statusWindow->updateMPBar(mMpBar);
- StatusWindow::updateJobBar(mJobBar);
+ {
+ statusWindow->updateMPBar(mMpBar,
+ false);
+ }
+ StatusWindow::updateJobBar(mJobBar,
+ true);
}
void MiniStatusWindow::attributeChanged(const AttributesT id,
@@ -277,15 +287,18 @@ void MiniStatusWindow::attributeChanged(const AttributesT id,
{
case Attributes::PLAYER_HP:
case Attributes::PLAYER_MAX_HP:
- StatusWindow::updateHPBar(mHpBar);
+ StatusWindow::updateHPBar(mHpBar,
+ false);
break;
case Attributes::PLAYER_MP:
case Attributes::PLAYER_MAX_MP:
- statusWindow->updateMPBar(mMpBar);
+ statusWindow->updateMPBar(mMpBar,
+ false);
break;
case Attributes::PLAYER_EXP:
case Attributes::PLAYER_EXP_NEEDED:
- StatusWindow::updateXPBar(mXpBar);
+ StatusWindow::updateXPBar(mXpBar,
+ true);
break;
case Attributes::TOTAL_WEIGHT:
case Attributes::MAX_WEIGHT:
@@ -303,7 +316,10 @@ void MiniStatusWindow::attributeChanged(const AttributesT id,
void MiniStatusWindow::updateStatus()
{
if (statusWindow != nullptr)
- statusWindow->updateStatusBar(mStatusBar);
+ {
+ statusWindow->updateStatusBar(mStatusBar,
+ true);
+ }
if ((mStatusPopup != nullptr) && mStatusPopup->isPopupVisible())
mStatusPopup->update();
}