diff --git a/RecastDemo/Include/Sample.h b/RecastDemo/Include/Sample.h index 53d17b27..1363d088 100644 --- a/RecastDemo/Include/Sample.h +++ b/RecastDemo/Include/Sample.h @@ -165,7 +165,7 @@ public: void setTool(SampleTool* tool); virtual void handleSettings(); - virtual void handleTools(); + virtual void drawToolsUI(); virtual void drawDebugUI(); virtual void onClick(const float* rayStartPos, const float* rayHitPos, bool shift); diff --git a/RecastDemo/Include/Sample_SoloMesh.h b/RecastDemo/Include/Sample_SoloMesh.h index b81ada6c..eab2e762 100644 --- a/RecastDemo/Include/Sample_SoloMesh.h +++ b/RecastDemo/Include/Sample_SoloMesh.h @@ -71,7 +71,7 @@ public: Sample_SoloMesh& operator=(const Sample_SoloMesh&&) = delete; void handleSettings() override; - void handleTools() override; + void drawToolsUI() override; void drawDebugUI() override; void render() override; diff --git a/RecastDemo/Include/Sample_TempObstacles.h b/RecastDemo/Include/Sample_TempObstacles.h index 913ce912..7202aa44 100644 --- a/RecastDemo/Include/Sample_TempObstacles.h +++ b/RecastDemo/Include/Sample_TempObstacles.h @@ -69,7 +69,7 @@ public: Sample_TempObstacles& operator=(const Sample_TempObstacles&&) = delete; void handleSettings() override; - void handleTools() override; + void drawToolsUI() override; void drawDebugUI() override; void render() override; void renderOverlay(double* proj, double* model, int* view) override; diff --git a/RecastDemo/Include/Sample_TileMesh.h b/RecastDemo/Include/Sample_TileMesh.h index dfe81ffe..c727ad94 100644 --- a/RecastDemo/Include/Sample_TileMesh.h +++ b/RecastDemo/Include/Sample_TileMesh.h @@ -89,7 +89,7 @@ public: // Sample methods void handleSettings() override; - void handleTools() override; + void drawToolsUI() override; void drawDebugUI() override; void render() override; void renderOverlay(double* proj, double* model, int* view) override; diff --git a/RecastDemo/Source/Sample.cpp b/RecastDemo/Source/Sample.cpp index 601eb828..380687b1 100644 --- a/RecastDemo/Source/Sample.cpp +++ b/RecastDemo/Source/Sample.cpp @@ -116,7 +116,7 @@ void Sample::setTool(SampleTool* newTool) void Sample::handleSettings() {} -void Sample::handleTools() {} +void Sample::drawToolsUI() {} void Sample::drawDebugUI() {} diff --git a/RecastDemo/Source/Sample_SoloMesh.cpp b/RecastDemo/Source/Sample_SoloMesh.cpp index 0d0a0411..2ab1dd70 100644 --- a/RecastDemo/Source/Sample_SoloMesh.cpp +++ b/RecastDemo/Source/Sample_SoloMesh.cpp @@ -113,7 +113,7 @@ void Sample_SoloMesh::handleSettings() ImGui::Text("Build Time: %.1fms", totalBuildTimeMs); } -void Sample_SoloMesh::handleTools() +void Sample_SoloMesh::drawToolsUI() { const SampleToolType currentType = !tool ? SampleToolType::NONE : tool->type(); diff --git a/RecastDemo/Source/Sample_TempObstacles.cpp b/RecastDemo/Source/Sample_TempObstacles.cpp index f8c00732..b7943814 100644 --- a/RecastDemo/Source/Sample_TempObstacles.cpp +++ b/RecastDemo/Source/Sample_TempObstacles.cpp @@ -979,7 +979,7 @@ void Sample_TempObstacles::handleSettings() ImGui::Separator(); } -void Sample_TempObstacles::handleTools() +void Sample_TempObstacles::drawToolsUI() { const SampleToolType type = !tool ? SampleToolType::NONE : tool->type(); diff --git a/RecastDemo/Source/Sample_TileMesh.cpp b/RecastDemo/Source/Sample_TileMesh.cpp index 3213d366..35eb736e 100644 --- a/RecastDemo/Source/Sample_TileMesh.cpp +++ b/RecastDemo/Source/Sample_TileMesh.cpp @@ -290,7 +290,7 @@ void Sample_TileMesh::handleSettings() ImGui::Separator(); } -void Sample_TileMesh::handleTools() +void Sample_TileMesh::drawToolsUI() { const SampleToolType currentType = !tool ? SampleToolType::NONE : tool->type(); #define TOOL(toolType, toolClass) \ diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index d5c97ae0..a9e29ef3 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -723,7 +723,7 @@ int main(int /*argc*/, char** /*argv*/) if (app.sample) { - app.sample->handleTools(); + app.sample->drawToolsUI(); } ImGui::End();