i just got a job which boss want to change scene title not by editing tour.xml。
so i have to make one extra xml which with <layer name="scene_1" html="livingroom" />
then set one action as <action name="scenetitle">
for(set(i,0), i LT scene.count, inc(i),
txtadd(scenetitle, 'scenetitle', get(i));
set(scene[get(i)].title, get(layer[get(i)].html));
);
</action>
and set it work in scene onstart
but it doesn‘t work
can u help me , please。
can get scene title outside title
-
-
Something like:
Code
Display More<action name="update_titles"> for(set(i,0), i LT scene.count, inc(i), txtadd(scene_index,'scene_', get(i)); set(scene[get(i)].title, get(titles.scene[get(scene_index)].new_title)); ); </action> <titles> <scene name="scene_0" new_title="scene 0 title"/> <scene name="scene_1" new_title="scene 1 title"/> . . </titles>
-
it works , thanks a lot. umalo
-
now you can make your boss happy
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!