summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-07-30 21:30:21 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-07-30 21:32:37 +0200
commit3b22c2cf170c877904dcef5a4af03ac360bd0581 (patch)
treeeef31fccf35ca187eeb6c9ecf663ffd3e07d316f
parentb942bd30079808e2bfd6be98cfcd88aacb2d678b (diff)
downloadmana-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.cpp10
-rw-r--r--src/net/manaserv/charhandler.cpp5
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()