diff --git a/Changelog/2026-10-04-char-and-hub-launcher-buttons.md b/Changelog/2026-10-04-char-and-hub-launcher-buttons.md new file mode 100644 index 0000000..dbda06e --- /dev/null +++ b/Changelog/2026-10-04-char-and-hub-launcher-buttons.md @@ -0,0 +1,26 @@ +# Launcher buttons: "ILT Hub" renamed to "Char", new "Hub" button (2026-10-04) + +RynthAi 0.6.25, plus an engine change to the Avalonia RynthAi panel. + +## What changed + +The floating HUDs were hard to find: they start hidden and were only reachable through +Settings > Inventory Management or chat commands. Both dashboards now have a launcher for them. + +| Dashboard | Char | Hub | +|-----------|------|-----| +| Avalonia RynthAi panel | Opens the ILT Hub (`/ra hub show`) | Left-click shows/hides the Mini Remote (`/ra remote`). Right-click opens the Inventory HUDs setup window (`/ra huds`). | +| ImGui dashboard launcher grid | Toggles the ILT Hub window. Only shown on ILT/ACECustom worlds, as before. | Toggles the Mini Remote. Lit while it is shown. Shown on every world. | + +- Only the button labels changed. The ILT Hub window title, `/ra hub` and the `[ILT Hub]` chat + messages are unchanged. +- In the ImGui grid, Hub uses the third cell of the last row, which was empty. + +## Files + +- Engine `UI/Panels/RynthAiPanel.cs`: "ILT Hub" launcher renamed to "Char"; new "Hub" launcher + (row 3, column 2) with a right-click handler. +- `LegacyUi/LegacyDashboardRenderer.cs`: "Char" label, "Hub" grid button, and the + `MiniRemoteVisible` / `SetMiniRemoteVisible` hooks. +- `RynthAiPlugin.cs`: wires the hooks to the HUD state at login and clears them at logout. +- Version 0.6.24 → 0.6.25. diff --git a/src/RynthCore.Engine/UI/Panels/RynthAiPanel.cs b/src/RynthCore.Engine/UI/Panels/RynthAiPanel.cs index 0307801..96c245c 100644 --- a/src/RynthCore.Engine/UI/Panels/RynthAiPanel.cs +++ b/src/RynthCore.Engine/UI/Panels/RynthAiPanel.cs @@ -744,16 +744,36 @@ internal static partial class RynthAiPanel ShowPatrolFlyout(patrolBtn); } }; - // ILT Hub: same as typing "/ra hub show". The Hub is an ImGui overlay window with no + // Char: same as typing "/ra hub show". The ILT Hub is an ImGui overlay window with no // Avalonia panel, so this is the panel's way to open it. - var iltHubBtn = AddLauncher(launcherGrid, 2, 0, "ILT Hub", "♥", + var charBtn = AddLauncher(launcherGrid, 2, 0, "Char", "♥", onClick: () => { ClosePicker(); if (_applyRemoteCommand == null) TryBind(); SendRemoteCmd("hub", "show"); }); - ToolTip.SetTip(iltHubBtn, "Open the ILT Hub window (/ra hub show)."); + ToolTip.SetTip(charBtn, "Open the character hub (ILT Hub) window (/ra hub show)."); + + // Hub: the Mini Remote and the Inventory HUDs setup are ImGui windows inside RynthAi. + var hudBtn = AddLauncher(launcherGrid, 2, 1, "Hub", "▣", + onClick: () => + { + ClosePicker(); + if (_applyRemoteCommand == null) TryBind(); + SendRemoteCmd("remote", "toggle"); + }); + ToolTip.SetTip(hudBtn, "Left-click: show/hide the Mini Remote (/ra remote). Right-click: Inventory HUDs setup (/ra huds)."); + hudBtn.PointerPressed += (_, e) => + { + if (e.GetCurrentPoint(hudBtn).Properties.IsRightButtonPressed) + { + e.Handled = true; + ClosePicker(); + if (_applyRemoteCommand == null) TryBind(); + SendRemoteCmd("huds", "show"); + } + }; dash.Children.Add(launcherGrid);