mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(glue): add CGlueMgr::PollDeleteCharacter
This commit is contained in:
parent
0c3bbc4336
commit
92adcefef8
@ -410,6 +410,11 @@ int32_t CGlueMgr::Idle(const void* a1, void* a2) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case IDLE_DELETE_CHARACTER: {
|
||||||
|
CGlueMgr::PollDeleteCharacter(msg, complete, result);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case IDLE_ENTER_WORLD: {
|
case IDLE_ENTER_WORLD: {
|
||||||
CGlueMgr::PollEnterWorld();
|
CGlueMgr::PollEnterWorld();
|
||||||
break;
|
break;
|
||||||
@ -775,6 +780,34 @@ void CGlueMgr::PollCharacterList(const char* msg, int32_t complete, int32_t resu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CGlueMgr::PollDeleteCharacter(const char* msg, int32_t complete, int32_t result) {
|
||||||
|
FrameScript_SignalEvent(UPDATE_STATUS_DIALOG, "%s", msg);
|
||||||
|
|
||||||
|
if (CGlueMgr::HandleBattlenetDisconnect()) {
|
||||||
|
CGlueMgr::SetIdleState(IDLE_NONE);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!complete) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Error
|
||||||
|
|
||||||
|
if (result == 0) {
|
||||||
|
FrameScript_SignalEvent(OPEN_STATUS_DIALOG, "%s%s", "OKAY", msg);
|
||||||
|
|
||||||
|
CGlueMgr::SetIdleState(IDLE_NONE);
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Success
|
||||||
|
|
||||||
|
FrameScript_SignalEvent(SELECT_FIRST_CHARACTER, nullptr);
|
||||||
|
|
||||||
|
CGlueMgr::GetCharacterList();
|
||||||
|
}
|
||||||
|
|
||||||
void CGlueMgr::PollEnterWorld() {
|
void CGlueMgr::PollEnterWorld() {
|
||||||
if (!LoadingScreenDrawing()) {
|
if (!LoadingScreenDrawing()) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -80,6 +80,7 @@ class CGlueMgr {
|
|||||||
static int32_t OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
static int32_t OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
||||||
static void PollAccountLogin(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
static void PollAccountLogin(int32_t errorCode, const char* msg, int32_t complete, int32_t result, WOWCS_OPS op);
|
||||||
static void PollCharacterList(const char* msg, int32_t complete, int32_t result, int32_t errorCode);
|
static void PollCharacterList(const char* msg, int32_t complete, int32_t result, int32_t errorCode);
|
||||||
|
static void PollDeleteCharacter(const char* msg, int32_t complete, int32_t result);
|
||||||
static void PollEnterWorld();
|
static void PollEnterWorld();
|
||||||
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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user