diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-24 19:34:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-24 21:41:20 +0300 |
commit | 3b537e109df901df3da4c706f827c8d3d39a7238 (patch) | |
tree | ae5a83f71954aaeb45ce3f8d609e6f4a8dc0678c /src/gui/editserverdialog.cpp | |
parent | 4ef35e9ef757da1db724c5d784048601144c934c (diff) | |
download | plus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.gz plus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.bz2 plus-3b537e109df901df3da4c706f827c8d3d39a7238.tar.xz plus-3b537e109df901df3da4c706f827c8d3d39a7238.zip |
Add basic support for eathena stable.
Can register, create char, connect to map server and get map info.
Diffstat (limited to 'src/gui/editserverdialog.cpp')
-rw-r--r-- | src/gui/editserverdialog.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gui/editserverdialog.cpp b/src/gui/editserverdialog.cpp index b52559ecc..0a8c3e816 100644 --- a/src/gui/editserverdialog.cpp +++ b/src/gui/editserverdialog.cpp @@ -43,10 +43,19 @@ std::string TypeListModel::getElementAt(int elementIndex) return "TmwAthena"; else if (elementIndex == 1) return "Evol"; +#ifdef EATHENA_SUPPORT + else if (elementIndex == 2) + return "eAthena"; +#ifdef MANASERV_SUPPORT + else if (elementIndex == 3) + return "ManaServ"; +#endif +#else #ifdef MANASERV_SUPPORT else if (elementIndex == 2) return "ManaServ"; #endif +#endif else return "Unknown"; } @@ -129,11 +138,22 @@ EditServerDialog::EditServerDialog(ServerDialog *parent, ServerInfo server, switch (mServer.type) { +#ifdef EATHENA_SUPPORT + case ServerInfo::EATHENA: + mTypeField->setSelected(2); + break; + case ServerInfo::MANASERV: +#ifdef MANASERV_SUPPORT + mTypeField->setSelected(3); + break; +#endif +#else case ServerInfo::MANASERV: #ifdef MANASERV_SUPPORT mTypeField->setSelected(2); break; #endif +#endif default: case ServerInfo::UNKNOWN: case ServerInfo::TMWATHENA: @@ -199,11 +219,22 @@ void EditServerDialog::action(const gcn::ActionEvent &event) case 1: mServer.type = ServerInfo::EVOL; break; +#ifdef EATHENA_SUPPORT + case 2: + mServer.type = ServerInfo::EATHENA; + break; +#ifdef MANASERV_SUPPORT + case 3: + mServer.type = ServerInfo::MANASERV; + break; +#endif +#else #ifdef MANASERV_SUPPORT case 2: mServer.type = ServerInfo::MANASERV; break; #endif +#endif default: mServer.type = ServerInfo::UNKNOWN; } |