diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-03 09:04:43 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-07-03 09:04:43 +0000 |
commit | 79d63d624b44faa4085bd82eaa3519df77bbb58b (patch) | |
tree | 85fc46c8a6bb6a780ca2a30c4a21db7784eb2f8b /src | |
parent | 6458dc08c6345664c4ccfa467f8a43d78a257467 (diff) | |
download | mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.tar.gz mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.tar.bz2 mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.tar.xz mana-client-79d63d624b44faa4085bd82eaa3519df77bbb58b.zip |
Trying to place damage text in a better position
Diffstat (limited to 'src')
-rw-r--r-- | src/being.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 3c1c6d15..770a5c5a 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -358,11 +358,22 @@ void Being::drawSpeech(Graphics *graphics) else { graphics->setFont(hitRedFont); - } + } + + int textX = 0; + int textY = 0; + if (this->isPlayer()) { + textX = 16; + textY = 70; + } + else { + textX = 60; + textY = 0; + } graphics->drawText(damage, - text_x + 60, - text_y - 60 - get_elapsed_time(damage_time) / 100, + text_x + textX, + text_y - textY - get_elapsed_time(damage_time) / 100, gcn::Graphics::CENTER); // Backing to default font |