mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Remove ResetData
This commit is contained in:
parent
d8bd158525
commit
5d0cede0d4
2 changed files with 5 additions and 11 deletions
|
@ -1193,15 +1193,7 @@ void ActorViewerWindow::DrawElement() {
|
|||
ImGui::EndDisabled();
|
||||
}
|
||||
|
||||
void ActorViewerWindow::ResetData() {
|
||||
display = nullptr;
|
||||
category = ACTORCAT_SWITCH;
|
||||
list.clear();
|
||||
}
|
||||
|
||||
void ActorViewerWindow::InitElement() {
|
||||
ResetData();
|
||||
|
||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnActorSpawn>([this](void* refActor) {
|
||||
Actor* actor = static_cast<Actor*>(refActor);
|
||||
|
||||
|
@ -1224,7 +1216,11 @@ void ActorViewerWindow::InitElement() {
|
|||
}
|
||||
});
|
||||
|
||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnSceneInit>([this](int16_t sceneNum) { ResetData(); });
|
||||
GameInteractor::Instance->RegisterGameHook<GameInteractor::OnSceneInit>([this](int16_t sceneNum) {
|
||||
display = nullptr;
|
||||
category = ACTORCAT_SWITCH;
|
||||
list.clear();
|
||||
});
|
||||
}
|
||||
|
||||
void ActorViewer_RegisterNameTagHooks() {
|
||||
|
|
|
@ -15,8 +15,6 @@ class ActorViewerWindow final : public Ship::GuiWindow {
|
|||
void UpdateElement() override{};
|
||||
|
||||
private:
|
||||
void ResetData();
|
||||
|
||||
Actor* display = nullptr;
|
||||
int category = ACTORCAT_SWITCH;
|
||||
std::vector<Actor*> list;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue