File: //home2/gazetufm/arkivakulturoregjilan.org/ekspozitat/FahredinSpahija/FSdata/FS_skin.xml
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.23.1">
<!-- Spot Style - Default Point Spot Style -->
<style name="IconDefaultPointSpotStyle"
url="%FIRSTXML%/spots/hotspot_animated_user_defaultpoint0.png"
visible="false"
frame="0"
lastframe="19"
framewidth="64"
frameheight="64"
stopspotsequence="false"
crop="0|0|64|64"
edge="center"
onloaded="startspotanimation(0.1);showPermanentTooltip(all);"
onover="onoverIconDefaultPointSpotStyle"
onout="onoutIconDefaultPointSpotStyle"
/>
<action name="onoverIconDefaultPointSpotStyle">
pauseautorotation(forcehotspot);
</action>
<action name="onoutIconDefaultPointSpotStyle">
resumeautorotation(forcehotspot);
</action>
<!-- Video Spot Style - Default Video Spot Style -->
<style name="RectVideoDefaultVideoSpotStyleLoader" url="%FIRSTXML%/spots/loadanimation.png" crop="0|0|64|64" ypos="0" frame="0" distorted="true" visible="false" />
<style name="RectVideoDefaultVideoSpotStyle"
capture="false"
visible="false"
distorted="true"
scale="1.0"
url.html5="%FIRSTXML%/graphics/videoplayer.js"
loop="true"
autoresume="true"
pausedonstart="true"
pausedonstart.android="false"
pauseothersounds="false"
canstart="false"
onhover="onhoverRectVideoDefaultVideoSpotStyle"
onout="onoutRectVideoDefaultVideoSpotStyle"
onvideoready="onvideoreadyRectVideoDefaultVideoSpotStyle"
/>
<style name="RectVideoDefaultVideoSpotStyle"
directionalsound="false"
/>
<style name="RectVideoDefaultVideoSpotStyle" stateVideo="startplaying" devices="no-ios"/>
<style name="RectVideoDefaultVideoSpotStyle" stateVideo="startpaused" devices="ios" />
<style name="RectVideoDefaultVideoSpotStyle" stateVideo="startplaying" devices="ios10" />
<action name="onhoverRectVideoDefaultVideoSpotStyle">
showTooltip('hotspot');
if(hotspot[get(videocontrolpause)].visible == false,
if(hotspot[get(videocontrolplay)].visible == false,
set(hotspot[get(videocontrolpause)].visible, true);
);
);
</action>
<action name="onoutRectVideoDefaultVideoSpotStyle">
hideTooltip();
ifnot(ispaused,
if(hotspot[get(videocontrolpause)].visible,
set(hotspot[get(videocontrolpause)].visible, false);
);
);
</action>
<action name="onvideoreadyRectVideoDefaultVideoSpotStyle">
set(isVideoReadyForPlaying, false);
if (isvideoready,
if(panovideospotsstate,set(canstart, true););
if (canstart,
set(isVideoReadyForPlaying, true);
);
);
if(isVideoReadyForPlaying,
if(tour_displayspots,
if(ispaused,
if(stateVideo == "startplaying",
set(stateVideo, "playing");
play();
);
);
);
if (tour_soundson,
div(volume, tour_soundsvolume, 100);
,
set(volume, 0);
);
onvideoreadyspecific();
onvideoreadycontrols();
,
delayedcall(0.5,onvideoreadyRectVideoDefaultVideoSpotStyle());
);
</action>
<action name="animatevideospotloaderRectVideoDefaultVideoSpotStyle">
if(hotspot[%1],
if(hotspot[%1].activated,
set(hotspot[%1].visible, true);
);
inc(hotspot[%1].frame,1, 11,0);
mul(hotspot[%1].ypos, hotspot[%1].frame, 64);
txtadd(hotspot[%1].crop, '0|', get(hotspot[%1].ypos),'|64|64');
delayedcall(%2, 0.1, animatevideospotloaderRectVideoDefaultVideoSpotStyle(%1, %2) );
,
stopdelayedcall(%2);
);
</action>
<action name="stopvideospotloaderanimationRectVideoDefaultVideoSpotStyle">
removehotspot(%1);
</action>
<!-- ********** -->
<!-- Classic Control Bar -->
<!-- id : controlBar_classic -->
<!-- ********** -->
<krpano controlBar_classicbarbuilt="false" controlBar_classicbackgroundwidthwhenclosed="0" controlBar_classicbackgroundwidthwhenopened="0" controlBar_classicIsOpened="false" />
<events name="controlBar_classicevents"
onxmlcomplete="controlBar_classicbuildMenuBar();"
keep="true" />
<action name="controlBar_classicbuildMenuBar">
ifnot (controlBar_classicbarbuilt, controlBar_classicbuildMenu(); set(controlBar_classicbarbuilt, true););
</action>
<action name="controlBar_classicbuildMenu">
set(controlBar_classicbutton_pos, 20);
set(layer[controlBar_classicbtn_hidecontrols].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_showcontrols].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
add(controlBar_classicbackgroundwidthwhenclosed, get(controlBar_classicbutton_pos), 20);
set(layer[controlBar_classicbtn_display_info].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_close_info ].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
if (device.desktop,
set(layer[controlBar_classicbtn_display_help].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_close_help ].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
if (device.fullscreensupport,
set(layer[controlBar_classicbtn_openfs ].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_closefs].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
set(layer[controlBar_classicbtn_autorotate_on ].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_autorotate_off].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
set(layer[controlBar_classicbtn_sound_on ].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_sound_off].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
if(plugin[ptpvrmode] AND device.html5,
set(layer[controlBar_classicbtn_enter_vr].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_enter_vr_not].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
if(plugin[gyroscope],
set(controlBar_classicDisplayGyroscopeButton, false);
if (device.tablet, set(controlBar_classicDisplayGyroscopeButton, true););
if (device.mobile, set(controlBar_classicDisplayGyroscopeButton, true););
if(controlBar_classicDisplayGyroscopeButton,
set(layer[controlBar_classicbtn_gyroscope_on ].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_gyroscope_off].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_gyroscope_not].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
);
inc(controlBar_classicbutton_pos, 20);
set(controlBar_classicbackgroundwidthwhenopened, get(controlBar_classicbutton_pos));
add(controlBar_classicVerifyVisibility, 20, 20);
if(controlBar_classicbackgroundwidthwhenopened == controlBar_classicVerifyVisibility,
set(controlBar_classicbackgroundwidthwhenopened, 0);
);
</action>
<events name="controlBar_classicStartTourEvents" onTourStart="controlBar_classicCallOnStartTour();" keep="true" />
<action name="controlBar_classicCallOnStartTour">
set(layer[controlBar_classicmenu_controlbar_bg_img].width, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicmenu_controlbar_bg].width, get(controlBar_classicbutton_pos));
controlBar_classicshowMenuControls();
</action>
<style name="controlBar_classic_btn_style"
keep="true"
alpha="0.8"
edge="right" align="right"
width="36" height="36"
zorder="3"
onover="controlBar_classicctrlbaronoveraction();"
onout="controlBar_classicctrlbaronoutaction();"
onhover="showTooltip('plugin', controlBar_classicmenuTooltipStyle, bottom);"
/>
<action name="controlBar_classicctrlbaronoveraction">
tween(alpha,1,0.1,easeoutquad);
tween(y,-2,0.1,easeoutquad);
</action>
<action name="controlBar_classicctrlbaronoutaction">
tween(alpha,0.8);
tween(y,0,0.1,easeoutquad);
hideTooltip();
</action>
<layer name="controlBar_classicmenu_controlbar_bg_img"
keep="true"
align="bottomright"
x="0" y="10"
url="%FIRSTXML%/graphics/classiccontrolbar/footer.png"
zorder="1"
width="40"
height="40"
scale9grid="10|10|80|80"
visible="false"
/>
<layer name="controlBar_classicmenu_controlbar_bg"
keep="true"
align="bottomright"
x="0" y="10"
type="container"
zorder="2"
width="40"
height="40"
visible="false"
alpha="1.0"
>
<layer name="controlBar_classicbtn_gyroscope_off"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_gyroscope.png"
style="controlBar_classic_btn_style"
onclick="disableGyroscope();
"
devices="html5"
tooltip="controlBar_classicgyroOffTip"
visible="false"
/>
<layer name="controlBar_classicbtn_gyroscope_on"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_gyroscope.png"
style="controlBar_classic_btn_style"
onclick="enableGyroscope();
"
devices="html5"
tooltip="controlBar_classicgyroOnTip"
visible="false"
/>
<layer name="controlBar_classicbtn_gyroscope_not"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_gyroscope_off.png"
style="controlBar_classic_btn_style"
enabled="true"
capture="false"
devices="html5"
tooltip="controlBar_classicgyroNotTip"
visible="false"
/>
<layer name="controlBar_classicbtn_sound_on"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_start_sound.png"
onclick="playTourSounds();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classicsoundsOnTip"
/>
<layer name="controlBar_classicbtn_sound_off"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_stop_sound.png"
onclick="stopTourSounds();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classicsoundsOffTip"
/>
<layer name="controlBar_classicbtn_openfs"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_enter_fs.png"
onclick="enterFullscreen();
"
style="controlBar_classic_btn_style"
devices="fullscreensupport"
visible="false"
tooltip="controlBar_classicopenFsTip"
/>
<layer name="controlBar_classicbtn_closefs"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_close_fs.png"
onclick="exitFullscreen();
"
style="controlBar_classic_btn_style"
visible="false"
devices="fullscreensupport"
tooltip="controlBar_classiccloseFsTip"
/>
<layer name="controlBar_classicbtn_autorotate_on"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_start_autorotation.png"
onclick="resumeautorotation();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classicautorotateOnTip"
/>
<layer name="controlBar_classicbtn_autorotate_off"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_stop_autorotation.png"
onclick="pauseautorotation();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classicautorotateOffTip"
/>
<layer name="controlBar_classicbtn_enter_vr"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_vr_mode.png"
onclick="if(scene[get(xml.scene)].full360 AND disableCurrentSceneVrConservation !== true,
js(accessWebVr(get(xml.scene),get(videoscenestarttime)));
,
js(accessWebVr(null));
);"
style="controlBar_classic_btn_style"
visible="false"
devices="html5"
tooltip="controlBar_classicenterVRTip"
/>
<layer name="controlBar_classicbtn_enter_vr_not"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_vr_mode_off.png"
style="controlBar_classic_btn_style"
enabled="true"
capture="false"
visible="false"
devices="html5"
tooltip="controlBar_classicenterVRNotTip"
/>
<layer name="controlBar_classicbtn_display_help"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_help.png"
onclick="controlBar_classicdisplayHelp();"
style="controlBar_classic_btn_style"
devices="desktop"
visible="false"
tooltip="controlBar_classicdisplayHelpTip"
/>
<layer name="controlBar_classicbtn_close_help"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_help.png"
onclick="controlBar_classiccloseHelp();"
style="controlBar_classic_btn_style"
visible="false"
devices="desktop"
tooltip="controlBar_classichideHelpTip"
/>
<layer name="controlBar_classicbtn_display_info"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_info.png"
onclick="showTourInfo();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classicdisplayInfoTip"
/>
<layer name="controlBar_classicbtn_close_info"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_info.png"
onclick="hideTourInfo();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classichideInfoTip"
/>
<layer name="controlBar_classicbtn_hidecontrols"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_hide_controls.png"
style="controlBar_classic_btn_style"
onclick="controlBar_classichideMenuControls();hideTourControls();
"
visible="false"
tooltip="controlBar_classichideControlsTip"
/>
<layer name="controlBar_classicbtn_showcontrols"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_show_controls.png"
style="controlBar_classic_btn_style"
onclick="controlBar_classicshowMenuControls();showTourControls();
"
tooltip="controlBar_classicdisplayControlsTip"
visible="false"
/>
</layer>
<events name="controlBar_classicvravailableevent"
onvravailable="controlBar_classicupdateVrButtonsAvailability();"
onvrunavailable="controlBar_classicupdateVrButtonsAvailability();"
keep="true" devices="html5" />
<krpano controlBar_classicmenuvravailable="false" />
<action name="controlBar_classicupdateVrButtonsAvailability">
if (tour_vrdevices,
set(controlBar_classicmenuvravailable, true);
,
set(controlBar_classicmenuvravailable, false);
);
controlBar_classicupdateVrButtons();
</action>
<action name="controlBar_classicHideVrButtons">
set(layer[controlBar_classicbtn_enter_vr].visible, false);
if('%1' == 'true' AND plugin[ptpvrmode],
set(layer[controlBar_classicbtn_enter_vr_not].visible, true);
,
set(layer[controlBar_classicbtn_enter_vr_not].visible, false);
);
</action>
<action name="controlBar_classicShowVrButtons">
if (controlBar_classicmenuvravailable,
set(layer[controlBar_classicbtn_enter_vr].visible, true);
set(layer[controlBar_classicbtn_enter_vr_not].visible, false);
,
controlBar_classicHideVrButtons(true);
);
</action>
<action name="controlBar_classicupdateVrButtons">
if (tour_vrdevices,
if (controlBar_classicIsOpened,
controlBar_classicShowVrButtons();
,
controlBar_classicHideVrButtons();
);
,
if (controlBar_classicIsOpened,
controlBar_classicHideVrButtons(true);
,
controlBar_classicHideVrButtons();
);
);
</action>
<events name="controlBar_classicgyroscopeavailableevent"
ongyroscopeavailable="controlBar_classicupdateGyroscopeButtonsAvailability();"
ongyroscopeunavailable="controlBar_classicupdateGyroscopeButtonsAvailability();"
ongyroscopeon="controlBar_classicenableGyroscopeButtons(true);"
ongyroscopeoff="controlBar_classicenableGyroscopeButtons(false);"
keep="true" devices="html5" />
<krpano controlBar_classicmenugyroscopeavailable="false" controlBar_classicmenugyroscopeenabled="false" />
<action name="controlBar_classicupdateGyroscopeButtonsAvailability">
if (tour_gyroscopedevices,
set(controlBar_classicmenugyroscopeavailable, true);
controlBar_classicupdateGyroscopeButtons();
,
set(controlBar_classicmenugyroscopeavailable, false);
controlBar_classicupdateGyroscopeButtons();
);
</action>
<action name="controlBar_classicenableGyroscopeButtons">
if (tour_gyroscopedevices,
set(controlBar_classicmenugyroscopeenabled, %1);
controlBar_classicupdateGyroscopeButtons();
);
</action>
<action name="controlBar_classicHideGyroscopeButtons">
set(layer[controlBar_classicbtn_gyroscope_off].visible, false);
set(layer[controlBar_classicbtn_gyroscope_on].visible, false);
if('%1' == 'true' AND plugin[gyroscope],
set(layer[controlBar_classicbtn_gyroscope_not].visible, true);
,
set(layer[controlBar_classicbtn_gyroscope_not].visible, false);
);
</action>
<action name="controlBar_classicShowGyroscopeButtons">
if (controlBar_classicmenugyroscopeavailable,
if (controlBar_classicmenugyroscopeenabled,
set(layer[controlBar_classicbtn_gyroscope_off].visible, true);
set(layer[controlBar_classicbtn_gyroscope_on].visible, false);
,
set(layer[controlBar_classicbtn_gyroscope_off].visible, false);
set(layer[controlBar_classicbtn_gyroscope_on].visible, true);
);
set(layer[controlBar_classicbtn_gyroscope_not].visible, false);
,
controlBar_classicHideGyroscopeButtons(true);
);
</action>
<action name="controlBar_classicupdateGyroscopeButtons">
if (tour_gyroscopedevices,
if (controlBar_classicIsOpened,
controlBar_classicShowGyroscopeButtons();
,
controlBar_classicHideGyroscopeButtons();
);
,
if (controlBar_classicIsOpened,
controlBar_classicHideGyroscopeButtons(true);
,
controlBar_classicHideGyroscopeButtons();
);
);
</action>
<action name="controlBar_classichideMenuControls">
set(controlBar_classicIsOpened, false);
set(layer[controlBar_classicbtn_hidecontrols].visible, false);
set(layer[controlBar_classicbtn_showcontrols].visible, true);
controlBar_classicupdateFullscreenButtons();
controlBar_classicupdateSoundButtons();
controlBar_classicupdateVrButtons();
controlBar_classicupdateAutorotationButtons();
controlBar_classicupdateGyroscopeButtons();
controlBar_classicupdateHelpButtons();
controlBar_classicupdateInfoButtons();
if(controlBar_classicbackgroundwidthwhenclosed == 0,
set(layer[controlBar_classicmenu_controlbar_bg_img].visible, false);
set(layer[controlBar_classicmenu_controlbar_bg].visible, false);
,
set(layer[controlBar_classicmenu_controlbar_bg_img].visible, true);
set(layer[controlBar_classicmenu_controlbar_bg].visible, true);
);
tween(layer[controlBar_classicmenu_controlbar_bg_img].width,get(controlBar_classicbackgroundwidthwhenclosed),0.5,easeOutQuad);
tween(layer[controlBar_classicmenu_controlbar_bg].width,get(controlBar_classicbackgroundwidthwhenclosed),0.5,easeOutQuad);
tween(layer[controlBar_classicmenu_controlbar_bg_img].alpha,1.0,0.5,easeOutQuad);
</action>
<action name="controlBar_classicshowMenuControls">
set(controlBar_classicIsOpened, true);
set(layer[controlBar_classicbtn_hidecontrols].visible, true);
set(layer[controlBar_classicbtn_showcontrols].visible, false);
if(controlBar_classicbackgroundwidthwhenopened == 0,
set(layer[controlBar_classicmenu_controlbar_bg_img].visible, false);
set(layer[controlBar_classicmenu_controlbar_bg].visible, false);
,
set(layer[controlBar_classicmenu_controlbar_bg_img].visible, true);
set(layer[controlBar_classicmenu_controlbar_bg].visible, true);
);
tween(layer[controlBar_classicmenu_controlbar_bg_img].alpha,1.0,0.5,easeOutQuad);
controlBar_classicshowMenuButtons();
tween(layer[controlBar_classicmenu_controlbar_bg_img].width, get(controlBar_classicbackgroundwidthwhenopened),0.5,easeOutQuad);
tween(layer[controlBar_classicmenu_controlbar_bg].width, get(controlBar_classicbackgroundwidthwhenopened),0.5,easeOutQuad);
</action>
<action name="controlBar_classicshowMenuButtons">
controlBar_classicupdateGyroscopeButtons();
controlBar_classicupdateHelpButtons();
controlBar_classicupdateInfoButtons();
controlBar_classicupdateFullscreenButtons();
controlBar_classicupdateSoundButtons();
controlBar_classicupdateVrButtons();
controlBar_classicupdateAutorotationButtons();
</action>
<layer name="controlBar_classichelpScreen" align="center" keep="true" onclick="controlBar_classiccloseHelp();" url="%FIRSTXML%/graphics/classiccontrolbar/help_screen_bg.png" visible="false" zorder="97" height="10%" width="prop" />
<layer name="controlBar_classichelpScreenFg" align="center" keep="true" onclick="controlBar_classiccloseHelp();" displayed="false"
url="%FIRSTXML%/graphics/classiccontrolbar/help_screen_fg.png"
alpha="0.8"
height="50%"
width="prop"
zorder="98"
visible="false" />
<action name="controlBar_classicdisplayHelp">
set(layer[controlBar_classichelpScreenFg].displayed,true);
set(layer[controlBar_classichelpScreen].visible,true);
tween(layer[controlBar_classichelpScreen].height, 50%, 1, easeOutQuad,
set(layer[controlBar_classichelpScreenFg].visible,true);
);
controlBar_classicupdateHelpButtons();
</action>
<action name="controlBar_classiccloseHelp">
set(layer[controlBar_classichelpScreenFg].displayed,false);
set(layer[controlBar_classichelpScreenFg].visible,false);
tween(layer[controlBar_classichelpScreen].height, 10%, 1, easeOutQuad,
set(layer[controlBar_classichelpScreen].visible,false);
);
controlBar_classicupdateHelpButtons();
</action>
<action name="controlBar_classicHideHelpButtons">
set(layer[controlBar_classicbtn_display_help].visible, false);
set(layer[controlBar_classicbtn_close_help].visible, false);
</action>
<action name="controlBar_classicShowHelpButtons">
if (layer[controlBar_classichelpScreenFg].displayed,
set(layer[controlBar_classicbtn_close_help].visible, true);
set(layer[controlBar_classicbtn_display_help].visible, false);
,
set(layer[controlBar_classicbtn_display_help].visible, true);
set(layer[controlBar_classicbtn_close_help].visible, false);
);
</action>
<action name="controlBar_classicupdateHelpButtons">
if (device.desktop,
if (controlBar_classicIsOpened,
controlBar_classicShowHelpButtons();
,
controlBar_classicHideHelpButtons();
);
,
controlBar_classicHideHelpButtons();
);
</action>
<events name="controlBar_classicHideShowInfoEvents"
onhidetourinfo="controlBar_classicupdateInfoButtons();"
onshowtourinfo="controlBar_classicupdateInfoButtons();"
keep="true" />
<action name="controlBar_classicHideInfoButtons">
set(layer[controlBar_classicbtn_display_info].visible, false);
set(layer[controlBar_classicbtn_close_info].visible, false);
</action>
<action name="controlBar_classicShowInfoButtons">
if (tour_displayinfo,
set(layer[controlBar_classicbtn_close_info].visible, true);
set(layer[controlBar_classicbtn_display_info].visible, false);
,
set(layer[controlBar_classicbtn_display_info].visible, true);
set(layer[controlBar_classicbtn_close_info].visible, false);
);
</action>
<action name="controlBar_classicupdateInfoButtons">
if (controlBar_classicIsOpened,
controlBar_classicShowInfoButtons();
,
controlBar_classicHideInfoButtons();
);
</action>
<events name="controlBar_classicmenufullscreenchangeevent"
onenterfullscreen="controlBar_classicupdateFullscreenButtons();"
onexitfullscreen="controlBar_classicupdateFullscreenButtons();"
keep="true"/>
<action name="controlBar_classicHideFullscreenButtons">
set(layer[controlBar_classicbtn_openfs].visible , false);
set(layer[controlBar_classicbtn_closefs].visible, false);
</action>
<action name="controlBar_classicShowFullscreenButtons">
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[controlBar_classicbtn_openfs].visible , false);
set(layer[controlBar_classicbtn_closefs].visible, true);
,
set(layer[controlBar_classicbtn_openfs].visible ,true);
set(layer[controlBar_classicbtn_closefs].visible,false);
);
,
controlBar_classicHideFullscreenButtons();
);
</action>
<action name="controlBar_classicupdateFullscreenButtons">
if (controlBar_classicIsOpened,
controlBar_classicShowFullscreenButtons();
,
controlBar_classicHideFullscreenButtons();
);
</action>
<events name="controlBar_classicAutorotationEvents"
onstartautorotation="controlBar_classicupdateAutorotationButtons();"
onresumeautorotation="controlBar_classicupdateAutorotationButtons();"
onstopautorotation="controlBar_classicupdateAutorotationButtons();"
onpauseautorotation="controlBar_classicupdateAutorotationButtons();"
keep="true"/>
<action name="controlBar_classicHideAutorotationButtons">
set(layer[controlBar_classicbtn_autorotate_off].visible, false);
set(layer[controlBar_classicbtn_autorotate_on].visible , false);
</action>
<action name="controlBar_classicShowAutorotationButtons">
if(autorotate.enabled == false,
set(layer[controlBar_classicbtn_autorotate_off].visible, false);
set(layer[controlBar_classicbtn_autorotate_on].visible , true);
,
set(layer[controlBar_classicbtn_autorotate_off].visible, true);
set(layer[controlBar_classicbtn_autorotate_on].visible , false);
);
</action>
<action name="controlBar_classicupdateAutorotationButtons">
if (controlBar_classicIsOpened,
controlBar_classicShowAutorotationButtons();
,
controlBar_classicHideAutorotationButtons();
);
</action>
<events name="controlBar_classicplaystopsoundsevent"
playtoursoundsevent="controlBar_classicupdateSoundButtons();"
stoptoursoundsevent="controlBar_classicupdateSoundButtons();"
keep="true" />
<action name="controlBar_classicHideSoundButtons">
set(layer[controlBar_classicbtn_sound_off].visible, false);
set(layer[controlBar_classicbtn_sound_on].visible , false);
</action>
<action name="controlBar_classicShowSoundButtons">
if (tour_soundson == false,
set(layer[controlBar_classicbtn_sound_off].visible, false);
set(layer[controlBar_classicbtn_sound_on].visible , true);
,
set(layer[controlBar_classicbtn_sound_off].visible, true);
set(layer[controlBar_classicbtn_sound_on].visible , false);
);
</action>
<action name="controlBar_classicupdateSoundButtons">
if (controlBar_classicIsOpened,
controlBar_classicShowSoundButtons();
,
controlBar_classicHideSoundButtons();
);
</action>
<layer name="controlBar_classicmenuTooltipStyle"
keep="true"
enabled="false"
capture="false"
type="text"
align="center"
bg="false"
bgborder="0"
css="color:#ffffff;font-family:Helvetica;font-weight:bold;font-size:14px;text-align:left;"
interactivecontent="false"
zorder="0"
visible="false"
html=""
padding="2"
xoffset="0"
yoffset="0"
edge="bottom"
/>
<!-- ********* -->
<!-- Gyroscope -->
<!-- ********* -->
<plugin name="gyroscope"
url="%FIRSTXML%/graphics/gyro2.js"
keep="true"
devices="no-desktop.and.html5"
onunavailable="checkGyroUnavailable();"
sensor_mode="1"
friction="auto"
autocalibration="true"
touch_mode="full"
onavailable="delayedcall(1, checkGyroAvailability(););"
enabled="false"
activated="false"
/>
<events name="gyroscopeEvents" onnewpano="planarGyroscopeTest();" keep="true" />
<action name="planarGyroscopeTest">
if(plugin[gyroscope],
if(scene[get(xml.scene)].full360,
set(sceneisfull360, false);
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
if (sceneisfull360,
set(plugin[gyroscope].camroll, true);
,
set(plugin[gyroscope].camroll, false);
);
,
set(plugin[gyroscope].camroll, false);
);
);
</action>
<action name="changeGyroscopeState">
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
if(%1,
set(plugin[gyroscope].activated,true);
,
set(plugin[gyroscope].activated,false);
);
if (%1 != plugin[gyroscope].enabled,
if(plugin[gyroscope].activated,
switch(plugin[gyroscope].enabled);
,
set(plugin[gyroscope].enabled, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
);
</action>
<action name="checkGyroAvailability">
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
set(sceneisfull360, false);
if (scene[get(xml.scene)].full360,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(sceneisfull360, true);
);
);
);
set(delaythegyrocheck, false);
if (sceneisfull360 AND tour_firstlittleplanet, set(delaythegyrocheck, true));
ifnot(delaythegyrocheck,
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
,
delayedcall(1, checkGyroAvailability(););
);
,
set(tour_gyroscopedevices, false);
);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
,
checkGyroUnavailable();
);
</action>
<action name="checkGyroUnavailable">
set(plugin[gyroscope].activated, false);
set(plugin[gyroscope].enabled, false);
set(tour_gyroscopedevices, false);
events.dispatch(ongyroscopeunavailable);
</action>
<!-- ************* -->
<!-- Panorama Menu -->
<!-- ************* -->
<ptplugin name="panoramaMenu" engine="kolorMenu">
<settings>
<option name="position" value="topleft" type="string" />
<option name="orientation" value="vertical" type="string" />
<option name="sub_orientation" value="vertical" type="string" />
<option name="margin_x" value="5" type="int" />
<option name="margin_y" value="5" type="int" />
<option name="background_color" value="000000" type="string" />
<option name="background_alpha" value="0.10000762951094835" type="float" />
<option name="item_spacer" value="3" type="int" />
<option name="border_radius" value="2" type="int" />
<option name="full_size" value="false" type="bool" />
<option name="use_out_effect" value="true" type="bool" />
<option name="item_out_border_radius" value="2" type="int" />
<option name="item_hover_border_radius" value="2" type="int" />
<option name="item_out_border_width" value="0" type="int" />
<option name="item_hover_border_width" value="0" type="int" />
<option name="item_out_bg_color" value="000000" type="string" />
<option name="item_out_bg_alpha" value="0.10000762951094835" type="float" />
<option name="item_out_font_color" value="ffffff" type="string" />
<option name="item_out_font_family" value="Trebuchet MS" type="string" />
<option name="item_out_font_size" value="14" type="int" />
<option name="item_out_font_weight" value="normal" type="string" />
<option name="item_out_font_style" value="normal" type="string" />
<option name="item_out_font_decoration" value="normal" type="string" />
<option name="use_hover_effect" value="false" type="bool" />
<option name="item_hover_bg_color" value="000000" type="string" />
<option name="item_hover_bg_alpha" value="0.10000762951094835" type="float" />
<option name="item_hover_font_color" value="ffffff" type="string" />
<option name="item_hover_font_family" value="Trebuchet MS" type="string" />
<option name="item_hover_font_size" value="14" type="int" />
<option name="item_hover_font_weight" value="normal" type="string" />
<option name="item_hover_font_style" value="normal" type="string" />
<option name="item_hover_font_decoration" value="normal" type="string" />
<option name="padding_main" value="10" type="int" />
<option name="padding_sub" value="10" type="int" />
<option name="item_selected_color" value="000000" type="string" />
<option name="item_selected_alpha" value="0.40000000000000002" type="float" />
<option name="item_selected_font_color" value="ffffff" type="string" />
<option name="open_callback" value="invokeKrFunction('changeSelectedItem_panoramaMenu');" type="string" />
<option name="text_align" value="right" type="string" />
<option name="item_thumb_max_width" value="200" type="int" />
<option name="item_thumb_max_height" value="100" type="int" />
<option name="zorder" value="5" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
<internaldata>
<group name="group_1"
titleID="panogroup62_title"
thumbnail=""
subMenu="true"
cssClass="panogroup62">
<item name="group_1_item_1"
action="invokeKrFunction('mainloadscene', 'pano40')"
titleID="pano40_title"
thumbnail=""
cssClass="pano40">
</item>
<item name="group_1_item_2"
action="invokeKrFunction('mainloadscene', 'pano38')"
titleID="pano38_title"
thumbnail=""
cssClass="pano38">
</item>
<item name="group_1_item_3"
action="invokeKrFunction('mainloadscene', 'pano37')"
titleID="pano37_title"
thumbnail=""
cssClass="pano37">
</item>
<item name="group_1_item_4"
action="invokeKrFunction('mainloadscene', 'pano36')"
titleID="pano36_title"
thumbnail=""
cssClass="pano36">
</item>
<item name="group_1_item_5"
action="invokeKrFunction('mainloadscene', 'pano35')"
titleID="pano35_title"
thumbnail=""
cssClass="pano35">
</item>
<item name="group_1_item_6"
action="invokeKrFunction('mainloadscene', 'pano34')"
titleID="pano34_title"
thumbnail=""
cssClass="pano34">
</item>
<item name="group_1_item_7"
action="invokeKrFunction('mainloadscene', 'pano32')"
titleID="pano32_title"
thumbnail=""
cssClass="pano32">
</item>
<item name="group_1_item_8"
action="invokeKrFunction('mainloadscene', 'pano33')"
titleID="pano33_title"
thumbnail=""
cssClass="pano33">
</item>
<item name="group_1_item_9"
action="invokeKrFunction('mainloadscene', 'pano27')"
titleID="pano27_title"
thumbnail=""
cssClass="pano27">
</item>
<item name="group_1_item_10"
action="invokeKrFunction('mainloadscene', 'pano28')"
titleID="pano28_title"
thumbnail=""
cssClass="pano28">
</item>
<item name="group_1_item_11"
action="invokeKrFunction('mainloadscene', 'pano29')"
titleID="pano29_title"
thumbnail=""
cssClass="pano29">
</item>
<item name="group_1_item_12"
action="invokeKrFunction('mainloadscene', 'pano30')"
titleID="pano30_title"
thumbnail=""
cssClass="pano30">
</item>
<item name="group_1_item_13"
action="invokeKrFunction('mainloadscene', 'pano31')"
titleID="pano31_title"
thumbnail=""
cssClass="pano31">
</item>
<item name="group_1_item_14"
action="invokeKrFunction('mainloadscene', 'pano39')"
titleID="pano39_title"
thumbnail=""
cssClass="pano39">
</item>
</group>
</internaldata>
</ptplugin>
<action name="kolorMenuJsReady_panoramaMenu">
set(ptplugin[panoramaMenu].jsready, true);
</action>
<action name="showKolorMenu_panoramaMenu">
ifnot(ptplugin[panoramaMenu].isOpen,
stopdelayedcall(delay_panoramaMenu);
set(ptplugin[panoramaMenu].isOpen, true);
set(ptplugin[panoramaMenu].displayed, true);
js(openKolorMenu(panoramaMenu));
,
if(ptplugin[panoramaMenu].jsready,
stopdelayedcall(delay_panoramaMenu);
set(ptplugin[panoramaMenu].displayed, true);
js(invokePluginFunction(panoramaMenu, showKolorMenu));
,
delayedcall(delay_panoramaMenu, 0.1, showKolorMenu_panoramaMenu(););
);
);
</action>
<action name="hideKolorMenu_panoramaMenu">
if(ptplugin[panoramaMenu].jsready,
stopdelayedcall(delay_panoramaMenu);
set(ptplugin[panoramaMenu].displayed, false);
js(invokePluginFunction(panoramaMenu, hideKolorMenu));
,
delayedcall(delay_panoramaMenu, 0.1, hideKolorMenu_panoramaMenu(););
);
</action>
<action name="changeSelectedItem_panoramaMenu">
js(invokePluginFunction(panoramaMenu, changeSelectedItem, get(xml.scene)));
</action>
<action name="changeLanguage_panoramaMenu">
if(ptplugin[panoramaMenu].jsready,
stopdelayedcall(delay_panoramaMenu);
js(invokePluginFunction(panoramaMenu, changeLanguage));
,
delayedcall(delay_panoramaMenu, 0.1, changeLanguage_panoramaMenu(););
);
</action>
<events name="kolorMenuEvents_panoramaMenu"
keep="true"
onTourStart="showKolorMenu_panoramaMenu();"
onnewpano="changeSelectedItem_panoramaMenu();"
changetourlanguage="changeLanguage_panoramaMenu"
/>
<!-- ********** -->
<!-- Loading Information -->
<!-- id : loaderinfo -->
<!-- ********** -->
<events name="loaderinfoevent" onxmlcomplete="loaderinfoupdate();" keep="true"/>
<action name="loaderinfoupdate">
if(scene[get(xml.scene)].video,
set(layer[loaderinfotextfield].visible, false);
,
if (progress.progress == 1,
delayedcall(0.5, set(layer[loaderinfotextfield].visible, false); );
,
set(layer[loaderinfotextfield].visible, true);
);
mul(progresstext, get(progress.progress),100);
roundval(progresstext);
txtadd(progresstext, get(progresstext), %);
set(layer[loaderinfotextfield].html, get(progresstext));
ifnot(progress.progress GE 1, delayedcall(0.01, loaderinfoupdate() ));
);
</action>
<layer name="loaderinfotextfield"
keep="true"
zorder="6"
type="text"
align="center"
x="0"
y="0"
bgborder="0"
bg="false"
capture="false"
handcursor="false"
interactivecontent="false"
alpha="1"
visible="true"
css="
text-align:center;
color:#ffffff;
font-family:Arial;
font-weight:bold;
font-size:16px;
"
/>
<!-- ********** -->
<!-- Description -->
<!-- id : description -->
<!-- ********** -->
<ptplugin name="description" canStart="false" newPano="false" openatstart="true" mode="project" startMethod="showDescription_description" engine="kolorArea">
<settings>
<option name="position" value="center" type="string" />
<option name="start_position" value="left" type="string" />
<option name="margin_x" value="0" type="int" />
<option name="margin_y" value="0" type="int" />
<option name="background_color" value="f2f2f2" type="string" />
<option name="background_alpha" value="0.90000762951094837" type="float" />
<option name="topleft_radius" value="0" type="int" />
<option name="topright_radius" value="0" type="int" />
<option name="bottomleft_radius" value="0" type="int" />
<option name="bottomright_radius" value="0" type="int" />
<option name="area_border_width" value="0" type="int" />
<option name="area_border_color" value="f2f2f2" type="string" />
<option name="area_border_alpha" value="1" type="float" />
<option name="padding" value="28" type="int" />
<option name="display_title" value="false" type="bool" />
<option name="close_displayed" value="true" type="bool" />
<option name="close_text" value="descriptiondisplay_close_text" type="string" />
<option name="overlay_displayed" value="false" type="bool" />
<option name="overlay_color" value="000000" type="string" />
<option name="overlay_alpha" value="0.50000762951094835" type="float" />
<option name="area_width" value="85" type="int" />
<option name="area_height" value="85" type="int" />
<option name="area_width_unit" value="percent" type="string" />
<option name="area_height_unit" value="percent" type="string" />
<option name="animation" value="true" type="bool" />
<option name="animation_duration" value="500" type="int" />
<option name="refresh_content" value="true" type="bool" />
<option name="close_callback" value="invokeKrFunction('closeKolorAreaCallback_description')" type="string" />
<option name="close_on_click" value="false" type="bool" />
<option name="zorder" value="7" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
</ptplugin>
<action name="kolorAreaJsReady_description">
set(ptplugin[description].jsready, true);
inc(tour_autorotation_openatstartplugin);
set(ptplugin[description].autorotateBlocked, true);
</action>
<action name="openKolorArea_description">
ifnot(ptplugin[description].isOpen,
if(ptplugin[description].doNotDeleteMe,
set(ptplugin[description].currentCall, false);
set(ptplugin[description].doNotDeleteMe, false);
set(ptplugin[description].isOpen, true);
pauseautorotation(forceplugin);
js(showKolorArea(description, get(ptplugin[description].descID)));
,
set(ptplugin[description].currentCall, true);
set(ptplugin[description].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,openKolorArea_description(););
);
);
</action>
<action name="closeKolorArea_description">
if(ptplugin[description].isOpen,
if(ptplugin[description].doNotDeleteMe,
set(ptplugin[description].doNotDeleteMe, false);
,
js(invokePluginFunction(description, closeKolorArea));
);
);
</action>
<action name="toggleKolorArea_description">
if(ptplugin[description].isOpen,
closeKolorArea_description();
,
openKolorArea_description();
);
</action>
<action name="closeKolorAreaCallback_description">
set(ptplugin[description].doNotDeleteMe, false);
if(ptplugin[description].isOpen,resumeautorotation(forceplugin);
if(ptplugin[description].autorotateBlocked,if(tour_autorotation_openatstartplugin GT 0,dec(tour_autorotation_openatstartplugin);set(ptplugin[description].autorotateBlocked,false);););
);
set(ptplugin[description].isOpen, false);
if(tour_displayinfo,hideTourInfo();
);
</action>
<action name="showKolorArea_description">
ifnot(ptplugin[description].startMethod == "",
delayedcall(0,get(ptplugin[description].startMethod));
,
if(ptplugin[description].doNotDeleteMe,
set(ptplugin[description].currentCall, false);
set(ptplugin[description].doNotDeleteMe, false);
set(ptplugin[description].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(description, showKolorArea, %1));
,
set(ptplugin[description].currentCall, true);
set(ptplugin[description].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showKolorArea_description(%1););
);
);
</action>
<action name="hideKolorArea_description">
if(ptplugin[description].doNotDeleteMe,
set(ptplugin[description].doNotDeleteMe, false);
,
resumeautorotation(forceplugin);
if(ptplugin[description].autorotateBlocked,if(tour_autorotation_openatstartplugin GT 0,dec(tour_autorotation_openatstartplugin);set(ptplugin[description].autorotateBlocked,false);););
set(ptplugin[description].isOpen, false);
js(invokePluginFunction(description, hideKolorArea, %1));
);
</action>
<action name="openDescription_description">
openKolorArea_description();
</action>
<action name="openSpotDescription_description">
set(ptplugin[description].descID, %1);
openKolorArea_description();
</action>
<action name="closeDescription_description">
set(ptplugin[description].currentGroup, false);
if(%1,
set(restore_description, true);
,
set(restore_description, false);
);
closeKolorArea_description();
</action>
<action name="showDescription_description">
if(ptplugin[description].canStart,
set(ptplugin[description].descID, get(projectdescriptionid));
if(ptplugin[description].descID != "",
openDescription_description();
,
hideKolorArea_description(false);
);
set(ptplugin[description].startMethod, "");
);
</action>
<action name="changeLanguage_description">
if(ptplugin[description].jsready,
stopdelayedcall(delay_description);
js(invokePluginFunction(description, changeLanguage, true));
,
delayedcall(delay_description, 0.1, changeLanguage_description(););
);
</action>
<events name="kolorAreaEvents_description"
keep="true"
onTourStart="set(ptplugin[description].canStart, true);if(ptplugin[description].openatstart,showTourInfo();
);"
onshowtourinfo="if(tour_displayinfo,showDescription_description(););"
onhidetourinfo="delayedcall(0.3,if(ptplugin[description].isOpen,closeDescription_description(false);););"
onremovedisplayedobject="ifnot(ptplugin[description].currentCall,if(ptplugin[description].isOpen,hideTourInfo();
););"
changetourlanguage="changeLanguage_description();"
/>
<!-- ********** -->
<!-- Button -->
<!-- id : button -->
<!-- ********** -->
<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/info_buton.png"
align="bottomleft"
x="10"
y="10"
zorder="8"
visible="false"
onclick="buttonOnClick"
alpha="0.7"
onout="tween(scale, 1.0,0.5,easeOutQuad);tween(alpha,0.7,0.5,easeOutQuad);"
onover="tween(scale, 1.2,0.5,easeOutQuad);tween(alpha,1.0,0.5,easeOutQuad);"
width="55"
height="prop"
/>
<action name="buttonOnClick">
if(tour_displayinfo,if(ptplugin[description].isOpen,hideTourInfo();
,showTourInfo();
);,showTourInfo();
);
</action>
<events name="buttonevents"
onTourStart="showbutton();"
hidetourcontrols="hidebutton();"
showtourcontrols="showbutton();"
keep="true" />
<action name="hidebutton">set(layer[button].visible, false);</action>
<action name="showbutton">if(tour_displaycontrols,set(layer[button].visible, true);,hidebutton(););</action>
<!-- ********** -->
<!-- Description1 -->
<!-- id : description1 -->
<!-- ********** -->
<ptplugin name="description1" canStart="false" newPano="false" openatstart="false" mode="spot" startMethod="" engine="kolorArea">
<settings>
<option name="position" value="center" type="string" />
<option name="start_position" value="left" type="string" />
<option name="margin_x" value="0" type="int" />
<option name="margin_y" value="0" type="int" />
<option name="background_color" value="f2f2f2" type="string" />
<option name="background_alpha" value="0.90000762951094837" type="float" />
<option name="topleft_radius" value="0" type="int" />
<option name="topright_radius" value="0" type="int" />
<option name="bottomleft_radius" value="0" type="int" />
<option name="bottomright_radius" value="0" type="int" />
<option name="area_border_width" value="0" type="int" />
<option name="area_border_color" value="f2f2f2" type="string" />
<option name="area_border_alpha" value="1" type="float" />
<option name="padding" value="30" type="int" />
<option name="display_title" value="false" type="bool" />
<option name="close_displayed" value="true" type="bool" />
<option name="close_text" value="description1display_close_text" type="string" />
<option name="overlay_displayed" value="false" type="bool" />
<option name="overlay_color" value="000000" type="string" />
<option name="overlay_alpha" value="0.50000762951094835" type="float" />
<option name="area_width" value="350" type="int" />
<option name="area_height" value="350" type="int" />
<option name="area_width_unit" value="pixel" type="string" />
<option name="area_height_unit" value="pixel" type="string" />
<option name="animation" value="false" type="bool" />
<option name="animation_duration" value="500" type="int" />
<option name="refresh_content" value="true" type="bool" />
<option name="close_callback" value="invokeKrFunction('closeKolorAreaCallback_description1')" type="string" />
<option name="close_on_click" value="true" type="bool" />
<option name="close_onclick_callback" value="invokeKrFunction('closeKolorAreaCallbackClick_description1')" type="string" />
<option name="zorder" value="9" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
</ptplugin>
<action name="kolorAreaJsReady_description1">
set(ptplugin[description1].jsready, true);
</action>
<action name="openKolorArea_description1">
ifnot(ptplugin[description1].isOpen,
if(ptplugin[description1].doNotDeleteMe,
set(ptplugin[description1].currentCall, false);
set(ptplugin[description1].doNotDeleteMe, false);
set(ptplugin[description1].isOpen, true);
pauseautorotation(forceplugin);
js(showKolorArea(description1, get(ptplugin[description1].descID)));
,
set(ptplugin[description1].currentCall, true);
set(ptplugin[description1].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,openKolorArea_description1(););
);
);
</action>
<action name="closeKolorArea_description1">
if(ptplugin[description1].isOpen,
if(ptplugin[description1].doNotDeleteMe,
set(ptplugin[description1].doNotDeleteMe, false);
,
js(invokePluginFunction(description1, closeKolorArea));
);
);
</action>
<action name="toggleKolorArea_description1">
if(ptplugin[description1].isOpen,
closeKolorArea_description1();
,
openKolorArea_description1();
);
</action>
<action name="closeKolorAreaCallback_description1">
set(ptplugin[description1].doNotDeleteMe, false);
if(ptplugin[description1].isOpen,resumeautorotation(forceplugin);
);
set(ptplugin[description1].isOpen, false);
if(tour_displayinfo,hideTourInfo();
);
</action>
<action name="closeKolorAreaCallbackClick_description1">
if(tour_displayinfo,hideTourInfo();
);
</action>
<action name="showKolorArea_description1">
ifnot(ptplugin[description1].startMethod == "",
delayedcall(0,get(ptplugin[description1].startMethod));
,
if(ptplugin[description1].doNotDeleteMe,
set(ptplugin[description1].currentCall, false);
set(ptplugin[description1].doNotDeleteMe, false);
set(ptplugin[description1].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(description1, showKolorArea, %1));
,
set(ptplugin[description1].currentCall, true);
set(ptplugin[description1].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showKolorArea_description1(%1););
);
);
</action>
<action name="hideKolorArea_description1">
if(ptplugin[description1].doNotDeleteMe,
set(ptplugin[description1].doNotDeleteMe, false);
,
resumeautorotation(forceplugin);
set(ptplugin[description1].isOpen, false);
js(invokePluginFunction(description1, hideKolorArea, %1));
);
</action>
<action name="openDescription_description1">
openKolorArea_description1();
</action>
<action name="openSpotDescription_description1">
set(ptplugin[description1].descID, %1);
openKolorArea_description1();
</action>
<action name="closeDescription_description1">
set(ptplugin[description1].currentGroup, false);
if(%1,
set(restore_description1, true);
,
set(restore_description1, false);
);
closeKolorArea_description1();
</action>
<action name="showDescription_description1">
if(ptplugin[description1].canStart,
if(ptplugin[description1].descID != "",
openDescription_description1();
,
hideKolorArea_description1(false);
);
set(ptplugin[description1].startMethod, "");
);
</action>
<action name="changeLanguage_description1">
if(ptplugin[description1].jsready,
stopdelayedcall(delay_description1);
js(invokePluginFunction(description1, changeLanguage, true));
,
delayedcall(delay_description1, 0.1, changeLanguage_description1(););
);
</action>
<events name="kolorAreaEvents_description1"
keep="true"
onTourStart="set(ptplugin[description1].canStart, true);if(ptplugin[description1].openatstart,showTourInfo();
);"
onhidetourinfo="delayedcall(0.3,if(ptplugin[description1].isOpen,closeDescription_description1(false);););"
onremovedisplayedobject="ifnot(ptplugin[description1].currentCall,if(ptplugin[description1].isOpen,hideTourInfo();
););"
changetourlanguage="changeLanguage_description1();"
/>
<!-- Sounds Management -->
<plugin name="soundinterface"
preload="true"
url.html5="%FIRSTXML%/graphics/soundinterface.js"
rootpath="%$videos_sounds_path%/sounds/"
backgroundsound=""
backgroundsoundloops="true"
bgsound="false"
bgsoundpaused="false"
bgsoundloopended="false"
bgsoundtoforce = "false"
volumeinitialized="false"
autopause="true"
autounlock="true"
worldscale="1.0"
started="true"
keep="true"/>
<events name="soundmanagementevents"
onnewpano="if(plugin[soundinterface].started,playbackgroundsound(););"
onxmlcomplete="soundinterfaceonxmlcomplete();"
keep="true"/>
<action name="soundinterfaceonxmlcomplete">
ifnot(plugin[soundinterface].volumeinitialized,
div(plugin[soundinterface].volume, tour_soundsvolume, 100);
set(plugin[soundinterface].volumeinitialized,true);
);
</action>
<action name="playsound3Dwhenpossible">
set(really_play_sound, true);
if (tour_current_played_sound,
if (%1 == tour_current_played_sound,
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
delete(tour_current_played_sound_paused);
stopsound(%1);
set(really_play_sound, false);
if(%4,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
);
if (really_play_sound,
if (tour_current_played_sound,
stopsound(get(tour_current_played_sound));
ifnot(%4,
if(tour_current_played_sound_pausesound,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
);
if(%4,
set(tour_current_played_sound_pausesound, true);
pauseTourSoundsActions(true,false,true,true,true);
);
set(tour_current_played_sound, %1);
if(tour_current_played_video,
set(tour_current_played_sound_state, 2);
,
set(tour_current_played_sound_state, 1);
);
set(tour_current_played_sound_paused, false);
if (%3,
div(volume, tour_soundsvolume, 100);
if(%9 != null,
if(%8 == 0,
playsound_at_hv(%1, %2, %5, %6, 1000, true, get(volume), %7, stopsound3Dwhenpossible(%1,%4));
,
playsound_at_hv(%1, %2, %5, %6, 1000, false, get(volume), %7, stopsound3Dwhenpossible(%1,%4));
);
setup3dsound(%1, 1.0, 1.0, inverse, HRTF);
,
if(%8 == 0,
playsound_at_hv(%1, %2, %5, %6, 1000, true, get(volume), %7);
,
playsound_at_hv(%1, %2, %5, %6, 1000, false, get(volume), %7);
);
setup3dsound(%1, 1.0, 1.0, inverse, HRTF)
);
,
if(%6 != null,
playsound(%1,%2,%5,stopsound3Dwhenpossible(%1,%4));
,
playsound(%1,%2,%5);
);
);
ifnot(tour_soundson,
set(tour_current_played_sound_paused, true);
pausesound(%1);
);
);
</action>
<action name="stopsound3Dwhenpossible">
if (%1 == tour_current_played_sound,
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
delete(tour_current_played_sound_paused);
stopsound(%1);
if(%2,
delete(tour_current_played_sound_pausesound);
resumeTourSoundsActions(true,true,true,true,true);
);
);
</action>
<action name="playbackgroundsound">
if(playsound,
if (xml.scene,
if (scene[get(xml.scene)].backgroundsound,
if (plugin[soundinterface].backgroundsound != scene[get(xml.scene)].backgroundsound,
copy(plugin[soundinterface].backgroundsound, scene[get(xml.scene)].backgroundsound);
copy(plugin[soundinterface].backgroundsoundloops, scene[get(xml.scene)].backgroundsoundloops);
if (tour_soundson,
set(plugin[soundinterface].bgsound, true);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
set(plugin[soundinterface].bgsoundtoforce, false);
if(scene[get(xml.scene)].video == false OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
ifnot(plugin[soundinterface].backgroundsoundloops,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
);
);
,
set(plugin[soundinterface].bgsoundtoforce, true);
set(plugin[soundinterface].bgsound, false);
);
,
if (tour_soundson,
if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
);
,
set(plugin[soundinterface].bgsoundtoforce, true);
set(plugin[soundinterface].bgsound, false);
);
);
);
);
,
delayedcall(0.2, playbackgroundsound());
);
</action>
<action name="stopbackgroundsoundoncomplete">
if (plugin[soundinterface].backgroundsound,
ifnot(plugin[soundinterface].backgroundsoundloops,
set(plugin[soundinterface].backgroundsoundloops, true);
set(plugin[soundinterface].bgsound, false);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, true);
);
);
</action>
<action name="resetbackgroundsoundifneeded">
if (xml.scene,
if (scene[get(xml.scene)].backgroundsound != scene[%1].backgroundsound,
if(plugin[soundinterface].backgroundsound,
stopsound(bgsoundname);
);
set(plugin[soundinterface].backgroundsound, "");
set(plugin[soundinterface].backgroundsoundloops, true);
set(plugin[soundinterface].bgsound, false);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
);
);
</action>
<action name="pausebackgroundsound">
if(plugin[soundinterface].backgroundsound,
if (plugin[soundinterface].bgsound,
if(plugin[soundinterface].bgsoundpaused == false AND plugin[soundinterface].bgsoundloopended == false,
pausesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, true);
);
);
);
</action>
<action name="resumebackgroundsound">
set(bgSoundOnResume, true);
set(forceBgSoundOnResume, true);
if(layer[displayedStandardVideo],
if(layer[displayedStandardVideo].pausebgsound AND tour_current_played_video,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
););
if(layer[webvideodisplay_player],
if(layer[webvideodisplay_player].pausebgsound AND tour_current_played_web_video,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
););
if(tour_current_played_sound_pausesound AND tour_current_played_sound,
set(bgSoundOnResume, false);
);
ifnot(plugin[soundinterface].backgroundsound AND scene[get(xml.scene)].backgroundsound,
set(bgSoundOnResume, false);
);
if(videospots_playing GT 0,
set(bgSoundOnResume, false);
set(forceBgSoundOnResume, false);
);
if(bgSoundOnResume,
if (plugin[soundinterface].backgroundsound,
if (tour_soundson,
if (plugin[soundinterface].bgsound AND plugin[soundinterface].bgsoundloopended == false,
if((plugin[soundinterface].bgsoundpaused == true AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
resumesound(bgsoundname);
set(plugin[soundinterface].bgsoundpaused, false);
);
,
if(((plugin[soundinterface].bgsoundpaused == true OR plugin[soundinterface].bgsoundtoforce == true) AND scene[get(xml.scene)].video == false) OR (scene[get(xml.scene)].video == true AND scene[get(xml.scene)].scenevideomute == true),
set(plugin[soundinterface].bgsound, true);
set(plugin[soundinterface].bgsoundpaused, false);
set(plugin[soundinterface].bgsoundloopended, false);
set(plugin[soundinterface].bgsoundtoforce, false);
ifnot(plugin[soundinterface].backgroundsoundloops,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops), stopbackgroundsoundoncomplete());
,
playsound(bgsoundname, get(plugin[soundinterface].backgroundsound), get(plugin[soundinterface].backgroundsoundloops));
);
);
);
);
);
,
if(forceBgSoundOnResume,
playbackgroundsound();
);
);
</action>
<action name="preloadSounds">
</action>
<action name="play3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, playpanolocalsounds();););
</action>
<action name="stop3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, stoppanolocalsounds();););
</action>
<action name="resume3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds,
set(kill3dSoundOnResume, true);
if(layer[displayedStandardVideo],
if(layer[displayedStandardVideo].pausebgsound,
if(tour_current_played_video,
set(kill3dSoundOnResume, false);
);););
if(layer[webvideodisplay_player],
if(layer[webvideodisplay_player].pausebgsound,
if(tour_current_played_web_video,
set(kill3dSoundOnResume, false);
);););
if(tour_current_played_sound_pausesound,
if(tour_current_played_sound,
set(kill3dSoundOnResume, false);
););
if(kill3dSoundOnResume,
resumepanolocalsounds();
);
););
</action>
<action name="pause3DLocalSounds">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, pausepanolocalsounds();););
</action>
<action name="set3DLocalSoundsVolume">
if (xml.scene, if (scene[get(xml.scene)].haslocalsounds, setpanolocalsoundsvolume();););
</action>
<action name="playTourSounds">
set(tour_soundson, true);
events.dispatch(playtoursoundsevent);
resumeTourSoundsActions(true,true,true,true,true);
</action>
<action name="stopTourSounds">
set(tour_soundson, false);
events.dispatch(stoptoursoundsevent);
pauseTourSoundsActions(true,true,true,true,true);
</action>
<action name="setTourSoundsVolume">
set(tour_soundsvolume, %1);
events.dispatch(changetoursoundsevent);
div(volume, tour_soundsvolume, 100);
set(plugin[soundinterface].volume, get(volume));
set3DLocalSoundsVolume();
</action>
<action name="playTourSoundsActions">
if(%1,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
play3DLocalSounds();
);
);
);
if(%2,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
);
</action>
<action name="stopTourSoundsActions">
if(%1,
stop3DLocalSounds();
);
if(%2,
stopSoundActionsSounds();
);
if(%3,
stopVideoActionsSounds();
);
if(%4,
pausebackgroundsound();
);
</action>
<action name="resumeTourSoundsActions">
if(%1,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resume3DLocalSounds();
);
);
);
if(%2,
resumeSoundActionsSounds();
);
if(%3,
resumeVideoActionsSounds();
);
if(%4,
if(%5,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
,
pausebackgroundsound();
);
);
</action>
<action name="pauseTourSoundsActions">
if(%1,
pause3DLocalSounds();
);
if(%2,
pauseSoundActionsSounds();
);
if(%3,
pauseVideoActionsSounds();
);
if(%4,
if(%5,
pausebackgroundsound();
,
if(plugin[soundinterface],
if(plugin[soundinterface].started,
resumebackgroundsound();
);
);
);
);
</action>
<action name="stopSoundActionsSounds">
if (tour_current_played_sound,
delete(tour_current_played_sound_paused);
stopsound(get(tour_current_played_sound));
delete(tour_current_played_sound);
set(tour_current_played_sound_state, 0);
);
</action>
<action name="stopVideoActionsSounds">
if(tour_current_played_video,
if(layer[displayedStandardVideo],
layer[displayedStandardVideo].stop();
removelayer(displayedStandardVideo);
if(layer[displayedStandardVideoOverlayButton], removelayer(displayedStandardVideoOverlayButton); );
if(layer[displayedStandardVideoOverlay], removelayer(displayedStandardVideoOverlay); );
delete(tour_current_played_video);
set(tour_current_played_video_state, 0);
);
);
if(tour_current_played_web_video,
displayWebVideoObjectClose();
);
</action>
<action name="resumeSoundActionsSounds">
if (tour_current_played_sound,
set(resumeSoundActionsVerification, true);
if(tour_current_played_video,
if(tour_current_played_sound_state LT tour_current_played_video_state,
set(resumeSoundActionsVerification, false);
);
);
if(resumeSoundActionsVerification,
if (tour_soundson,
if(tour_current_played_sound_paused,
set(tour_current_played_sound_paused, false);
resumesound(get(tour_current_played_sound));
);
);
);
);
</action>
<action name="resumeVideoActionsSounds">
if(tour_current_played_video,
set(resumeVideoActionsVerification, true);
if(tour_current_played_sound,
if(tour_current_played_video_state LT tour_current_played_sound_state,
set(resumeVideoActionsVerification, false);
);
);
if(resumeVideoActionsVerification,
if (tour_soundson,
if(device.flash OR (device.webgl AND !device.ios),
div(volume, tour_soundsvolume, 100);
set(layer[displayedStandardVideo].volume, get(volume));
,
ifnot(device.ios,
js(kpanotour.Sounds.startVideosSounds(get(volume)));
,
if(tour_soundsvolume GT 0,
set(layer[displayedStandardVideo].muted, false);
,
set(layer[displayedStandardVideo].muted, true);
);
);
);
,
if(device.flash OR (device.webgl AND !device.ios),
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
,
set(layer[displayedStandardVideo].muted, true);
);
);
);
);
);
</action>
<action name="pauseSoundActionsSounds">
if (tour_current_played_sound,
ifnot(tour_current_played_sound_paused,
set(tour_current_played_sound_paused, true);
pausesound(get(tour_current_played_sound));
);
);
</action>
<action name="pauseVideoActionsSounds">
if(tour_current_played_video,
if(device.flash OR (device.webgl AND !device.ios),
set(layer[displayedStandardVideo].volume, 0);
,
ifnot(device.ios,
js(kpanotour.Sounds.stopVideosSounds());
,
set(layer[displayedStandardVideo].muted, true);
);
);
);
</action>
<!-- WebVR plugin for VR availability tests -->
<plugin name="ptpvrmode" devices="html5" keep="true"
url="%FIRSTXML%/graphics/webvr.js"
mobilevr_support="true"
mobilevr_fake_support="false"
vr_cursor=""
vr_cursor_enabled="false"
onavailable="delayedcall(1, checkVrAvailability(););"
onunavailable="checkVrUnavailable();"
/>
<action name="checkVrAvailability">
if(plugin[ptpvrmode],
if (plugin[ptpvrmode].isavailable,
set(tour_vrdevices, true);
events.dispatch(onvravailable);
,
set(tour_vrdevices, false);
);
,
checkVrUnavailable();
);
</action>
<action name="checkVrUnavailable">
set(tour_vrdevices, false);
events.dispatch(onvrunavailable);
</action>
<action name="enableGyroscope">
changeGyroscopeState(true);
</action>
<action name="disableGyroscope">
changeGyroscopeState(false);
</action>
<!-- Fullscreen Management -->
<action name="exitFullScreen" devices="fullscreensupport">set(tour_fullscreen,false);js(setFullscreen(false));</action>
<action name="enterFullScreen" devices="fullscreensupport">set(tour_fullscreen,true);js(setFullscreen(true));</action>
<action name="switchFullScreen">if(tour_fullscreen,exitFullScreen();,enterFullScreen(););</action>
<events name="krpanoExitFullscreenEvent"
onexitfullscreen="if(tour_fullscreen,exitFullScreenChangeEvent(););"
keep="true" />
<action name="exitFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,false);events.dispatch(onexitfullscreen);</action>
<action name="enterFullScreenChangeEvent" devices="fullscreensupport">set(tour_fullscreen,true);events.dispatch(onenterfullscreen);</action>
<action name="exitFullScreenFallback">set(fullscreen,false);</action>
<action name="enterFullScreenFallback">set(fullscreen,true);</action>
<action name="resizeFullScreenEvent">delayedcall(0,updatescreen(););</action>
<!-- Hide / Show Controls -->
<action name="hideTourControls">set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);</action>
<action name="showTourControls">set(tour_displaycontrols, true); events.dispatch(showtourcontrols);</action>
<!-- Tour Information -->
<action name="hideTourInfo">set(tour_displayinfo, false);events.dispatch(onhidetourinfo);</action>
<action name="showTourInfo">set(tour_displayinfo, true); events.dispatch(onshowtourinfo);</action>
</krpano>