Skip to content

Commit

Permalink
Merge pull request #123 from sBarnett2025/patch-1
Browse files Browse the repository at this point in the history
Update World.cpp
  • Loading branch information
tolstenko authored Oct 10, 2023
2 parents 8eff868 + 3e99cf2 commit b964efa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/catchthecat/World.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,10 @@ void World::OnGui(ImGuiContext* context) {
ImVec2 pos(io.DisplaySize.x * 0.5f, io.DisplaySize.y * 0.5f);
ImGui::SetNextWindowPos(pos, ImGuiCond_Always, ImVec2(0.5f, 0.5f));
ImGuiWindowFlags flags = ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings;
if (ImGui::Begin("Game Over", nullptr, flags)) {
if (ImGui::Button("OK", ImVec2(200, 0))) {
clearWorld();
}
}
ImGui::Begin("Game Over", nullptr, flags);
if (ImGui::Button("OK", ImVec2(200, 0)))
clearWorld();
ImGui::End();
}
}

Expand Down

0 comments on commit b964efa

Please sign in to comment.