Hi all, I declare custom xml elements to manage the menu of my tours like the one below.
I am able to loop through the content.
<action name="skin_build_scene_groups"> for(set(counter,0), counter LT scene_group.count, inc(counter), set(group_id, get(scene_group[get(counter)].name) ); set(scenes_count, get(scene_group[get(counter)].scene.count) ); for(set(scene_counter,0), scene_counter LT scene_group[get(counter)].scene.count, inc(scene_counter), set(scene_name, get(scene_group[get(counter)].scene[get(scene_counter)].name) ); <!-- do something here--> ); ); </action>
However the code above will only work before any "loadscene" calls, after loadscene it no longer works and when I try to do a check for the count its null
The debug code above when put before loadscene returns a number but after loadscene it returns null.
Trying to go through the docs and cant find an explanation. Can anyone enlighten me on what is happening?