diff options
Diffstat (limited to 'src/gui/widgets/statspage.cpp')
-rw-r--r-- | src/gui/widgets/statspage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/statspage.cpp b/src/gui/widgets/statspage.cpp index 1f30f2862..9b45ce227 100644 --- a/src/gui/widgets/statspage.cpp +++ b/src/gui/widgets/statspage.cpp @@ -41,6 +41,7 @@ StatsPage::StatsPage(const Widget2 *const widget, const std::string &page) : Container(widget), WidgetListener(), + AttributeListener(), StatListener(), mAttrs(), mAttrCont(new VertContainer(this, 32)), @@ -68,6 +69,15 @@ void StatsPage::widgetResized(const Event &event A_UNUSED) mAttrScroll->setSize(getWidth(), getHeight()); } +void StatsPage::attributeChanged(const AttributesT id, + const int oldVal A_UNUSED, + const int newVal A_UNUSED) +{ + const Attrs::const_iterator it = mAttrs.find(id); + if (it != mAttrs.end() && it->second) + it->second->update(); +} + void StatsPage::statChanged(const AttributesT id, const int oldVal1 A_UNUSED, const int oldVal2 A_UNUSED) |