2026-03-12 15:39:40 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "Panel.h"
|
2026-03-12 17:43:13 +08:00
|
|
|
#include "Core/Event.h"
|
|
|
|
|
#include "Core/GameObject.h"
|
2026-03-12 15:39:40 +08:00
|
|
|
|
|
|
|
|
namespace UI {
|
|
|
|
|
|
|
|
|
|
class InspectorPanel : public Panel {
|
|
|
|
|
public:
|
|
|
|
|
InspectorPanel();
|
2026-03-12 17:43:13 +08:00
|
|
|
~InspectorPanel();
|
|
|
|
|
|
2026-03-12 15:39:40 +08:00
|
|
|
void Render() override;
|
|
|
|
|
|
|
|
|
|
private:
|
2026-03-12 17:43:13 +08:00
|
|
|
void RenderEntity(Entity* entity);
|
|
|
|
|
void RenderComponent(Component* component);
|
|
|
|
|
|
|
|
|
|
Event<EntityID>::HandlerID m_selectionHandlerId = 0;
|
2026-03-12 15:39:40 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|