summaryrefslogtreecommitdiff
path: root/src/gui/char_select.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-01-02 11:34:09 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-01-02 11:34:09 +0000
commit25d7576e6b10e5fa5c6981470d0ccd5f005e5650 (patch)
tree7caa7e6d6294efa410547adcfcb43236ac135920 /src/gui/char_select.h
parent6573cf6072c39396d2526edeff41449ea16e7288 (diff)
downloadmana-25d7576e6b10e5fa5c6981470d0ccd5f005e5650.tar.gz
mana-25d7576e6b10e5fa5c6981470d0ccd5f005e5650.tar.bz2
mana-25d7576e6b10e5fa5c6981470d0ccd5f005e5650.tar.xz
mana-25d7576e6b10e5fa5c6981470d0ccd5f005e5650.zip
Smoothed also character creation, buttons are now disabled during connection/data phase.
Diffstat (limited to 'src/gui/char_select.h')
-rw-r--r--src/gui/char_select.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/gui/char_select.h b/src/gui/char_select.h
index 3692c1e4..a00ada26 100644
--- a/src/gui/char_select.h
+++ b/src/gui/char_select.h
@@ -108,6 +108,8 @@ class CharCreateDialog : public Window, public gcn::ActionListener
* Constructor.
*/
CharCreateDialog(Window *parent = NULL);
+
+ void logic();
void action(const std::string& eventId);
@@ -126,12 +128,18 @@ class CharCreateDialog : public Window, public gcn::ActionListener
gcn::Button *cancelButton;
PlayerBox *playerBox;
+
+ int mStatus;
/**
- * Communicate character creation to the server and receive new char
- * info.
+ * Communicate character creation to the server.
+ */
+ void attemptCharCreate();
+
+ /**
+ * Receive new char info.
*/
- void serverCharCreate();
+ void checkCharCreate();
};
void charSelectInputHandler(SDL_KeyboardEvent *keyEvent);