diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 1363d088..06a25e3c 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -164,7 +164,7 @@ public: void setTool(SampleTool* tool); - virtual void handleSettings(); + virtual void drawSettingsUI(); virtual void drawToolsUI(); virtual void drawDebugUI(); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index eab2e762..64709cbc 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -70,7 +70,7 @@ public: Sample_SoloMesh(const Sample_SoloMesh&&) = delete; Sample_SoloMesh& operator=(const Sample_SoloMesh&&) = delete; - void handleSettings() override; + void drawSettingsUI() override; void drawToolsUI() override; void drawDebugUI() override; diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index 7202aa44..3ea4729f 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -68,7 +68,7 @@ public: Sample_TempObstacles(const Sample_TempObstacles&&) = delete; Sample_TempObstacles& operator=(const Sample_TempObstacles&&) = delete; - void handleSettings() override; + void drawSettingsUI() override; void drawToolsUI() override; void drawDebugUI() override; void render() override; diff --git a/RecastDemo/Include/Sample_TileMesh.h b/RecastDemo/Include/Sample_TileMesh.h index c727ad94..9540cdf6 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -88,7 +88,7 @@ public: Sample_TileMesh& operator=(const Sample_TileMesh&&) = delete; // Sample methods - void handleSettings() override; + void drawSettingsUI() override; void drawToolsUI() override; void drawDebugUI() override; void render() override; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index 380687b1..da1f0a43 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -114,7 +114,7 @@ void Sample::setTool(SampleTool* newTool) } } -void Sample::handleSettings() {} +void Sample::drawSettingsUI() {} void Sample::drawToolsUI() {} diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 2ab1dd70..afb24c03 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -90,7 +90,7 @@ void Sample_SoloMesh::cleanup() navMesh = nullptr; } -void Sample_SoloMesh::handleSettings() +void Sample_SoloMesh::drawSettingsUI() { static const char* fileName = "solo_navmesh.bin"; diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index b7943814..47cc67a9 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -899,7 +899,7 @@ Sample_TempObstacles::~Sample_TempObstacles() dtFreeTileCache(tileCache); } -void Sample_TempObstacles::handleSettings() +void Sample_TempObstacles::drawSettingsUI() { handleCommonSettings(); ImGui::Checkbox("Keep Itermediate Results", &keepIntermediateResults); diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 35eb736e..b306b1d8 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -225,7 +225,7 @@ void Sample_TileMesh::cleanup() detailPolyMesh = nullptr; } -void Sample_TileMesh::handleSettings() +void Sample_TileMesh::drawSettingsUI() { Sample::handleCommonSettings(); diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index a9e29ef3..494828a7 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -673,7 +673,7 @@ int main(int /*argc*/, char** /*argv*/) { if (app.inputGeometry) { - app.sample->handleSettings(); + app.sample->drawSettingsUI(); if (ImGui::Button("Build")) { @@ -862,7 +862,7 @@ int main(int /*argc*/, char** /*argv*/) } // This will ensure that tile & poly bits are updated in tiled sample. - app.sample->handleSettings(); + app.sample->drawSettingsUI(); app.buildContext.resetLog(); if (!app.sample->build())