orbit/data
Brian Fertig 54989d3a3a Make BUY/SELL a toggle and save pending trade across panel close
- Pressing the open tab now closes the panel (back to entry state) instead of
  rebuilding it; pressing again re-opens with the selection restored, so hiding
  the panel no longer loses the player's pending trade.
- Save the SELL/BUY maps onto ShopView (_pendingSell/_pendingBuy) on toggle-close
  and tab switch; _restorePendingSelection() re-applies them when the panel is
  rebuilt. The sub-bar stays live while closed: NET shows the delta, Clear
  cancels the saved trade, Confirm executes it.
- preview()/clear()/_afterTrade()/_hasAnySelection() now treat a null tab with a
  pending selection as an active trade, so the buyback path is no longer shadowed.
- Rename ScoutPanel.data to report: Phaser's GameObject reserves .data (its Data
  manager), and a plain object there crashed GameObject.destroy(). Update all
  callers in ShopView, tests, and dev/shop-shot.mjs.
- Simplify the scout price line to credits only ("9 CR") and drop the now-unused
  priceSell style from shopui.json; update goods.png/psd.
- Add setSellMap()/setBuyMap() to TradeGrid/BuyList to restore a saved selection
  onto freshly rebuilt panels, and cover the toggle flow in shop-ui.test.mjs plus
  a toggle probe in dev/shop-shot.mjs.
2026-09-12 11:19:39 -06:00
..
research
…
actionbar.json
…
asteroids.json
…
builds.json Add shop buy/sell UI, cargo hold, and cargo bay upgrades 2026-09-11 20:11:34 -06:00
comms.json Add faction worldgen layer: territories, capitals, bridges, and arid pla 2026-09-10 21:45:33 -06:00
creditshud.json Add trade economy engine, credits currency, and goods catalog 2026-09-11 18:36:30 -06:00
economy.json Add shop buy/sell UI, cargo hold, and cargo bay upgrades 2026-09-11 20:11:34 -06:00
factions.json Add faction territory floor and ring all stars by ownership 2026-09-11 13:34:35 -06:00
galaxy.json
…
game.json Add front nebula layer with derived accent tint for two-tone gas 2026-09-10 22:48:40 -06:00
gates.json Add faction worldgen layer: territories, capitals, bridges, and arid pla 2026-09-10 21:45:33 -06:00
goods.json Add trade economy engine, credits currency, and goods catalog 2026-09-11 18:36:30 -06:00
landing.json Fix shop buy-row bar position and stepper hitbox anchoring 2026-09-12 08:54:50 -06:00
manifest.json Add shop buy/sell UI, cargo hold, and cargo bay upgrades 2026-09-11 20:11:34 -06:00
map.json Add faction territory floor and ring all stars by ownership 2026-09-11 13:34:35 -06:00
menu.json
…
mineralhud.json
…
music.json
…
naming.json
…
planets.json Add faction worldgen layer: territories, capitals, bridges, and arid pla 2026-09-10 21:45:33 -06:00
quests.json Add trade economy engine, credits currency, and goods catalog 2026-09-11 18:36:30 -06:00
reputation.json
…
research.json
…
save.json
…
scan.json
…
settlements.json Add faction worldgen layer: territories, capitals, bridges, and arid pla 2026-09-10 21:45:33 -06:00
sfx.json
…
ship.json Add shop buy/sell UI, cargo hold, and cargo bay upgrades 2026-09-11 20:11:34 -06:00
shopui.json Make BUY/SELL a toggle and save pending trade across panel close 2026-09-12 11:19:39 -06:00
signalCompass.json
…
stations.json
…
systems.json Add far-sky lightning bolts to nebula systems 2026-09-10 23:11:21 -06:00
tether.json
…
theme.json
…