summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-10-03 18:12:52 -0600
committerJared Adams <jaxad0127@gmail.com>2009-10-03 18:12:52 -0600
commit447232f0ad7dd94372424389336b0a53ed332597 (patch)
treef0aded965b96fed35fbe7ff2a9cf10700b923ce8 /src/gui/charcreatedialog.cpp
parent0269b1f766a4e9e8ded91505855cff58c18086e2 (diff)
downloadMana-447232f0ad7dd94372424389336b0a53ed332597.tar.gz
Mana-447232f0ad7dd94372424389336b0a53ed332597.tar.bz2
Mana-447232f0ad7dd94372424389336b0a53ed332597.tar.xz
Mana-447232f0ad7dd94372424389336b0a53ed332597.zip
Update the CharSelectDialog after char creation
Diffstat (limited to 'src/gui/charcreatedialog.cpp')
-rw-r--r--src/gui/charcreatedialog.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp
index 87be2be3..86a8bf2b 100644
--- a/src/gui/charcreatedialog.cpp
+++ b/src/gui/charcreatedialog.cpp
@@ -50,8 +50,9 @@
#include <guichan/font.hpp>
-CharCreateDialog::CharCreateDialog(Window *parent, int slot):
+CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot):
Window(_("Create Character"), true, parent),
+ mCharSelectDialog(parent),
mSlot(slot)
{
mPlayer = new Player(0, 0, NULL);
@@ -341,6 +342,11 @@ void CharCreateDialog::setFixedGender(bool fixed, Gender gender)
}
}
+void CharCreateDialog::success()
+{
+ mCharSelectDialog->update(mSlot);
+}
+
void CharCreateDialog::updateHair()
{
mHairStyle %= Being::getNumOfHairstyles();