Hello colleagues!
Thanks to Klaus for the great work!
by applying this code
<include url="%SWFPATH%/plugins/combobox.xml" />
<events name="combo_refresh" keep="true" onloadcomplete="layer[cb1].selectItem(get(scene[get(xml.scene)].name))" />
<action name="create_box">
addComboboxLayer(cb1, vtour);
set(layer[cb1].align, 'leftbottom');
set(layer[cb1].keep, true);
set(layer[cb1].x, 20);
set(layer[cb1].y, 20);
layer[cb1].addItem(get(scene[get(xml.scene)].name));
for(set(box_cnt,0), box_cnt LE scene.count, inc(box_cnt), create_box2(get(box_cnt)));
</action>
<action name="create_box2">
layer[cb1].addItem(get(scene[%1].name), loadscene(get(scene[%1].name)) );
</action>
Display More
I found that the combobox on my tour did not work, showing such warnings
WARNING: Unknown action: cb.loadstyle
WARNING: Unknown action: cb.createarray
WARNING: Unknown action: layer[cb1].additem
WARNING: Unknown action: layer[get(cbname)].scrollarea.update
By sequentially deleting parts of the program, I defined a module that prevented the operation of the combo box
then I found a conflicting piece of code in this module, it turned out to be an action, counting the coordinates of the hotspot insertion
this action is taken from the example, which is contained both in the original assembly of 1.14 pr15, and in earlier versions
<action name="calc_pos_from_hfov_yaw_pitch_roll">
calc(deg2rad, Math.PI / 180.0);
<!-- calc the hotspot size -->
calc(hfov, 0.5 * (%1) * deg2rad);
Math.tan(hfov);
set(width, calc(hfov * 1000));
set(height, 'prop');
<!-- calc the ath, atv and rotate settings -->
calc(yaw, -(%2) * deg2rad);
calc(pitch, (%3) * deg2rad);
calc(roll, -(%4) * deg2rad);
Math.cos(ch, yaw);
Math.sin(sh, yaw);
Math.cos(ca, pitch);
Math.sin(sa, pitch);
Math.cos(cb, roll);
Math.sin(sb, roll);
Math.atan2(yaw, calc(cb*sh - sb*sa*ch), calc(ca*ch));
Math.atan2(roll, calc(sb*ch - cb*sa*sh), calc(cb*ca));
Math.asin(pitch, calc(cb*sa*ch + sb*sh));
calc(ath, yaw / deg2rad);
calc(atv, pitch / deg2rad);
calc(rotate, roll / deg2rad);
</action>
Display More
in order for the combo box to work fine, I had to change the names of the variables ch, sh, ca, sa, cb, sb
developing very complex virtual tours, I try to make sure that there are no conflicts with the old code in the new program modules, and I succeed
However, from time to time there are situations that are shown above
I believe that the documentation for the krpano should have a list of reserved words etc