Kaynağa Gözat

davey: make registry tab bar embeddable

skypjack 1 yıl önce
ebeveyn
işleme
bf8c83e798

+ 1 - 1
testbed/system/imgui_system.cpp

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

+ 0 - 2
tools/entt/davey/davey.hpp

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