mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
feat(ui): implement Script_RealmListDialogCancelled
This commit is contained in:
parent
30699a72cf
commit
e3785010c4
@ -773,6 +773,12 @@ void CGlueMgr::QuitGame() {
|
|||||||
ClientPostClose(0);
|
ClientPostClose(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGlueMgr::RealmListDialogCancelled() {
|
||||||
|
if (!SStrCmpI(CGlueMgr::m_currentScreen, "login")) {
|
||||||
|
ClientServices::LoginConnection()->Logoff();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void CGlueMgr::Resume() {
|
void CGlueMgr::Resume() {
|
||||||
// TODO
|
// TODO
|
||||||
// CGlueMgr::m_disconnectPending = 0;
|
// CGlueMgr::m_disconnectPending = 0;
|
||||||
|
|||||||
@ -76,6 +76,7 @@ class CGlueMgr {
|
|||||||
static void PollLoginServerLogin();
|
static void PollLoginServerLogin();
|
||||||
static void PollRealmList(const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
static void PollRealmList(const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
||||||
static void QuitGame();
|
static void QuitGame();
|
||||||
|
static void RealmListDialogCancelled();
|
||||||
static void Resume();
|
static void Resume();
|
||||||
static void SetCurrentAccount(const char* accountName);
|
static void SetCurrentAccount(const char* accountName);
|
||||||
static void SetIdleState(GLUE_IDLE_STATE state);
|
static void SetIdleState(GLUE_IDLE_STATE state);
|
||||||
|
|||||||
@ -324,7 +324,9 @@ int32_t Script_GetSelectedCategory(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_RealmListDialogCancelled(lua_State* L) {
|
int32_t Script_RealmListDialogCancelled(lua_State* L) {
|
||||||
WHOA_UNIMPLEMENTED(0);
|
CGlueMgr::RealmListDialogCancelled();
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t Script_IsInvalidTournamentRealmCategory(lua_State* L) {
|
int32_t Script_IsInvalidTournamentRealmCategory(lua_State* L) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user