You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, October 23rd 2018, 7:56am

combobox plugins scene update problem

Is there a way to update the combo box in that scene if a scene change is made to a hot spot while using a combo box plug-in?
Is something wrong with the following code.


<events name="cbbox_scene_update" keep="true"
onxmlcomplete="layer[cbscenes].selectitem( get(scene[get(xml.scene)].name) );"
/>

<combobox name="cbscenes" design="vtour" align="righttop" x="10" y="10" onloaded="add_scene_items();" />
<action name="add_scene_items" scope="local">
for(set(i,0), i LT scene.count, inc(i),
caller.additem(calc('[img src=[dq]' + scene[get(i)].thumburl + '[dq] style=[dq]border:1px solid rgba(255,255,255,0.5);width:48px;height:32px;vertical-align:middle;margin-right:8px;[dq]/] '+scene[get(i)].title), calc('loadscene('+i+',null,MERGE,BLEND(0.5))') );
);
</action>

*sad*

Similar threads