diff --git a/Changelog/2026-10-16-miniremote-rail-off-orphan-2026.10.15.9.md b/Changelog/2026-10-16-miniremote-rail-off-orphan-2026.10.15.9.md new file mode 100644 index 0000000..d2e2fc3 --- /dev/null +++ b/Changelog/2026-10-16-miniremote-rail-off-orphan-2026.10.15.9.md @@ -0,0 +1,18 @@ +# 2026.10.15.9 - Mini Remote: rail-off no longer orphans Crafting/sections + +Previous: 2026.10.15.8. + +## Fix + +Undocked (and docked) Mini Remote could show only Crafting's Armor/Weapons/Jewelry +tabs with no Remote stats and no Gear/Games/Vaulted hub bar: the window was on a +non-Remote section with the sections rail hidden, so the hub tab bar never drew. + +- Hiding the rail snaps back to Remote (restores miniremote-window tab bar). +- Picking a non-Remote section while the rail is off turns the rail back on. +- Draw safety: rail-off + non-Remote forces Remote. + +## Files + +- ImGui/Panels/MiniRemoteFace.cs +- ImGui/Panels/MiniRemoteFace.Sections.cs diff --git a/installer/previous-release/last-built-version.txt b/installer/previous-release/last-built-version.txt index 96ffdfe..c1a5c58 100644 --- a/installer/previous-release/last-built-version.txt +++ b/installer/previous-release/last-built-version.txt @@ -1 +1 @@ -2026.10.15.8 +2026.10.15.9 diff --git a/installer/previous-release/previous-version.txt b/installer/previous-release/previous-version.txt index 8306237..96ffdfe 100644 --- a/installer/previous-release/previous-version.txt +++ b/installer/previous-release/previous-version.txt @@ -1 +1 @@ -2026.10.15.7 +2026.10.15.8 diff --git a/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.Sections.cs b/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.Sections.cs index cc0e588..143dbfb 100644 --- a/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.Sections.cs +++ b/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.Sections.cs @@ -123,6 +123,10 @@ internal sealed partial class MiniRemoteFace _remoteWindowSize = ImGuiNET.ImGui.GetWindowSize() / ImGuiPanelHost.PlacementScale(); _section = next; _fitPending = true; + // Non-Remote sections need the left rail (or they draw as an orphan body with no + // hub tab bar). Rail-off is only for Remote + miniremote-window (Gear/Games/…). + if (!IsRemote && !RailShown) + PanelColumnStore.Set(RailKey, 1f); if (IsRemote) { // Back on the remote: RynthAi's asks again; the engine grid gets the size it had. @@ -504,8 +508,17 @@ internal sealed partial class MiniRemoteFace ImGuiNET.ImGui.Separator(); bool rail = RailShown; if (ImGuiNET.ImGui.MenuItem("Show the sections rail", "", rail)) - PanelColumnStore.Set(RailKey, rail ? 0f : 1f); - SafeImGui.SetItemTooltip("The column of sections down the left. Hidden, RynthAi's remote shows its own tab bar again " - + "(Gear, Games and the other ILT tabs), and a section is picked here or with /rc miniremote section ."); + { + bool hide = rail; + PanelColumnStore.Set(RailKey, hide ? 0f : 1f); + // Hiding the rail only restores the Remote tab bar when we are on Remote + // (Surface → miniremote-window). Off-Remote + rail off left Crafting/etc. + // as a lone body in docked and undocked windows (2026-10-16). + if (hide && !IsRemote) + SelectSection(SectionCatalog.RemoteId); + } + SafeImGui.SetItemTooltip("The column of sections down the left. Hidden, the window returns to Remote so " + + "RynthAi's tab bar shows again (Pets, Crafting, Gear, Games, Vaulted), and a section is picked " + + "here or with /rc miniremote section (that turns the rail back on)."); } } diff --git a/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.cs b/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.cs index ffdbe91..03508b1 100644 --- a/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.cs +++ b/src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.cs @@ -48,6 +48,7 @@ using RynthCore.Engine.Compatibility; using RynthCore.Engine.Plugins; using RynthCore.Engine.UI.Data; using RynthCore.Engine.UI.ScriptWindows; +using RynthCore.Engine.UI.Sections; using static RynthCore.Engine.ImGuiBackend.Panels.FaceKit; namespace RynthCore.Engine.ImGuiBackend.Panels; @@ -137,6 +138,11 @@ internal sealed partial class MiniRemoteFace : IImGuiPanel UI.Sections.SectionRegistry.Snapshot snap = UI.Sections.SectionRegistry.Current; TakeRequestedSection(snap); + // Safety: rail-off + non-Remote draws only that section's body (no hub tabs). Snap + // back to Remote so undocked/docked Mini Remote keeps Pets/Crafting/Gear/Games/Vaulted. + if (!RailShown && !IsRemote) + SelectSection(SectionCatalog.RemoteId); + // The rail, then everything else to its right (the indent keeps each line there). float railW = RailShown ? DrawRail(snap, origin, size) : 0f; if (railW > 0)