diff options
author | Freeyorp <Freeyorp101@NOSPAM@hotmail.com> | 2009-05-21 17:45:51 +1200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-23 21:44:22 +0200 |
commit | cf9caaefeb69cafcf273028d12f074d5d1737bf9 (patch) | |
tree | bcb1cf201f48f34fe56169b303c4a34ec21a2ffd /src/gui/widgets/avatar.cpp | |
parent | 0507f575f2d9abe953e53822a52e66677cd8775c (diff) | |
download | mana-cf9caaefeb69cafcf273028d12f074d5d1737bf9.tar.gz mana-cf9caaefeb69cafcf273028d12f074d5d1737bf9.tar.bz2 mana-cf9caaefeb69cafcf273028d12f074d5d1737bf9.tar.xz mana-cf9caaefeb69cafcf273028d12f074d5d1737bf9.zip |
Display the party leaders name in bold font
(cherry picked from commit 244b0d9b46128ab3498da078020c8bbf8c65f69f)
Diffstat (limited to 'src/gui/widgets/avatar.cpp')
-rw-r--r-- | src/gui/widgets/avatar.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/widgets/avatar.cpp b/src/gui/widgets/avatar.cpp index 16c77233..f7273c75 100644 --- a/src/gui/widgets/avatar.cpp +++ b/src/gui/widgets/avatar.cpp @@ -23,6 +23,7 @@ #include "localplayer.h" +#include "gui/gui.h" #include "gui/widgets/icon.h" #include "gui/widgets/label.h" @@ -39,7 +40,8 @@ namespace { Avatar::Avatar(): mHp(0), - mMaxHp(0) + mMaxHp(0), + mDisplayBold(false) { setOpaque(false); @@ -111,6 +113,8 @@ void Avatar::updateAvatarLabel() if (mName != player_node->getName() && mMaxHp != 0) ss << " (" << mHp << "/" << mMaxHp << ")"; + if (mDisplayBold) + mLabel->setFont(boldFont); mLabel->setCaption(ss.str()); mLabel->adjustSize(); } |