forked from mirror/DotRecast
bugfinx - UI Hovered is always false while the mouse is being clicked
This commit is contained in:
parent
91cc42b828
commit
4c97468f06
|
@ -78,7 +78,7 @@ public class RcLogView : IRcView
|
||||||
|
|
||||||
if (ImGui.BeginChild("scrolling", Vector2.Zero, false, ImGuiWindowFlags.HorizontalScrollbar))
|
if (ImGui.BeginChild("scrolling", Vector2.Zero, false, ImGuiWindowFlags.HorizontalScrollbar))
|
||||||
{
|
{
|
||||||
_mouseInside = ImGui.IsWindowHovered();
|
_mouseInside = ImGui.IsWindowHovered(ImGuiHoveredFlags.RectOnly | ImGuiHoveredFlags.RootAndChildWindows);
|
||||||
|
|
||||||
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, Vector2.Zero);
|
ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, Vector2.Zero);
|
||||||
|
|
||||||
|
|
|
@ -25,11 +25,14 @@ using DotRecast.Core;
|
||||||
using DotRecast.Recast.Demo.Draw;
|
using DotRecast.Recast.Demo.Draw;
|
||||||
using DotRecast.Recast.DemoTool;
|
using DotRecast.Recast.DemoTool;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
using Serilog;
|
||||||
|
|
||||||
namespace DotRecast.Recast.Demo.UI;
|
namespace DotRecast.Recast.Demo.UI;
|
||||||
|
|
||||||
public class RcSettingsView : IRcView
|
public class RcSettingsView : IRcView
|
||||||
{
|
{
|
||||||
|
private static readonly ILogger Logger = Log.ForContext<RecastDemo>();
|
||||||
|
|
||||||
private bool buildTriggered;
|
private bool buildTriggered;
|
||||||
private long buildTime;
|
private long buildTime;
|
||||||
|
|
||||||
|
@ -52,7 +55,6 @@ public class RcSettingsView : IRcView
|
||||||
|
|
||||||
public RcSettingsView()
|
public RcSettingsView()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetSample(Sample sample)
|
public void SetSample(Sample sample)
|
||||||
|
@ -79,7 +81,7 @@ public class RcSettingsView : IRcView
|
||||||
ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y));
|
ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y));
|
||||||
ImGui.Begin("Properties", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize);
|
ImGui.Begin("Properties", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize);
|
||||||
|
|
||||||
_mouseInside = ImGui.IsWindowHovered();
|
_mouseInside = ImGui.IsWindowHovered(ImGuiHoveredFlags.RectOnly | ImGuiHoveredFlags.RootAndChildWindows);
|
||||||
|
|
||||||
ImGui.Text("Input Mesh");
|
ImGui.Text("Input Mesh");
|
||||||
ImGui.Separator();
|
ImGui.Separator();
|
||||||
|
|
|
@ -59,7 +59,7 @@ public class RcToolsetView : IRcView
|
||||||
ImGui.SetNextWindowPos(new Vector2(0, 0));
|
ImGui.SetNextWindowPos(new Vector2(0, 0));
|
||||||
ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y));
|
ImGui.SetNextWindowSize(new Vector2(width, _canvas.Size.Y));
|
||||||
ImGui.Begin("Tools", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize);
|
ImGui.Begin("Tools", ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize);
|
||||||
_mouseInside = ImGui.IsWindowHovered();
|
_mouseInside = ImGui.IsWindowHovered(ImGuiHoveredFlags.RectOnly | ImGuiHoveredFlags.RootAndChildWindows);
|
||||||
|
|
||||||
for (int i = 0; i < tools.Length; ++i)
|
for (int i = 0; i < tools.Length; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue