mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
feat(component): implement CCharacterSelection::ClearCharacterModel
This commit is contained in:
parent
e85cdd4896
commit
de95191127
@ -46,7 +46,18 @@ void CCharacterSelection::ClearCharacterList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterSelection::ClearCharacterModel() {
|
void CCharacterSelection::ClearCharacterModel() {
|
||||||
// TODO
|
if (!CCharacterSelection::s_modelFrame) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto model = CCharacterSelection::s_modelFrame->m_model;
|
||||||
|
|
||||||
|
if (model) {
|
||||||
|
model->DetachAllChildrenById(0);
|
||||||
|
|
||||||
|
// Might be an inlined function (perhaps ClearPetModel)
|
||||||
|
model->DetachAllChildrenById(1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCharacterSelection::EnumerateCharactersCallback(const CHARACTER_INFO& info, void* param) {
|
void CCharacterSelection::EnumerateCharactersCallback(const CHARACTER_INFO& info, void* param) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user