summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 02:30:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commitb6b4ea19929e7e67d987041aa129366f4fed3a6d (patch)
tree8bcc999ef4ae32aabd10a4109fb5e8c57067c18d /src/gui/statuswindow.cpp
parent0153e8fa499b7bbdd712339bfb3921ead15a37a2 (diff)
downloadmanaverse-b6b4ea19929e7e67d987041aa129366f4fed3a6d.tar.gz
manaverse-b6b4ea19929e7e67d987041aa129366f4fed3a6d.tar.bz2
manaverse-b6b4ea19929e7e67d987041aa129366f4fed3a6d.tar.xz
manaverse-b6b4ea19929e7e67d987041aa129366f4fed3a6d.zip
Add palette inheritance to progressbar class.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index d47d5928f..1fb6d7836 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -171,13 +171,13 @@ StatusWindow::StatusWindow() :
if (!max)
max = 1;
- mHpBar = new ProgressBar(max ?
+ mHpBar = new ProgressBar(this, max ?
static_cast<float>(PlayerInfo::getAttribute(PlayerInfo::HP))
/ static_cast<float>(max):
static_cast<float>(0), 80, 0, Theme::PROG_HP);
max = PlayerInfo::getAttribute(PlayerInfo::EXP_NEEDED);
- mXpBar = new ProgressBar(max ?
+ mXpBar = new ProgressBar(this, max ?
static_cast<float>(PlayerInfo::getAttribute(PlayerInfo::EXP))
/ static_cast<float>(max):
static_cast<float>(0), 80, 0, Theme::PROG_EXP);
@@ -190,7 +190,7 @@ StatusWindow::StatusWindow() :
{
max = PlayerInfo::getAttribute(PlayerInfo::MAX_MP);
mMpLabel = new Label(this, _("MP:"));
- mMpBar = new ProgressBar(max ? static_cast<float>(
+ mMpBar = new ProgressBar(this, max ? static_cast<float>(
PlayerInfo::getAttribute(PlayerInfo::MAX_MP))
/ static_cast<float>(max) : static_cast<float>(0),
80, 0, Net::getPlayerHandler()->canUseMagic() ?
@@ -223,7 +223,7 @@ StatusWindow::StatusWindow() :
{
mJobLvlLabel = new Label(this, strprintf(_("Job: %d"), 0));
mJobLabel = new Label(this, _("Job:"));
- mJobBar = new ProgressBar(0.0f, 80, 0, Theme::PROG_JOB);
+ mJobBar = new ProgressBar(this, 0.0f, 80, 0, Theme::PROG_JOB);
place(5, 0, mJobLvlLabel, 3);
place(5, 2, mJobLabel).setPadding(3);