diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-05 16:54:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-05 16:54:23 +0300 |
commit | c6bbebbb52e08c456facaf4649f0d5ea3f45840d (patch) | |
tree | 8fa3df5835fb1f6f5a2a8f926bba49c9fe60f941 /src | |
parent | c1d3ba3868c7da2bf0ab1e048ffa0c5a4fdfa9ad (diff) | |
download | manaplus-c6bbebbb52e08c456facaf4649f0d5ea3f45840d.tar.gz manaplus-c6bbebbb52e08c456facaf4649f0d5ea3f45840d.tar.bz2 manaplus-c6bbebbb52e08c456facaf4649f0d5ea3f45840d.tar.xz manaplus-c6bbebbb52e08c456facaf4649f0d5ea3f45840d.zip |
Remove legace gender specific code from char creation dialog.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 58 | ||||
-rw-r--r-- | src/gui/windows/charcreatedialog.h | 4 |
2 files changed, 0 insertions, 62 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 4d2e4ae2d..802340dd3 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -113,12 +113,6 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mActionButton(new Button(this, _("^"), "action", this)), // TRANSLATORS: char create dialog button mRotateButton(new Button(this, _(">"), "rotate", this)), - // TRANSLATORS: char create dialog button - mMale(new RadioButton(this, _("Male"), "gender")), - // TRANSLATORS: char create dialog button - mFemale(new RadioButton(this, _("Female"), "gender")), - // TRANSLATORS: char create dialog button - mOther(new RadioButton(this, _("Other"), "gender")), mAttributeSlider(), mAttributeLabel(), mAttributeValue(), @@ -238,17 +232,6 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, mGenderStrip->setHeight(50); } - // Default to a Male character - mMale->setSelected(true); - - mMale->setActionEventId("gender"); - mFemale->setActionEventId("gender"); - mOther->setActionEventId("gender"); - - mMale->addActionListener(this); - mFemale->addActionListener(this); - mOther->addActionListener(this); - mPlayerBox->setWidth(74); mNameField->setActionEventId("create"); @@ -302,10 +285,6 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, updateSliders(); setButtonsPosition(w, h); - mMale->setPosition(30, 120); - mFemale->setPosition(100, 120); - mOther->setPosition(170, 120); - add(mPlayerBox); add(mNameField); add(mNameLabel); @@ -340,10 +319,6 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent, add(mCreateButton); add(mCancelButton); - add(mMale); - add(mFemale); - add(mOther); - center(); setVisible(true); mNameField->requestFocus(); @@ -454,13 +429,6 @@ void CharCreateDialog::action(const ActionEvent &event) { updateSliders(); } - else if (id == "gender") - { - if (mMale->isSelected()) - mPlayer->setGender(Gender::MALE); - else - mPlayer->setGender(Gender::FEMALE); - } else if (id == "action") { mAction ++; @@ -614,33 +582,7 @@ void CharCreateDialog::setFixedGender(const bool fixed, const Gender::Type gender) { mDefaultGender = gender; - if (gender == Gender::FEMALE) - { - mFemale->setSelected(true); - mMale->setSelected(false); - mOther->setSelected(false); - } - else if (gender == Gender::MALE) - { - mFemale->setSelected(false); - mMale->setSelected(true); - mOther->setSelected(false); - } - else - { - mFemale->setSelected(false); - mMale->setSelected(false); - mOther->setSelected(true); - } - mPlayer->setGender(gender); - - if (fixed) - { - mMale->setVisible(false); - mFemale->setVisible(false); - mOther->setVisible(false); - } } void CharCreateDialog::updateHair() diff --git a/src/gui/windows/charcreatedialog.h b/src/gui/windows/charcreatedialog.h index 9215d2805..79aa1fe6a 100644 --- a/src/gui/windows/charcreatedialog.h +++ b/src/gui/windows/charcreatedialog.h @@ -129,10 +129,6 @@ class CharCreateDialog final : public Window, Button *mActionButton; Button *mRotateButton; - RadioButton *mMale; - RadioButton *mFemale; - RadioButton *mOther; - std::vector<Slider*> mAttributeSlider; std::vector<Label*> mAttributeLabel; std::vector<Label*> mAttributeValue; |