Jump to content

Add new resource on Summary screen


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 post
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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...