diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-01 23:44:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-01 23:44:51 +0300 |
commit | 2f2ec6025c0eb43c475964187d815d6598b00f01 (patch) | |
tree | f7f6ebe03c9329db30c1d3a0c4aff86ddf38e75f /src/gui/beingpopup.cpp | |
parent | ad949c3b846488dbd567eae6e8c4b3058a24a974 (diff) | |
download | manaplus-2f2ec6025c0eb43c475964187d815d6598b00f01.tar.gz manaplus-2f2ec6025c0eb43c475964187d815d6598b00f01.tar.bz2 manaplus-2f2ec6025c0eb43c475964187d815d6598b00f01.tar.xz manaplus-2f2ec6025c0eb43c475964187d815d6598b00f01.zip |
Change in being popup player name font to secure font if need.
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r-- | src/gui/beingpopup.cpp | 9 |
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(""); |