summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.h
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.h
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.h')
-rw-r--r--src/gui/charcreatedialog.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.h b/src/gui/charcreatedialog.h
index a30aadd3..50089a8d 100644
--- a/src/gui/charcreatedialog.h
+++ b/src/gui/charcreatedialog.h
@@ -28,6 +28,8 @@
#include "gui/widgets/window.h"
+#include "gui/charselectdialog.h"
+
#include <guichan/actionlistener.hpp>
#include <string>
@@ -47,7 +49,7 @@ class CharCreateDialog : public Window, public gcn::ActionListener
/**
* Constructor.
*/
- CharCreateDialog(Window *parent, int slot);
+ CharCreateDialog(CharSelectDialog *parent, int slot);
/**
* Destructor.
@@ -66,6 +68,14 @@ class CharCreateDialog : public Window, public gcn::ActionListener
void setFixedGender(bool fixed, Gender gender = GENDER_FEMALE);
+ /**
+ * Notify the CharSelectDialog the character was created successfully.
+ */
+ void success();
+
+ CharSelectDialog *getSelectDialog()
+ { return mCharSelectDialog; }
+
private:
int getDistributedPoints() const;
@@ -83,6 +93,8 @@ class CharCreateDialog : public Window, public gcn::ActionListener
void updateHair();
+ CharSelectDialog *mCharSelectDialog;
+
gcn::TextField *mNameField;
gcn::Label *mNameLabel;
gcn::Button *mNextHairColorButton;