Sie sind nicht angemeldet.

1

Freitag, 5. Juni 2020, 19:12

Combobox with switchings skins

*sad* Hi there,

I'm creating a mixed pano tour (v1.20.6) with images and videos. Therefore I have a two skins included:

Quellcode

1
2
<include url="skin/vtourskin.xml" if="design == 'normal'" />
<include url="skin/videointerface.xml" if="design == 'video'" />


For changing the skin I use this action:

Quellcode

1
2
3
4
5
6
<action name="change_skin_design">
            set(startscene,%2);
            if(%1!=null,set(design,%1),);
            trace(get(design));
            loadpanoscene("tour.xml", %2, null, IGNOREKEEP, NOBLEND);
</action>


When I call the action from an hotspot with onclick="change_skin_design(normal,scene_01);" it works just fine.
But when I call the action from a combobox item its loading the correct scene, but the skin doesn't change:

Quellcode

1
2
3
4
<combobox name="cbscenes" design="rounded" align="topleft" x="20" y="20" onchange="selectItemByName(0);">
	<item name="item0" caption="Item 1" onclick="change_skin_design(normal,scene_01);" />
	<item name="item1" caption="Item 2" onclick="change_skin_design(video,scene_02);" />	
</combobox>


Did anyone have a similar Problem?

Edit: I uploaded an edited skinselect.xml from the examples, where I added the combobox with the same onclick event. Same here: when it is called from the layer it works fine. Called from a combobox item doesnt work.
»reim_dh« hat folgende Datei angehängt:
  • skinselect.xml (2,88 kB - 88 mal heruntergeladen - zuletzt: Heute, 12:26)

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »reim_dh« (5. Juni 2020, 20:25)


Ähnliche Themen