Jump to content

Add new resource on Summary screen


azayrahmad
 Share

Recommended Posts

I tried the ModdingResources tutorial on Trac and find that there is no information on how to edit Summary screen at the end of the battle to show the newly created resource. So now after adding new resource, opening Summary screen shows error message like this:

gambar.thumb.png.2e02f91f26f5a07568650b30f5e2674d.png

Anyone knows how to solve this? I tried to look at other mods with new resources (DE and 0abc) and found the same error.

  • Like 1
Link to comment
Share on other sites

You need to replace count="9" by count="10" in the following lines in gui/summary/summary.xml:

<repeat var="x" count="9">
  <object name="titleHeading[x]" type="text" style="ModernTopLabelText"/>
</repeat>
...
<repeat var="x" count="9">
  <object name="Heading[x]" type="text" style="ModernTopLabelText"/>
</repeat>
...
<repeat var="x" count="9">
  <object name="valueDataTeam[i][n][x]" type="text" style="ModernTopLabelText"/>
</repeat>
...
<repeat var="x" count="9">
  <object name="valueDataTeam[i][x]" type="text" style="ModernTopLabelText"/>
</repeat>
...
<repeat var="x" count="9">
  <object name="valueData[n][x]" type="text" style="ModernTopLabelText"/>
</repeat>

You might also want to adjust some padding/margin/width values in layout.js (in the same folder) to fit better on screen.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...