added camera controls to editor
This commit is contained in:
@@ -41,6 +41,11 @@ void TSE::EDITOR::HirearchieView::Define()
|
||||
//if(layer->GetName() != ".editor")
|
||||
DisplayLayer(layer);
|
||||
}
|
||||
|
||||
if(!selectedFound && PropertiesView::GetCurrentInspectableType() == InspectableType::Transformable)
|
||||
{
|
||||
PropertiesView::ForceClearInspectorElement();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -188,10 +193,6 @@ void TSE::EDITOR::HirearchieView::DisplayLayer(Layer *l)
|
||||
{
|
||||
DisplayObj(l->GetAllObjects()[i], l);
|
||||
}
|
||||
if(!selectedFound && PropertiesView::GetCurrentInspectableType() == InspectableType::Transformable)
|
||||
{
|
||||
PropertiesView::ForceClearInspectorElement();
|
||||
}
|
||||
}
|
||||
ImGui::Unindent(20.0f);
|
||||
}
|
||||
|
||||
@@ -16,6 +16,14 @@ void TSE::EDITOR::SceneView::Define()
|
||||
{
|
||||
fb->SetSize({vec2.x, vec2.y});
|
||||
}
|
||||
if(ImGui::IsWindowFocused())
|
||||
{
|
||||
IsHovered = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
IsHovered = false;
|
||||
}
|
||||
}
|
||||
ImGui::EndChild();
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace TSE::EDITOR
|
||||
private:
|
||||
TSE::IRenderTexture* fb;
|
||||
public:
|
||||
inline static bool IsHovered = false;
|
||||
SceneView(TSE::IRenderTexture* frameBuffer);
|
||||
void Define() override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user