diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-13 20:31:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-13 20:31:03 +0300 |
commit | 8543a5afe743244aebd05fe0155633d80ee17f49 (patch) | |
tree | 922b0d9bca5b483a0d69e9bcdc224e0a01e0631d /src | |
parent | 69238eddfc6374ad54a63f14fd29fd7b4dfbba48 (diff) | |
download | ManaVerse-8543a5afe743244aebd05fe0155633d80ee17f49.tar.gz ManaVerse-8543a5afe743244aebd05fe0155633d80ee17f49.tar.bz2 ManaVerse-8543a5afe743244aebd05fe0155633d80ee17f49.tar.xz ManaVerse-8543a5afe743244aebd05fe0155633d80ee17f49.zip |
Show clan name in player popup.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index c1c61c8b2..5ba770f2e 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -205,6 +205,16 @@ void BeingPopup::show(const int x, const int y, Being *const b) num ++; } + if (!(b->getClanName().empty())) + { + ptr = mLabels[num]; + // TRANSLATORS: being popup label + ptr->setCaption(strprintf(_("Clan: %s"), + b->getClanName().c_str())); + ptr->adjustSize(); + num ++; + } + if (b->getPvpRank() > 0) { ptr = mLabels[num]; |