fix(engine): Mini Remote rail-off no longer orphans Crafting section
When the sections rail was hidden off-Remote, undocked/docked Mini Remote showed only Crafting (or another section) with no hub tab bar. Snap to Remote on hide; re-enable rail when leaving Remote; Draw safety net. 2026.10.15.9. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d8061b4d13
commit
f53db6565e
5 changed files with 42 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
@ -1 +1 @@
|
||||||
2026.10.15.8
|
2026.10.15.9
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
2026.10.15.7
|
2026.10.15.8
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,10 @@ internal sealed partial class MiniRemoteFace
|
||||||
_remoteWindowSize = ImGuiNET.ImGui.GetWindowSize() / ImGuiPanelHost.PlacementScale();
|
_remoteWindowSize = ImGuiNET.ImGui.GetWindowSize() / ImGuiPanelHost.PlacementScale();
|
||||||
_section = next;
|
_section = next;
|
||||||
_fitPending = true;
|
_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)
|
if (IsRemote)
|
||||||
{
|
{
|
||||||
// Back on the remote: RynthAi's asks again; the engine grid gets the size it had.
|
// 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();
|
ImGuiNET.ImGui.Separator();
|
||||||
bool rail = RailShown;
|
bool rail = RailShown;
|
||||||
if (ImGuiNET.ImGui.MenuItem("Show the sections rail", "", rail))
|
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 "
|
bool hide = rail;
|
||||||
+ "(Gear, Games and the other ILT tabs), and a section is picked here or with /rc miniremote section <name>.");
|
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 <name> (that turns the rail back on).");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,7 @@ using RynthCore.Engine.Compatibility;
|
||||||
using RynthCore.Engine.Plugins;
|
using RynthCore.Engine.Plugins;
|
||||||
using RynthCore.Engine.UI.Data;
|
using RynthCore.Engine.UI.Data;
|
||||||
using RynthCore.Engine.UI.ScriptWindows;
|
using RynthCore.Engine.UI.ScriptWindows;
|
||||||
|
using RynthCore.Engine.UI.Sections;
|
||||||
using static RynthCore.Engine.ImGuiBackend.Panels.FaceKit;
|
using static RynthCore.Engine.ImGuiBackend.Panels.FaceKit;
|
||||||
|
|
||||||
namespace RynthCore.Engine.ImGuiBackend.Panels;
|
namespace RynthCore.Engine.ImGuiBackend.Panels;
|
||||||
|
|
@ -137,6 +138,11 @@ internal sealed partial class MiniRemoteFace : IImGuiPanel
|
||||||
UI.Sections.SectionRegistry.Snapshot snap = UI.Sections.SectionRegistry.Current;
|
UI.Sections.SectionRegistry.Snapshot snap = UI.Sections.SectionRegistry.Current;
|
||||||
TakeRequestedSection(snap);
|
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).
|
// The rail, then everything else to its right (the indent keeps each line there).
|
||||||
float railW = RailShown ? DrawRail(snap, origin, size) : 0f;
|
float railW = RailShown ? DrawRail(snap, origin, size) : 0f;
|
||||||
if (railW > 0)
|
if (railW > 0)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue