diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-01 19:09:25 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-01 19:10:06 -0600 |
commit | 50ff91186126a0e9cc7e216552c349d60d31f451 (patch) | |
tree | 918e10a585bf5685f76720f41844bba8fef4e67d /src/gui/charselectdialog.h | |
parent | d974f23b42ddeca3c9cf0d8489dc38d8524c5f12 (diff) | |
download | mana-client-50ff91186126a0e9cc7e216552c349d60d31f451.tar.gz mana-client-50ff91186126a0e9cc7e216552c349d60d31f451.tar.bz2 mana-client-50ff91186126a0e9cc7e216552c349d60d31f451.tar.xz mana-client-50ff91186126a0e9cc7e216552c349d60d31f451.zip |
Redesign CharSelectDialog
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r-- | src/gui/charselectdialog.h | 37 |
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. |