davey: make registry tab bar embeddable

This commit is contained in:
skypjack
2025-04-17 11:51:16 +02:00
parent 4aed49b371
commit bf8c83e798
2 changed files with 1 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
namespace testbed {
void imgui_system(const entt::registry &registry) {
ImGui::Begin("testbed");
ImGui::Begin("Davey");
entt::davey(registry);
ImGui::End();
}

View File

@@ -206,7 +206,6 @@ void davey(const entt::basic_sparse_set<Entity, Allocator> &set) {
template<typename Entity, typename Allocator>
void davey(const meta_ctx &ctx, const entt::basic_registry<Entity, Allocator> &registry) {
ImGui::Begin("Davey");
ImGui::BeginTabBar("#tabs");
if(ImGui::BeginTabItem("Storage")) {
@@ -222,7 +221,6 @@ void davey(const meta_ctx &ctx, const entt::basic_registry<Entity, Allocator> &r
}
ImGui::EndTabBar();
ImGui::End();
}
template<typename Entity, typename Allocator>