28 lines
1.2 KiB
JSON
28 lines
1.2 KiB
JSON
{
|
|
"_comment": "MINERAL HUD — the ship's hold readout in the UPPER-RIGHT corner (the old tether stack's spot): the 'MINERALS n / N' line over a fill bar. The bar IS the hold — fill = minerals aboard (ship.minerals) / capacity (ship.stats.mineralStorage), filling left→right; set() animates the number counting up and the bar sliding with it, and a brief cyan flash ripples over the bar when minerals land; at capacity the fill turns theme 'amber'. pad/lineGap anchor the block to the corner (right margin, top margin); bar = the track (width/height px, border = the 1px frame, inset = how far the fill sits inside it); label = the number's font; countUp = the shared number+bar animation; flash = the landing ripple (alpha at t=0). Palette: neon = live (theme 'neon'), amber = full (theme 'amber'), track* = the command deck's slot colors (data/actionbar.json).",
|
|
"pad": 16,
|
|
"lineGap": 8,
|
|
"label": {
|
|
"fontSize": 12,
|
|
"letterSpacing": 1
|
|
},
|
|
"bar": {
|
|
"width": 220,
|
|
"height": 8,
|
|
"border": 1,
|
|
"inset": 1
|
|
},
|
|
"colors": {
|
|
"track": "#0b1322",
|
|
"trackBorder": "#22405f"
|
|
},
|
|
"countUp": {
|
|
"durationMs": 420,
|
|
"ease": "Sine.easeOut"
|
|
},
|
|
"flash": {
|
|
"durationMs": 340,
|
|
"alpha": 0.5
|
|
}
|
|
}
|