From 7302b1544d02f77a93d29546bb96afcf22239b70 Mon Sep 17 00:00:00 2001 From: skypjack Date: Wed, 23 Apr 2025 17:48:06 +0200 Subject: [PATCH] davey: swap entity and storage in registry view --- tools/entt/davey/davey.hpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tools/entt/davey/davey.hpp b/tools/entt/davey/davey.hpp index 2d179e510..cd81517ff 100644 --- a/tools/entt/davey/davey.hpp +++ b/tools/entt/davey/davey.hpp @@ -196,17 +196,6 @@ template void davey(const meta_ctx &ctx, const entt::basic_registry ®istry) { ImGui::BeginTabBar("#tabs"); - if(ImGui::BeginTabItem("Storage")) { - for([[maybe_unused]] auto [id, storage]: registry.storage()) { - if(const davey_data *info = entt::resolve(ctx, storage.info()).custom(); ImGui::TreeNode(&storage.info(), "%s (%zu)", DAVEY_OR(storage), storage.size())) { - internal::present_storage(ctx, storage); - ImGui::TreePop(); - } - } - - ImGui::EndTabItem(); - } - if(ImGui::BeginTabItem("Entity")) { const auto &storage = registry.template storage(); @@ -225,6 +214,17 @@ void davey(const meta_ctx &ctx, const entt::basic_registry &r ImGui::EndTabItem(); } + if(ImGui::BeginTabItem("Storage")) { + for([[maybe_unused]] auto [id, storage]: registry.storage()) { + if(const davey_data *info = entt::resolve(ctx, storage.info()).custom(); ImGui::TreeNode(&storage.info(), "%s (%zu)", DAVEY_OR(storage), storage.size())) { + internal::present_storage(ctx, storage); + ImGui::TreePop(); + } + } + + ImGui::EndTabItem(); + } + ImGui::EndTabBar(); }