light/modules/mirror/public/panels/scene_hierarchy.hpp

33 lines
626 B
C++
Raw Permalink Normal View History

2022-03-08 21:19:19 +03:30
#pragma once
2025-07-11 01:16:52 +03:30
#include <ecs/entity.hpp>
#include <ecs/scene.hpp>
2025-07-20 04:46:15 +03:30
#include <mirror/panels/panel.hpp>
2022-03-08 21:19:19 +03:30
2025-07-11 00:05:48 +03:30
namespace lt {
2022-03-08 21:19:19 +03:30
class PropertiesPanel;
class SceneHierarchyPanel: public Panel
{
public:
SceneHierarchyPanel();
2025-07-06 14:02:50 +03:30
2025-07-06 16:52:50 +03:30
SceneHierarchyPanel(Ref<Scene> context, Ref<PropertiesPanel> properties_panel = nullptr);
2022-03-08 21:19:19 +03:30
void on_user_interface_update();
2022-03-08 21:19:19 +03:30
2025-07-06 16:52:50 +03:30
void set_context(Ref<Scene> context, Ref<PropertiesPanel> properties_panel = nullptr);
2022-03-08 21:19:19 +03:30
private:
void draw_node(Entity entity, const std::string &label);
Ref<Scene> m_context;
Ref<PropertiesPanel> m_properties_panel_context;
Entity m_selection_context;
2022-03-08 21:19:19 +03:30
};
2025-07-11 00:05:48 +03:30
} // namespace lt