summaryrefslogtreecommitdiff
path: root/src/player.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-24 18:16:17 -0700
committerIra Rice <irarice@gmail.com>2009-01-24 18:16:17 -0700
commit5c79b920eefb219f0dd4491b709af4f116d3a988 (patch)
tree43d947537af88ddbd3b853e9e35f5bc8d2216818 /src/player.cpp
parent5e1dc59411cd7973fb4208ae76d0970bd2ea87d6 (diff)
downloadmana-5c79b920eefb219f0dd4491b709af4f116d3a988.tar.gz
mana-5c79b920eefb219f0dd4491b709af4f116d3a988.tar.bz2
mana-5c79b920eefb219f0dd4491b709af4f116d3a988.tar.xz
mana-5c79b920eefb219f0dd4491b709af4f116d3a988.zip
Tweaks to the speech bubbles so that being status (GM, mob, npc,
regular player) is displayed in the speech bubbles now. No need to view your own name to be able to see whether you're showing as a GM now. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/player.cpp')
-rw-r--r--src/player.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/player.cpp b/src/player.cpp
index d62018f2..ad5b568b 100644
--- a/src/player.cpp
+++ b/src/player.cpp
@@ -50,10 +50,15 @@ void Player::setName(const std::string &name)
{
if (mName == 0)
{
- if (mIsGM) {
+ if (mIsGM)
+ {
+ mNameColor = 0x009000;
mName = new FlashText("(GM) " + name, mPx + NAME_X_OFFSET, mPy + NAME_Y_OFFSET,
gcn::Graphics::CENTER, gcn::Color(0, 255, 0));
- } else {
+ }
+ else
+ {
+ mNameColor = 0x202020;
mName = new FlashText(name, mPx + NAME_X_OFFSET, mPy + NAME_Y_OFFSET,
gcn::Graphics::CENTER, gcn::Color(255, 255, 255));
}