site 2.0.1: flash bar stays in place under the mods, tidied up for phones
- The flash bar is a plain card in the page flow (no sticky/floating). - Head, legend and "What each mod takes" tidied: values no longer break mid-number, sizes like "< 0.1 KB" stay on one line, the shared row is set apart; on phones each mod's name and size sit over a full-width bar. - The list stays open when a mod is ticked or unticked. - Phones: each mod's tags and flash share sit under its text instead of spilling out of the checkbox column. - make_builder_data.py: the boot text stamp leaves the release tags' "New in Pionaarr Mods 2.0.0" alone. - Boot text Pionaarr Mods 2.0.1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ff32f83297
commit
d77c7a9dc1
14 files changed
+115
-54
No files matched your search
+5
-5
@@ -40,7 +40,7 @@
|
||||
{ id: 'exfatfs', release: '2.0', name: 'exFAT sticks', by: 'ours', state: 'experimental',
|
||||
what: 'Sticks formatted exFAT (Windows from 64 GB, macOS) work like FAT32 ones: browse, play, and what the player writes to a stick goes onto them too.' },
|
||||
{ id: 'credit', name: 'Boot text', by: 'ours', state: 'stable',
|
||||
what: 'The boot screen says “Pionaarr Mods 2.0.0” instead of “Ver 1.31”.' }
|
||||
what: 'The boot screen says “Pionaarr Mods 2.0.1” instead of “Ver 1.31”.' }
|
||||
];
|
||||
var chosen = {};
|
||||
MODS.forEach(function (m) { chosen[m.id] = true; }); // every mod ticked at the start
|
||||
@@ -129,18 +129,18 @@
|
||||
picked.forEach(function (m, i) {
|
||||
segs += '<span class="fl-seg fl-mod fl-c' + (i % 4) + '" style="width:' + pct(share(m.id)) + '" title="' + m.name + ' ' + kb(share(m.id)) + '"></span>';
|
||||
});
|
||||
var zoom = '';
|
||||
var zoom = '', was = el.querySelector('.fl-zoom'), open = was && was.open; // a tick keeps the list open
|
||||
picked.slice().sort(function (a, b) { return share(b.id) - share(a.id); }).forEach(function (m) {
|
||||
zoom += '<span class="fl-row"><span class="fl-name">' + m.name + '</span><span class="fl-track"><span class="fl-fill" style="width:' +
|
||||
(100 * share(m.id) / Math.max.apply(null, picked.map(function (x) { return share(x.id); }))).toFixed(1) + '%"></span></span><span class="fl-kb">' + kb(share(m.id)) + '</span></span>';
|
||||
});
|
||||
el.innerHTML =
|
||||
'<div class="fl-head"><strong>Flash</strong><span>' + mb(used) + ' of ' + mb(FL.size) + ' used · <strong>' + mb(free) + ' free</strong> (' + (100 * free / FL.size).toFixed(1) + ' %)</span></div>' +
|
||||
'<div class="fl-head"><strong>Flash</strong><span><span class="fl-nw">' + mb(used) + ' of ' + mb(FL.size) + ' used</span> · <span class="fl-nw"><strong>' + mb(free) + ' free</strong> (' + (100 * free / FL.size).toFixed(1) + ' %)</span></span></div>' +
|
||||
'<div class="fl-bar" role="img" aria-label="Flash: firmware ' + mb(FL.stock) + ', mods ' + kb(mods) + ', free ' + mb(free) + '">' + segs + '</div>' +
|
||||
'<div class="fl-legend"><span><i class="fl-fw"></i>Pioneer firmware ' + mb(FL.stock) + '</span><span><i class="fl-mod fl-c0"></i>Mods ' + kb(mods) +
|
||||
' (' + picked.length + ')</span><span><i class="fl-free"></i>Free ' + mb(free) + '</span></div>' +
|
||||
(picked.length ? '<details class="fl-zoom"><summary>What each mod takes</summary>' + zoom +
|
||||
'<span class="fl-row"><span class="fl-name">Shared by all</span><span class="fl-track"><span class="fl-fill fl-common" style="width:' +
|
||||
(picked.length ? '<details class="fl-zoom"' + (open ? ' open' : '') + '><summary>What each mod takes</summary>' + zoom +
|
||||
'<span class="fl-row fl-shared"><span class="fl-name">Shared by all</span><span class="fl-track"><span class="fl-fill fl-common" style="width:' +
|
||||
(100 * common / Math.max.apply(null, picked.map(function (x) { return share(x.id); }).concat([common]))).toFixed(1) + '%"></span></span><span class="fl-kb">' + kb(common) + '</span></span></details>' : '') +
|
||||
'<p class="hint">Sizes as the player stores the firmware (packed), about: the packer shares a lot between mods. Exact with none and with all; the build’s checks give the exact total.</p>';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user