|
|
Quellcode |
1 2 3 4 5 6 7 |
<scene [...]> <view [...]> <image> <sphere url="..." /> </image> [...] </scene> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
<scene [...]> <plugin name="video" onloaded="addvideosources();"> <image> <sphere url="plugin:video" /> </image> <view [...]> <action name="addvideosources"> [...] </action> </scene> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<krpano>
<action name="testing" autorun="onstart">
if(
get(design)===null,
trace("initial run and parameter set");
change_skin_design('normal',mid);,
);
</action>
<!-- no loading text, keep thumbs opened state -->
<skin_settings loadingtext="" thumbs_opened="calc:skin_thumbs_last_state === 'opened' ? true : false" />
<action name="change_skin_design">
set(startscene,%2);
if(%1!=null,set(design,%1),);
trace(get(design));
loadpanoscene("/showroom/parent.xml", %2, null, IGNOREKEEP, NOBLEND);
</action>
<!-- include optionally different skin -->
<include url="/showroom/krpano/skin/videointerface.xml" if="design == 'video'" />
<include url="/showroom/krpano/skin/vtourskin.xml" if="design == 'normal'" />
<!-- include the corfu tour -->
<include url="/showroom/showroom.xml" />
</krpano>
|
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
Benutzerinformationen überspringen
Wohnort: Berlin
Beruf: Software-Entwickler bei VR-Easy ( HTML, JS, PHP, krpano, C++, Java )
Am schönsten wäre es natürlich, wenn man in der XML ein Dummy-Element à la "<div>" hinzufügen könnte, mit dem man nicht nur die Layer, sondern auch Aktionen und Events löschen kann, die man durch das Inkludieren eines Skins geladen hat.