#include "inspect.h" #include #include #include #include namespace kurator { void InspectionWindow::show() { if (!open) return; if (ImGui::Begin("Inspect", &open)) { if (selected) { const auto& identifier = selected.get(); ImGui::Text("Selected: %d", identifier.id); } else { ImGui::Text("Nothing selected"); } } ImGui::End(); } void InspectionWindow::select(entt::handle entity) { selected = std::move(entity); open = true; } } // namespace kurator