diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-24 19:43:26 +0100 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-24 14:55:38 -0700 |
commit | 581206ab0fecbb3afc7afebedac541be51097cf5 (patch) | |
tree | 9734beffe9a54f02abe3457bb4c546a0bb878036 /src/player.cpp | |
parent | c4fd3e6090fb94a77055f4556d906e60e3803d22 (diff) | |
download | mana-581206ab0fecbb3afc7afebedac541be51097cf5.tar.gz mana-581206ab0fecbb3afc7afebedac541be51097cf5.tar.bz2 mana-581206ab0fecbb3afc7afebedac541be51097cf5.tar.xz mana-581206ab0fecbb3afc7afebedac541be51097cf5.zip |
Use standard GUI font also for speech and names
The speech bitmap font can't handle unicode, so it has now been replaced
by the standard GUI font, drawn with a shadow for chat and with a full
outline for names.
Diffstat (limited to 'src/player.cpp')
-rw-r--r-- | src/player.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/player.cpp b/src/player.cpp index a72e754d..d62018f2 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -27,8 +27,6 @@ #include "log.h" #include "player.h" -#include "gui/gui.h" - #include "resources/itemdb.h" #include "resources/iteminfo.h" @@ -54,12 +52,10 @@ void Player::setName(const std::string &name) { if (mIsGM) { mName = new FlashText("(GM) " + name, mPx + NAME_X_OFFSET, mPy + NAME_Y_OFFSET, - gcn::Graphics::CENTER, - gmNameFont, gcn::Color(255, 255, 255)); + gcn::Graphics::CENTER, gcn::Color(0, 255, 0)); } else { mName = new FlashText(name, mPx + NAME_X_OFFSET, mPy + NAME_Y_OFFSET, - gcn::Graphics::CENTER, - speechFont, gcn::Color(255, 255, 255)); + gcn::Graphics::CENTER, gcn::Color(255, 255, 255)); } Being::setName(name); } |