From 2f2ec6025c0eb43c475964187d815d6598b00f01 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Jun 2011 23:44:51 +0300 Subject: Change in being popup player name font to secure font if need. --- src/gui/beingpopup.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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(""); -- cgit v1.2.3-70-g09d2