Skip to content

Fix ship shortcut hints when dock indices have gaps - #341

Merged
netniV merged 1 commit into
STFC-Mod:devfrom
Guffawaffle:fix/ship-shortcut-hint-order
Oct 20, 2026
Merged

netniV merged 1 commit into
STFC-Mod:devfrom
Guffawaffle:fix/ship-shortcut-hint-order

Conversation

@Guffawaffle

Copy link
Copy Markdown
Contributor

When dock F is locked but dock G is available, Show Hotkeys can label the sixth selectable ship as 7, although the mod selects it with 6.

Resolve each ship hint through FleetBarContext.FleetData, matching the positional array used by mod ship selection. This preserves custom bindings and avoids advertising a shortcut when the fleet is unavailable or outside the eight supported positions.

Validation: Windows releasedbg build and shortcut hint/binding tests passed, covering gapped and reordered indices, null entries, the eight-position limit, and a custom binding. No new detours or configuration changes. Runtime confirmation on the reporting account's layout and macOS build/runtime validation remain pending.

@netniV
netniV merged commit 37e3308 into STFC-Mod:dev Oct 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants