summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r--src/gui/charselectdialog.h37
1 files changed, 9 insertions, 28 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h
index cfd36390..965b4abf 100644
--- a/src/gui/charselectdialog.h
+++ b/src/gui/charselectdialog.h
@@ -24,12 +24,14 @@
#include "gui/widgets/window.h"
-#include "player.h"
#include "guichanfwd.h"
#include "lockedarray.h"
+#include "main.h"
+#include "player.h"
#include <guichan/actionlistener.hpp>
+class CharEntry;
class LocalPlayer;
class LoginData;
class PlayerBox;
@@ -51,10 +53,6 @@ class CharSelectDialog : public Window, public gcn::ActionListener
void action(const gcn::ActionEvent &event);
- void updatePlayerInfo();
-
- void logic();
-
bool selectByName(const std::string &name);
static void setNetworkOptions(bool allowUnregister,
@@ -63,33 +61,16 @@ class CharSelectDialog : public Window, public gcn::ActionListener
private:
LockedArray<LocalPlayer*> *mCharInfo;
- gcn::Button *mSelectButton;
- gcn::Button *mCancelButton;
- gcn::Button *mPreviousButton;
- gcn::Button *mNextButton;
- gcn::Button *mChangePasswordButton;
-
- gcn::Label *mNameLabel;
- gcn::Label *mLevelLabel;
- gcn::Label *mMoneyLabel;
gcn::Label *mAccountNameLabel;
- std::string mMoney;
- LoginData *mLoginData;
-
- PlayerBox *mPlayerBox;
+ gcn::Button *mSwitchLoginButton;
+ gcn::Button *mChangePasswordButton;
+ gcn::Button *mChangeEmailButton;
+ gcn::Button *mUnregisterButton;
- bool mCharSelected;
+ CharEntry *mCharEntries[MAX_CHARACTER_COUNT];
-#ifdef TMWSERV_SUPPORT
- gcn::Button *mNewCharButton;
- gcn::Button *mDelCharButton;
- gcn::Button *mUnRegisterButton;
- gcn::Button *mChangeEmailButton;
-#else
- gcn::Button *mNewDelCharButton;
- gcn::Label *mJobLevelLabel;
-#endif
+ LoginData *mLoginData;
/**
* Communicate character deletion to the server.