From eb8eaa1d368b01ba644cbaa39bbe2f5015399c64 Mon Sep 17 00:00:00 2001 From: ikpil Date: Sat, 29 Jul 2023 10:47:12 +0900 Subject: [PATCH] obstacle layout --- src/DotRecast.Recast.Demo/Tools/ObstacleTool.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/DotRecast.Recast.Demo/Tools/ObstacleTool.cs b/src/DotRecast.Recast.Demo/Tools/ObstacleTool.cs index 5d4b1aa..3bf1437 100644 --- a/src/DotRecast.Recast.Demo/Tools/ObstacleTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/ObstacleTool.cs @@ -2,6 +2,7 @@ using DotRecast.Recast.Demo.Draw; using DotRecast.Recast.DemoTool; using DotRecast.Recast.DemoTool.Tools; +using ImGuiNET; using Serilog; namespace DotRecast.Recast.Demo.Tools; @@ -27,6 +28,15 @@ public class ObstacleTool : IRcTool public void Layout() { + if (ImGui.Button("Remove All")) + { + //m_sample->clearAllTempObstacles(); + } + + ImGui.Separator(); + + ImGui.Text("Click LMB to create an obstacle."); + ImGui.Text("Shift+LMB to remove an obstacle."); } public void HandleClick(RcVec3f s, RcVec3f p, bool shift)