mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-20 21:14:56 +03:00
feat(ui): implement Script_GetCharacterListUpdate
This commit is contained in:
9 files changed
+56
-3
No files matched your search
@@ -1,4 +1,5 @@
|
||||
#include "glue/CCharacterSelection.hpp"
|
||||
#include "glue/CGlueMgr.hpp"
|
||||
#include "model/CM2Shared.hpp"
|
||||
#include "ui/CSimpleModelFFX.hpp"
|
||||
|
||||
@@ -9,6 +10,18 @@ void CCharacterSelection::ClearCharacterList() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CCharacterSelection::ClearCharacterModel() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CCharacterSelection::OnGetCharacterList() {
|
||||
CCharacterSelection::s_characterList.SetCount(0);
|
||||
|
||||
CCharacterSelection::ClearCharacterModel();
|
||||
|
||||
CGlueMgr::GetCharacterList();
|
||||
}
|
||||
|
||||
void CCharacterSelection::RenderPrep() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@ class CCharacterSelection {
|
||||
|
||||
// Static functions
|
||||
static void ClearCharacterList();
|
||||
static void ClearCharacterModel();
|
||||
static void OnGetCharacterList();
|
||||
static void RenderPrep();
|
||||
static void SetBackgroundModel(const char* modelPath);
|
||||
};
|
||||
|
||||
@@ -171,6 +171,20 @@ void CGlueMgr::DisplayLoginStatus() {
|
||||
}
|
||||
}
|
||||
|
||||
void CGlueMgr::GetCharacterList() {
|
||||
if (CGlueMgr::m_idleState == IDLE_WORLD_LOGIN) {
|
||||
return;
|
||||
}
|
||||
|
||||
CGlueMgr::m_idleState = IDLE_CHARACTER_LIST;
|
||||
CGlueMgr::m_showedDisconnect = 0;
|
||||
|
||||
auto retrieveingText = FrameScript_GetText("CHAR_LIST_RETRIEVING", -1, GENDER_NOT_APPLICABLE);
|
||||
FrameScript_SignalEvent(3, "%s%s", "CANCEL", retrieveingText);
|
||||
|
||||
ClientServices::Connection()->GetCharacterList();
|
||||
}
|
||||
|
||||
int32_t CGlueMgr::HandleDisplaySizeChanged(const CSizeEvent& event) {
|
||||
if (
|
||||
CGlueMgr::m_screenWidth > 0
|
||||
|
||||
@@ -58,9 +58,9 @@ class CGlueMgr {
|
||||
// Static functions
|
||||
static void ChangeRealm(const REALM_INFO* realmInfo);
|
||||
static void DisplayLoginStatus();
|
||||
// TODO a1: const EVENT_DATA_IDLE*
|
||||
static void GetCharacterList();
|
||||
static int32_t HandleDisplaySizeChanged(const CSizeEvent& event);
|
||||
static int32_t Idle(const void* a1, void* a2);
|
||||
static int32_t Idle(const void* a1, void* a2); // TODO a1: const EVENT_DATA_IDLE*
|
||||
static void Initialize();
|
||||
static void LoginServerLogin(const char* accountName, const char* password);
|
||||
static int32_t OnKickReasonMsg(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
||||
|
||||
Reference in new issue
Block a user