summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-24 19:43:26 +0100
committerIra Rice <irarice@gmail.com>2009-01-24 14:55:38 -0700
commit581206ab0fecbb3afc7afebedac541be51097cf5 (patch)
tree9734beffe9a54f02abe3457bb4c546a0bb878036 /src/player.cpp
parentc4fd3e6090fb94a77055f4556d906e60e3803d22 (diff)
downloadmana-client-581206ab0fecbb3afc7afebedac541be51097cf5.tar.gz
mana-client-581206ab0fecbb3afc7afebedac541be51097cf5.tar.bz2
mana-client-581206ab0fecbb3afc7afebedac541be51097cf5.tar.xz
mana-client-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.cpp8
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);
}