summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-12-22 22:18:06 +0300
committerAndrei Karas <akaras@inbox.ru>2011-12-22 22:18:06 +0300
commit2ad5d25e30d7247d67a4784a6cb9e96245643960 (patch)
tree31011dad08cd3835d7cfaa73d478bd38fc5aaeca /src
parente9a9f2592c9d8919550c46a15f0b43a6bc230422 (diff)
downloadplus-2ad5d25e30d7247d67a4784a6cb9e96245643960.tar.gz
plus-2ad5d25e30d7247d67a4784a6cb9e96245643960.tar.bz2
plus-2ad5d25e30d7247d67a4784a6cb9e96245643960.tar.xz
plus-2ad5d25e30d7247d67a4784a6cb9e96245643960.zip
Fix create char dialog size and widgets positions.
Diffstat (limited to 'src')
-rw-r--r--src/gui/charcreatedialog.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp
index d621caa96..42b54df05 100644
--- a/src/gui/charcreatedialog.cpp
+++ b/src/gui/charcreatedialog.cpp
@@ -124,24 +124,24 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot):
mAttributesLeft = new Label(
strprintf(_("Please distribute %d points"), 99));
- int w = 200;
+ int w = 280;
int h = 330;
setContentSize(w, h);
- mPlayerBox->setDimension(gcn::Rectangle(80, 30, 110, 85));
+ mPlayerBox->setDimension(gcn::Rectangle(145, 35, 110, 87));
mNameLabel->setPosition(5, 5);
mNameField->setDimension(
- gcn::Rectangle(45, 5, w - 45 - 7, mNameField->getHeight()));
- mPrevHairColorButton->setPosition(90, 35);
- mNextHairColorButton->setPosition(165, 35);
+ gcn::Rectangle(60, 5, w - 60 - 7, mNameField->getHeight()));
+ mPrevHairColorButton->setPosition(155, 35);
+ mNextHairColorButton->setPosition(230, 35);
mHairColorLabel->setPosition(5, 40);
- mPrevHairStyleButton->setPosition(90, 64);
- mNextHairStyleButton->setPosition(165, 64);
+ mPrevHairStyleButton->setPosition(155, 64);
+ mNextHairStyleButton->setPosition(230, 64);
mHairStyleLabel->setPosition(5, 70);
if (serverVersion >= 2)
{
- mPrevRaceButton->setPosition(90, 93);
- mNextRaceButton->setPosition(165, 93);
+ mPrevRaceButton->setPosition(155, 93);
+ mNextRaceButton->setPosition(230, 93);
mRaceLabel->setPosition(5, 100);
}
@@ -365,17 +365,18 @@ void CharCreateDialog::setAttributes(const std::vector<std::string> &labels,
mAttributeLabel[i] = new Label(labels[i]);
mAttributeLabel[i]->setWidth(70);
mAttributeLabel[i]->setPosition(5, 140 + i*20);
+ mAttributeLabel[i]->adjustSize();
add(mAttributeLabel[i]);
mAttributeSlider[i] = new Slider(min, max);
- mAttributeSlider[i]->setDimension(gcn::Rectangle(75, 140 + i * 20,
+ mAttributeSlider[i]->setDimension(gcn::Rectangle(140, 140 + i * 20,
100, 10));
mAttributeSlider[i]->setActionEventId("statslider");
mAttributeSlider[i]->addActionListener(this);
add(mAttributeSlider[i]);
mAttributeValue[i] = new Label(toString(min));
- mAttributeValue[i]->setPosition(180, 140 + i*20);
+ mAttributeValue[i]->setPosition(245, 140 + i*20);
add(mAttributeValue[i]);
}