summaryrefslogtreecommitdiff
path: root/src/gui/windows/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 19:03:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 19:03:49 +0300
commitc77f06f7b80a67c842abe837beb2f22e9ecf60cc (patch)
tree65da775f4830fde8ccbf7a6d7514e42169321486 /src/gui/windows/ministatuswindow.cpp
parent8836d01c806f7d7e99befb5036148e8ff7b0e24e (diff)
downloadmanaplus-c77f06f7b80a67c842abe837beb2f22e9ecf60cc.tar.gz
manaplus-c77f06f7b80a67c842abe837beb2f22e9ecf60cc.tar.bz2
manaplus-c77f06f7b80a67c842abe837beb2f22e9ecf60cc.tar.xz
manaplus-c77f06f7b80a67c842abe837beb2f22e9ecf60cc.zip
Add ArrowsListener.
Also fix arrows amount update on arrows pickup.
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r--src/gui/windows/ministatuswindow.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp
index 804d52d5b..95948e776 100644
--- a/src/gui/windows/ministatuswindow.cpp
+++ b/src/gui/windows/ministatuswindow.cpp
@@ -56,6 +56,8 @@ MiniStatusWindow::MiniStatusWindow() :
Window("MiniStatus", false, nullptr, "ministatus.xml"),
InventoryListener(),
AttributeListener(),
+ StatListener(),
+ ArrowsListener(),
mBars(),
mBarNames(),
mIcons(),
@@ -532,11 +534,6 @@ void MiniStatusWindow::slotsChanged(Inventory *const inventory)
StatusWindow::updateInvSlotsBar(mInvSlotsBar);
}
-void MiniStatusWindow::updateArrows()
-{
- StatusWindow::updateArrowsBar(mArrowsBar);
-}
-
Rect MiniStatusWindow::getChildrenArea()
{
const int padding = mPadding;
@@ -547,6 +544,11 @@ Rect MiniStatusWindow::getChildrenArea()
rect.height - padding2);
}
+void MiniStatusWindow::arrowsChanged()
+{
+ StatusWindow::updateArrowsBar(mArrowsBar);
+}
+
#ifdef USE_PROFILER
void MiniStatusWindow::logicChildren()
{