feat(engine,launcher): ILT Hub panel button, ImGui windows over Avalonia, live per-category logging
RynthAi Avalonia panel gains an ILT Hub button (hub show via ApplyRemoteCommand). ImGui draw data is submitted after the Avalonia blit and ImGui gets mouse priority when hovered. Engine reads LoggingLevel (now incl. Off) and LogCategories from engine.json live; launcher 0.1.5 edits engine and RynthAi log levels on the fly. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
f34447805b
commit
6b94752128
15 changed files with 855 additions and 67 deletions
|
|
@ -927,7 +927,7 @@ internal static unsafe class Win32Backend
|
|||
{
|
||||
// fall through: AC gets the message
|
||||
}
|
||||
else if (IsMouseMessage(msg))
|
||||
else if (IsMouseMessage(msg) && !ImGuiOwnsMouseOverAvalonia())
|
||||
{
|
||||
bool handled = TryForwardToAvalonia(msg, wParam, lParam);
|
||||
if (handled)
|
||||
|
|
@ -1007,6 +1007,17 @@ internal static unsafe class Win32Backend
|
|||
/// If the cursor is over the Avalonia shell panel, PostMessage the mouse event to
|
||||
/// the off-screen Avalonia HWND and return true (caller should suppress game delivery).
|
||||
/// </summary>
|
||||
/// <summary>
|
||||
/// ImGui windows are drawn on top of the Avalonia layer, so when the cursor is over
|
||||
/// an ImGui window (or an ImGui widget is active) mouse input must go to ImGui
|
||||
/// instead of the Avalonia panel underneath. An Avalonia drag/resize that is already
|
||||
/// in progress keeps its capture so the release is never lost.
|
||||
/// </summary>
|
||||
private static bool ImGuiOwnsMouseOverAvalonia()
|
||||
{
|
||||
return _wantCaptureMouse && !AvaloniaOverlay.HasPointerCapture;
|
||||
}
|
||||
|
||||
private static bool TryForwardToAvalonia(uint msg, IntPtr wParam, IntPtr lParam)
|
||||
{
|
||||
IntPtr avHwnd = AvaloniaOverlay.AvaloniaHwnd;
|
||||
|
|
|
|||
Loading…
Reference in a new issue