Skip to content

Commit

Permalink
[#26]: Update ImGui code after recent changes to deprecate some funct…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
JacobDomagala committed May 30, 2022
1 parent 3e07be0 commit 64597d2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions editor/GUI/EditorGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ EditorGUI::Render()
ImGui::SetNextWindowSize(ImVec2(m_windowWidth, levelWindowHeight));
ImGui::Begin("Level");

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("General"))
{
auto sprite_size = m_currentLevel->GetSprite().GetSize();
Expand All @@ -217,7 +217,7 @@ EditorGUI::Render()
}
}

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("Pathfinder"))
{
static bool renderPathfinderNodes = m_parent.GetRenderNodes();
Expand All @@ -227,12 +227,12 @@ EditorGUI::Render()
}
}

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("Shader"))
{
}

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("Objects"))
{
const auto& gameObjects = m_currentLevel->GetObjects();
Expand Down Expand Up @@ -308,7 +308,7 @@ EditorGUI::Render()
ImGui::SetNextWindowPos({size.x - m_windowWidth, 0});
ImGui::SetNextWindowSize(ImVec2(m_windowWidth, gameObjectWindowHeight));
ImGui::Begin("Game Object");
ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);

if (ImGui::CollapsingHeader("General"))
{
Expand All @@ -332,7 +332,7 @@ EditorGUI::Render()
}
}

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("Transform"))
{
auto objectPosition = m_currentlySelectedGameObject->GetPosition();
Expand All @@ -354,7 +354,7 @@ EditorGUI::Render()
}
}

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("Shader"))
{
if (m_currentLevel)
Expand Down Expand Up @@ -382,7 +382,7 @@ EditorGUI::Render()
const auto animatablePtr =
std::dynamic_pointer_cast< Animatable >(m_currentlySelectedGameObject);

ImGui::SetNextTreeNodeOpen(true);
ImGui::SetNextItemOpen(true);
if (ImGui::CollapsingHeader("Animation"))
{
ImGui::Text("Type");
Expand Down

0 comments on commit 64597d2

Please sign in to comment.