31#include <guichan/actionlistener.hpp>
52 void action(
const gcn::ActionEvent &event)
override;
61 unsigned min,
unsigned max);
Character creation dialog.
void setAttributes(const std::vector< std::string > &labels, unsigned available, unsigned min, unsigned max)
void attemptCharCreate()
Communicate character creation to the server.
std::vector< int > mAttributes
CharSelectDialog * mCharSelectDialog
~CharCreateDialog() override
gcn::RadioButton * mFemale
gcn::Label * mAttributesLeft
std::vector< gcn::Label * > mAttributeLabel
gcn::TextField * mNameField
std::vector< gcn::Label * > mAttributeValue
std::vector< gcn::Slider * > mAttributeSlider
gcn::Button * mCancelButton
std::string getName() const
Returns the name of the character to create.
void setDefaultGender(Gender gender)
gcn::Button * mCreateButton
std::vector< int > mHairColorsIds
std::vector< int > mHairStylesIds
void unlock()
Unlocks the dialog, enabling the create character button again.
void action(const gcn::ActionEvent &event) override
Character selection dialog.
The local player character.
A box showing a player character.