From da5a71f65682dbb3f830be4d5ffcd0046aa7b7ce Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Sat, 13 Aug 2005 12:20:26 +0000 Subject: Removed smooth color changing from xp bar which was causing problems and doesn't act as the job xp bar. --- src/gui/status.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') 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( -- cgit v1.2.3-70-g09d2