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/charcreatedialog.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/charcreatedialog.cpp')
-rw-r--r-- | src/gui/charcreatedialog.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index 8922c8f6..f174ceb5 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -51,8 +51,6 @@ #include <guichan/font.hpp> -#include <string> - CharCreateDialog::CharCreateDialog(Window *parent, int slot): Window(_("Create Character"), true, parent), mSlot(slot) @@ -94,7 +92,7 @@ CharCreateDialog::CharCreateDialog(Window *parent, int slot): mNameField->setActionEventId("create"); mNameField->addActionListener(this); - mAttributesLeft = new gcn::Label(strprintf(_("Please distribute %d points"), 99)); + mAttributesLeft = new Label(strprintf(_("Please distribute %d points"), 99)); int w = 200; int h = 330; @@ -285,18 +283,18 @@ void CharCreateDialog::setAttributes(std::vector<std::string> labels, for (unsigned i = 0; i < labels.size(); i++) { - mAttributeLabel[i] = new gcn::Label(labels[i]); + mAttributeLabel[i] = new Label(labels[i]); mAttributeLabel[i]->setWidth(70); mAttributeLabel[i]->setPosition(5, 140 + i*20); add(mAttributeLabel[i]); - mAttributeSlider[i] = new gcn::Slider(min, max); + mAttributeSlider[i] = new Slider(min, max); mAttributeSlider[i]->setDimension(gcn::Rectangle(75, 140 + i*20, 100, 10)); mAttributeSlider[i]->setActionEventId("statslider"); mAttributeSlider[i]->addActionListener(this); add(mAttributeSlider[i]); - mAttributeValue[i] = new gcn::Label(toString(min)); + mAttributeValue[i] = new Label(toString(min)); mAttributeValue[i]->setPosition(180, 140 + i*20); add(mAttributeValue[i]); } |