I want to create a button that depending on the scene title/name loads another pano, pretty much like this:
Code
<plugin name="measure" url="skin/measure_btn.png" keep="true" enabled="true" edge="bottomleft" x="0" y="0" scale="0.45" alpha="1" visible="true" onclick="loadpanos()"/>
<action name="loadpanos"> if(scene.title == scene_kitchen, loadscene(scene_kitchen2, null, MERGE, BLEND(1))); if(scene.title == scene_bath, loadscene(scene_bath2, null, MERGE, BLEND(1)));</action>
I have tried many different version of the "if(... == " but I just can't get my head to make it work, what should I search for after the if statement to get it to work?