From 82c7ecf7a838c43771a676bb9311f9a1fc403f67 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 22 Mar 2007 23:53:13 +0000 Subject: Clarified the error message when character creation fails and made sure the character creation dialog doesn't close when creation failed. --- src/gui/char_select.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/gui/char_select.h') diff --git a/src/gui/char_select.h b/src/gui/char_select.h index d6b53044..754362c3 100644 --- a/src/gui/char_select.h +++ b/src/gui/char_select.h @@ -116,9 +116,17 @@ class CharCreateDialog : public Window, public gcn::ActionListener */ ~CharCreateDialog(); - void action(const gcn::ActionEvent &event); + void + action(const gcn::ActionEvent &event); - std::string getName(); + const std::string& + getName(); + + /** + * Unlocks the dialog, enabling the create character button again. + */ + void + unlock(); private: Network *mNetwork; -- cgit v1.2.3-70-g09d2