Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
greeenlaser committed Mar 4, 2024
1 parent efcdc6c commit 2234034
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Engine/src/engine/graphics/gui/gui_scenehierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,32 +110,12 @@ namespace Graphics::GUI

if (ImGui::BeginPopupContextItem("rightclickpopup"))
{
if (ImGui::MenuItem("Create gameobject"))
{
cout << "Created new gameobject \n";

if (!SceneFile::unsavedChanges) Render::SetWindowNameAsUnsaved(true);
}

if (ImGui::MenuItem("Rename"))
{
isRenaming = true;
}

if (ImGui::MenuItem("Copy"))
{
copiedGameObject = selectedGameObject;

cout << "Copied " << selectedGameObject->GetName() << "\n";
}

if (ImGui::MenuItem("Paste"))
{
cout << "Pasted " << copiedGameObject->GetName() << " to " << selectedGameObject->GetName() << "\n";

if (!SceneFile::unsavedChanges) Render::SetWindowNameAsUnsaved(true);
}

if (ImGui::MenuItem("Delete"))
{
string objName = selectedGameObject->GetName();
Expand Down

0 comments on commit 2234034

Please sign in to comment.