showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showTooltip('hotspot');
set(borderwidth, 1);pauseautorotation(forcehotspot);
set(borderwidth, 1);
hideTooltip();resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showtooltip('hotspot');
tween(scale, 1.2);
tween(alpha, 1);
pauseautorotation(forcehotspot);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
resumeautorotation(forcehotspot);
showTooltip('hotspot');
set(borderwidth, 1);
set(borderwidth, 1);
hideTooltip();
showtooltip('hotspot');
pauseautorotation(forcehotspot);
hideTooltip();
resumeautorotation(forcehotspot);
getmessage(contextmenu.item[author].caption, project_author_name);
getmessage(contextmenu.item[website1].caption, contextmenuopenwebsitelabel1);
if (device.fullscreensupport,
if(tour_fullscreen,
getmessage(contextmenu.item[fullscreenentry].caption, contextmenucloseFsLabel);
set(contextmenu.item[fullscreenentry].onclick, exitFullscreen();
);
,
getmessage(contextmenu.item[fullscreenentry].caption, contextmenuopenFsLabel);
set(contextmenu.item[fullscreenentry].onclick, enterFullscreen();
);
);
,
set(contextmenu.item[fullscreenentry].visible, false);
);
if (device.html5 AND tour_vrdevices,
getmessage(contextmenu.item[vrmodeentry].caption, contextmenuopenVrLabel);
set(contextmenu.item[vrmodeentry].onclick, js(accessWebVr());
);
,
set(contextmenu.item[vrmodeentry].visible, false);
);
set(ptplugin[webVideoViewer].jsready, true);
ifnot(ptplugin[webVideoViewer].isOpen,
if(ptplugin[webVideoViewer].doNotDeleteMe,
set(ptplugin[webVideoViewer].currentCall, false);
set(ptplugin[webVideoViewer].isOpen, true);
set(ptplugin[webVideoViewer].doNotDeleteMe, false);
pauseautorotation(forceplugin);
getmessage(webVideoViewer_boxurl, %1);
js(invokePluginFunction(webVideoViewer, loadSingleArrayItem, get(webVideoViewer_boxurl), %2));
,
set(ptplugin[webVideoViewer].currentCall, true);
set(ptplugin[webVideoViewer].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,openWebVideo_webVideoViewer(%1,%2););
);
,
if('%1' != webVideoViewer_boxurl,
closeKolorBox_webVideoViewer();
delayedcall(0.3,openWebVideo_webVideoViewer(%1,%2););
);
);
js(invokePluginFunction(webVideoViewer, toggleKolorBox, %1));
if(ptplugin[webVideoViewer].doNotDeleteMe,
set(ptplugin[webVideoViewer].doNotDeleteMe, false);
,
js(invokePluginFunction(webVideoViewer, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[webVideoViewer].doNotDeleteMe, false);
set(ptplugin[webVideoViewer].isOpen, false);
if(ptplugin[webVideoViewer].jsready,
stopdelayedcall(delay_webVideoViewer);
js(invokePluginFunction(webVideoViewer, changeLanguage));
,
delayedcall(delay_webVideoViewer, 0.1, changeLanguage_webVideoViewer(););
);
set(ptplugin[gallery1].jsready, true);
ifnot(ptplugin[gallery1].isOpen,
if(ptplugin[gallery1].doNotDeleteMe,
set(ptplugin[gallery1].currentCall, false);
set(ptplugin[gallery1].isOpen, true);
set(ptplugin[gallery1].doNotDeleteMe, false);
set(gallery1_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery1, openKolorBox, %1));
,
set(ptplugin[gallery1].currentCall, true);
set(ptplugin[gallery1].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery1(%1););
);
,
if(%1 !== null AND %1 != gallery1_boxurl,
closeKolorBox_gallery1();
delayedcall(0.3,showGallery_gallery1(%1););
);
);
js(invokePluginFunction(gallery1, toggleKolorBox, %1));
if(ptplugin[gallery1].doNotDeleteMe,
set(ptplugin[gallery1].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery1, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery1].doNotDeleteMe, false);
set(ptplugin[gallery1].isOpen, false);
if(ptplugin[gallery1].jsready,
js(invokePluginFunction(gallery1, changeLanguage));
,
delayedcall(delay_gallery1, 0.1, changeLanguage_gallery1(););
);
set(ptplugin[gallery2].jsready, true);
ifnot(ptplugin[gallery2].isOpen,
if(ptplugin[gallery2].doNotDeleteMe,
set(ptplugin[gallery2].currentCall, false);
set(ptplugin[gallery2].isOpen, true);
set(ptplugin[gallery2].doNotDeleteMe, false);
set(gallery2_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery2, openKolorBox, %1));
,
set(ptplugin[gallery2].currentCall, true);
set(ptplugin[gallery2].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery2(%1););
);
,
if(%1 !== null AND %1 != gallery2_boxurl,
closeKolorBox_gallery2();
delayedcall(0.3,showGallery_gallery2(%1););
);
);
js(invokePluginFunction(gallery2, toggleKolorBox, %1));
if(ptplugin[gallery2].doNotDeleteMe,
set(ptplugin[gallery2].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery2, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery2].doNotDeleteMe, false);
set(ptplugin[gallery2].isOpen, false);
if(ptplugin[gallery2].jsready,
js(invokePluginFunction(gallery2, changeLanguage));
,
delayedcall(delay_gallery2, 0.1, changeLanguage_gallery2(););
);
set(ptplugin[gallery3].jsready, true);
ifnot(ptplugin[gallery3].isOpen,
if(ptplugin[gallery3].doNotDeleteMe,
set(ptplugin[gallery3].currentCall, false);
set(ptplugin[gallery3].isOpen, true);
set(ptplugin[gallery3].doNotDeleteMe, false);
set(gallery3_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery3, openKolorBox, %1));
,
set(ptplugin[gallery3].currentCall, true);
set(ptplugin[gallery3].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery3(%1););
);
,
if(%1 !== null AND %1 != gallery3_boxurl,
closeKolorBox_gallery3();
delayedcall(0.3,showGallery_gallery3(%1););
);
);
js(invokePluginFunction(gallery3, toggleKolorBox, %1));
if(ptplugin[gallery3].doNotDeleteMe,
set(ptplugin[gallery3].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery3, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery3].doNotDeleteMe, false);
set(ptplugin[gallery3].isOpen, false);
if(ptplugin[gallery3].jsready,
js(invokePluginFunction(gallery3, changeLanguage));
,
delayedcall(delay_gallery3, 0.1, changeLanguage_gallery3(););
);
set(ptplugin[gallery4].jsready, true);
ifnot(ptplugin[gallery4].isOpen,
if(ptplugin[gallery4].doNotDeleteMe,
set(ptplugin[gallery4].currentCall, false);
set(ptplugin[gallery4].isOpen, true);
set(ptplugin[gallery4].doNotDeleteMe, false);
set(gallery4_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery4, openKolorBox, %1));
,
set(ptplugin[gallery4].currentCall, true);
set(ptplugin[gallery4].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery4(%1););
);
,
if(%1 !== null AND %1 != gallery4_boxurl,
closeKolorBox_gallery4();
delayedcall(0.3,showGallery_gallery4(%1););
);
);
js(invokePluginFunction(gallery4, toggleKolorBox, %1));
if(ptplugin[gallery4].doNotDeleteMe,
set(ptplugin[gallery4].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery4, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery4].doNotDeleteMe, false);
set(ptplugin[gallery4].isOpen, false);
if(ptplugin[gallery4].jsready,
js(invokePluginFunction(gallery4, changeLanguage));
,
delayedcall(delay_gallery4, 0.1, changeLanguage_gallery4(););
);
set(ptplugin[gallery5].jsready, true);
ifnot(ptplugin[gallery5].isOpen,
if(ptplugin[gallery5].doNotDeleteMe,
set(ptplugin[gallery5].currentCall, false);
set(ptplugin[gallery5].isOpen, true);
set(ptplugin[gallery5].doNotDeleteMe, false);
set(gallery5_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery5, openKolorBox, %1));
,
set(ptplugin[gallery5].currentCall, true);
set(ptplugin[gallery5].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery5(%1););
);
,
if(%1 !== null AND %1 != gallery5_boxurl,
closeKolorBox_gallery5();
delayedcall(0.3,showGallery_gallery5(%1););
);
);
js(invokePluginFunction(gallery5, toggleKolorBox, %1));
if(ptplugin[gallery5].doNotDeleteMe,
set(ptplugin[gallery5].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery5, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery5].doNotDeleteMe, false);
set(ptplugin[gallery5].isOpen, false);
if(ptplugin[gallery5].jsready,
js(invokePluginFunction(gallery5, changeLanguage));
,
delayedcall(delay_gallery5, 0.1, changeLanguage_gallery5(););
);
set(ptplugin[gallery6].jsready, true);
ifnot(ptplugin[gallery6].isOpen,
if(ptplugin[gallery6].doNotDeleteMe,
set(ptplugin[gallery6].currentCall, false);
set(ptplugin[gallery6].isOpen, true);
set(ptplugin[gallery6].doNotDeleteMe, false);
set(gallery6_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery6, openKolorBox, %1));
,
set(ptplugin[gallery6].currentCall, true);
set(ptplugin[gallery6].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery6(%1););
);
,
if(%1 !== null AND %1 != gallery6_boxurl,
closeKolorBox_gallery6();
delayedcall(0.3,showGallery_gallery6(%1););
);
);
js(invokePluginFunction(gallery6, toggleKolorBox, %1));
if(ptplugin[gallery6].doNotDeleteMe,
set(ptplugin[gallery6].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery6, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery6].doNotDeleteMe, false);
set(ptplugin[gallery6].isOpen, false);
if(ptplugin[gallery6].jsready,
js(invokePluginFunction(gallery6, changeLanguage));
,
delayedcall(delay_gallery6, 0.1, changeLanguage_gallery6(););
);
set(ptplugin[gallery12].jsready, true);
ifnot(ptplugin[gallery12].isOpen,
if(ptplugin[gallery12].doNotDeleteMe,
set(ptplugin[gallery12].currentCall, false);
set(ptplugin[gallery12].isOpen, true);
set(ptplugin[gallery12].doNotDeleteMe, false);
set(gallery12_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery12, openKolorBox, %1));
,
set(ptplugin[gallery12].currentCall, true);
set(ptplugin[gallery12].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery12(%1););
);
,
if(%1 !== null AND %1 != gallery12_boxurl,
closeKolorBox_gallery12();
delayedcall(0.3,showGallery_gallery12(%1););
);
);
js(invokePluginFunction(gallery12, toggleKolorBox, %1));
if(ptplugin[gallery12].doNotDeleteMe,
set(ptplugin[gallery12].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery12, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery12].doNotDeleteMe, false);
set(ptplugin[gallery12].isOpen, false);
if(ptplugin[gallery12].jsready,
js(invokePluginFunction(gallery12, changeLanguage));
,
delayedcall(delay_gallery12, 0.1, changeLanguage_gallery12(););
);
set(ptplugin[gallery7].jsready, true);
ifnot(ptplugin[gallery7].isOpen,
if(ptplugin[gallery7].doNotDeleteMe,
set(ptplugin[gallery7].currentCall, false);
set(ptplugin[gallery7].isOpen, true);
set(ptplugin[gallery7].doNotDeleteMe, false);
set(gallery7_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery7, openKolorBox, %1));
,
set(ptplugin[gallery7].currentCall, true);
set(ptplugin[gallery7].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery7(%1););
);
,
if(%1 !== null AND %1 != gallery7_boxurl,
closeKolorBox_gallery7();
delayedcall(0.3,showGallery_gallery7(%1););
);
);
js(invokePluginFunction(gallery7, toggleKolorBox, %1));
if(ptplugin[gallery7].doNotDeleteMe,
set(ptplugin[gallery7].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery7, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery7].doNotDeleteMe, false);
set(ptplugin[gallery7].isOpen, false);
if(ptplugin[gallery7].jsready,
js(invokePluginFunction(gallery7, changeLanguage));
,
delayedcall(delay_gallery7, 0.1, changeLanguage_gallery7(););
);
set(ptplugin[gallery8].jsready, true);
ifnot(ptplugin[gallery8].isOpen,
if(ptplugin[gallery8].doNotDeleteMe,
set(ptplugin[gallery8].currentCall, false);
set(ptplugin[gallery8].isOpen, true);
set(ptplugin[gallery8].doNotDeleteMe, false);
set(gallery8_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery8, openKolorBox, %1));
,
set(ptplugin[gallery8].currentCall, true);
set(ptplugin[gallery8].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery8(%1););
);
,
if(%1 !== null AND %1 != gallery8_boxurl,
closeKolorBox_gallery8();
delayedcall(0.3,showGallery_gallery8(%1););
);
);
js(invokePluginFunction(gallery8, toggleKolorBox, %1));
if(ptplugin[gallery8].doNotDeleteMe,
set(ptplugin[gallery8].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery8, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery8].doNotDeleteMe, false);
set(ptplugin[gallery8].isOpen, false);
if(ptplugin[gallery8].jsready,
js(invokePluginFunction(gallery8, changeLanguage));
,
delayedcall(delay_gallery8, 0.1, changeLanguage_gallery8(););
);
set(ptplugin[gallery9].jsready, true);
ifnot(ptplugin[gallery9].isOpen,
if(ptplugin[gallery9].doNotDeleteMe,
set(ptplugin[gallery9].currentCall, false);
set(ptplugin[gallery9].isOpen, true);
set(ptplugin[gallery9].doNotDeleteMe, false);
set(gallery9_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery9, openKolorBox, %1));
,
set(ptplugin[gallery9].currentCall, true);
set(ptplugin[gallery9].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery9(%1););
);
,
if(%1 !== null AND %1 != gallery9_boxurl,
closeKolorBox_gallery9();
delayedcall(0.3,showGallery_gallery9(%1););
);
);
js(invokePluginFunction(gallery9, toggleKolorBox, %1));
if(ptplugin[gallery9].doNotDeleteMe,
set(ptplugin[gallery9].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery9, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery9].doNotDeleteMe, false);
set(ptplugin[gallery9].isOpen, false);
if(ptplugin[gallery9].jsready,
js(invokePluginFunction(gallery9, changeLanguage));
,
delayedcall(delay_gallery9, 0.1, changeLanguage_gallery9(););
);
set(ptplugin[gallery10].jsready, true);
ifnot(ptplugin[gallery10].isOpen,
if(ptplugin[gallery10].doNotDeleteMe,
set(ptplugin[gallery10].currentCall, false);
set(ptplugin[gallery10].isOpen, true);
set(ptplugin[gallery10].doNotDeleteMe, false);
set(gallery10_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery10, openKolorBox, %1));
,
set(ptplugin[gallery10].currentCall, true);
set(ptplugin[gallery10].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery10(%1););
);
,
if(%1 !== null AND %1 != gallery10_boxurl,
closeKolorBox_gallery10();
delayedcall(0.3,showGallery_gallery10(%1););
);
);
js(invokePluginFunction(gallery10, toggleKolorBox, %1));
if(ptplugin[gallery10].doNotDeleteMe,
set(ptplugin[gallery10].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery10, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery10].doNotDeleteMe, false);
set(ptplugin[gallery10].isOpen, false);
if(ptplugin[gallery10].jsready,
js(invokePluginFunction(gallery10, changeLanguage));
,
delayedcall(delay_gallery10, 0.1, changeLanguage_gallery10(););
);
set(ptplugin[gallery11].jsready, true);
ifnot(ptplugin[gallery11].isOpen,
if(ptplugin[gallery11].doNotDeleteMe,
set(ptplugin[gallery11].currentCall, false);
set(ptplugin[gallery11].isOpen, true);
set(ptplugin[gallery11].doNotDeleteMe, false);
set(gallery11_boxurl, %1);
pauseautorotation(forceplugin);
js(invokePluginFunction(gallery11, openKolorBox, %1));
,
set(ptplugin[gallery11].currentCall, true);
set(ptplugin[gallery11].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showGallery_gallery11(%1););
);
,
if(%1 !== null AND %1 != gallery11_boxurl,
closeKolorBox_gallery11();
delayedcall(0.3,showGallery_gallery11(%1););
);
);
js(invokePluginFunction(gallery11, toggleKolorBox, %1));
if(ptplugin[gallery11].doNotDeleteMe,
set(ptplugin[gallery11].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery11, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[gallery11].doNotDeleteMe, false);
set(ptplugin[gallery11].isOpen, false);
if(ptplugin[gallery11].jsready,
js(invokePluginFunction(gallery11, changeLanguage));
,
delayedcall(delay_gallery11, 0.1, changeLanguage_gallery11(););
);
set(ptplugin[floorPlan].jsready, true);
ifnot(ptplugin[floorPlan].floorplanItems[0].selectedSpot == "",
set(ptplugin[floorPlan].floorplanItems[0].selectedSpotFov, get(view.hfov));
js(invokePluginFunction(floorPlan, setKolorFloorPlanSelectedSpotOptions, get(xml.scene), get(view.hlookat), get(view.hfov)));
);
mainloadscene(get(panoramagroup[panogroup27].mainscene));lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(pano19);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(pano84);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(get(panoramagroup[panogroup91].mainscene));lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(get(panoramagroup[panogroup104].mainscene));lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(pano132);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(get(panoramagroup[panogroup44].mainscene));lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(pano19);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
mainloadscene(get(panoramagroup[panogroup60].mainscene));lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
if(ptplugin[floorPlan].jsready,
stopdelayedcall(delay_floorPlan);
js(invokePluginFunction(floorPlan, changeLanguage));
js(invokePluginFunction(floorPlanArea, changeLanguage, false));
,
delayedcall(delay_floorPlan, 0.1, floorPlanChangeLanguage(););
);
hideKolorArea_floorPlanArea(true);
closeKolorArea_floorPlanArea();
if(ptplugin[floorPlanArea].isOpen === null,
openKolorArea_floorPlanArea();
,
showKolorArea_floorPlanArea(true);
);
openKolorArea_floorPlanArea();
if (floorPlanFloorPlanLoaded == true,
ifnot(ptplugin[floorPlan].floorplanItems[0].selectedSpot == "",
ifnot(scene[get(xml.scene)].planar,
js(invokePluginFunction(floorPlan, changeDirection, get(xml.scene), get(view.hlookat), get(view.hfov)));
);
);
);
set(ptplugin[floorPlan].floorplanItems[0].selectedSpot, %1);
set(ptplugin[floorPlan].floorplanItems[0].selectedItem, %2);
if(%1 !== "",
set(ptplugin[floorPlan].floorplanItems[0].selectedSpotScene, get(xml.scene));
set(ptplugin[floorPlan].floorplanItems[0].selectedSpotHeading, get(view.hlookat));
set(ptplugin[floorPlan].floorplanItems[0].selectedSpotFov, get(view.hfov));
);
if(ptplugin[floorPlanArea].isOpen,
floorPlanSelectActivatedSpot(%1, %2, %3);
);
js(invokePluginFunction(floorPlan, selectSpot, %1, %2, %3));
if(%1 !== "",
if(scene[get(xml.scene)].planar,
js(invokePluginFunction(floorPlan, hideRadar));
,
js(invokePluginFunction(floorPlan, changeDirection, get(xml.scene), get(view.hlookat), get(view.hfov)));
);
);
set(ptplugin[floorPlan].floorplanItems[0].selectedSpot, "");
js(invokePluginFunction(floorPlan, unselectSpot));
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[0].floorplanItem.count , inc(defaultfloorplaniteminc),
if(floorPlanSpotSearchActivated == true,
if(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].groupName == scene[get(xml.scene)].group,
set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].name));
set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].name));
set(floorPlanItemSearch, false);
,
if(floorPlanItemFound == "",
set(floorPlanItemFound, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[fpitemmain].name));
set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[fpitemmain].name));
);
);
);
if(floorPlanSpotSearchActivated == true,
for(set(defaultspotinc,0), defaultspotinc LT ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot.count , inc(defaultspotinc),
if(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].isScene == true,
if(floorPlanSpotSearchContinue == true,
if(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene == xml.scene,
set(floorPlanSpotFound, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].name));
set(floorPlanSpotScene, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].spot[get(defaultspotinc)].scene));
set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(ptplugin[floorPlan].floorplanItems[0].floorplanItem[get(defaultfloorplaniteminc)].name));
if(floorPlanItemSearch == false,
set(floorPlanSpotSearchContinue, false);
set(floorPlanSpotSearchActivated, false);
);
);
);
);
);
);
);
if(floorPlanSpotFound == "",
floorPlanDeactivateSpot();
set(ptplugin[floorPlan].floorplanItems[0].selectedItem, get(floorPlanItemFound));
ifnot(ptplugin[floorPlan].floorplanItems[0].selectedItem == "",
floorPlanActivateSpot("", get(ptplugin[floorPlan].floorplanItems[0].selectedItem), "");
);
,
floorPlanActivateSpot(get(floorPlanSpotFound), get(ptplugin[floorPlan].floorplanItems[0].selectedItem), get(floorPlanSpotScene));
);
js(invokePluginFunction(floorPlan, changeTitle, %1));
set(ptplugin[floorPlanArea].jsready, true);
ifnot(ptplugin[floorPlanArea].isOpen,
if(ptplugin[floorPlanArea].doNotDeleteMe,
set(ptplugin[floorPlanArea].currentCall, false);
set(ptplugin[floorPlanArea].doNotDeleteMe, false);
set(ptplugin[floorPlanArea].isOpen, true);
pauseautorotation(forceplugin);
js(showKolorArea(floorPlanArea, <div id="floorPlanArea_floorplanDIV"></div>));
if(ptplugin[floorPlan].floorplanItems[0].selectedSpot != "",
floorPlanSelectActivatedSpot(get(ptplugin[floorPlan].floorplanItems[0].selectedSpot), get(ptplugin[floorPlan].floorplanItems[0].selectedItem), get(ptplugin[floorPlan].floorplanItems[0].selectedSpotScene));
);
,
set(ptplugin[floorPlanArea].currentCall, true);
set(ptplugin[floorPlanArea].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,openKolorArea_floorPlanArea(););
);
);
if(ptplugin[floorPlanArea].isOpen,
if(ptplugin[floorPlanArea].doNotDeleteMe,
set(ptplugin[floorPlanArea].doNotDeleteMe, false);
,
js(invokePluginFunction(floorPlanArea, closeKolorArea));
);
);
if(ptplugin[floorPlanArea].isOpen,
closeKolorArea_floorPlanArea();
,
openKolorArea_floorPlanArea();
);
set(ptplugin[floorPlanArea].doNotDeleteMe, false);
if(ptplugin[floorPlanArea].isOpen,resumeautorotation(forceplugin);
);
set(ptplugin[floorPlanArea].isOpen, false);hideFloorplan();
js(invokePluginFunction(floorPlanArea, changeTitle, %1));
if(ptplugin[floorPlanArea].doNotDeleteMe,
set(ptplugin[floorPlanArea].currentCall, false);
set(ptplugin[floorPlanArea].doNotDeleteMe, false);
set(ptplugin[floorPlanArea].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(floorPlanArea, showKolorArea, %1));
,
set(ptplugin[floorPlanArea].currentCall, true);
set(ptplugin[floorPlanArea].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showKolorArea_floorPlanArea(););
);
if(ptplugin[floorPlanArea].doNotDeleteMe,
set(ptplugin[floorPlanArea].doNotDeleteMe, false);
,
resumeautorotation(forceplugin);
set(ptplugin[floorPlanArea].isOpen, false);
js(invokePluginFunction(floorPlanArea, hideKolorArea, %1));
);
ifnot (controlBar_classicbarbuilt, controlBar_classicbuildMenu(); set(controlBar_classicbarbuilt, true););
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);
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);
);
set(layer[controlBar_classicbtn_share].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);
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);
);
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();
tween(alpha,1,0.1,easeoutquad);
tween(y,-2,0.1,easeoutquad);
tween(alpha,0.8);
tween(y,0,0.1,easeoutquad);
hideTooltip();
if (tour_gyroscopedevices,
set(controlBar_classicmenugyroscopeavailable, true);
controlBar_classicupdateGyroscopeButtons();
,
set(controlBar_classicmenugyroscopeavailable, false);
controlBar_classicupdateGyroscopeButtons();
);
if (tour_gyroscopedevices,
set(controlBar_classicmenugyroscopeenabled, %1);
controlBar_classicupdateGyroscopeButtons();
);
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);
);
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);
);
if (tour_gyroscopedevices,
if (controlBar_classicIsOpened,
controlBar_classicShowGyroscopeButtons();
,
controlBar_classicHideGyroscopeButtons();
);
,
if (controlBar_classicIsOpened,
controlBar_classicHideGyroscopeButtons(true);
,
controlBar_classicHideGyroscopeButtons();
);
);
set(controlBar_classicIsOpened, false);
set(layer[controlBar_classicbtn_hidecontrols].visible, false);
set(layer[controlBar_classicbtn_showcontrols].visible, true);
set(layer[controlBar_classicbtn_share].visible, false);
controlBar_classicupdateAutorotationButtons();
controlBar_classicupdateFloorplanButtons();
controlBar_classicupdateGyroscopeButtons();
controlBar_classicupdateHelpButtons();
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);
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);
controlBar_classicupdateFloorplanButtons();
controlBar_classicupdateGyroscopeButtons();
controlBar_classicupdateHelpButtons();
set(layer[controlBar_classicbtn_share].visible, true);
controlBar_classicupdateAutorotationButtons();
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();
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();
set(layer[controlBar_classicbtn_display_help].visible, false);
set(layer[controlBar_classicbtn_close_help].visible, false);
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);
);
if (device.desktop,
if (controlBar_classicIsOpened,
controlBar_classicShowHelpButtons();
,
controlBar_classicHideHelpButtons();
);
,
controlBar_classicHideHelpButtons();
);
set(layer[controlBar_classicbtn_display_floorplan].visible, false);
set(layer[controlBar_classicbtn_hide_floorplan].visible, false);
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);
);
if (controlBar_classicIsOpened,
controlBar_classicShowFloorplanButtons();
,
controlBar_classicHideFloorplanButtons();
);
set(layer[controlBar_classicbtn_autorotate_off].visible, false);
set(layer[controlBar_classicbtn_autorotate_on].visible , false);
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);
);
if (controlBar_classicIsOpened,
controlBar_classicShowAutorotationButtons();
,
controlBar_classicHideAutorotationButtons();
);
switchFullscreen();
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);
);
);
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););
);
);
);
if(plugin[gyroscope],
if (plugin[gyroscope].isavailable,
ifnot(tour_firstlittleplanet,
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();
);
set(plugin[gyroscope].activated, false);
set(plugin[gyroscope].enabled, false);
set(tour_gyroscopedevices, false);
events.dispatch(ongyroscopeunavailable);
set(ptplugin[socialShare].jsready, true);
computeDeepLinkingURL(false,false);
js(invokePluginFunction(socialShare, addSocialItemData, get(tour_deeplinkingvars)));
ifnot(ptplugin[socialShare].isOpen,
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].currentCall, false);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, true);
pauseautorotation(forceplugin);
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
,
set(ptplugin[socialShare].currentCall, true);
set(ptplugin[socialShare].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(0.3,showSocialShare_socialShare(););
);
);
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
if(ptplugin[socialShare].doNotDeleteMe,
set(ptplugin[socialShare].doNotDeleteMe, false);
,
js(invokePluginFunction(socialShare, closeKolorBox));
);
resumeautorotation(forceplugin);
set(ptplugin[socialShare].doNotDeleteMe, false);
set(ptplugin[socialShare].isOpen, false);
if(ptplugin[socialShare].jsready,
js(invokePluginFunction(socialShare, changeLanguage));
);
js(updatePanorama(get(xml.scene)););
set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);
set(tour_displaycontrols, true); events.dispatch(showtourcontrols);
if(plugin[ptpvrmode],
if (plugin[ptpvrmode].isavailable,
set(tour_vrdevices, true);
events.dispatch(onvravailable);
,
set(tour_vrdevices, false);
);
,
checkVrUnavailable();
);
set(tour_vrdevices, false);
events.dispatch(onvrunavailable);
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);
);
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);
);
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);
);
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(););
);
ifnot(layer[displayedStandardImage].currentCall,if(layer[displayedStandardImage].visible,resumeautorotation(forcehotspot);
if(layer[displayedStandardImage].overlay,removelayer(displayedStandardImageOverlay););
removelayer(displayedStandardImage);
););
changeGyroscopeState(true);
changeGyroscopeState(false);
events.dispatch(onsharetour);
set(tour_fullscreen,false);js(setFullscreen(false));
set(tour_fullscreen,true);js(setFullscreen(true));
if(tour_fullscreen,exitFullScreen();,enterFullScreen(););
set(tour_fullscreen,false);events.dispatch(onexitfullscreen);
set(tour_fullscreen,true);events.dispatch(onenterfullscreen);
set(fullscreen,false);
set(fullscreen,true);
delayedcall(0,updatescreen(););
set(tour_displayfloorplan, false);events.dispatch(onhidetourfloorplan);
set(tour_displayfloorplan, true); events.dispatch(onshowtourfloorplan);