• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Vo1

Recruit
19 Badges
May 13, 2016
6
0
  • Cities: Skylines - Mass Transit
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Shadowrun Returns
  • Stellaris: Apocalypse
  • Cities: Skylines - Green Cities
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • Cities: Skylines
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Cities: Skylines Deluxe Edition
So how do we use it runtime?

PlaceObj( "XTemplateForEach", {
"__context", function() AddCustomOnScreenNotification("WAT", "WAT", "This one is showing up") end,
"array", function(parent, context) AddCustomOnScreenNotification("WAT", "WAT", "Not showing up") end
},
{PlaceObj("XTemplateTemplate", {"__template", "InfopanelText", "Id", "idResource", "Text", "ChildText"})}
)

__context is executed in it, while array/condition/run_before/run_after - totally ignored.
What do I miss here (besides documentation).
It looks like XTemplateForEach:Eval is not triggered at all here. I can see "ChildText" rendered and no notification at all. Looks like XTemplateForEach is processed like XTemplateTemplate