diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-30 21:30:21 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-07-30 21:32:37 +0200 |
commit | 3b22c2cf170c877904dcef5a4af03ac360bd0581 (patch) | |
tree | eef31fccf35ca187eeb6c9ecf663ffd3e07d316f | |
parent | b942bd30079808e2bfd6be98cfcd88aacb2d678b (diff) | |
download | mana-3b22c2cf170c877904dcef5a4af03ac360bd0581.tar.gz mana-3b22c2cf170c877904dcef5a4af03ac360bd0581.tar.bz2 mana-3b22c2cf170c877904dcef5a4af03ac360bd0581.tar.xz mana-3b22c2cf170c877904dcef5a4af03ac360bd0581.zip |
Hacked away the sliders in the character create dialog. Better not try connecting to tmwAthena server.
-rw-r--r-- | src/gui/charcreatedialog.cpp | 10 | ||||
-rw-r--r-- | src/net/manaserv/charhandler.cpp | 5 |
2 files changed, 4 insertions, 11 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp index a36dfadf..931735f8 100644 --- a/src/gui/charcreatedialog.cpp +++ b/src/gui/charcreatedialog.cpp @@ -101,11 +101,8 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot): mNameField->setActionEventId("create"); mNameField->addActionListener(this); - mAttributesLeft = new Label( - strprintf(_("Please distribute %d points"), 99)); - int w = 200; - int h = 330; + int h = 160; setContentSize(w, h); mPlayerBox->setDimension(gcn::Rectangle(80, 30, 110, 85)); mNameLabel->setPosition(5, 5); @@ -117,7 +114,6 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot): mPrevHairStyleButton->setPosition(90, 64); mNextHairStyleButton->setPosition(165, 64); mHairStyleLabel->setPosition(5, 70); - mAttributesLeft->setPosition(15, 280); updateSliders(); mCancelButton->setPosition( w - 5 - mCancelButton->getWidth(), @@ -138,7 +134,6 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot): add(mNextHairStyleButton); add(mPrevHairStyleButton); add(mHairStyleLabel); - add(mAttributesLeft); add(mCreateButton); add(mCancelButton); @@ -240,6 +235,9 @@ std::string CharCreateDialog::getName() const void CharCreateDialog::updateSliders() { + if (Net::getNetworkType() == ServerInfo::MANASERV) + return; + for (unsigned i = 0; i < mAttributeSlider.size(); i++) { // Update captions diff --git a/src/net/manaserv/charhandler.cpp b/src/net/manaserv/charhandler.cpp index e809bfac..32b3feb5 100644 --- a/src/net/manaserv/charhandler.cpp +++ b/src/net/manaserv/charhandler.cpp @@ -290,11 +290,6 @@ void CharHandler::setCharCreateDialog(CharCreateDialog *window) if (!mCharCreateDialog) return; - - mCharCreateDialog->setAttributes(Attributes::getLabels(), - Attributes::getCreationPoints(), - Attributes::getAttributeMinimum(), - Attributes::getAttributeMaximum()); } void CharHandler::requestCharacters() |