|
|
Source code |
1 2 3 |
<events name="cbbox_scene_update" keep="true"
onxmlcomplete="layer[cbbox_scenes].selectitem( get(scene[get(xml.scene)].name) );"
/>
|
a combobox is by itself only a combobox, when you using to show a scene selection, it doesn't know by its own that when a scene gets changed, that it should update itself.
But doing that is possible of course, e.g. use the 'onxmlcomplete' or 'onnewpano' events and there update the combobox by e.g. calling the 'selectitembyname' action:
https://krpano.com/plugins/combobox/#selectitembyname
Here an example code:
Source code
1
2
3
<events name="cbbox_scene_update" keep="true"
onxmlcomplete="layer[cbbox_scenes].selectitem( get(scene[get(xml.scene)].name) );"
/>
This post has been edited 1 times, last edit by "ramirox3" (May 29th 2019, 3:49pm)