From aba7d57bfba218188b706e400390ca710431712b Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Thu, 9 Feb 2012 08:26:46 +0100 Subject: Show status effect icons again and position adjust The icon for #betsanc is still shown too high. Reviewed-by: Ablu, Bertram --- src/gui/ministatuswindow.cpp | 5 +++-- 1 file 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(); } } -- cgit v1.2.3-70-g09d2