diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-09 12:35:46 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-10-09 12:35:46 +0000 |
commit | ff4d98eeee5a5a799039549c6df885a5208b792f (patch) | |
tree | 1e3a770cac29ed3f3e2d2f7b62e6286d8d5bb24d /src/being.cpp | |
parent | 6f706879515b4e37a78994aaae6b0e36d00b5f32 (diff) | |
download | mana-ff4d98eeee5a5a799039549c6df885a5208b792f.tar.gz mana-ff4d98eeee5a5a799039549c6df885a5208b792f.tar.bz2 mana-ff4d98eeee5a5a799039549c6df885a5208b792f.tar.xz mana-ff4d98eeee5a5a799039549c6df885a5208b792f.zip |
Fixed display of [TARGET] and Alt keys for toggling windows.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp index 9f9c7834..9dccb5f6 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -427,6 +427,16 @@ void Being::drawSpeech(Graphics *graphics, Sint32 offsetX, Sint32 offsetY) gcn::Graphics::CENTER); } + // Potentially draw [TARGET] above this being + if (this == autoTarget) + { + graphics->setFont(speechFont); + int dy = (getType() == PLAYER) ? 90 : 52; + + graphics->drawText("[TARGET]", px + 15, py - dy, + gcn::Graphics::CENTER); + } + // Draw player name if (getType() == PLAYER && this != player_node) { |