Improve mod support of the structree. Patch by s0600204.
Adapt structree for changes from the balancing branch. This was SVN commit r16308.
This commit is contained in:
parent
5d447432ec
commit
26d303d854
@ -139,7 +139,7 @@
|
||||
size="60 50%-100 300 50%+100"
|
||||
hidden="true"
|
||||
>
|
||||
<!-- submenuSinglePlayer -->
|
||||
<!-- submenuLearnToPlay -->
|
||||
<object name="submenuLearn"
|
||||
type="image"
|
||||
size="0 4 100%-4 100%-4"
|
||||
|
@ -3,7 +3,7 @@
|
||||
<object name="phase_rows">
|
||||
<repeat count="4" var="k">
|
||||
<object name="phase[k]">
|
||||
<repeat count="11" var="s">
|
||||
<repeat count="12" var="s">
|
||||
<object type="image" style="StructBox" name="phase[k]_struct[s]">
|
||||
<object type="text" style="StructNameSpecific" name="phase[k]_struct[s]_name"/>
|
||||
<object type="image" style="StructIcon" name="phase[k]_struct[s]_icon"
|
||||
|
@ -231,15 +231,14 @@ function selectCiv(civCode)
|
||||
|
||||
// Determine the buildList for the civ (grouped by phase)
|
||||
var buildList = {};
|
||||
for (let pha of g_ParsedData.phaseList)
|
||||
buildList[pha] = [];
|
||||
for (let structCode of g_Lists.structures)
|
||||
{
|
||||
if (!g_ParsedData.structures[structCode].phase || startStructs.indexOf(structCode) > -1)
|
||||
g_ParsedData.structures[structCode].phase = g_ParsedData.phaseList[0];
|
||||
|
||||
let myPhase = g_ParsedData.structures[structCode].phase;
|
||||
|
||||
if (!(myPhase in buildList))
|
||||
buildList[myPhase] = [];
|
||||
buildList[myPhase].push(structCode);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user