mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-23 17:21:07 +00:00
Better layout of Save and Load buttons in both samples
This commit is contained in:
@@ -85,19 +85,19 @@ void Sample_SoloMesh::drawSettingsUI()
|
||||
|
||||
drawCommonSettingsUI();
|
||||
|
||||
ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x);
|
||||
if (ImGui::Button("Save"))
|
||||
{
|
||||
saveAll(fileName, navMesh);
|
||||
}
|
||||
|
||||
ImGui::SameLine();
|
||||
|
||||
if (ImGui::Button("Load"))
|
||||
{
|
||||
dtFreeNavMesh(navMesh);
|
||||
navMesh = loadAll(fileName);
|
||||
navQuery->init(navMesh, 2048);
|
||||
}
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
ImGui::Text("Build Time: %.1fms", totalBuildTimeMs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user