diff --git a/src/DotRecast.Recast.Demo/RecastDemo.cs b/src/DotRecast.Recast.Demo/RecastDemo.cs index 43a9137..75fad26 100644 --- a/src/DotRecast.Recast.Demo/RecastDemo.cs +++ b/src/DotRecast.Recast.Demo/RecastDemo.cs @@ -362,7 +362,8 @@ public class RecastDemo dd.Init(camr); - _imgui = new ImGuiController(_gl, window, _input); + ImGuiFontConfig imGuiFontConfig = new(Path.Combine("resources\\fonts", "DroidSans.ttf"), 24, null); + _imgui = new ImGuiController(_gl, window, _input, imGuiFontConfig); DemoInputGeomProvider geom = LoadInputMesh(Loader.ToBytes("nav_test.obj")); sample = new Sample(geom, ImmutableArray.Empty, null); diff --git a/src/DotRecast.Recast.Demo/UI/RcLogView.cs b/src/DotRecast.Recast.Demo/UI/RcLogView.cs index ca098bf..4b3409b 100644 --- a/src/DotRecast.Recast.Demo/UI/RcLogView.cs +++ b/src/DotRecast.Recast.Demo/UI/RcLogView.cs @@ -63,11 +63,12 @@ public class RcLogView : IRcView public void Draw(double dt) { - int otherWidth = 310; + int otherWidth1 = 350; + int otherWidth2 = 620; int height = 234; - var width = _canvas.Size.X - (otherWidth * 2); + var width = _canvas.Size.X - (otherWidth1 + otherWidth2); //var posX = _canvas.Size.X - width; - ImGui.SetNextWindowPos(new Vector2(otherWidth, _canvas.Size.Y - height)); + ImGui.SetNextWindowPos(new Vector2(otherWidth1, _canvas.Size.Y - height)); ImGui.SetNextWindowSize(new Vector2(width, height)); if (!ImGui.Begin("Log", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize)) { diff --git a/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs b/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs index e27ebb5..871390a 100644 --- a/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs +++ b/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs @@ -75,7 +75,7 @@ public class RcSettingsView : IRcView { var settings = _sample.GetSettings(); - int width = 310; + int width = 620; var posX = _canvas.Size.X - width; ImGui.SetNextWindowPos(new Vector2(posX, 0)); ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y)); diff --git a/src/DotRecast.Recast.Demo/UI/RcToolsetView.cs b/src/DotRecast.Recast.Demo/UI/RcToolsetView.cs index 77fd4f4..12f14f4 100644 --- a/src/DotRecast.Recast.Demo/UI/RcToolsetView.cs +++ b/src/DotRecast.Recast.Demo/UI/RcToolsetView.cs @@ -55,7 +55,7 @@ public class RcToolsetView : IRcView public void Draw(double dt) { - int width = 310; + int width = 350; ImGui.SetNextWindowPos(new Vector2(0, 0)); ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y)); ImGui.Begin("Tools", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize);