fixed ordering problem, but have a wier flicker in non editor mode
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user