orbit/js/ui
Brian Fertig 36ef43119d Show shop cell name + price in a hover tooltip instead of over the icon
- TradeGrid cells now render only the good's icon; hovering a usable cell reveals a shared per-grid tooltip with the name and "sell/buy for N cr" price line, anchored above (or below on the top row) and clamped to the panel.
- Per-cell name/price text objects are removed; a single `label` remains only for locked/empty state ("locked", "—").
- data/shopui.json: add `tooltip` section (bg, border, pad, gap, font sizes) and bump `iconScale` to 0.62 so icons fill the now-cleaner cell.
- Apply theme fonts throughout the shop UI — Ethnocentric for section titles, Centauri for body text, tooltip, stepper, and buttons via `fontStack()`.
- dev/shop-shot.mjs: replace old layout probe with a hover-tooltip probe (structure check, programmatic + real mousemove hovers on sell/buy cells, pointerout hide) and await web fonts before boot so screenshots use the real typefaces.
- dev/shop-ui.test.mjs: new HOVER TOOLTIP suite asserting tooltip visibility, text content, locked/empty suppression, unhover, buy-side pricing, and theme font application.
2026-09-11 21:39:51 -06:00
..
shop Show shop cell name + price in a hover tooltip instead of over the icon 2026-09-11 21:39:51 -06:00
ActionBar.js
…
BuildWindow.js
…
CommsBox.js
…
CommsPanel.js
…
ConfirmOverlay.js
…
CreditsHud.js
…
CyberShape.js
…
DiscoveryCompass.js
…
GalaxyView.js
…
GlitchText.js
…
MapWindow.js
…
MenuButton.js
…
MenuSubBar.js
…
MineralHud.js
…
MiningPopup.js
…
QuestTrackerHud.js
…
QuestWindow.js
…
ResearchWindow.js
…
SavePanel.js
…
SignalCompass.js
…
SlotCard.js
…
Toast.js
…