Added MVP for prefab editor window and made the whole editor modular to support multi-scene editing

This commit is contained in:
antopilo
2024-09-19 00:56:22 -04:00
parent a87aebe12b
commit 616532e78b
16 changed files with 856 additions and 110 deletions

View File

@@ -66,9 +66,9 @@ void EditorSelectionPanel::ResolveFile(Ref<Nuake::File> file)
}
}
void EditorSelectionPanel::Draw(EditorSelection selection)
void EditorSelectionPanel::Draw(EditorSelection selection, const std::string& id)
{
if (ImGui::Begin("Properties"))
if (ImGui::Begin(std::string("Properties##" + id).c_str()))
{
switch (selection.Type)
{