mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(glue): implement CCharacterSelection::ClearCharacterList
This commit is contained in:
parent
5a4df16c39
commit
2b5cbdd629
@ -2,6 +2,7 @@
|
||||
#include "client/ClientServices.hpp"
|
||||
#include "glue/CGlueMgr.hpp"
|
||||
#include "glue/CRealmList.hpp"
|
||||
#include "glue/Types.hpp"
|
||||
#include "model/CM2Shared.hpp"
|
||||
#include "net/Connection.hpp"
|
||||
#include "ui/CSimpleModelFFX.hpp"
|
||||
@ -22,7 +23,20 @@ uint32_t CCharacterSelection::s_restrictBloodElf;
|
||||
int32_t CCharacterSelection::s_selectionIndex;
|
||||
|
||||
void CCharacterSelection::ClearCharacterList() {
|
||||
// TODO
|
||||
CCharacterSelection::s_characterList.SetCount(0);
|
||||
|
||||
CCharacterSelection::ClearCharacterModel();
|
||||
|
||||
CCharacterSelection::s_selectionIndex = 0;
|
||||
CCharacterSelection::ShowCharacter();
|
||||
|
||||
FrameScript_SignalEvent(UPDATE_SELECTED_CHARACTER, "%d", CCharacterSelection::s_selectionIndex + 1);
|
||||
|
||||
if (CCharacterSelection::s_modelFrame) {
|
||||
CCharacterSelection::s_modelFrame->SetCameraByIndex(0);
|
||||
}
|
||||
|
||||
FrameScript_SignalEvent(CHARACTER_LIST_UPDATE, nullptr);
|
||||
}
|
||||
|
||||
void CCharacterSelection::ClearCharacterModel() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user