fixed ordering problem, but have a wier flicker in non editor mode

This commit is contained in:
2026-05-03 22:09:08 +02:00
parent 4fce05a927
commit 4002030de8
5 changed files with 9 additions and 15 deletions

View File

@@ -8,13 +8,14 @@
#include "BehaviourScripts/PhysicsObject.hpp"
#include "BehaviourScripts/basicEditorCamera.hpp"
TSE::EDITOR::EditorSubsystem::EditorSubsystem() : sv(nullptr), editorLayer("")
TSE::EDITOR::EditorSubsystem::EditorSubsystem(ConsolView* cvp) : sv(nullptr), editorLayer("")
{
rt = IRenderTexture::factory->CreateTextureHeap({100,100}, 5);
sv = SceneView(rt);
cv = cvp;
controller.AddGuiElement("Scene", &sv);
controller.AddGuiElement("Consol", &cv);
controller.AddGuiElement("Consol", cv);
controller.AddGuiElement("Hirearchie", &hv);
controller.AddGuiElement("Properties", &pv);
controller.AddGuiElement("Debug", &dv);

View File

@@ -15,7 +15,7 @@ namespace TSE::EDITOR
{
public:
ViewportController controller;
ConsolView cv;
ConsolView* cv = nullptr;
DebugView dv;
HirearchieView hv = HirearchieView(nullptr);
PropertiesView pv;
@@ -24,6 +24,6 @@ namespace TSE::EDITOR
SceneView sv;
Layer editorLayer;
EditorSubsystem();
EditorSubsystem(ConsolView* cvp);
};
} // namespace TSE::EDITOR

View File

@@ -934,7 +934,7 @@ namespace TSE::EDITOR
}
ImGui::BeginDisabled();
ImGui::DragInt("Chunk Size", &element->chunkSize, 1.0f);
ImGui::DragFloat("Chunk Size", &element->chunkSize, 1.0f);
ImGui::EndDisabled();
if (debug)