orbit/js/ui
Brian Fertig 146dc207df Add compact far-display mode to the discovery compass
- Targets beyond `farDistance` from the ship fold to a small text-less chip with a shrunken arrow, reducing visual clutter for distant objects
- Hovering a far chip expands it to the full readout after an intent delay; hovering off folds it back only after a grace period, so quick flicks don't pop or yank it
- Assign per-type compass accent colors: green for planets (data/planets.json), red for stations (data/stations.json), gray for asteroid clusters (already present)
- Export `isFarTarget` and `syncEntryMode` as pure helpers for Node testing; add far-display coverage to dev/discovery.test.mjs
- Add a headless integration driver (dev/compass-far.html + .mjs) that boots GameScene, parks the ship between near and far targets, and exercises the hover-intent lifecycle end-to-end
- Pass the ship position into `compass.refresh()` from GameScene so the compass can compute per-target far/near state each frame
2026-09-07 11:07:20 -06:00
..
ActionBar.js
…
BuildWindow.js
…
CommsPanel.js
…
ConfirmOverlay.js Add autopilot confirm dialog and wheel zoom / drag pan to the map consol 2026-09-07 10:27:29 -06:00
CyberShape.js
…
DiscoveryCompass.js Add compact far-display mode to the discovery compass 2026-09-07 11:07:20 -06:00
GlitchText.js
…
MapWindow.js Add autopilot confirm dialog and wheel zoom / drag pan to the map consol 2026-09-07 10:27:29 -06:00
MenuButton.js
…
MenuSubBar.js
…
MineralHud.js
…
MiningPopup.js
…
ResearchWindow.js
…
SavePanel.js
…
SignalCompass.js
…
SlotCard.js
…
Toast.js
…