summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-20 00:52:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-20 13:55:43 +0300
commit41adf71a823f475b7f12b00e06056b778311da84 (patch)
tree55925f737e884f756d05a71238f207c03070a7ad /src/gui/charcreatedialog.cpp
parent504219f9df4b9dda139dd832e263a136e51c4851 (diff)
downloadmanaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.gz
manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.bz2
manaverse-41adf71a823f475b7f12b00e06056b778311da84.tar.xz
manaverse-41adf71a823f475b7f12b00e06056b778311da84.zip
Add palette inheritance to button class.
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r--src/gui/charcreatedialog.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp
index d3923f025..049eac714 100644
--- a/src/gui/charcreatedialog.cpp
+++ b/src/gui/charcreatedialog.cpp
@@ -74,18 +74,18 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
mNameLabel(new Label(_("Name:"))),
// TRANSLATORS: This is a narrow symbol used to denote 'next'.
// You may change this symbol if your language uses another.
- mNextHairColorButton(new Button(_(">"), "nextcolor", this)),
+ mNextHairColorButton(new Button(this, _(">"), "nextcolor", this)),
// TRANSLATORS: This is a narrow symbol used to denote 'previous'.
// You may change this symbol if your language uses another.
- mPrevHairColorButton(new Button(_("<"), "prevcolor", this)),
+ mPrevHairColorButton(new Button(this, _("<"), "prevcolor", this)),
mHairColorLabel(new Label(_("Hair color:"))),
mHairColorNameLabel(new Label("")),
- mNextHairStyleButton(new Button(_(">"), "nextstyle", this)),
- mPrevHairStyleButton(new Button(_("<"), "prevstyle", this)),
+ mNextHairStyleButton(new Button(this, _(">"), "nextstyle", this)),
+ mPrevHairStyleButton(new Button(this, _("<"), "prevstyle", this)),
mHairStyleLabel(new Label(_("Hair style:"))),
mHairStyleNameLabel(new Label("")),
- mActionButton(new Button(_("^"), "action", this)),
- mRotateButton(new Button(_(">"), "rotate", this)),
+ mActionButton(new Button(this, _("^"), "action", this)),
+ mRotateButton(new Button(this, _(">"), "rotate", this)),
mMale(new RadioButton(_("Male"), "gender")),
mFemale(new RadioButton(_("Female"), "gender")),
mOther(new RadioButton(_("Other"), "gender")),
@@ -93,8 +93,8 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
strprintf(_("Please distribute %d points"), 99))),
mMaxPoints(0),
mUsedPoints(0),
- mCreateButton(new Button(_("Create"), "create", this)),
- mCancelButton(new Button(_("Cancel"), "cancel", this)),
+ mCreateButton(new Button(this, _("Create"), "create", this)),
+ mCancelButton(new Button(this, _("Cancel"), "cancel", this)),
mRace(0),
mPlayer(new Being(0, ActorSprite::PLAYER, static_cast<uint16_t>(mRace),
nullptr)),
@@ -134,8 +134,8 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *const parent,
if (serverVersion >= 2)
{
- mNextRaceButton = new Button(_(">"), "nextrace", this);
- mPrevRaceButton = new Button(_("<"), "prevrace", this);
+ mNextRaceButton = new Button(this, _(">"), "nextrace", this);
+ mPrevRaceButton = new Button(this, _("<"), "prevrace", this);
mRaceLabel = new Label(_("Race:"));
mRaceNameLabel = new Label("");
}