diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-01-14 12:37:04 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-01-14 12:37:04 +0000 |
commit | cfac9a371a684a3a6f37bad725094b7e2d80a7d1 (patch) | |
tree | 3b7b054790e5e3c9570bfe2e25bce9eaae82423b /src/gui | |
parent | c95ea5d96cf774a7e800c68dd45e1a7c4fd68ccb (diff) | |
download | mana-cfac9a371a684a3a6f37bad725094b7e2d80a7d1.tar.gz mana-cfac9a371a684a3a6f37bad725094b7e2d80a7d1.tar.bz2 mana-cfac9a371a684a3a6f37bad725094b7e2d80a7d1.tar.xz mana-cfac9a371a684a3a6f37bad725094b7e2d80a7d1.zip |
*** empty log message ***
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/stats.cpp | 7 | ||||
-rw-r--r-- | src/gui/stats.h | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/stats.cpp b/src/gui/stats.cpp index f3ba8bbf..8f2a20f4 100644 --- a/src/gui/stats.cpp +++ b/src/gui/stats.cpp @@ -74,6 +74,7 @@ StatsWindow::StatsWindow(): void StatsWindow::update(){ std::stringstream statsStr[6]; std::stringstream figureStr[6]; + std::stringstream remainingStatsPointsStr; statsStr[0] << "Strength:"; figureStr[0] << (int)char_info->STR; @@ -88,6 +89,9 @@ void StatsWindow::update(){ statsStr[5] << "Luck:"; figureStr[5] << (int)char_info->LUK; + // for testing only... + remainingStatsPointsStr << "Remaining Status Points : " << char_info->statsPointsToAttribute; + // Update labels for (i = 0; i < 6; i++) { statsLabel[i]->setCaption(statsStr[i].str()); @@ -95,7 +99,7 @@ void StatsWindow::update(){ statsDisplayLabel[i]->setCaption(figureStr[i].str()); statsDisplayLabel[i]->adjustSize(); } - remainingStatsPointsLabel->setCaption("Remaing Status Points : ??"); + remainingStatsPointsLabel->setCaption(remainingStatsPointsStr.str()); remainingStatsPointsLabel->adjustSize(); } @@ -140,6 +144,7 @@ void StatsWindow::action(const std::string& eventId) { if (eventId == "LUK") { WFIFOW(2) = net_w_value(0x0012); } + flush(); update(); } diff --git a/src/gui/stats.h b/src/gui/stats.h index 05769fc2..b730aefb 100644 --- a/src/gui/stats.h +++ b/src/gui/stats.h @@ -56,7 +56,7 @@ class StatsWindow : public Window, public gcn::ActionListener { */ gcn::Label *statsLabel[6]; gcn::Label *statsDisplayLabel[6]; - //gcn::Label *remainingStatsPointsLabel; + gcn::Label *remainingStatsPointsLabel; /** * Stats buttons. |