2021-01-19 15:30:00 +01:00
|
|
|
#include "InspectorView.h"
|
2022-11-17 16:47:42 +01:00
|
|
|
#include "Actor/Actor.h"
|
2022-04-15 11:19:30 +02:00
|
|
|
#include "Asset/AssetRegistry.h"
|
2023-02-01 22:13:04 +01:00
|
|
|
#include "Asset/FontLoader.h"
|
2024-06-09 12:20:04 +02:00
|
|
|
#include "Graphics/Graphics.h"
|
2025-01-12 11:26:52 +01:00
|
|
|
#include "UI/Element/Div.h"
|
2025-01-08 19:15:12 +01:00
|
|
|
#include "UI/Element/Text.h"
|
2024-06-09 12:20:04 +02:00
|
|
|
|
2021-01-19 15:30:00 +01:00
|
|
|
using namespace Seele;
|
2023-02-24 22:09:07 +01:00
|
|
|
using namespace Seele::Editor;
|
2021-01-19 15:30:00 +01:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
InspectorView::InspectorView(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo& createInfo)
|
2025-01-12 11:26:52 +01:00
|
|
|
: View(graphics, window, createInfo, "InspectorView"),
|
2025-01-19 16:07:38 +01:00
|
|
|
uiSystem(new UI::System(
|
|
|
|
|
new UI::Div<M_8>(UI::Attributes{}, {
|
|
|
|
|
new UI::Div<BG_Red, Inline>({},
|
|
|
|
|
{
|
|
|
|
|
new UI::Text<Font_Arial, Text_9XL>("OtherTestT"),
|
|
|
|
|
}),
|
|
|
|
|
new UI::Text<Font_Arial>("Test"),
|
|
|
|
|
}))) {
|
2025-01-08 19:15:12 +01:00
|
|
|
renderGraph.addPass(new UIPass(graphics, uiSystem));
|
|
|
|
|
renderGraph.setViewport(viewport);
|
|
|
|
|
renderGraph.createRenderPass();
|
2021-01-19 15:30:00 +01:00
|
|
|
}
|
|
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
InspectorView::~InspectorView() {}
|
|
|
|
|
|
2025-01-08 19:15:12 +01:00
|
|
|
void InspectorView::beginUpdate() {}
|
2021-01-19 15:30:00 +01:00
|
|
|
|
2025-01-08 19:15:12 +01:00
|
|
|
void InspectorView::update() {}
|
2021-01-19 15:30:00 +01:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::commitUpdate() {}
|
2021-01-19 15:30:00 +01:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::prepareRender() {}
|
2021-10-01 19:55:04 +02:00
|
|
|
|
2025-01-08 19:15:12 +01:00
|
|
|
void InspectorView::render() { renderGraph.render(Component::Camera()); }
|
|
|
|
|
|
|
|
|
|
void InspectorView::applyArea(URect area) {}
|
2021-10-01 19:55:04 +02:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::keyCallback(KeyCode, InputAction, KeyModifier) {}
|
2021-09-23 10:10:39 +02:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::mouseMoveCallback(double, double) {}
|
2021-09-23 10:10:39 +02:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::mouseButtonCallback(MouseButton, InputAction, KeyModifier) {}
|
2021-09-23 10:10:39 +02:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::scrollCallback(double, double) {}
|
2021-09-23 10:10:39 +02:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
void InspectorView::fileCallback(int, const char**) {}
|