summaryrefslogtreecommitdiff
path: root/src/gui/ministatuswindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-04 17:00:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-04 17:30:17 +0300
commit7a7f5905cf19f6a773dcf9bab762b54c16e325f2 (patch)
tree4c891cfaa2eadeecd0685782d8cf561c2a79dbf8 /src/gui/ministatuswindow.cpp
parent0c7a1466e8c2c2dd6e15779368c87b62b2da601f (diff)
downloadmv-7a7f5905cf19f6a773dcf9bab762b54c16e325f2.tar.gz
mv-7a7f5905cf19f6a773dcf9bab762b54c16e325f2.tar.bz2
mv-7a7f5905cf19f6a773dcf9bab762b54c16e325f2.tar.xz
mv-7a7f5905cf19f6a773dcf9bab762b54c16e325f2.zip
Add support for padding in progress bars.
Also fixed progress bars size. New progress bar attributes: fillPadding - padding for will rectangle padding - normal padding for bar
Diffstat (limited to 'src/gui/ministatuswindow.cpp')
-rw-r--r--src/gui/ministatuswindow.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp
index b219d23c7..5aa22800b 100644
--- a/src/gui/ministatuswindow.cpp
+++ b/src/gui/ministatuswindow.cpp
@@ -53,22 +53,22 @@ extern volatile int tick_time;
MiniStatusWindow::MiniStatusWindow() :
Popup("MiniStatus", "ministatus.xml"),
InventoryListener(),
- mHpBar(createBar(0, 100, 20, Theme::PROG_HP, "hp bar", _("health bar"))),
+ mHpBar(createBar(0, 100, 0, Theme::PROG_HP, "hp bar", _("health bar"))),
mMpBar(Net::getGameHandler()->canUseMagicBar()
- ? createBar(0, 100, 20, Net::getPlayerHandler()->canUseMagic()
+ ? createBar(0, 100, 0, Net::getPlayerHandler()->canUseMagic()
? Theme::PROG_MP : Theme::PROG_NO_MP, "mp bar", _("mana bar"))
: nullptr),
- mXpBar(createBar(0, 100, 20, Theme::PROG_EXP,
+ mXpBar(createBar(0, 100, 0, Theme::PROG_EXP,
"xp bar", _("experience bar"))),
- mWeightBar(createBar(0, 140, 20, Theme::PROG_WEIGHT,
+ mWeightBar(createBar(0, 140, 0, Theme::PROG_WEIGHT,
"weight bar", _("weight bar"))),
- mInvSlotsBar(createBar(0, 45, 20, Theme::PROG_INVY_SLOTS,
+ mInvSlotsBar(createBar(0, 45, 0, Theme::PROG_INVY_SLOTS,
"inventory slots bar", _("inventory slots bar"))),
- mMoneyBar(createBar(0, 130, 20, Theme::PROG_INVY_SLOTS,
+ mMoneyBar(createBar(0, 130, 0, Theme::PROG_INVY_SLOTS,
"money bar", _("money bar"))),
- mArrowsBar(createBar(0, 50, 20, Theme::PROG_INVY_SLOTS,
+ mArrowsBar(createBar(0, 50, 0, Theme::PROG_INVY_SLOTS,
"arrows bar", _("arrows bar"))),
- mStatusBar(createBar(100, 165, 20, Theme::PROG_EXP,
+ mStatusBar(createBar(100, 165, 0, Theme::PROG_EXP,
"status bar", _("status bar"))),
mTextPopup(new TextPopup),
mStatusPopup(new StatusPopup)
@@ -87,7 +87,7 @@ MiniStatusWindow::MiniStatusWindow() :
if (job)
{
- mJobBar = createBar(0, 100, 20, Theme::PROG_JOB, "job bar",
+ mJobBar = createBar(0, 100, 0, Theme::PROG_JOB, "job bar",
_("job bar"));
StatusWindow::updateJobBar(mJobBar);
}