Changes between Version 8 and Version 9 of ModdingResources
- Timestamp:
- Mar 11, 2021, 4:01:35 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModdingResources
v8 v9 120 120 121 121 4. Modify the following files to a display a number of resources larger than four: 122 * `gui/session/selection_panels.js`: search for `g_SelectionPanels.Barter` (currently line 96) and change the `"getMaxNumberOfItems"` and `"rowLength"` elements, e.g.:122 * `gui/session/selection_panels.js`: search for `g_SelectionPanels.Barter` (currently line 79) and change the `"getMaxNumberOfItems"` and `"rowLength"` elements, e.g.: 123 123 {{{ 124 124 #!js … … 129 129 }}} 130 130 * `gui/session/selection_panels_left/barter_panel.xml` (currently line 6): e.g. `<repeat count="5">` (this value must match the return value of the JS file) 131 * `gui/session/top_panel/ resources.xml` (currently line 4): e.g. `<repeat count="5">`131 * `gui/session/top_panel/counters.xml` (currently line 5): e.g. `<repeat count="5">` 132 132 (Note that due to 0 A.D.'s requirement to support a minimum screen resolution of 1024x768px, there isn't really enough space in the top panel for more than four resources plus the population count, nor is their in the market barter panel. If you do not care about this, the easiest solution, perfectly fine. If you do care, then the harder solution is to redesign the session UI. Good luck with that.) 133 133 … … 222 222 * `gui/session/selection_panels.js` 223 223 * `gui/session/selection_panels_left/barter_panel.xml` 224 * `gui/session/top_panel/ resources.xml`224 * `gui/session/top_panel/counters.xml` 225 225 * `simulation/templates/special/player.xml` 226 226 * `simulation/templates/special/player_gaia.xml`