Changes between Version 8 and Version 9 of ModdingResources


Ignore:
Timestamp:
Mar 11, 2021, 4:01:35 AM (3 years ago)
Author:
Aziz Rahmad
Comment:

Update the file name and line numbers based on current released A24 code

Legend:

Unmodified
Added
Removed
Modified
  • ModdingResources

    v8 v9  
    120120
    1211214. 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.:
    123123{{{
    124124#!js
     
    129129}}}
    130130  * `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">`
    132132(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.)
    133133
     
    222222* `gui/session/selection_panels.js`
    223223* `gui/session/selection_panels_left/barter_panel.xml`
    224 * `gui/session/top_panel/resources.xml`
     224* `gui/session/top_panel/counters.xml`
    225225* `simulation/templates/special/player.xml`
    226226* `simulation/templates/special/player_gaia.xml`