| Current Path : /home/azimutno/www/images/360visite/debeco2015data/ |
| Current File : /home/azimutno/www/images/360visite/debeco2015data/debeco2015_skin.xml |
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.19">
<!-- Spot Style - Load panorama -->
<style name="IconLoadpanorama"
url="%FIRSTXML%/spots/hotspot_plan_sequence_user_defaultpoint5.png"
visible="false"
frame="0"
lastframe="14"
framewidth="50"
frameheight="50"
stopspotsequence="false"
crop="0|0|50|50"
onloaded="startspotanimation(0.1);"
onhover="onhoverIconLoadpanorama"
onout="onoutIconLoadpanorama"
height="40"
width="40"
/>
<action name="onhoverIconLoadpanorama">
showtooltip('hotspot');
</action>
<action name="onoutIconLoadpanorama">
hideTooltip();
</action>
<!-- unsupported kind of display : PointMap -->
<!-- ********** -->
<!-- Barres et Boucles de Progression -->
<!-- id : progressbar -->
<!-- ********** -->
<progress showwait.flash="loopings(
0xffffff,
15,15,
0,0,
0xffffff,0,
0,0,center
)"
showreloads.flash="false"
parent=""
/>
<layer name="progressbar_bg"
align="bottom"
bgcolor="0xffffff"
bgalpha="1.0"
bgborder="0"
onclick="progressbar_stop();"
enabled="true"
handcursor="false"
bgcapture="true"
x="0" y="0"
type="container"
width="100%" height="5"
visible="true"
keep="true">
<layer name="progressbar_bar"
align="topleft"
bgcolor="0x555555"
bgalpha="1.0"
x="0" y="0"
type="container"
width="0%"
height="100%"
enabled="false"
keep="true"
/>
</layer>
<action name="progressbar_start">
if(scene[get(xml.scene)].video,
progressbar_stop();
,
mul(progress_val, get(progress.progress), 100);
txtadd(progress_percent, get(progress_val),"%");
set(layer[progressbar_bar].width, get(progress_percent));
if (device.html5,
mul(xcrop, layer[progressbarwheel].frame, 64);
txtadd(layer[progressbarwheel].crop, get(xcrop), '|0|64|64');
inc(layer[progressbarwheel].frame);
if(layer[progressbarwheel].frame GE layer[progressbarwheel].frames, set(layer[progressbarwheel].frame,0));
);
delayedcall(progressbar_progresscall, 0.1,progressbar_start());
if(progress_val == 100,
progressbar_stop();
);
);
</action>
<action name="progressbar_stop">
stopdelayedcall(progressbar_progresscall);
set(layer[progressbar_bg].visible, false);
set(layer[progressbar_bar].width, "0%");
if (device.html5, set(layer[progressbarwheel].visible, false););
</action>
<events name="progressbar_events" onloadcomplete="progressbar_stop();" onxmlcomplete="if (device.html5,set(layer[progressbarwheel].visible, true););set(layer[progressbar_bg].visible, true);progressbar_start();" keep="true" />
<!-- loading wheel -->
<layer name="progressbarwheel"
keep="true"
devices="html5"
visible="false"
url="%FIRSTXML%/graphics/progressbarandloopings/loadingwheel.png"
crop="0|0|64|64"
align="center"
x="0" y="0"
frame="0" frames="12"
width="30"
height="30" />
<!-- ********** -->
<!-- Plan -->
<!-- id : floorPlan -->
<!-- ********** -->
<ptplugin name="floorPlan" engine="KolorFloorPlan">
<settings>
<option name="background_color" value="f2f2f2" type="string" />
<option name="background_lighter_color" value="ffffff" type="string" />
<option name="background_darker_color" value="cacaca" type="string" />
<option name="background_alpha" value="0.40000000000000002" type="float" />
<option name="text_color" value="000000" type="string" />
<option name="resize" value="false" 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="false" type="bool" />
<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="true" type="bool" />
<option name="radar_radius" value="50" type="int" />
<option name="radar_line_width" value="1" type="int" />
<option name="radar_line_color" value="000000" type="string" />
<option name="radar_line_alpha" value="0" type="float" />
<option name="radar_fill_color" value="000000" type="string" />
<option name="radar_fill_alpha" value="0.30000762951094834" type="float" />
<option name="close_on_click" value="false" type="bool" />
<option name="position" value="center" type="string" />
<option name="zorder" value="2" type="int" />
<option name="use_i18n" value="true" type="bool" />
</settings>
<floorplanItems selectedItem="fpitemmain" selectedSpot="" selectedSpotScene="" selectedSpotHeading="" selectedSpotFov="">
<floorplanItem
name="fpitemmain"
width="450"
height="311"
groupName=""
url="floorplan/plan-debeco.png"
title="project_floor_title"
heading="0">
<spot name="spotmap41" posX="0.357143015" posY="0.485787988" heading="-124.4000000000006" desc="spotmap41_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano22" jsClick="spotmap41ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap1.png" iconWidth="10" iconHeight="10" iconAnchor="center" />
</spot>
<spot name="spotmap42" posX="0.626785994" posY="0.550387979" heading="-49.000000000000853" desc="spotmap42_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano23" jsClick="spotmap42ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap1.png" iconWidth="10" iconHeight="10" iconAnchor="center" />
</spot>
<spot name="spotmap43" posX="0.896429002" posY="0.72092998" heading="48.999999999999773" desc="spotmap43_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano24" jsClick="spotmap43ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap1.png" iconWidth="10" iconHeight="10" iconAnchor="center" />
</spot>
<spot name="spotmap44" posX="0.148213997" posY="0.700258017" heading="-158.39999999999989" desc="spotmap44_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano21" jsClick="spotmap44ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap1.png" iconWidth="10" iconHeight="10" iconAnchor="center" />
</spot>
<spot name="spotmap45" posX="0.758929014" posY="0.124031" heading="-177.59999999999999" desc="spotmap45_tooltip" descType="tooltip" groupName="" isScene="true" planar="false" scene="pano20" jsClick="spotmap45ActionSpotFloorPlan">
<icon url="spots/hotspot_plan_user_defaultmap1.png" iconWidth="10" iconHeight="10" iconAnchor="center" />
</spot>
</floorplanItem>
</floorplanItems>
</ptplugin>
<action name="kolorFloorplanJsReady_floorPlan">
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)));
);
</action>
<!-- floorplan main spots counter : 5 -->
<action name="spotmap41ActionSpotFloorPlan">if(xml.scene == pano22,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano22);lookat(-120.000000, 0.000000, 103.971000);
</action>
<action name="spotmap42ActionSpotFloorPlan">if(xml.scene == pano23,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano23);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap43ActionSpotFloorPlan">if(xml.scene == pano24,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano24);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap44ActionSpotFloorPlan">if(xml.scene == pano21,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano21);lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap45ActionSpotFloorPlan">if(xml.scene == pano20,if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
floorPlanActivateDefaultSpot();););
mainloadscene(pano20);lookat(177.300000, 0.450000, 90.000000);
</action>
<events name="floorPlanEvents"
onxmlcomplete="ifnot(floorPlanFloorPlanLoaded,set(tour_displayfloorplan,false););floorPlanActivateDefaultSpot();"
onviewchanged="floorPlanOnViewChange();"
onhidetourfloorplan="floorPlanCloseTourFloorPlan();"
onshowtourfloorplan="if(tour_displayfloorplan,floorPlanOpenTourFloorPlan(););"
onTourStart=""
changetourlanguage="floorPlanChangeLanguage();"
keep="true" />
<action name="floorPlanChangeLanguage">
if(ptplugin[floorPlan].jsready,
stopdelayedcall(delay_floorPlan);
js(invokePluginFunction(floorPlan, changeLanguage));
js(invokePluginFunction(floorPlanArea, changeLanguage, false));
,
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="floorPlanOnViewChange">
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)));
);
);
);
</action>
<action name="floorPlanActivateSpot">
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);
);
</action>
<action name="floorPlanSelectActivatedSpot">
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)));
);
);
</action>
<action name="floorPlanDeactivateSpot">
set(ptplugin[floorPlan].floorplanItems[0].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[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));
);
</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="false" type="bool" />
<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="f2f2f2" type="string" />
<option name="background_alpha" value="0.40000000000000002" 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="9" type="int" />
<option name="topleft_radius" value="10" type="int" />
<option name="topright_radius" value="10" type="int" />
<option name="bottomleft_radius" value="10" type="int" />
<option name="bottomright_radius" value="10" 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="500" type="int" />
<option name="area_height" value="370" type="int" />
<option name="area_width_unit" value="pixel" type="string" />
<option name="area_height_unit" value="pixel" 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="2" 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);
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));
);
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">
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);
js(invokePluginFunction(floorPlanArea, showKolorArea, %1));
events.dispatch(onremovedisplayedobject);
</action>
<action name="hideKolorArea_floorPlanArea">
set(ptplugin[floorPlanArea].isOpen, false);
js(invokePluginFunction(floorPlanArea, hideKolorArea, %1));
</action>
<events name="kolorAreaEvents_floorPlanArea"
keep="true"
hidetourcontrols="if(ptplugin[floorPlanArea].isOpen,set(restore_floorPlanArea, true);hideKolorArea_floorPlanArea(false);,set(restore_floorPlanArea, false););"
showtourcontrols="if(tour_displayfloorplan,if(restore_floorPlanArea,showKolorArea_floorPlanArea(false);););"
onremovepano="if(ptplugin[floorPlanArea].isOpen,hideFloorplan();
);"
/>
<!-- ********** -->
<!-- Bouton simple -->
<!-- id : button -->
<!-- ********** -->
<layer name="button"
keep="true"
url="%FIRSTXML%/graphics/button/plan05.png"
align="bottomleft"
x="20"
y="0"
zorder="3"
visible="false"
onclick="buttonOnClick"
tooltip="buttontooltip"
onhover="showTooltip('plugin');"
onout="hideTooltip();tween(scale, 1.0,0.5,easeOutQuad);"
onover="tween(scale, 1.2,0.5,easeOutQuad);"
/>
<action name="buttonOnClick">showFloorplan();
</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>
<!-- ********** -->
<!-- Barre de contrôle classique -->
<!-- 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);
if (device.desktop,
set(layer[controlBar_classicbtn_display_help].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_close_help ].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
if (device.fullscreensupport,
set(layer[controlBar_classicbtn_openfs ].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_closefs].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
set(layer[controlBar_classicbtn_autorotate_on ].x, get(controlBar_classicbutton_pos));
set(layer[controlBar_classicbtn_autorotate_off].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
if (device.desktop,
set(layer[controlBar_classicbtn_right].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
set(layer[controlBar_classicbtn_left].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
if (device.desktop,
set(layer[controlBar_classicbtn_down].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
set(layer[controlBar_classicbtn_up].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
);
if (device.desktop,
set(layer[controlBar_classicbtn_out].x, get(controlBar_classicbutton_pos));
inc(controlBar_classicbutton_pos, 36);
set(layer[controlBar_classicbtn_in].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="6"
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="bottom"
x="0" y="15"
url="%FIRSTXML%/graphics/classiccontrolbar/footer.png"
zorder="4"
width="40"
height="40"
scale9grid="10|10|80|80"
visible="false"
/>
<layer name="controlBar_classicmenu_controlbar_bg"
keep="true"
align="bottom"
x="0" y="15"
type="container"
zorder="5"
width="40"
height="40"
visible="false"
alpha="1.0"
>
<layer name="controlBar_classicbtn_in"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_zoom_in.png"
ondown="viewControlZoomIn(false);"
onup="viewControlZoomStop();
"
style="controlBar_classic_btn_style"
tooltip="controlBar_classiczoomInTip"
devices="desktop"
visible="false"
/>
<layer name="controlBar_classicbtn_out"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_zoom_out.png"
ondown="viewControlZoomOut(false);
"
onup="viewControlZoomStop();
"
style="controlBar_classic_btn_style"
tooltip="controlBar_classiczoomOutTip"
devices="desktop"
visible="false"
/>
<layer name="controlBar_classicbtn_left"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_left.png"
ondown="viewControlMoveLeft(false);
"
onup="viewControlMoveHoriStop();
"
style="controlBar_classic_btn_style"
tooltip="controlBar_classicmoveLeftTip"
devices="desktop"
visible="false"
/>
<layer name="controlBar_classicbtn_right"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_right.png"
ondown="viewControlMoveRight(false);
"
onup="viewControlMoveHoriStop();
"
style="controlBar_classic_btn_style"
tooltip="controlBar_classicmoveRightTip"
devices="desktop"
visible="false"
/>
<layer name="controlBar_classicbtn_up"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_up.png"
ondown="viewControlMoveUp(false);
"
onup="viewControlMoveVertStop();
"
style="controlBar_classic_btn_style"
tooltip="controlBar_classicmoveUpTip"
devices="desktop"
visible="false"
/>
<layer name="controlBar_classicbtn_down"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_down.png"
ondown="viewControlMoveDown(false);
"
onup="viewControlMoveVertStop();
"
style="controlBar_classic_btn_style"
tooltip="controlBar_classicmoveDownTip"
devices="desktop"
visible="false"
/>
<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_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_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>
<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_classicupdateAutorotationButtons();
set(layer[controlBar_classicbtn_up].visible , false);
set(layer[controlBar_classicbtn_down].visible, false);
set(layer[controlBar_classicbtn_right].visible, false);
set(layer[controlBar_classicbtn_left].visible , false);
set(layer[controlBar_classicbtn_in].visible , false);
set(layer[controlBar_classicbtn_out].visible, false);
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);
</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">
if (device.desktop,
set(layer[controlBar_classicbtn_up].visible , true);
set(layer[controlBar_classicbtn_down].visible, true);
);
if (device.desktop,
set(layer[controlBar_classicbtn_right].visible, true);
set(layer[controlBar_classicbtn_left].visible , true);
);
if (device.desktop,
set(layer[controlBar_classicbtn_in].visible , true);
set(layer[controlBar_classicbtn_out].visible, true);
);
controlBar_classicupdateHelpButtons();
controlBar_classicupdateFullscreenButtons();
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_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>
<layer name="controlBar_classicmenuTooltipStyle"
keep="true"
enabled="false"
capture="false"
type="text"
align="center"
bg="false"
bgborder="0"
txtshadow="1.0 1.0 4.0 0x000000 1"
css="color:#e6e6e6;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"
/>
<!-- ********** -->
<!-- En-tête -->
<!-- id : header -->
<!-- ********** -->
<layer name="header"
keep="true"
url="%FIRSTXML%/graphics/header/header.png"
bgalpha="1"
align="topleft"
x="0"
y="0"
zorder="7"
enabled="false"
capture="true"
visible="false"
height="67"
/>
<events name="headerevents"
onTourStart="showheader();"
hidetourcontrols="hideheader();"
showtourcontrols="showheader();"
keep="true" />
<action name="hideheader">
set(layer[header].visible, false);
</action>
<action name="showheader">
set(layer[header].visible, true);
</action>
<!-- ********** -->
<!-- Logo -->
<!-- id : logo -->
<!-- ********** -->
<layer align="topleft"
x="30"
y="0"
zorder="8"
name="logo"
keep="true"
visible="false"
capture="false"
tooltip="logotooltipText"
onhover="showTooltip('plugin');"
onout="hideTooltip();"
url="%FIRSTXML%/graphics/logo/logo-upptown.png"
handcursor="false"
/>
<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>
<action name="viewControlMoveUp">
if(%1,
if(%2,
set(isfullvertical, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(isfullvertical, true);
);
);
if(isfullvertical == false AND calc(view.vlookat-%2) LT view.vlookatmin,
moveto(get(view.hlookat), get(view.vlookatmin));
,
moveto(get(view.hlookat), calc(view.vlookat-%2));
);
,
set(vlookat_moveforce, -1);
delayedcall(0.1, viewControlMoveVertStop());
);
,
set(vlookat_moveforce, -1);
);
</action>
<action name="viewControlMoveDown">
if(%1,
if(%2,
set(isfullvertical, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewvfov, panoview.vmax, panoview.vmin);
if (viewvfov == 180,
set(isfullvertical, true);
);
);
if(sceneisfull360 == false AND calc(view.vlookat+%2) GT view.vlookatmax,
moveto(get(view.hlookat), get(view.vlookatmax));
,
moveto(get(view.hlookat), calc(view.vlookat+%2));
);
,
set(vlookat_moveforce, +1);
delayedcall(0.1, viewControlMoveVertStop());
);
,
set(vlookat_moveforce, +1);
);
</action>
<action name="viewControlMoveLeft">
if(%1,
if(%2,
set(isfullhorizontal, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
set(isfullhorizontal, true);
);
);
if(isfullhorizontal == false AND calc(view.hlookat-%2) LT view.hlookatmin,
moveto(get(view.hlookatmin), get(view.vlookat));
,
moveto(calc(view.hlookat-%2), get(view.vlookat));
);
,
set(hlookat_moveforce, -1);
delayedcall(0.1, viewControlMoveHoriStop());
);
,
set(hlookat_moveforce, -1);
);
</action>
<action name="viewControlMoveRight">
if(%1,
if(%2,
set(isfullhorizontal, false);
ifnot(scene[get(xml.scene)].planar,
sub(viewhfov, panoview.hmax, panoview.hmin);
if (viewhfov == 360,
set(isfullhorizontal, true);
);
);
if(isfullhorizontal == false AND calc(view.hlookat+%2) GT view.hlookatmax,
moveto(get(view.hlookatmax), get(view.vlookat));
,
moveto(calc(view.hlookat+%2), get(view.vlookat));
);
,
set(hlookat_moveforce, +1);
delayedcall(0.1, viewControlMoveHoriStop());
);
,
set(hlookat_moveforce, +1);
);
</action>
<action name="viewControlMoveHoriStop">
set(hlookat_moveforce, 0);
</action>
<action name="viewControlMoveVertStop">
set(vlookat_moveforce, 0);
</action>
<action name="viewControlZoomIn">
if(%1,
if(%2,
if(%2 LT view.fovmin,
zoomto(get(view.fovmin));
,
if(%2 LT view.fov,
zoomto(%2);
);
);
,
set(fov_moveforce, -1);
delayedcall(0.1, viewControlZoomStop());
);
,
set(fov_moveforce, -1);
);
</action>
<action name="viewControlZoomOut">
if(%1,
if(%2,
if(%2 GT view.fovmax,
zoomto(get(view.fovmax));
,
if(%2 GT view.fov,
zoomto(%2);
);
);
,
set(fov_moveforce, +1);
delayedcall(0.1, viewControlZoomStop());
);
,
set(fov_moveforce, +1);
);
</action>
<action name="viewControlZoomStop">
set(fov_moveforce, 0);
</action>
<!-- FLOORPLAN -->
<action name="hideFloorplan">set(tour_displayfloorplan, false);events.dispatch(onhidetourfloorplan);</action>
<action name="showFloorplan">set(tour_displayfloorplan, true); events.dispatch(onshowtourfloorplan);</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>
</krpano>