summaryrefslogtreecommitdiff
path: root/src/gui/windows/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
commit01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch)
tree37294c079b9a05768b7380f7595784eb73485769 /src/gui/windows/ministatuswindow.cpp
parent072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff)
downloadmanaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz
manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2
manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz
manaplus-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip
Add strong typed bool type Visible.
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r--src/gui/windows/ministatuswindow.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index b7e8e6430..80adb129c 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -138,7 +138,7 @@ MiniStatusWindow::MiniStatusWindow() :
loadBars();
updateBars();
- setVisible(true);
+ setVisible(Visible_true);
addMouseListener(this);
Inventory *const inv = PlayerInfo::getInventory();
if (inv)
@@ -468,7 +468,8 @@ void MiniStatusWindow::mouseExited(MouseEvent &event)
mStatusPopup->hide();
}
-void MiniStatusWindow::showBar(const std::string &name, const bool visible)
+void MiniStatusWindow::showBar(const std::string &name,
+ const Visible visible)
{
ProgressBar *const bar = mBarNames[name];
if (!bar)
@@ -483,17 +484,17 @@ void MiniStatusWindow::loadBars()
if (!config.getIntValue("ministatussaved"))
{
if (mWeightBar)
- mWeightBar->setVisible(false);
+ mWeightBar->setVisible(Visible_false);
if (mInvSlotsBar)
- mInvSlotsBar->setVisible(false);
+ mInvSlotsBar->setVisible(Visible_false);
if (mMoneyBar)
- mMoneyBar->setVisible(false);
+ mMoneyBar->setVisible(Visible_false);
if (mArrowsBar)
- mArrowsBar->setVisible(false);
+ mArrowsBar->setVisible(Visible_false);
if (mStatusBar)
- mStatusBar->setVisible(false);
+ mStatusBar->setVisible(Visible_false);
if (mJobBar)
- mJobBar->setVisible(true);
+ mJobBar->setVisible(Visible_true);
return;
}
@@ -506,7 +507,7 @@ void MiniStatusWindow::loadBars()
ProgressBar *const bar = mBarNames[str];
if (!bar)
continue;
- bar->setVisible(false);
+ bar->setVisible(Visible_false);
}
}