You are not logged in.

Search results

Search results 1-5 of 5.

Wednesday, November 5th 2014, 1:47pm

Author: Gaccho

Getting scene name knowing scene.index

Thanks Umalo, but i can't really figure it out. Let's say: Scene[ID] - ID should be unique, right? In your example: Cat 1 1 scene_real_index="3" 2 -||- 5 3 -||- 7 Cat 2 1 scene_real_index="1" 2 -||- 2 3 -||- 4 4 -||- 6 5 -||- 8" i understand these IDs are not unique. My next_scene action now looks like this: Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <action name="skin_nextscene"> add(newsceneindex, scene[get(xml.scene)].index, %1); for(set(i,0), i LT scene.count, inc(i), if(scene[get(i)].i...

Tuesday, November 4th 2014, 11:14am

Author: Gaccho

Including external HTML files

IF i'm including different HTML file inside of each scene tag like this: Source code 1 <scene name="scene_1"><data name="spot_info"><include url="infos/spot_info.html" /></data></scene> - Does it load (include) the file only when corresponding scene is loaded OR it loads ALL included files at once on the start?

Monday, November 3rd 2014, 7:02pm

Author: Gaccho

Getting scene name knowing scene.index

Isn't there something like GET scene.name WHERE scene.index = 1 ?

Monday, November 3rd 2014, 6:57pm

Author: Gaccho

Getting scene name knowing scene.index

Well, i guess i should explain more about the rest of the code. In the tour i have some buttons which are meant as Categories. Each scene has a parameter "group". Scenes are scattered, like: scene[0].group = 'CAT1'; scene[1].group = 'CAT2'; scene[2].group = 'CAT1' ...When pressing on a Category button, code filters all corresponding scenes and sets their scene.index consecutively starting from 0 to count of these scenes. The rest (other category) scene indexes are set to a number higher than tot...

Monday, November 3rd 2014, 5:59pm

Author: Gaccho

Getting scene name knowing scene.index

Is there a way to get scene name if you know the scene index parameter? I have come to solution with looping through all scenes: Source code 1 2 3 4 5 6 add(newsceneindex, scene[get(xml.scene)].index, %1); for(set(i,0), i LT scene.count, inc(i), if(scene[get(i)].index == newsceneindex, set(newscenename, get(scene[get(i)].name)); ); ); But as it is supposed to run on every scene load when pressing next/previous buttons, i think it is pretty heavy algorithm. Is there any easier way how to achieve ...