summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-15 23:45:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-15 23:45:39 +0000
commit7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b (patch)
tree711ad9a5597de3014921b9fb36206f21595cdf05 /src/gui/status.cpp
parent13f82f10d92816d0239db56b7936fd2403f50897 (diff)
downloadmana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.tar.gz
mana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.tar.bz2
mana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.tar.xz
mana-7b81d4151ef4fe04a5aabcc4fe258ee40115ef0b.zip
Fixed screenshot taking and changed chat box in Guichan widget.
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp
index fa31919d..8465082f 100644
--- a/src/gui/status.cpp
+++ b/src/gui/status.cpp
@@ -46,7 +46,7 @@ StatusWindow::StatusWindow():
jobExpLabel->setPosition(106, 40);
//xpBar->setDimension(gcn::Rectangle(16, 55, 60, 18));
//jobXpBar->setDimension(gcn::Rectangle(116, 55, 60, 18));
-
+
healthBar = new ProgressBar(1.0f, 20, 8, 80, 0, 255, 0);
manaBar = new ProgressBar(1.0f, 20, 26, 80, 0, 0, 255);
xpBar = new ProgressBar(1.0f, 6, 55, 70, 12, 194, 255);
@@ -109,18 +109,18 @@ void StatusWindow::update()
if ( char_info->hp < int(char_info->max_hp / 3) )
{
- healthBar->setColor(255, 0, 0); // Red
+ healthBar->setColor(255, 0, 0); // Red
}
else
{
- if ( char_info->hp < int( (char_info->max_hp / 3)*2 ) )
- {
- healthBar->setColor(255, 181, 9); // orange
- }
- else
- {
- healthBar->setColor(0, 255, 0); // Green
- }
+ if ( char_info->hp < int( (char_info->max_hp / 3)*2 ) )
+ {
+ healthBar->setColor(255, 181, 9); // orange
+ }
+ else
+ {
+ healthBar->setColor(0, 255, 0); // Green
+ }
}