davey: make registry tab bar embeddable
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
namespace testbed {
|
||||
|
||||
void imgui_system(const entt::registry ®istry) {
|
||||
ImGui::Begin("testbed");
|
||||
ImGui::Begin("Davey");
|
||||
entt::davey(registry);
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
@@ -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> ®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<Entity, Allocator> &r
|
||||
}
|
||||
|
||||
ImGui::EndTabBar();
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
template<typename Entity, typename Allocator>
|
||||
|
||||
Reference in New Issue
Block a user