summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2012-02-09 08:26:46 +0100
committerStefan Dombrowski <stefan@uni-bonn.de>2012-02-09 08:26:46 +0100
commitaba7d57bfba218188b706e400390ca710431712b (patch)
treecfc06ace9ca9513db14e543dceaca8918dfc0aae
parent16650d96a7d535e3b977150c0e7acaa3363926c1 (diff)
downloadmana-aba7d57bfba218188b706e400390ca710431712b.tar.gz
mana-aba7d57bfba218188b706e400390ca710431712b.tar.bz2
mana-aba7d57bfba218188b706e400390ca710431712b.tar.xz
mana-aba7d57bfba218188b706e400390ca710431712b.zip
Show status effect icons again and position adjust
The icon for #betsanc is still shown too high. Reviewed-by: Ablu, Bertram
-rw-r--r--src/gui/ministatuswindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/ministatuswindow.cpp b/src/gui/ministatuswindow.cpp
index fac8b35f..a2fa3ae7 100644
--- a/src/gui/ministatuswindow.cpp
+++ b/src/gui/ministatuswindow.cpp
@@ -50,6 +50,7 @@ MiniStatusWindow::MiniStatusWindow():
Popup("MiniStatus")
{
listen(Event::AttributesChannel);
+ listen(Event::ActorSpriteChannel);
mHpBar = new ProgressBar(0, 100, 20, Theme::PROG_HP);
StatusWindow::updateHPBar(mHpBar);
@@ -108,12 +109,12 @@ void MiniStatusWindow::eraseIcon(int index)
void MiniStatusWindow::drawIcons(Graphics *graphics)
{
// Draw icons
- int icon_x = mXpBar->getX() + mXpBar->getWidth() + 4;
+ int icon_x = mXpBar->getX() + mXpBar->getWidth() + 14;
for (unsigned int i = 0; i < mIcons.size(); i++)
{
if (mIcons[i])
{
- mIcons[i]->draw(graphics, icon_x, 3);
+ mIcons[i]->draw(graphics, icon_x, 15);
icon_x += 2 + mIcons[i]->getWidth();
}
}