diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-07-05 03:41:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-07-05 03:41:13 +0300 |
commit | d0571ca16bb4ef11a718cfa78dc29b57080fcc72 (patch) | |
tree | add362fa6b01bb83c608a78b3a56bf8b52136767 /src/gui/beingpopup.cpp | |
parent | 0202b0b4cdac57a04a3765f6bca893bd3b5c9812 (diff) | |
download | mv-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.gz mv-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.bz2 mv-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.tar.xz mv-d0571ca16bb4ef11a718cfa78dc29b57080fcc72.zip |
Add ability to send client states to other clients.
Using for this emotes.
Diffstat (limited to 'src/gui/beingpopup.cpp')
-rw-r--r-- | src/gui/beingpopup.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/beingpopup.cpp b/src/gui/beingpopup.cpp index 2ba79d1a1..e5dc602a0 100644 --- a/src/gui/beingpopup.cpp +++ b/src/gui/beingpopup.cpp @@ -28,6 +28,7 @@ #include "gui/gui.h" #include "gui/palette.h" +#include "gui/theme.h" #include "gui/widgets/label.h" @@ -96,6 +97,15 @@ void BeingPopup::show(int x, int y, Being *b) else mBeingName->setFont(gui->getSecureFont()); } + if (b->isAdvanced()) + { + mBeingName->setForegroundColor(Theme::getThemeColor( + Theme::PLAYER_ADVANCED)); + } + else + { + mBeingName->setForegroundColor(Theme::getThemeColor(Theme::TEXT)); + } mBeingName->adjustSize(); label1->setCaption(""); |