diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-07 20:19:10 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-07 20:19:10 +0200 |
commit | 7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a (patch) | |
tree | 2499b2198dc1efae9d7f15e021c0574a95a0c95a /src/gui/statuswindow.cpp | |
parent | ef1975a3eb4e1986601ad154bf184e0de332870c (diff) | |
download | mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.tar.gz mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.tar.bz2 mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.tar.xz mana-7b559dcf64e5814cf4cde7e7db52c2e9f6a7357a.zip |
Used custom widgets where appropriate and some cleanup
Replaced many gcn::Label with Label, gcn::Slider with Slider in
character creation dialog. Also cleaned up includes.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r-- | src/gui/statuswindow.cpp | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index 31b2da90..492ccd50 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -21,16 +21,15 @@ #include "statuswindow.h" -#include <guichan/widgets/label.hpp> +#include "gui/button.h" +#include "gui/label.h" +#include "gui/progressbar.h" +#include "gui/windowcontainer.h" -#include "button.h" -#include "progressbar.h" -#include "windowcontainer.h" +#include "localplayer.h" -#include "../localplayer.h" - -#include "../utils/strprintf.h" -#include "../utils/stringutils.h" +#include "utils/strprintf.h" +#include "utils/stringutils.h" StatusWindow::StatusWindow(LocalPlayer *player): Window(player->getName()), @@ -47,12 +46,12 @@ StatusWindow::StatusWindow(LocalPlayer *player): // Status Part // ---------------------- - mLvlLabel = new gcn::Label("Level:"); - mMoneyLabel = new gcn::Label("Money:"); + mLvlLabel = new Label("Level:"); + mMoneyLabel = new Label("Money:"); - mHpLabel = new gcn::Label("HP:"); + mHpLabel = new Label("HP:"); mHpBar = new ProgressBar(1.0f, 80, 15, 0, 171, 34); - mHpValueLabel = new gcn::Label(""); + mHpValueLabel = new Label; int y = 3; int x = 5; @@ -84,34 +83,34 @@ StatusWindow::StatusWindow(LocalPlayer *player): // ---------------------- // Static Labels - gcn::Label *mStatsTitleLabel = new gcn::Label("Stats"); - gcn::Label *mStatsTotalLabel = new gcn::Label("Total"); + gcn::Label *mStatsTitleLabel = new Label("Stats"); + gcn::Label *mStatsTotalLabel = new Label("Total"); // Derived Stats /* - mStatsAttackLabel = new gcn::Label("Attack:"); - mStatsDefenseLabel= new gcn::Label("Defense:"); - mStatsMagicAttackLabel = new gcn::Label("M.Attack:"); - mStatsMagicDefenseLabel = new gcn::Label("M.Defense:"); - mStatsAccuracyLabel = new gcn::Label("% Accuracy:"); - mStatsEvadeLabel = new gcn::Label("% Evade:"); - mStatsReflexLabel = new gcn::Label("% Reflex:"); - - mStatsAttackPoints = new gcn::Label(""); - mStatsDefensePoints = new gcn::Label(""); - mStatsMagicAttackPoints = new gcn::Label(""); - mStatsMagicDefensePoints = new gcn::Label(""); - mStatsAccuracyPoints = new gcn::Label("% Accuracy:"); - mStatsEvadePoints = new gcn::Label("% Evade:"); - mStatsReflexPoints = new gcn::Label("% Reflex:"); + mStatsAttackLabel = new Label("Attack:"); + mStatsDefenseLabel= new Label("Defense:"); + mStatsMagicAttackLabel = new Label("M.Attack:"); + mStatsMagicDefenseLabel = new Label("M.Defense:"); + mStatsAccuracyLabel = new Label("% Accuracy:"); + mStatsEvadeLabel = new Label("% Evade:"); + mStatsReflexLabel = new Label("% Reflex:"); + + mStatsAttackPoints = new Label; + mStatsDefensePoints = new Label; + mStatsMagicAttackPoints = new Label; + mStatsMagicDefensePoints = new Label; + mStatsAccuracyPoints = new Label("% Accuracy:"); + mStatsEvadePoints = new Label("% Evade:"); + mStatsReflexPoints = new Label("% Reflex:"); */ // New labels for (int i = 0; i < 6; i++) { - mStatsLabel[i] = new gcn::Label(); - mStatsDisplayLabel[i] = new gcn::Label(); + mStatsLabel[i] = new Label; + mStatsDisplayLabel[i] = new Label; } - mCharacterPointsLabel = new gcn::Label(); - mCorrectionPointsLabel = new gcn::Label(); + mCharacterPointsLabel = new Label; + mCorrectionPointsLabel = new Label; // Set button events Id mStatsPlus[0] = new Button("+", "STR+", this); |