mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
57 lines
1.3 KiB
C++
57 lines
1.3 KiB
C++
#include "glue/CCharacterSelection.hpp"
|
|
#include "glue/CGlueMgr.hpp"
|
|
#include "model/CM2Shared.hpp"
|
|
#include "ui/CSimpleModelFFX.hpp"
|
|
|
|
TSGrowableArray<CharacterSelectionDisplay> CCharacterSelection::s_characterList;
|
|
CSimpleModelFFX* CCharacterSelection::s_modelFrame;
|
|
|
|
void CCharacterSelection::ClearCharacterList() {
|
|
// TODO
|
|
}
|
|
|
|
void CCharacterSelection::ClearCharacterModel() {
|
|
// TODO
|
|
}
|
|
|
|
void CCharacterSelection::OnGetCharacterList() {
|
|
CCharacterSelection::s_characterList.SetCount(0);
|
|
|
|
CCharacterSelection::ClearCharacterModel();
|
|
|
|
CGlueMgr::GetCharacterList();
|
|
}
|
|
|
|
void CCharacterSelection::RenderPrep() {
|
|
// TODO
|
|
}
|
|
|
|
void CCharacterSelection::SetBackgroundModel(const char* modelPath) {
|
|
if (!CCharacterSelection::s_modelFrame || !modelPath || !*modelPath) {
|
|
return;
|
|
}
|
|
|
|
auto model = CCharacterSelection::s_modelFrame->m_model;
|
|
|
|
// Check if already set
|
|
if (model && !SStrCmpI(modelPath, model->m_shared->m_filePath, STORM_MAX_STR)) {
|
|
return;
|
|
}
|
|
|
|
CCharacterSelection::s_modelFrame->SetModel(modelPath);
|
|
|
|
// TODO BYTE1(CCharacterSelection::m_modelFrame->simplemodelffx_dword510[3]) = 1;
|
|
|
|
model = CCharacterSelection::s_modelFrame->m_model;
|
|
|
|
if (model) {
|
|
// TODO lighting callback + arg
|
|
|
|
model->IsDrawable(1, 1);
|
|
}
|
|
}
|
|
|
|
void CCharacterSelection::UpdateCharacterList() {
|
|
// TODO
|
|
}
|