forked from mirrors/0ad
251f599ad2
Mods can add more resources than the summary screen’s fixed layout handled, which crashed with: ERROR: JavaScript error: gui/summary/layout.js:269 headerGUI is null This patch doubles the column templates (9 → 18) and updates the iteration logic so extra headers no longer resolve to null. It removes the need for copy-paste XML edits when mods grow the resource list. Known limitations ----------------- * Column count is still static; a future change should generate the layout from g_Resources at run-time. * UI tested at 1080p and 4 K; very small resolutions might require a horizontal scroll solution.