summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-01 23:44:51 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-01 23:44:51 +0300
commit2f2ec6025c0eb43c475964187d815d6598b00f01 (patch)
treef7f6ebe03c9329db30c1d3a0c4aff86ddf38e75f /src/gui
parentad949c3b846488dbd567eae6e8c4b3058a24a974 (diff)
downloadmv-2f2ec6025c0eb43c475964187d815d6598b00f01.tar.gz
mv-2f2ec6025c0eb43c475964187d815d6598b00f01.tar.bz2
mv-2f2ec6025c0eb43c475964187d815d6598b00f01.tar.xz
mv-2f2ec6025c0eb43c475964187d815d6598b00f01.zip
Change in being popup player name font to secure font if need.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/beingpopup.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp
index 20d2c5c1e..a47e35032 100644
--- a/src/gui/beingpopup.cpp
+++ b/src/gui/beingpopup.cpp
@@ -23,6 +23,7 @@
#include "being.h"
#include "graphics.h"
+#include "playerrelations.h"
#include "units.h"
#include "gui/gui.h"
@@ -81,6 +82,14 @@ void BeingPopup::show(int x, int y, Being *b)
Label *label3 = mBeingRank;
mBeingName->setCaption(b->getName());
+ if (gui)
+ {
+ if (player_relations.isGoodName(b))
+ mBeingName->setFont(boldFont);
+ else
+ mBeingName->setFont(gui->getSecureFont());
+ }
+
mBeingName->adjustSize();
label1->setCaption("");
label2->setCaption("");