18 class AnalyserPanel :
public EditorWidget
21 void OnImGuiRender()
override;
23 void RenderComponent(Component* component);
24 void RenderComponentLayout(
const ComponentLayout& layout, Component* component =
nullptr);
25 void RenderField(
const ComponentField& field)
const;
31 std::vector<ComponentRegistry::Entry> items;
33 std::vector<CategoryMenu> childs;
35 void InsertCategory(CategoryMenu& root,
const ComponentRegistry::Entry& entry);
36 void DrawCategoryChildren(
const CategoryMenu& category, std::weak_ptr<GameObject> obj);
37 void DrawCategoryMenu(
const CategoryMenu& menu, std::weak_ptr<GameObject> obj);
39 std::vector<std::type_index> m_alredyAddedComponents;
41 std::map<Component*, const void*> m_textureCache;