summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-10-04 19:11:19 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-10-04 19:11:19 +0000
commit8415f7791ea8dc84148c65d04c288d8d12eb50bf (patch)
treefeeb56795e74e8fb76913a85601c0748ab78607d /src/gui
parent6b5c2775d35623f70fe1218710b6613d38395659 (diff)
downloadmana-client-8415f7791ea8dc84148c65d04c288d8d12eb50bf.tar.gz
mana-client-8415f7791ea8dc84148c65d04c288d8d12eb50bf.tar.bz2
mana-client-8415f7791ea8dc84148c65d04c288d8d12eb50bf.tar.xz
mana-client-8415f7791ea8dc84148c65d04c288d8d12eb50bf.zip
Fixed the black font bug in opengl. Only shows the current HP/MP in ministatus as requested.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/ministatus.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp
index eb2ebf53..438470d8 100644
--- a/src/gui/ministatus.cpp
+++ b/src/gui/ministatus.cpp
@@ -50,10 +50,10 @@ MiniStatusWindow::MiniStatusWindow():
hpLabel = new gcn::Label("");
mpLabel = new gcn::Label("");
-#ifndef USE_OPENGL
hpLabel->setFont(speechFont);
mpLabel->setFont(speechFont);
-#endif
+ hpLabel->setForegroundColor(gcn::Color(255,255,255));
+ mpLabel->setForegroundColor(gcn::Color(255,255,255));
add(hpBar);
add(mpBar);
@@ -96,11 +96,11 @@ void MiniStatusWindow::update()
// Update and center labels
std::stringstream updatedText;
- updatedText << player_info->hp << "/" << player_info->maxHp;
+ updatedText << player_info->hp;
hpLabel->setCaption(updatedText.str());
hpLabel->adjustSize();
updatedText.str("");
- updatedText << player_info->mp << "/" << player_info->maxMp;
+ updatedText << player_info->mp;
mpLabel->setCaption(updatedText.str());
mpLabel->adjustSize();
hpLabel->setPosition(hpBar->getX() + int((hpBar->getWidth() / 2) - (hpLabel->getWidth() / 2)),