diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-08-13 12:20:26 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-08-13 12:20:26 +0000 |
commit | da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce (patch) | |
tree | a6a88d924fa6ff08afcae5ddefa72545d317ce89 /src/gui/status.cpp | |
parent | 5b2a8183126754f0ff3e812791742f18d7a8169c (diff) | |
download | mana-client-da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce.tar.gz mana-client-da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce.tar.bz2 mana-client-da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce.tar.xz mana-client-da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce.zip |
Removed smooth color changing from xp bar which was causing problems and doesn't act as the job xp bar.
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r-- | src/gui/status.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp index 59e58d7c..941e9a01 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -84,7 +84,7 @@ StatusWindow::StatusWindow(): expLabel->setPosition( xpBar->getX() + xpBar->getWidth() + CONTROLS_SEPARATOR, xpBar->getY()); - jobXpBar = new ProgressBar(1.0f, healthBar->getX(), + jobXpBar = new ProgressBar(1.0f, manaBar->getX(), xpBar->getY() + xpBar->getHeight() + CONTROLS_SEPARATOR, 70, 15, 220, 135, 203); jobExpLabel->setPosition( @@ -187,12 +187,6 @@ void StatusWindow::update() } } - // XP Bar dark blue to light blue Smooth fading - float redXP = (char_info->xp / char_info->xpForNextLevel) * 143; - float greenXP = (char_info->xp / char_info->xpForNextLevel) * 192; - xpBar->setColor((unsigned char)redXP, - (unsigned char)greenXP, 211); - healthBar->setProgress((float)char_info->hp / (float)char_info->max_hp); xpBar->setProgress( |