summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/status.cpp8
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(