diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-07-13 18:04:01 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-07-13 18:04:01 +0300 |
commit | c676f4b880ed0abd644085e587e98e3f6ba1c16b (patch) | |
tree | a53167ffac4829da9903de9557126dc9206c9f3d /src/gui | |
parent | bcf122e6d80e767bd4546b183f24b46cbbea65f1 (diff) | |
download | manaplus-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.gz manaplus-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.bz2 manaplus-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.xz manaplus-c676f4b880ed0abd644085e587e98e3f6ba1c16b.zip |
Show particles amount in being popup.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 ++) |