Просмотр исходного кода

davey: make registry tab bar embeddable

skypjack 10 месяцев назад
Родитель
Сommit
bf8c83e798
2 измененных файлов с 1 добавлено и 3 удалено
  1. 1 1
      testbed/system/imgui_system.cpp
  2. 0 2
      tools/entt/davey/davey.hpp

+ 1 - 1
testbed/system/imgui_system.cpp

@@ -6,7 +6,7 @@
 namespace testbed {
 
 void imgui_system(const entt::registry &registry) {
-    ImGui::Begin("testbed");
+    ImGui::Begin("Davey");
     entt::davey(registry);
     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>
 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>