summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-13 18:04:01 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-13 18:04:01 +0300
commitc676f4b880ed0abd644085e587e98e3f6ba1c16b (patch)
treea53167ffac4829da9903de9557126dc9206c9f3d /src/gui/popups
parentbcf122e6d80e767bd4546b183f24b46cbbea65f1 (diff)
downloadmv-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.gz
mv-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.bz2
mv-c676f4b880ed0abd644085e587e98e3f6ba1c16b.tar.xz
mv-c676f4b880ed0abd644085e587e98e3f6ba1c16b.zip
Show particles amount in being popup.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/beingpopup.cpp8
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 ++)