From c676f4b880ed0abd644085e587e98e3f6ba1c16b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jul 2016 18:04:01 +0300 Subject: Show particles amount in being popup. --- src/gui/popups/beingpopup.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index 8fed0d4b6..396f323a7 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -72,7 +72,7 @@ void BeingPopup::postInit() void BeingPopup::addLabels(const int fontHeight) { - for (int f = 0; f < 8; f ++) + for (int f = 0; f < 9; f ++) { Label *const label = new Label(this, "A"); label->setPosition(0, fontHeight * (f + 1)); @@ -257,6 +257,12 @@ void BeingPopup::show(const int x, const int y, Being *const b) } #endif } + ptr = mLabels[num]; + // TRANSLATORS: being popup label + ptr->setCaption(strprintf(_("Particles: %u"), + CAST_U32(b->getParticlesCount()))); + ptr->adjustSize(); + num ++; const size_t sz = mLabels.size(); for (size_t f = num; f < sz; f ++) -- cgit v1.2.3-70-g09d2