feat(component): implement CCharacterSelection::ClearCharacterModel

This commit is contained in:
fallenoak 2025-10-28 10:13:30 -05:00
parent e85cdd4896
commit de95191127
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -46,7 +46,18 @@ void CCharacterSelection::ClearCharacterList() {
}
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) {