Skip to content

Commit

Permalink
[#26]: Use Begin/End Disabled after recent changes to ImGUI's API
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Sep 17, 2021
1 parent 51846b9 commit fe38dab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/GUI/EditorGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ EditorGUI::Init()
void
EditorGUI::Shutdown()
{
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui_ImplOpenGL3_Shutdown();
ImGui::DestroyContext();
}

Expand Down Expand Up @@ -160,7 +160,7 @@ EditorGUI::Render()
ImGui::SetNextWindowSize(ImVec2(m_windowWidth, toolsWindowHeight));
ImGui::Begin("Tools");
ImGui::PushStyleColor(ImGuiCol_Button, ImVec4{0.45f, 0.0f, 0.2f, 0.8f});
ImGui::PushDisabled(m_currentLevel == nullptr);
ImGui::BeginDisabled(m_currentLevel == nullptr);

if (ImGui::Button("Play"))
{
Expand All @@ -177,7 +177,7 @@ EditorGUI::Render()
m_parent.SaveLevel(levelName);
}
}
ImGui::PopDisabled();
ImGui::EndDisabled();

ImGui::SameLine();
if (ImGui::Button("Load"))
Expand Down

0 comments on commit fe38dab

Please sign in to comment.