diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-24 19:43:26 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-24 19:43:26 +0100 |
commit | a928798a9326de1e6781e14c8ccf5abec1232385 (patch) | |
tree | 2e0f82055cab1bddf85102d5161a3262637879ee /src/npc.cpp | |
parent | 944c187b91e823075dd1708b4f575acd43f0428f (diff) | |
download | mana-a928798a9326de1e6781e14c8ccf5abec1232385.tar.gz mana-a928798a9326de1e6781e14c8ccf5abec1232385.tar.bz2 mana-a928798a9326de1e6781e14c8ccf5abec1232385.tar.xz mana-a928798a9326de1e6781e14c8ccf5abec1232385.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/npc.cpp')
-rw-r--r-- | src/npc.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index 3de1228f..aed6d87b 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -30,8 +30,6 @@ #include "net/protocol.h" #include "resources/npcdb.h" -#include "gui/gui.h" - NPC *current_npc = 0; static const int NAME_X_OFFSET = 15; @@ -76,7 +74,7 @@ void NPC::setName(const std::string &name) { delete mName; mName = new Text(name, mPx + NAME_X_OFFSET, mPy + NAME_Y_OFFSET, - gcn::Graphics::CENTER, speechFont, + gcn::Graphics::CENTER, gcn::Color(200, 200, 255)); } |