File: //home2/gazetufm/arkivakulturoregjilan.org/Burgu360/Burgu360VRdata/Burgu360VR_skin.xml
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.20.11">
<!-- 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>
<!-- unsupported kind of display : PointMap -->
<!-- Spot Style - info -->
<style name="Iconinfo"
url="%FIRSTXML%/spots/hotspot_animated_user_defaultpoint1.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="onoverIconinfo"
onout="onoutIconinfo"
width="40"
height="prop"
/>
<action name="onoverIconinfo">
pauseautorotation(forcehotspot);
</action>
<action name="onoutIconinfo">
resumeautorotation(forcehotspot);
</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_display_floorplan].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_hide_floorplan ].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_display_floorplan"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_floorplan.png"
onclick="showFloorplan();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classicdisplayFloorplanTip"
/>
<layer name="controlBar_classicbtn_hide_floorplan"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_floorplan.png"
onclick="hideFloorplan();
"
style="controlBar_classic_btn_style"
visible="false"
tooltip="controlBar_classichideFloorplanTip"
/>
<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_classicupdateFloorplanButtons();
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_classicupdateFloorplanButtons();
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_classicDisplayFloorPlanEvents"
onshowtourfloorplan="controlBar_classicupdateFloorplanButtons();"
onhidetourfloorplan="controlBar_classicupdateFloorplanButtons();"
keep="true" />
<action name="controlBar_classicHideFloorplanButtons">
set(layer[controlBar_classicbtn_display_floorplan].visible, false);
set(layer[controlBar_classicbtn_hide_floorplan].visible, false);
</action>
<action name="controlBar_classicShowFloorplanButtons">
if (tour_displayfloorplan,
set(layer[controlBar_classicbtn_hide_floorplan].visible, true);
set(layer[controlBar_classicbtn_display_floorplan].visible, false);
,
set(layer[controlBar_classicbtn_display_floorplan].visible, true);
set(layer[controlBar_classicbtn_hide_floorplan].visible, false);
);
</action>
<action name="controlBar_classicupdateFloorplanButtons">
if (controlBar_classicIsOpened,
controlBar_classicShowFloorplanButtons();
,
controlBar_classicHideFloorplanButtons();
);
</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="Verdana" 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="Verdana" 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="panogroup538_title"
thumbnail=""
subMenu="true"
cssClass="panogroup538">
<item name="group_1_item_1"
action="invokeKrFunction('mainloadscene', 'pano5496')"
titleID="pano5496_title"
thumbnail=""
cssClass="pano5496">
</item>
<item name="group_1_item_2"
action="invokeKrFunction('mainloadscene', 'pano5490')"
titleID="pano5490_title"
thumbnail=""
cssClass="pano5490">
</item>
<item name="group_1_item_3"
action="invokeKrFunction('mainloadscene', 'pano5498')"
titleID="pano5498_title"
thumbnail=""
cssClass="pano5498">
</item>
<item name="group_1_item_4"
action="invokeKrFunction('mainloadscene', 'pano5497')"
titleID="pano5497_title"
thumbnail=""
cssClass="pano5497">
</item>
<item name="group_1_item_5"
action="invokeKrFunction('mainloadscene', 'pano533')"
titleID="pano533_title"
thumbnail=""
cssClass="pano533">
</item>
</group>
<group name="group_2"
titleID="panogroup540_title"
thumbnail=""
subMenu="true"
cssClass="panogroup540">
<item name="group_2_item_1"
action="invokeKrFunction('mainloadscene', 'pano535')"
titleID="pano535_title"
thumbnail=""
cssClass="pano535">
</item>
<item name="group_2_item_2"
action="invokeKrFunction('mainloadscene', 'pano536')"
titleID="pano536_title"
thumbnail=""
cssClass="pano536">
</item>
<item name="group_2_item_3"
action="invokeKrFunction('mainloadscene', 'pano537')"
titleID="pano537_title"
thumbnail=""
cssClass="pano537">
</item>
<item name="group_2_item_4"
action="invokeKrFunction('mainloadscene', 'pano534')"
titleID="pano534_title"
thumbnail=""
cssClass="pano534">
</item>
<item name="group_2_item_5"
action="invokeKrFunction('mainloadscene', 'pano5493')"
titleID="pano5493_title"
thumbnail=""
cssClass="pano5493">
</item>
<item name="group_2_item_6"
action="invokeKrFunction('mainloadscene', 'pano5485')"
titleID="pano5485_title"
thumbnail=""
cssClass="pano5485">
</item>
</group>
<group name="group_3"
titleID="panogroup343_title"
thumbnail=""
subMenu="true"
cssClass="panogroup343">
<item name="group_3_item_1"
action="invokeKrFunction('mainloadscene', 'pano329')"
titleID="pano329_title"
thumbnail=""
cssClass="pano329">
</item>
<item name="group_3_item_2"
action="invokeKrFunction('mainloadscene', 'pano330')"
titleID="pano330_title"
thumbnail=""
cssClass="pano330">
</item>
<item name="group_3_item_3"
action="invokeKrFunction('mainloadscene', 'pano331')"
titleID="pano331_title"
thumbnail=""
cssClass="pano331">
</item>
<item name="group_3_item_4"
action="invokeKrFunction('mainloadscene', 'pano332')"
titleID="pano332_title"
thumbnail=""
cssClass="pano332">
</item>
<item name="group_3_item_5"
action="invokeKrFunction('mainloadscene', 'pano333')"
titleID="pano333_title"
thumbnail=""
cssClass="pano333">
</item>
<item name="group_3_item_6"
action="invokeKrFunction('mainloadscene', 'pano335')"
titleID="pano335_title"
thumbnail=""
cssClass="pano335">
</item>
<item name="group_3_item_7"
action="invokeKrFunction('mainloadscene', 'pano337')"
titleID="pano337_title"
thumbnail=""
cssClass="pano337">
</item>
<item name="group_3_item_8"
action="invokeKrFunction('mainloadscene', 'pano336')"
titleID="pano336_title"
thumbnail=""
cssClass="pano336">
</item>
<item name="group_3_item_9"
action="invokeKrFunction('mainloadscene', 'pano338')"
titleID="pano338_title"
thumbnail=""
cssClass="pano338">
</item>
<item name="group_3_item_10"
action="invokeKrFunction('mainloadscene', 'pano339')"
titleID="pano339_title"
thumbnail=""
cssClass="pano339">
</item>
<item name="group_3_item_11"
action="invokeKrFunction('mainloadscene', 'pano340')"
titleID="pano340_title"
thumbnail=""
cssClass="pano340">
</item>
<item name="group_3_item_12"
action="invokeKrFunction('mainloadscene', 'pano341')"
titleID="pano341_title"
thumbnail=""
cssClass="pano341">
</item>
<item name="group_3_item_13"
action="invokeKrFunction('mainloadscene', 'pano342')"
titleID="pano342_title"
thumbnail=""
cssClass="pano342">
</item>
</group>
<group name="group_4"
titleID="panogroup46_title"
thumbnail=""
subMenu="true"
cssClass="panogroup46">
<item name="group_4_item_1"
action="invokeKrFunction('mainloadscene', 'pano33')"
titleID="pano33_title"
thumbnail=""
cssClass="pano33">
</item>
<item name="group_4_item_2"
action="invokeKrFunction('mainloadscene', 'pano32')"
titleID="pano32_title"
thumbnail=""
cssClass="pano32">
</item>
<item name="group_4_item_3"
action="invokeKrFunction('mainloadscene', 'pano31')"
titleID="pano31_title"
thumbnail=""
cssClass="pano31">
</item>
<item name="group_4_item_4"
action="invokeKrFunction('mainloadscene', 'pano30')"
titleID="pano30_title"
thumbnail=""
cssClass="pano30">
</item>
<item name="group_4_item_5"
action="invokeKrFunction('mainloadscene', 'pano29')"
titleID="pano29_title"
thumbnail=""
cssClass="pano29">
</item>
<item name="group_4_item_6"
action="invokeKrFunction('mainloadscene', 'pano28')"
titleID="pano28_title"
thumbnail=""
cssClass="pano28">
</item>
<item name="group_4_item_7"
action="invokeKrFunction('mainloadscene', 'pano27')"
titleID="pano27_title"
thumbnail=""
cssClass="pano27">
</item>
<item name="group_4_item_8"
action="invokeKrFunction('mainloadscene', 'pano24')"
titleID="pano24_title"
thumbnail=""
cssClass="pano24">
</item>
<item name="group_4_item_9"
action="invokeKrFunction('mainloadscene', 'pano25')"
titleID="pano25_title"
thumbnail=""
cssClass="pano25">
</item>
<item name="group_4_item_10"
action="invokeKrFunction('mainloadscene', 'pano26')"
titleID="pano26_title"
thumbnail=""
cssClass="pano26">
</item>
<item name="group_4_item_11"
action="invokeKrFunction('mainloadscene', 'pano23')"
titleID="pano23_title"
thumbnail=""
cssClass="pano23">
</item>
<item name="group_4_item_12"
action="invokeKrFunction('mainloadscene', 'pano21')"
titleID="pano21_title"
thumbnail=""
cssClass="pano21">
</item>
<item name="group_4_item_13"
action="invokeKrFunction('mainloadscene', 'pano22')"
titleID="pano22_title"
thumbnail=""
cssClass="pano22">
</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="0.80000000000000004"
visible="true"
css="
text-align:center;
color:#ffffff;
font-family:Verdana;
font-size:22px;
"
/>
<!-- ********** -->
<!-- Button -->
<!-- id : button -->
<!-- ********** -->
<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/info_buton.png"
align="bottomleft"
x="10"
y="10"
zorder="7"
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">
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="group" startMethod="showDescription_description1" 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="70" type="int" />
<option name="area_height" value="80" type="int" />
<option name="area_width_unit" value="percent" type="string" />
<option name="area_height_unit" value="percent" 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="open_callback" value="invokeKrFunction('openKolorAreaCallback_description1')" type="string" />
<option name="zorder" value="8" 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="openKolorAreaCallback_description1">
</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].currentGroup != scene[get(xml.scene)].group,
set(ptplugin[description1].currentGroup, get(scene[get(xml.scene)].group));
set(ptplugin[description1].descID, get(panoramagroup[get(ptplugin[description1].currentGroup)].descriptionid));
if(ptplugin[description1].descID == null,
set(ptplugin[description1].descID, "");
);
);
if(ptplugin[description1].descID != "",
openDescription_description1();
,
hideKolorArea_description1(false);
);
set(ptplugin[description1].startMethod, "");
);
</action>
<action name="refreshGroupDescription_description1">
if(ptplugin[description1].currentGroup != scene[get(xml.scene)].group,
set(ptplugin[description1].currentGroup, get(scene[get(xml.scene)].group));
set(ptplugin[description1].descID, get(panoramagroup[get(ptplugin[description1].currentGroup)].descriptionid));
if(ptplugin[description1].descID == null,
set(ptplugin[description1].descID, "");
);
);
if(ptplugin[description1].descID != "",
if(ptplugin[description1].isOpen,
js(invokePluginFunction(description1, updateKolorArea, get(ptplugin[description1].descID)));
,
if(restore_description1,
showDescription_description1();
);
);
,
if(tour_displayinfo,
delayedcall(0.1,showTourInfo();
);
);
closeDescription_description1(get(ptplugin[description1].isOpen));
);
</action>
<action name="onNewGroup_description1">
if(ptplugin[description1].newPano,
if(ptplugin[description1].startMethod == "",
if(ptplugin[description1].isOpen,
refreshGroupDescription_description1();
,
if(tour_displayinfo,
showDescription_description1();
,
refreshGroupDescription_description1();
);
);
);
);
set(ptplugin[description1].newPano, true);
</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();
);"
onshowtourinfo="if(tour_displayinfo,showDescription_description1(););"
onhidetourinfo="delayedcall(0.3,if(ptplugin[description1].isOpen,closeDescription_description1(false);););"
onnewpano="onNewGroup_description1();"
onremovedisplayedobject="ifnot(ptplugin[description1].currentCall,if(ptplugin[description1].isOpen,hideTourInfo();
););"
changetourlanguage="changeLanguage_description1();"
/>
<!-- ********** -->
<!-- Floor plan -->
<!-- id : floorPlan -->
<!-- ********** -->
<ptplugin name="floorPlan" engine="KolorFloorPlan">
<settings>
<option name="background_color" value="ffffff" type="string" />
<option name="background_lighter_color" value="ffffff" type="string" />
<option name="background_darker_color" value="d5d5d5" type="string" />
<option name="background_alpha" value="0.59999999999999998" type="float" />
<option name="text_color" value="000000" type="string" />
<option name="resize" value="true" type="bool" />
<option name="fp_selector" value="one" type="string" />
<option name="fp_selector_label" value="floorPlanmenu_label" type="string" />
<option name="display_title" value="true" type="bool" />
<option name="title" value="project_floor_title" type="string" />
<option name="title_font" value="Verdana" type="string" />
<option name="title_size" value="14" type="int" />
<option name="title_weight" value="normal" type="string" />
<option name="title_decoration" value="normal" type="string" />
<option name="title_color" value="000000" type="string" />
<option name="display_orientation" value="false" type="bool" />
<option name="display_radar" value="false" type="bool" />
<option name="selected_effect" value="bounce" type="string" />
<option name="close_on_click" value="false" type="bool" />
<option name="position" value="center" type="string" />
<option name="zorder" value="9" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
<floorplanItems selectedItem="fpitemmain" selectedSpot="" selectedSpotScene="" selectedSpotHeading="" selectedSpotFov="">
<floorplanItem
name="fpitemmain"
width="3000"
height="2121"
groupName=""
url="floorplan/doc1.jpg"
title="project_floor_title"
heading="0">
<spot name="spotmap5713" posX="0.130933002" posY="0.553241014" heading="0" desc="spotmap5713_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano5496" jsClick="spotmap5713ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5714" posX="0.296236008" posY="0.356480986" heading="0" desc="spotmap5714_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano5490" jsClick="spotmap5714ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5715" posX="0.245499" posY="0.858796" heading="0" desc="spotmap5715_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano5498" jsClick="spotmap5715ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5716" posX="0.373158991" posY="0.708333015" heading="0" desc="spotmap5716_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano5497" jsClick="spotmap5716ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5717" posX="0.703764021" posY="0.307870001" heading="0" desc="spotmap5717_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano533" jsClick="spotmap5717ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5718" posX="0.592471004" posY="0.293980986" heading="0" desc="spotmap5718_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano534" jsClick="spotmap5718ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5719" posX="0.548281014" posY="0.504630029" heading="0" desc="spotmap5719_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano535" jsClick="spotmap5719ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
<spot name="spotmap5720" posX="0.481177986" posY="0.210648" heading="0" desc="spotmap5720_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano332" jsClick="spotmap5720ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap0.png" iconWidth="32" iconHeight="32" iconAnchor="center" />
</spot>
</floorplanItem>
</floorplanItems>
</ptplugin>
<action name="kolorFloorplanJsReady_floorPlan">
set(ptplugin[floorPlan].jsready, true);
ifnot(ptplugin[floorPlan].floorplanItems.selectedSpot == "",
set(ptplugin[floorPlan].floorplanItems.selectedSpotFov, get(view.hfov));
js(invokePluginFunction(floorPlan, setKolorFloorPlanSelectedSpotOptions, get(xml.scene), get(view.hlookat), get(view.hfov)));
);
</action>
<!-- floorplan main spots counter : 8 -->
<action name="spotmap5713ActionSpotFloorPlan">if(xml.scene == pano5496,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano5496);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap5714ActionSpotFloorPlan">if(xml.scene == pano5490,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano5490);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap5715ActionSpotFloorPlan">if(xml.scene == pano5498,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano5498);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap5716ActionSpotFloorPlan">if(xml.scene == pano5497,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano5497);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap5717ActionSpotFloorPlan">if(xml.scene == pano533,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano533);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap5718ActionSpotFloorPlan">if(xml.scene == pano534,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano534);lookat(130.950000, -0.900000, 90.000000);
</action>
<action name="spotmap5719ActionSpotFloorPlan">if(xml.scene == pano535,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano535);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap5720ActionSpotFloorPlan">if(xml.scene == pano332,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano332);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<events name="floorPlanEvents"
onxmlcomplete="ifnot(floorPlanFloorPlanLoaded,set(tour_displayfloorplan,false););floorPlanActivateDefaultSpot();"
onhidetourfloorplan="floorPlanCloseTourFloorPlan();"
onshowtourfloorplan="if(tour_displayfloorplan,floorPlanOpenTourFloorPlan(););"
onTourStart=""
changetourlanguage="floorPlanChangeLanguage();"
keep="true" />
<action name="floorPlanChangeLanguage">
if(ptplugin[floorPlan].jsready,
stopdelayedcall(delay_floorPlan);
js(invokePluginFunction(floorPlanArea, changeLanguage, false));
js(invokePluginFunction(floorPlan, changeLanguage));
,
delayedcall(delay_floorPlan, 0.1, floorPlanChangeLanguage(););
);
</action>
<krpano floorPlanFloorPlanLoaded="false" />
<action name="floorPlanHideTourFloorPlan">
hideKolorArea_floorPlanArea(true);
</action>
<action name="floorPlanCloseTourFloorPlan">
closeKolorArea_floorPlanArea();
</action>
<action name="floorPlanShowTourFloorPlan">
if(ptplugin[floorPlanArea].isOpen === null,
openKolorArea_floorPlanArea();
,
showKolorArea_floorPlanArea(true);
);
</action>
<action name="floorPlanOpenTourFloorPlan">
openKolorArea_floorPlanArea();
</action>
<action name="floorPlanActivateSpot">
set(ptplugin[floorPlan].floorplanItems.selectedSpot, %1);
set(ptplugin[floorPlan].floorplanItems.selectedItem, %2);
if(%1 !== "",
set(ptplugin[floorPlan].floorplanItems.selectedSpotScene, get(xml.scene));
set(ptplugin[floorPlan].floorplanItems.selectedSpotHeading, get(view.hlookat));
set(ptplugin[floorPlan].floorplanItems.selectedSpotFov, get(view.hfov));
);
if(ptplugin[floorPlanArea].isOpen,
floorPlanSelectActivatedSpot(%1, %2, %3);
);
</action>
<action name="floorPlanSelectActivatedSpot">
js(invokePluginFunction(floorPlan, selectSpot, %1, %2, %3));
</action>
<action name="floorPlanDeactivateSpot">
set(ptplugin[floorPlan].floorplanItems.selectedSpot, "");
js(invokePluginFunction(floorPlan, unselectSpot));
</action>
<action name="floorPlanActivateDefaultSpot">
set(floorPlanFloorPlanLoaded, true);
set(floorPlanSpotFound, "");
set(floorPlanSpotScene, "");
set(floorPlanItemFound, "");
set(floorPlanItemSearch, true);
set(floorPlanSpotSearchActivated, true);
set(floorPlanSpotSearchContinue, true);
for(set(defaultfloorplaniteminc,0), defaultfloorplaniteminc LT ptplugin[floorPlan].floorplanItems.floorplanItem.count , inc(defaultfloorplaniteminc),
if(floorPlanSpotSearchActivated == true,
if(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].groupName == scene[get(xml.scene)].group,
set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].name));
set(ptplugin[floorPlan].floorplanItems.selectedItem, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].name));
set(floorPlanItemSearch, false);
,
if(floorPlanItemFound == "",
set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems.floorplanItem[fpitemmain].name));
set(ptplugin[floorPlan].floorplanItems.selectedItem, get(ptplugin[floorPlan].floorplanItems.floorplanItem[fpitemmain].name));
);
);
);
if(floorPlanSpotSearchActivated == true,
for(set(defaultspotinc,0), defaultspotinc LT ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot.count , inc(defaultspotinc),
if(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].isScene == true,
if(floorPlanSpotSearchContinue == true,
if(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene == xml.scene,
set(floorPlanSpotFound, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].name));
set(floorPlanSpotScene, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene));
set(ptplugin[floorPlan].floorplanItems.selectedItem, get(ptplugin[floorPlan].floorplanItems.floorplanItem[get(defaultfloorplaniteminc)].name));
if(floorPlanItemSearch == false,
set(floorPlanSpotSearchContinue, false);
set(floorPlanSpotSearchActivated, false);
);
);
);
);
);
);
);
if(floorPlanSpotFound == "",
floorPlanDeactivateSpot();
set(ptplugin[floorPlan].floorplanItems.selectedItem, get(floorPlanItemFound));
ifnot(ptplugin[floorPlan].floorplanItems.selectedItem == "",
floorPlanActivateSpot("", get(ptplugin[floorPlan].floorplanItems.selectedItem), "");
);
,
floorPlanActivateSpot(get(floorPlanSpotFound), get(ptplugin[floorPlan].floorplanItems.selectedItem), get(floorPlanSpotScene));
);
</action>
<action name="floorPlanChangeTitle">
js(invokePluginFunction(floorPlan, changeTitle, %1));
</action>
<ptplugin name="floorPlanArea" 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="display_title" value="true" type="bool" />
<option name="title" value="project_floor_title" type="string" />
<option name="title_font" value="Verdana" type="string" />
<option name="title_size" value="14" type="int" />
<option name="title_weight" value="normal" type="string" />
<option name="title_decoration" value="normal" type="string" />
<option name="title_color" value="000000" type="string" />
<option name="close_displayed" value="true" type="bool" />
<option name="close_text" value="floorPlandisplay_close_text" type="string" />
<option name="background_color" value="ffffff" type="string" />
<option name="background_alpha" value="0.59999999999999998" type="float" />
<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="padding" value="0" type="int" />
<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="area_width" value="90" type="int" />
<option name="area_height" value="90" 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="close_on_click" value="false" type="bool" />
<option name="refresh_content" value="false" type="bool" />
<option name="open_callback" value="addKolorFloorPlan('floorPlan', 'floorPlanArea_floorplanDIV');" type="string" />
<option name="close_callback" value="invokeKrFunction('closeKolorAreaCallback_floorPlanArea')" type="string" />
<option name="zorder" value="9" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
</ptplugin>
<action name="kolorAreaJsReady_floorPlanArea">
set(ptplugin[floorPlanArea].jsready, true);
</action>
<action name="openKolorArea_floorPlanArea">
ifnot(ptplugin[floorPlanArea].isOpen,
set(ptplugin[floorPlanArea].isOpen, true);
pauseautorotation(forceplugin);
js(showKolorArea(floorPlanArea, <div id="floorPlanArea_floorplanDIV"></div>));
if(ptplugin[floorPlan].floorplanItems.selectedSpot != "",
floorPlanSelectActivatedSpot(get(ptplugin[floorPlan].floorplanItems.selectedSpot), get(ptplugin[floorPlan].floorplanItems.selectedItem), get(ptplugin[floorPlan].floorplanItems.selectedSpotScene));
);
events.dispatch(onremovedisplayedobject);
);
</action>
<action name="closeKolorArea_floorPlanArea">
if(ptplugin[floorPlanArea].isOpen,
js(invokePluginFunction(floorPlanArea, closeKolorArea));
);
</action>
<action name="toggleKolorArea_floorPlanArea">
if(ptplugin[floorPlanArea].isOpen,
closeKolorArea_floorPlanArea();
,
openKolorArea_floorPlanArea();
);
</action>
<action name="closeKolorAreaCallback_floorPlanArea">
if(ptplugin[floorPlanArea].isOpen,resumeautorotation(forceplugin);
);
set(ptplugin[floorPlanArea].isOpen, false);hideFloorplan();
</action>
<action name="changeTitleKolorArea_floorPlanArea">
js(invokePluginFunction(floorPlanArea, changeTitle, %1));
</action>
<action name="showKolorArea_floorPlanArea">
set(ptplugin[floorPlanArea].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(floorPlanArea, showKolorArea, %1));
events.dispatch(onremovedisplayedobject);
</action>
<action name="hideKolorArea_floorPlanArea">
resumeautorotation(forceplugin);
set(ptplugin[floorPlanArea].isOpen, false);
js(invokePluginFunction(floorPlanArea, hideKolorArea, %1));
</action>
<events name="kolorAreaEvents_floorPlanArea"
keep="true"
onremovepano="if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
);"
/>
<!-- ********** -->
<!-- Logo -->
<!-- id : logo -->
<!-- ********** -->
<layer align="topright"
x="10"
y="10"
zorder="10"
name="logo"
keep="true"
visible="false"
capture="false"
tooltip="logotooltipText"
onhover="showTooltip('plugin');"
onout="hideTooltip();"
url="%FIRSTXML%/graphics/logo/burgu3ddd.png"
onclick="
getmessage(urltoopen,logowebsiteurl);openurl(get(urltoopen),_blank);
"
width="90"
height="prop"
/>
<events name="logoevents"
onTourStart="showlogo();"
keep="true" />
<action name="hidelogo">
set(layer[logo].visible, false);
</action>
<action name="showlogo">
set(layer[logo].visible, true);
</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>
<!-- 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>
<action name="displayImage">
if (layer[displayedStandardImage],
if(layer[displayedStandardImage].doNotDeleteMe,
set(layer[displayedStandardImage].currentCall, false);
set(layer[displayedStandardImage].doNotDeleteMe, false);
if (%1 == layer[displayedStandardImage].url,
applyDisplayedImageObjectAnimation(%8);
,
setDisplayedImageObjectParameters(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10);
);
,
set(layer[displayedStandardImage].currentCall, false);
set(layer[displayedStandardImage].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.2,displayImage(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12););
);
,
if(%10,
addlayer(displayedStandardImageOverlay);
set(layer[displayedStandardImageOverlay].keep, false);
set(layer[displayedStandardImageOverlay].width, 100%);
set(layer[displayedStandardImageOverlay].height, 100%);
set(layer[displayedStandardImageOverlay].type, container);
set(layer[displayedStandardImageOverlay].zorder, 98);
set(layer[displayedStandardImageOverlay].visible, false);
set(layer[displayedStandardImageOverlay].onclick, applyDisplayedImageObjectAnimation(%8););
set(layer[displayedStandardImageOverlay].bgcolor, "0x%11");
set(layer[displayedStandardImageOverlay].bgalpha, %12);
set(layer[displayedStandardImageOverlay].bgcapture, true);
);
addlayer(displayedStandardImage);
set(layer[displayedStandardImage].keep, false);
set(layer[displayedStandardImage].onclick, applyDisplayedImageObjectAnimation(%8););
set(layer[displayedStandardImage].zorder , 99);
set(layer[displayedStandardImage].currentCall, true);
set(layer[displayedStandardImage].doNotDeleteMe, true);
set(layer[displayedStandardImage].onloaded, resizeDisplayedImageObject());
events.dispatch(onremovedisplayedobject);
delayedcall(0.2,displayImage(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12););
set(layer[displayedStandardImage].visible, false);
);
</action>
<action name="applyDisplayedImageObjectAnimation">resumeautorotation(forcehotspot);
if (%1,
stoptween(layer[displayedStandardImage].width, layer[displayedStandardImage].height);
tween(layer[displayedStandardImage].width|layer[displayedStandardImage].height, 1|1, 1, easeOutQuad, WAIT);
if(layer[displayedStandardImage].overlay,removelayer(displayedStandardImageOverlay););removelayer(displayedStandardImage);
,
if(layer[displayedStandardImage].overlay,removelayer(displayedStandardImageOverlay););removelayer(displayedStandardImage);
);
</action>
<action name="setDisplayedImageObjectParameters">
set(layer[displayedStandardImage].url , %1);
set(layer[displayedStandardImage].align , %2);
set(layer[displayedStandardImage].x , %3);
set(layer[displayedStandardImage].y , %4);
set(layer[displayedStandardImage].imgwidth , %5);
set(layer[displayedStandardImage].imgheight , %6);
set(layer[displayedStandardImage].animated , %8);
set(layer[displayedStandardImage].applyratio, %9);
set(layer[displayedStandardImage].overlay , %10);
if (%7,pauseautorotation(forcehotspot);
);
</action>
<action name="resizeDisplayedImageObject">
if(layer[displayedStandardImage].url,
set(layer[displayedStandardImage].fullwidth, get(layer[displayedStandardImage].width));
set(layer[displayedStandardImage].fullheight, get(layer[displayedStandardImage].height));
if(layer[displayedStandardImage].animated,
set(layer[displayedStandardImage].width , 1);
set(layer[displayedStandardImage].height, 1);
);
if(layer[displayedStandardImage].imgwidth != "" AND layer[displayedStandardImage].imgheight != "",
if(layer[displayedStandardImage].imgwidth == "prop",
set(tempDisplayedImageObjectHeight, get(layer[displayedStandardImage].imgheight));
indexoftxt(tempDisplayedImageObjectHeightPercent, get(tempDisplayedImageObjectHeight), "%");
if(tempDisplayedImageObjectHeightPercent GT 0,
txtreplace(tempDisplayedImageObjectHeight, '%', '');
mul(tempDisplayedImageObjectHeight, get(stageheight));
div(tempDisplayedImageObjectHeight, 100);
Math.round(tempDisplayedImageObjectHeight);
);
mul(flyingImgWidth,get(layer[displayedStandardImage].fullwidth),get(tempDisplayedImageObjectHeight));
div(flyingImgWidth,get(layer[displayedStandardImage].fullheight));
Math.round(flyingImgWidth);
set(layer[displayedStandardImage].imgwidth , get(flyingImgWidth));
set(layer[displayedStandardImage].imgheight, get(tempDisplayedImageObjectHeight));
,
if(layer[displayedStandardImage].imgheight == "prop",
set(tempDisplayedImageObjectWidth, get(layer[displayedStandardImage].imgwidth));
indexoftxt(tempDisplayedImageObjectWidthPercent, get(tempDisplayedImageObjectWidth), "%");
if(tempDisplayedImageObjectWidthPercent GT 0,
txtreplace(tempDisplayedImageObjectWidth, '%', '');
mul(tempDisplayedImageObjectWidth, get(stagewidth));
div(tempDisplayedImageObjectWidth, 100);
Math.round(tempDisplayedImageObjectWidth);
);
mul(flyingImgHeight,get(layer[displayedStandardImage].fullheight),get(tempDisplayedImageObjectWidth));
div(flyingImgHeight,get(layer[displayedStandardImage].fullwidth));
Math.round(flyingImgHeight);
set(layer[displayedStandardImage].imgwidth , get(tempDisplayedImageObjectWidth));
set(layer[displayedStandardImage].imgheight , get(flyingImgHeight));
,
set(tempDisplayedImageObjectWidth, get(layer[displayedStandardImage].imgwidth));
set(tempDisplayedImageObjectHeight, get(layer[displayedStandardImage].imgheight));
indexoftxt(tempDisplayedImageObjectWidthPercent, get(tempDisplayedImageObjectWidth), "%");
indexoftxt(tempDisplayedImageObjectHeightPercent, get(tempDisplayedImageObjectHeight), "%");
if(tempDisplayedImageObjectWidthPercent GT 0,
txtreplace(tempDisplayedImageObjectWidth, '%', '');
mul(tempDisplayedImageObjectWidth, get(stagewidth));
div(tempDisplayedImageObjectWidth, 100);
Math.round(tempDisplayedImageObjectWidth);
);
if(tempDisplayedImageObjectHeightPercent GT 0,
txtreplace(tempDisplayedImageObjectHeight, '%', '');
mul(tempDisplayedImageObjectHeight, get(stageheight));
div(tempDisplayedImageObjectHeight, 100);
Math.round(tempDisplayedImageObjectHeight);
);
set(layer[displayedStandardImage].imgwidth , get(tempDisplayedImageObjectWidth));
set(layer[displayedStandardImage].imgheight, get(tempDisplayedImageObjectHeight));
);
);
,
set(layer[displayedStandardImage].imgwidth , get(layer[displayedStandardImage].fullwidth));
set(layer[displayedStandardImage].imgheight, get(layer[displayedStandardImage].fullheight));
);
set(resizedwidth, get(layer[displayedStandardImage].imgwidth));
set(resizedheight, get(layer[displayedStandardImage].imgheight));
if(layer[displayedStandardImage].applyratio,
sub(resizedstagewidth, get(stagewidth), get(layer[displayedStandardImage].x));
sub(resizedstageheight, get(stageheight), get(layer[displayedStandardImage].y));
Math.abs(resizedstagewidth);
Math.abs(resizedstageheight);
if(resizedwidth GT resizedstagewidth,
mul(tempresizedheight, get(resizedheight), get(resizedstagewidth));
div(tempresizedheight, get(resizedwidth));
Math.round(tempresizedheight);
set(resizedwidth, get(resizedstagewidth));
set(resizedheight, get(tempresizedheight));
);
if(resizedheight GT resizedstageheight,
mul(tempresizedwidth, get(resizedwidth), get(resizedstageheight));
div(tempresizedwidth, get(resizedheight));
Math.round(tempresizedwidth);
set(resizedheight, get(resizedstageheight));
set(resizedwidth, get(tempresizedwidth));
);
);
if(layer[displayedStandardImage].animated,
set(layer[displayedStandardImage].animated, false);
tween(layer[displayedStandardImage].width , get(resizedwidth), 1, easeOutQuad);
tween(layer[displayedStandardImage].height, get(resizedheight), 1, easeOutQuad);
,
set(layer[displayedStandardImage].width , get(resizedwidth));
set(layer[displayedStandardImage].height, get(resizedheight));
);
if(layer[displayedStandardImage].overlay,set(layer[displayedStandardImageOverlay].visible, true););
set(layer[displayedStandardImage].visible, true);
,
delayedcall(0.2,resizeDisplayedImageObject(););
);
</action>
<events name="displayedImageObjectEvents" keep="true" onremovedisplayedobject="displayedImageObjectOnRemoveDisplayedObject" onresize="if(layer[displayedStandardImage],resizeDisplayedImageObject());" />
<action name="displayedImageObjectOnRemoveDisplayedObject">
ifnot(layer[displayedStandardImage].currentCall,if(layer[displayedStandardImage].visible,resumeautorotation(forcehotspot);
if(layer[displayedStandardImage].overlay,removelayer(displayedStandardImageOverlay););
removelayer(displayedStandardImage);
););
</action>
<!-- FLOORPLAN -->
<action name="hideFloorplan">set(tour_displayfloorplan, false);events.dispatch(onhidetourfloorplan);</action>
<action name="showFloorplan">set(tour_displayfloorplan, true); events.dispatch(onshowtourfloorplan);</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>
<!-- Sounds Management -->
<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);
set3DLocalSoundsVolume();
</action>
<action name="playTourSoundsActions">
if(%1,
play3DLocalSounds();
);
</action>
<action name="stopTourSoundsActions">
if(%1,
stop3DLocalSounds();
);
if(%3,
stopVideoActionsSounds();
);
</action>
<action name="resumeTourSoundsActions">
if(%1,
resume3DLocalSounds();
);
if(%3,
resumeVideoActionsSounds();
);
</action>
<action name="pauseTourSoundsActions">
if(%1,
pause3DLocalSounds();
);
if(%3,
pauseVideoActionsSounds();
);
</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="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="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>
</krpano>