showtooltip(hotspot);
tween(scale, 1.2);
tween(alpha, 1);
hideTooltip();
tween(scale, 1);
tween(alpha, 0.8);
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
switch(plugin[gyroscope].enabled);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
);
);
ifnot (plugin[gyroscope].available === undefined,
if (plugin[gyroscope].available,
set(tour_gyroscopedevices, true);
events.dispatch(ongyroscopeavailable);
if (plugin[gyroscope].enabled, events.dispatch(ongyroscopeon);, events.dispatch(ongyroscopeoff););
,
set(tour_gyroscopedevices, false);
set(plugin[gyroscope].enabled, false);
);
,
set(tour_gyroscopedevices, false);
set(plugin[gyroscope].enabled, false);
);
getmessage(contextmenu.item[author].caption, project_author_name);
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(ptplugin[gallery].jsready, true);
ifnot(ptplugin[gallery].isOpen,
if(ptplugin[gallery].doNotDeleteMe,
set(ptplugin[gallery].currentCall, false);
set(ptplugin[gallery].isOpen, true);
set(ptplugin[gallery].doNotDeleteMe, false);
pauseautorotation();
js(invokePluginFunction(gallery, openKolorBox, %1));
,
set(ptplugin[gallery].currentCall, true);
set(ptplugin[gallery].doNotDeleteMe, true);
events.dispatch(onremovedisplayedobject);
delayedcall(1.0,showGallery-gallery(%1););
);
);
js(invokePluginFunction(gallery, toggleKolorBox, %1));
if(ptplugin[gallery].doNotDeleteMe,
set(ptplugin[gallery].doNotDeleteMe, false);
,
js(invokePluginFunction(gallery, closeKolorBox));
);
resumeautorotation();
set(ptplugin[gallery].doNotDeleteMe, false);
set(ptplugin[gallery].isOpen, false);
set(layer[footer].visible, false);
set(layer[footer].visible, true);
ifnot (theme11barbuilt, theme11buildMenu(); set(theme11barbuilt, true););
set(layer[theme11btn_ctrlmode_move_to].visible, false);
set(layer[theme11btn_ctrlmode_drag_to].visible, false);
if (tour_controlmodemousetype == "moveto",
set(layer[theme11btn_ctrlmode_drag_to].visible, true);
set(layer[theme11btn_ctrlmode_move_to].visible, false);
,
set(layer[theme11btn_ctrlmode_move_to].visible, true);
set(layer[theme11btn_ctrlmode_drag_to].visible, false);
);
if (device.desktop,
if (tour_displaycontrols,
theme11ShowControlModeButtons();
,
theme11HideControlModeButtons();
);
,
theme11HideControlModeButtons();
);
set(theme11IsOpened, false);
set(layer[theme11btn_hidecontrols].visible, false);
set(layer[theme11btn_showcontrols].visible, true);
if (scene.count GT 1,
set(layer[theme11btn_next_pano].visible, false);
set(layer[theme11btn_prev_pano].visible, false);
);
if (device.desktop,
set(layer[theme11btn_in].visible, false);
set(layer[theme11btn_out].visible, false);
);
if (device.desktop,
set(layer[theme11btn_up].visible, false);
set(layer[theme11btn_down].visible, false);
);
if (device.desktop,
set(layer[theme11btn_left].visible, false);
set(layer[theme11btn_right].visible, false);
);
theme11updateFullscreenButtons();
theme11updateHelpButtons();
theme11updateAutorotationButtons();
theme11updateControlModeButtons();
set(layer[theme11_menu_bg].width , get(theme11backgroundwidthwhenclosed));
set(layer[theme11_menu_bg].visible, true);
set(theme11IsOpened, true);
set(layer[theme11btn_hidecontrols].visible, true);
set(layer[theme11btn_showcontrols].visible, false);
set(layer[theme11_menu_bg].visible, true);
if (scene.count GT 1,
set(layer[theme11btn_next_pano].visible, true);
set(layer[theme11btn_prev_pano].visible, true);
);
if (device.desktop,
set(layer[theme11btn_in].visible, true);
set(layer[theme11btn_out].visible, true);
);
if (device.desktop,
set(layer[theme11btn_up].visible, true);
set(layer[theme11btn_down].visible, true);
);
if (device.desktop,
set(layer[theme11btn_left].visible, true);
set(layer[theme11btn_right].visible, true);
);
theme11updateFullscreenButtons();
theme11updateHelpButtons();
theme11updateAutorotationButtons();
theme11updateControlModeButtons();
set(layer[theme11_menu_bg].width, get(theme11backgroundwidthwhenopened));
if (device.desktop,
set(layer[theme11helpScreenFg].displayed,true);
set(layer[theme11helpScreenBg].visible,true);
set(layer[theme11helpScreenFg].visible,true);
tween(layer[theme11helpScreenFg].rotate,0, 1);
tween(layer[theme11helpScreenFg].x,0, 1);
tween(layer[theme11helpScreenBg].rotate,0, 1);
tween(layer[theme11helpScreenBg].x,0, 1);
theme11updateHelpButtons();
);
if (device.desktop,
set(layer[theme11helpScreenFg].displayed,false);
tween(layer[theme11helpScreenFg].rotate, 90, 1, easeOutQuad, set(layer[helpScreenFg].visible,false););
tween(layer[theme11helpScreenFg].x, -100%, 1);
tween(layer[theme11helpScreenBg].rotate, -90, 1, easeOutQuad, set(layer[helpScreenBg].visible,false););
tween(layer[theme11helpScreenBg].x, 100%, 1);
theme11updateHelpButtons();
);
set(layer[theme11btn_display_help].visible, false);
set(layer[theme11btn_close_help].visible, false);
if (layer[theme11helpScreenFg].displayed,
set(layer[theme11btn_close_help].visible, true);
set(layer[theme11btn_display_help].visible, false);
,
set(layer[theme11btn_display_help].visible, true);
set(layer[theme11btn_close_help].visible, false);
);
if (device.desktop,
if (tour_displaycontrols,
theme11ShowHelpButtons();
,
theme11HideHelpButtons();
);
,
theme11HideHelpButtons();
);
set(layer[theme11btn_openfs].visible , false);
set(layer[theme11btn_closefs].visible, false);
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[theme11btn_openfs].visible , false);
set(layer[theme11btn_closefs].visible, true);
,
set(layer[theme11btn_openfs].visible ,true);
set(layer[theme11btn_closefs].visible,false);
);
,
theme11HideFullscreenButtons();
);
if (tour_displaycontrols,
theme11ShowFullscreenButtons();
,
theme11HideFullscreenButtons();
);
set(layer[theme11btn_autorotate_off].visible, false);
set(layer[theme11btn_autorotate_on].visible , false);
if(tour_autorotateenabled==false,
set(layer[theme11btn_autorotate_off].visible, false);
set(layer[theme11btn_autorotate_on].visible , true);
,
set(layer[theme11btn_autorotate_off].visible, true);
set(layer[theme11btn_autorotate_on].visible , false);
);
if (tour_displaycontrols,
theme11ShowAutorotationButtons();
,
theme11HideAutorotationButtons();
);
set(theme11button_pos, 0);
set(theme11backgroundwidthwhenclosed, 40);
set(layer[theme11btn_hidecontrols].x, get(theme11button_pos));
set(layer[theme11btn_showcontrols].x, get(theme11button_pos));
inc(theme11button_pos, 45);
if (device.desktop,
set(layer[theme11btn_display_help].x, get(theme11button_pos));
set(layer[theme11btn_close_help].x , get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.fullscreensupport,
set(layer[theme11btn_openfs].x , get(theme11button_pos));
set(layer[theme11btn_closefs].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
set(layer[theme11btn_autorotate_on].x , get(theme11button_pos));
set(layer[theme11btn_autorotate_off].x, get(theme11button_pos));
inc(theme11button_pos, 45);
if (device.desktop,
set(layer[theme11btn_ctrlmode_drag_to].x, get(theme11button_pos));
set(layer[theme11btn_ctrlmode_move_to].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.desktop,
set(layer[theme11btn_right].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_left].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.desktop,
set(layer[theme11btn_down].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_up].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (device.desktop,
set(layer[theme11btn_out].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_in].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
if (scene.count GT 1,
set(layer[theme11btn_next_pano].x, get(theme11button_pos));
inc(theme11button_pos, 45);
set(layer[theme11btn_prev_pano].x, get(theme11button_pos));
inc(theme11button_pos, 45);
);
dec(theme11button_pos, 5);
set(theme11backgroundwidthwhenopened, get(theme11button_pos));
set(layer[theme11_menu_bg].width, get(theme11backgroundwidthwhenopened));
showTourControls();
showGallery-gallery();
set(layer[button].visible, false);
set(layer[button].visible, true);
set(ptplugin[socialShare].jsready, true);
if(ptplugin[socialShare].jsready,
showSocialShare-socialShare();
,
delayedcall(1.0,startOpenSocialShare-socialShare(););
);
ifnot(ptplugin[socialShare].isOpen,
set(ptplugin[socialShare].isOpen, true);
pauseautorotation();
js(invokePluginFunction(socialShare, loadSingleArrayItem, social));
events.dispatch(onremovedisplayedobject);
);
js(invokePluginFunction(socialShare, toggleKolorBox, %1));
js(invokePluginFunction(socialShare, closeKolorBox));
resumeautorotation();
set(ptplugin[socialShare].isOpen, false);
set(layer[header].visible, false);
set(layer[header].visible, true);
layer[combopanolistallpanoramasandgroups].removeAll();
set(layer[combopanolistallpanoramasandgroups].itemcount, 0);
combopanolistallpanoramasandgroupsAddItem(pano117_title, pano117, pano117, false);
combopanolistallpanoramasandgroupsAddItem(pano118_title, pano118, pano118, false);
combopanolistallpanoramasandgroupsAddItem(pano119_title, pano119, pano119, false);
set(layer[combopanolistallpanoramasandgroups].isLoaded, true);
if(layer[combopanolistallpanoramasandgroups].isStarted,
combopanolistallpanoramasandgroupsShow();
);
getmessage(caption, %1);
indexoftxt(found, get(caption), '&');
if(found GE 0,
subtxt(part1, get(caption), 0, get(found));
add(found, 5);
subtxt(part2, get(caption), get(found), get(caption.length));
txtadd(caption, get(part1), '&', get(part2));
);
if(%4,
txtadd(title, " ", get(caption));
,
set(title, get(caption));
);
layer[combopanolistallpanoramasandgroups].addIdItem(%2, get(title), mainloadscene(%3));
inc(layer[combopanolistallpanoramasandgroups].itemcount);
set(layer[combopanolistallpanoramasandgroups].visible, false);
if(layer[combopanolistallpanoramasandgroups].isLoaded,
if (layer[combopanolistallpanoramasandgroups].itemcount GT 0,
set(layer[combopanolistallpanoramasandgroups].visible, true);
,
set(layer[combopanolistallpanoramasandgroups].visible, false);
);
,
set(layer[combopanolistallpanoramasandgroups].visible, false);
);
combopanolistallpanoramasandgroupsUpdateList();
set(itemtoselect, get(scene[get(xml.scene)].name));
layer[combopanolistallpanoramasandgroups].selectIdItem(get(itemtoselect));
set(ptplugin[description].jsready, true);
js(invokePluginFunction(description, changeTitle, descriptiondescription_title));
set(ptplugin[description].isOpen, true);
js(showKolorArea(description, get(ptplugin[description].descID)));
set(ptplugin[description].isOpen, false);
js(invokePluginFunction(description, closeKolorArea));
if(ptplugin[description].isOpen,
closeKolorArea-description();
,
openKolorArea-description();
);
set(ptplugin[description].isOpen, false);
if(tour_displayinfo,hideTourInfo();
);
if(tour_displayinfo,hideTourInfo();
);
updateTitle-description();
ifnot(ptplugin[description].startMethod == "",
delayedcall(0,get(ptplugin[description].startMethod));
,
js(invokePluginFunction(description, showKolorArea, %1));
);
js(invokePluginFunction(description, hideKolorArea, %1));
openKolorArea-description();
set(ptplugin[description].descID, %1);
openKolorArea-description();
set(ptplugin[description].currentGroup, false);
closeKolorArea-description();
if(ptplugin[description].canStart,
set(ptplugin[description].descID, get(projectdescriptionid));
if(ptplugin[description].descID != "",
openDescription-description();
,
hideKolorArea-description(false);
);
set(ptplugin[description].startMethod, "");
);
set(layer[header1].visible, false);
set(layer[header1].visible, true);
set(tour_displayfloorplan, false);events.dispatch(onhidetourfloorplan);
set(tour_displayfloorplan, true); events.dispatch(onshowtourfloorplan);
set(tour_displaycontrols, false);events.dispatch(hidetourcontrols);
set(tour_displaycontrols, true); events.dispatch(showtourcontrols);
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_displayinfo, false);events.dispatch(onhidetourinfo);
set(tour_displayinfo, true); events.dispatch(onshowtourinfo);