diff options
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 2c87818..78fa093 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -283,10 +283,13 @@ void RecordImGuiEntityList() { for (long bucket = 0; bucket < bucketCount; ++bucket) { uint64_t itemCount = 0; auto *entities = ECS_GetEntities(bucket, itemCount); + ImGui::PushID(bucket); for (long row = 0; row < itemCount; row++) { auto *entity = &entities[row]; + ImGui::PushID(row); ImGui::TableNextRow(); ImGui::TableSetColumnIndex(0); + char label[32]; if (ImGui::Button("Select")) selectedEntity = entity->handle; ImGui::TableSetColumnIndex(1); @@ -299,7 +302,9 @@ void RecordImGuiEntityList() { ImGui::Text("0x%016lX", static_cast<InstanceHandle_T>(entity->instanceHandle)); ImGui::TableSetColumnIndex(5); ImGui::Text("%u", entity->isMarkedForRemoval); + ImGui::PopID(); } + ImGui::PopID(); } ImGui::EndTable(); } |
