From bf8c83e79897e8ecc89d3386cc61e4621f2de3eb Mon Sep 17 00:00:00 2001 From: skypjack Date: Thu, 17 Apr 2025 11:51:16 +0200 Subject: [PATCH] davey: make registry tab bar embeddable --- testbed/system/imgui_system.cpp | 2 +- tools/entt/davey/davey.hpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/testbed/system/imgui_system.cpp b/testbed/system/imgui_system.cpp index cc588c83d..73ef7a9bf 100644 --- a/testbed/system/imgui_system.cpp +++ b/testbed/system/imgui_system.cpp @@ -6,7 +6,7 @@ namespace testbed { void imgui_system(const entt::registry ®istry) { - ImGui::Begin("testbed"); + ImGui::Begin("Davey"); entt::davey(registry); ImGui::End(); } diff --git a/tools/entt/davey/davey.hpp b/tools/entt/davey/davey.hpp index 0de5ddd9d..2f2389d39 100644 --- a/tools/entt/davey/davey.hpp +++ b/tools/entt/davey/davey.hpp @@ -206,7 +206,6 @@ void davey(const entt::basic_sparse_set &set) { template void davey(const meta_ctx &ctx, const entt::basic_registry ®istry) { - ImGui::Begin("Davey"); ImGui::BeginTabBar("#tabs"); if(ImGui::BeginTabItem("Storage")) { @@ -222,7 +221,6 @@ void davey(const meta_ctx &ctx, const entt::basic_registry &r } ImGui::EndTabBar(); - ImGui::End(); } template