diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-10-04 15:57:11 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-10-04 15:57:11 +0000 |
commit | 623fa32c10d7fda1240c256eefd05a7157662198 (patch) | |
tree | 3a952d236cae7f355946fb62c16f62091bfc9d4b /src | |
parent | 7333a74b2c59c5baa4dbd987df7624cdab13585a (diff) | |
download | mana-623fa32c10d7fda1240c256eefd05a7157662198.tar.gz mana-623fa32c10d7fda1240c256eefd05a7157662198.tar.bz2 mana-623fa32c10d7fda1240c256eefd05a7157662198.tar.xz mana-623fa32c10d7fda1240c256eefd05a7157662198.zip |
Changed the font in the ministatus win. Fixed some coords bugs when the stats displayed were high.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/ministatus.cpp | 4 | ||||
-rw-r--r-- | src/gui/status.cpp | 13 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index 01d7330c..adfda434 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -26,6 +26,7 @@ #include <guichan/widgets/label.hpp> #include <sstream> +#include "gui.h" #include "progressbar.h" #include "../playerinfo.h" @@ -48,6 +49,8 @@ MiniStatusWindow::MiniStatusWindow(): hpLabel = new gcn::Label(""); mpLabel = new gcn::Label(""); + hpLabel->setFont((gcn::Font*)speechFont); + mpLabel->setFont((gcn::Font*)speechFont); add(hpBar); add(mpBar); @@ -106,6 +109,5 @@ void MiniStatusWindow::update() void MiniStatusWindow::draw(gcn::Graphics *graphics) { update(); - Window::drawContent(graphics); } diff --git a/src/gui/status.cpp b/src/gui/status.cpp index 1b570d2a..1a858297 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -413,6 +413,19 @@ void StatusWindow::update() statsReflexPoints->setCaption(updateText.str()); statsReflexPoints->adjustSize(); + // Update Second column widgets position + gpLabel->setPosition(lvlLabel->getX() + lvlLabel->getWidth() + 20, lvlLabel->getY()); + + xpLabel->setPosition(hpValueLabel->getX() + hpValueLabel->getWidth() + 10, + hpLabel->getY()); + xpBar->setPosition(xpLabel->getX() + xpLabel->getWidth() + 5, + xpLabel->getY()); + xpValueLabel->setPosition(xpBar->getX() + xpBar->getWidth() + 5, + xpLabel->getY()); + + jobXpLabel->setPosition(xpLabel->getX(), mpLabel->getY()); + jobXpBar->setPosition(xpBar->getX(),jobXpLabel->getY()); + jobValueLabel->setPosition(290, jobXpLabel->getY()); } void StatusWindow::draw(gcn::Graphics *graphics) |