From 6ebbb12684dc17da7862223dc2e353386a6d6a07 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Tue, 5 Aug 2025 13:52:37 -0400 Subject: [PATCH] renamed handleCommonSettings to drawCommonSettingsUI --- RecastDemo/Include/Sample.h | 2 +- RecastDemo/Source/Sample.cpp | 2 +- RecastDemo/Source/Sample_SoloMesh.cpp | 2 +- RecastDemo/Source/Sample_TempObstacles.cpp | 2 +- RecastDemo/Source/Sample_TileMesh.cpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 06a25e3c..4b70c855 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -185,5 +185,5 @@ public: void renderOverlayToolStates(double* proj, double* model, int* view) const; void resetCommonSettings(); - void handleCommonSettings(); + void drawCommonSettingsUI(); }; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index da1f0a43..8e138358 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -202,7 +202,7 @@ void Sample::resetCommonSettings() partitionType = SAMPLE_PARTITION_WATERSHED; } -void Sample::handleCommonSettings() +void Sample::drawCommonSettingsUI() { ImGui::SeparatorText("Rasterization"); DrawFloatSlider(&cellSize, 0.1f, 1.0f, "##Cell Size", "Cell Size", "%.2f"); diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index afb24c03..11be9d76 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -94,7 +94,7 @@ void Sample_SoloMesh::drawSettingsUI() { static const char* fileName = "solo_navmesh.bin"; - handleCommonSettings(); + drawCommonSettingsUI(); ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x); if (ImGui::Button("Save")) diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index 47cc67a9..2fb9c378 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -901,7 +901,7 @@ Sample_TempObstacles::~Sample_TempObstacles() void Sample_TempObstacles::drawSettingsUI() { - handleCommonSettings(); + drawCommonSettingsUI(); ImGui::Checkbox("Keep Itermediate Results", &keepIntermediateResults); ImGui::Text("Tiling"); diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index b306b1d8..e3474881 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -227,7 +227,7 @@ void Sample_TileMesh::cleanup() void Sample_TileMesh::drawSettingsUI() { - Sample::handleCommonSettings(); + drawCommonSettingsUI(); ImGui::Checkbox("Build All Tiles", &buildAll);