From 31ab351ffe40a4325ff92c8a2446c84cb2dbf62c Mon Sep 17 00:00:00 2001 From: BlankenshipG Date: Mon, 5 Oct 2026 09:51:19 -0400 Subject: [PATCH] feat(engine): inventory menu item to add an item to RynthAi's item count HUD Co-authored-by: Cursor --- ...6-10-05-inventory-add-to-item-count-hud.md | 22 +++++++++++++++++++ .../ImGui/Panels/InventoryFace.cs | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 Changelog/2026-10-05-inventory-add-to-item-count-hud.md diff --git a/Changelog/2026-10-05-inventory-add-to-item-count-hud.md b/Changelog/2026-10-05-inventory-add-to-item-count-hud.md new file mode 100644 index 0000000..f9ba2ad --- /dev/null +++ b/Changelog/2026-10-05-inventory-add-to-item-count-hud.md @@ -0,0 +1,22 @@ +# Inventory: "Add to item count HUD" (RynthAi 0.5.3-legacy-ui) + +Date: 2026-10-05 +Branches (local): RynthCore `merge/aelrynth-2026.10.5.1`; RynthSuite `fix/rynthai-launcher-remote-commands` +Previous plugin version: 0.5.2-legacy-ui + +## What's new + +- The in-client **Inventory** panel's right-click menu has **Add to item count HUD** for any item + that isn't a pack. It adds the item, by name, to RynthAi's floating item count HUD and shows the + HUD. You no longer have to select the item in the game first and use the HUD setup window. +- Typed equivalent: `/ra itemhud add `. +- RynthAi confirms in chat: `Added to the item count HUD.` or ` is already on the item + count HUD.` The icon and WCID fill in on the HUD's next pack scan. + +## How it works + +- Engine `InventoryFace` sends the remote command `itemhudadd=` through + `RynthAiCommands.ApplyRemoteCommand`. +- RynthAi's `ApplyRemoteCommand` queues it to the pump thread and calls + `HudController.AddToItemHudAndShow` (new). `/ra itemhud add` uses the same handler. +- `/ra itemhud [show|hide|toggle]` is unchanged. diff --git a/src/RynthCore.Engine/ImGui/Panels/InventoryFace.cs b/src/RynthCore.Engine/ImGui/Panels/InventoryFace.cs index 8203e1d..752a63e 100644 --- a/src/RynthCore.Engine/ImGui/Panels/InventoryFace.cs +++ b/src/RynthCore.Engine/ImGui/Panels/InventoryFace.cs @@ -892,6 +892,10 @@ internal sealed partial class InventoryFace : IImGuiPanel _lootAdd.Open(it.Id, it.Name, toOpenProfile: false); if (ImGuiNET.ImGui.IsItemHovered()) ImGuiNET.ImGui.SetTooltip("Make a RynthAi loot rule for this item (preview first)"); + if (!it.IsPack && ImGuiNET.ImGui.MenuItem("Add to item count HUD")) + UI.Data.RynthAiCommands.ApplyRemoteCommand("itemhudadd", it.Name); + if (ImGuiNET.ImGui.IsItemHovered()) + ImGuiNET.ImGui.SetTooltip("Track how many of these you carry on RynthAi's floating item count HUD (/ra itemhud add)"); if (!idle) ImGuiNET.ImGui.TextDisabled("(an item action is waiting)"); }