summaryrefslogtreecommitdiff
path: root/src/gui/ministatus.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-13 20:04:03 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-13 20:04:03 +0200
commit932ca64763d5133c4e5d8f6f6d7ed0d582d0456e (patch)
tree68de441cebab14f15514f5798504565529a773ff /src/gui/ministatus.cpp
parent3aba05585b85989b5d0927939812f612c3b0d4d9 (diff)
downloadmv-932ca64763d5133c4e5d8f6f6d7ed0d582d0456e.tar.gz
mv-932ca64763d5133c4e5d8f6f6d7ed0d582d0456e.tar.bz2
mv-932ca64763d5133c4e5d8f6f6d7ed0d582d0456e.tar.xz
mv-932ca64763d5133c4e5d8f6f6d7ed0d582d0456e.zip
Add arrows bar.
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r--src/gui/ministatus.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index ed124d3b4..214a745ec 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -91,7 +91,10 @@ MiniStatusWindow::MiniStatusWindow():
"inventory slots bar", _("inventory slots bar"));
mMoneyBar = createBar(0, 130, 20, Theme::PROG_INVY_SLOTS,
- "money bar", _("money bar"));
+ "money bar", _("money bar"));
+
+ mArrowsBar = createBar(0, 50, 20, Theme::PROG_INVY_SLOTS,
+ "arrows bar", _("arrows bar"));
mStatusBar = createBar(100, 150, 20, Theme::PROG_EXP,
"status bar", _("status bar"));
@@ -110,6 +113,7 @@ MiniStatusWindow::MiniStatusWindow():
inv->addInventoyListener(this);
StatusWindow::updateMoneyBar(mMoneyBar);
+ StatusWindow::updateArrowsBar(mArrowsBar);
updateStatus();
}
@@ -407,6 +411,8 @@ void MiniStatusWindow::loadBars()
mInvSlotsBar->setVisible(false);
if (mMoneyBar)
mMoneyBar->setVisible(false);
+ if (mArrowsBar)
+ mArrowsBar->setVisible(false);
return;
}
@@ -451,3 +457,8 @@ void MiniStatusWindow::slotsChanged(Inventory* inventory)
if (inventory->getType() == Inventory::INVENTORY)
StatusWindow::updateInvSlotsBar(mInvSlotsBar);
}
+
+void MiniStatusWindow::updateArrows()
+{
+ StatusWindow::updateArrowsBar(mArrowsBar);
+}