diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-20 18:41:21 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2007-03-20 18:41:21 +0000 |
commit | dd582e1d87d04dfba74b5bc2b60333ddc045a100 (patch) | |
tree | 3ee781e289b6d128b6e5771501f100b87850d6d4 /src/gui/char_select.h | |
parent | c97b885b0306f29b3bf412b7d05752e40eb2c0d4 (diff) | |
download | mana-dd582e1d87d04dfba74b5bc2b60333ddc045a100.tar.gz mana-dd582e1d87d04dfba74b5bc2b60333ddc045a100.tar.bz2 mana-dd582e1d87d04dfba74b5bc2b60333ddc045a100.tar.xz mana-dd582e1d87d04dfba74b5bc2b60333ddc045a100.zip |
Implemented a GUI for distributing the characters attributes at character creation.
Diffstat (limited to 'src/gui/char_select.h')
-rw-r--r-- | src/gui/char_select.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/char_select.h b/src/gui/char_select.h index 7136f301..1b747607 100644 --- a/src/gui/char_select.h +++ b/src/gui/char_select.h @@ -119,6 +119,9 @@ class CharCreateDialog : public Window, public gcn::ActionListener std::string getName(); private: + int getDistributedPoints(); + void UpdateSliders(); + gcn::TextField *mNameField; gcn::Label *mNameLabel; gcn::Button *mNextHairColorButton; @@ -127,6 +130,12 @@ class CharCreateDialog : public Window, public gcn::ActionListener gcn::Button *mNextHairStyleButton; gcn::Button *mPrevHairStyleButton; gcn::Label *mHairStyleLabel; + + gcn::Slider *mAttributeSlider[7]; + gcn::Label *mAttributeLable[7]; + gcn::Label *mAttributeValue[7]; + gcn::Label *mAttributesLeft; + gcn::Button *mCreateButton; gcn::Button *mCancelButton; @@ -135,6 +144,9 @@ class CharCreateDialog : public Window, public gcn::ActionListener int mSlot; + static const int mMaxPoints = 70; + int mUsedPoints; + /** * Communicate character creation to the server. |