From 8543a5afe743244aebd05fe0155633d80ee17f49 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 13 Feb 2018 20:31:03 +0300 Subject: Show clan name in player popup. --- src/gui/popups/beingpopup.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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]; -- cgit v1.2.3-70-g09d2