summaryrefslogtreecommitdiff
path: root/src/gui/charcreatedialog.h
diff options
context:
space:
mode:
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;