summaryrefslogtreecommitdiff
path: root/src/gui/char_select.h
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-01-04 20:28:57 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-01-04 20:28:57 +0000
commit34b19f52d2f4a0b8e7eecf0900d1760460390b9d (patch)
tree0e1ddf0575ec5780d988623daf4fc25d813fc1fd /src/gui/char_select.h
parent180f39cb9da6e3169f95e9da5c8782c50f826af4 (diff)
downloadmana-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.tar.gz
mana-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.tar.bz2
mana-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.tar.xz
mana-34b19f52d2f4a0b8e7eecf0900d1760460390b9d.zip
Reverted r0nny changes, enabled 3 slots to create players, smoothed player deletion.
Diffstat (limited to 'src/gui/char_select.h')
-rw-r--r--src/gui/char_select.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gui/char_select.h b/src/gui/char_select.h
index a00ada26..7db67699 100644
--- a/src/gui/char_select.h
+++ b/src/gui/char_select.h
@@ -58,6 +58,8 @@ class CharSelectDialog : public Window, public gcn::ActionListener
gcn::Button *cancelButton;
gcn::Button *newCharButton;
gcn::Button *delCharButton;
+ gcn::Button *previousButton;
+ gcn::Button *nextButton;
gcn::Label *nameLabel;
gcn::Label *levelLabel;
@@ -65,13 +67,21 @@ class CharSelectDialog : public Window, public gcn::ActionListener
gcn::Label *moneyLabel;
int mStatus;
+ int mCurrentSlot;
PlayerBox *playerBox;
+
+ void changeSlot(int slot);
/**
* Communicate character deletion to the server.
*/
- void serverCharDelete();
+ void attemptCharDelete();
+
+ /**
+ * Check server answer.
+ */
+ void checkCharDelete();
/**
* Communicate character selection to the server.
@@ -91,8 +101,10 @@ class CharSelectDialog : public Window, public gcn::ActionListener
public:
CharDeleteConfirm(CharSelectDialog *master);
void action(const std::string &eventId);
+ void logic();
private:
CharSelectDialog *master;
+ int mStatus;
};
};
@@ -107,7 +119,7 @@ class CharCreateDialog : public Window, public gcn::ActionListener
/**
* Constructor.
*/
- CharCreateDialog(Window *parent = NULL);
+ CharCreateDialog(Window *parent = NULL, int slot = 0);
void logic();
@@ -130,6 +142,7 @@ class CharCreateDialog : public Window, public gcn::ActionListener
PlayerBox *playerBox;
int mStatus;
+ int mSlot;
/**
* Communicate character creation to the server.