Label
Label
kolor.com (ptp, apg)
-
Logo nach Panoramagruppe wechseln
in der Datei PROJEKTNAME_skin.xml die event name logoevent abändern, und eine action updatelogo hinzufügen.
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.17">
<!-- unsupported kind of display : PointMap -->
<!-- ************ -->
<!-- Logo : viewport / bottomright -->
<!-- ************ -->
<layer align="bottomright"
x="10"
y="10"
zorder="0"
name="logo"
keep="true"
visible="false"
capture="false"
tooltip="logotooltipText"
onhover="showTooltip(bottomright,'');"
onout="hideTooltip();"
url="%FIRSTXML%/graphics/logo/logo4sep.gif"
onclick="openurl(http://360.haifischbar.de,_blank);"
/>
<events name="logoevents"
onTourStart="showlogo();"
onnewpano="updateLogo();"
keep="true" />
<action name="hidelogo">
set(layer[logo].visible, false);
</action>
<action name="showlogo">
if (tour_displaycontrols,
set(layer[logo].visible, true);
);
</action>
<action name="updateLogo">
if (scene[get(xml.scene)].group == panogroup53,
set(layer[logo].url, %FIRSTXML%/graphics/logo/logo4sep.gif);
,
if (scene[get(xml.scene)].group == panogroup45,
set(layer[logo].url, %FIRSTXML%/graphics/logo/logo4bw.gif);
,
set(layer[logo].url, %FIRSTXML%/graphics/logo/logo4.gif);
);
);
set(layer[logo].visible, true);
</action>
<!-- ************ -->
<!-- PanotourMaps -->
<!-- ************ -->
<ptplugin name="panotourmaps" lat="-9999" lng="-9999" zoom="11" maptypelayer="hybrid" position="left" size="30" resizable="true" multimap="false" openatstart="false" state="false" bgcolor="c0c0c0" zorder="1" engine="KolorMap">
<radar visible="true" radius="8000" linktozoom="true" quality="8" linecolor="008000" lineopacity="1" linewidth="1" fillcolor="00ff00" fillopacity="0.500007629510948" />
<controls zoom="true" pan="true" scale="true" maptype="true" overview="false">
<ui draggable="true" scrollable="true" dblclick="true" />
</controls>
<markerSelected name="" heading="" fov="" />
<!-- PanotourMaps markers counter : 9 -->
<marker name="spotmap93" lat="51.2628097534" lng="7.165974617" heading="0" draggable="false" desc="spotmap93_tooltip" desctype="info" onhover="false" isscene="true" scene="pano38" jsclick="spotmap93ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap94" lat="51.262714386" lng="7.1660284996" heading="0" draggable="false" desc="spotmap94_tooltip" desctype="info" onhover="false" isscene="true" scene="pano41" jsclick="spotmap94ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap95" lat="51.2718429565" lng="7.2029671669" heading="0" draggable="false" desc="spotmap95_tooltip" desctype="info" onhover="false" isscene="true" scene="pano44" jsclick="spotmap95ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap96" lat="51.2628097534" lng="7.165974617" heading="0" draggable="false" desc="spotmap96_tooltip" desctype="info" onhover="false" isscene="true" scene="pano36" jsclick="spotmap96ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap97" lat="51.262714386" lng="7.1660284996" heading="0" draggable="false" desc="spotmap97_tooltip" desctype="info" onhover="false" isscene="true" scene="pano39" jsclick="spotmap97ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap98" lat="51.2718429565" lng="7.2029671669" heading="0" draggable="false" desc="spotmap98_tooltip" desctype="info" onhover="false" isscene="true" scene="pano42" jsclick="spotmap98ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap99" lat="51.2628097534" lng="7.165974617" heading="0" draggable="false" desc="spotmap99_tooltip" desctype="info" onhover="false" isscene="true" scene="pano37" jsclick="spotmap99ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap100" lat="51.262714386" lng="7.1660284996" heading="0" draggable="false" desc="spotmap100_tooltip" desctype="info" onhover="false" isscene="true" scene="pano40" jsclick="spotmap100ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
<marker name="spotmap101" lat="51.2718429565" lng="7.2029671669" heading="0" draggable="false" desc="spotmap101_tooltip" desctype="info" onhover="false" isscene="true" scene="pano43" jsclick="spotmap101ActionSpotMap">
<markericon url="spots/hotspot_neutral_user_defaultmap0.png" iconwidth="32" iconheight="32" shadow="false" iconanchor="center" />
</marker>
</ptplugin>
<action name="kolorMapJsReady-panotourmaps">
set(ptplugin[panotourmaps].jsready, true);
</action>
<!-- PanotourMaps markers counter : 9 -->
<action name="spotmap93ActionSpotMap">
if (xml.scene != pano38,
mainloadscene(pano38);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap94ActionSpotMap">
if (xml.scene != pano41,
mainloadscene(pano41);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap95ActionSpotMap">
if (xml.scene != pano44,
mainloadscene(pano44);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap96ActionSpotMap">
if (xml.scene != pano36,
mainloadscene(pano36);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap97ActionSpotMap">
if (xml.scene != pano39,
mainloadscene(pano39);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap98ActionSpotMap">
if (xml.scene != pano42,
mainloadscene(pano42);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap99ActionSpotMap">
if (xml.scene != pano37,
mainloadscene(pano37);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap100ActionSpotMap">
if (xml.scene != pano40,
mainloadscene(pano40);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<action name="spotmap101ActionSpotMap">
if (xml.scene != pano43,
mainloadscene(pano43);
);
lookat(get(panoview.h), get(panoview.v), get(panoview.fov));
</action>
<!-- Begin PanotourMaps events and actions -->
<events name="panotourmapsEvents"
onxmlcomplete="ifnot(panotourmapsMapLoaded,set(tour_displaymap,false););"
onnewpano="panotourmapsActivateDefaultMarker();"
onremovepano="panotourmapsUnselectMarker();"
onviewchanged="panotourmapsOnviewchange()"
onhidetourmap="panotourmapsClosetourmap();"
onshowtourmap="if(tour_displaymap,panotourmapsOpentourmap(););"
hidetourcontrols="panotourmapsClosetourmap();"
showtourcontrols="if(tour_displaymap,panotourmapsOpentourmap(););"
onenterfullscreen="panotourmapsUpdateMaxMapSize();"
onexitfullscreen="panotourmapsUpdateMaxMapSize();"
keep="true" />
<krpano panotourmapsMarkerDefaultSet="false" />
<krpano panotourmapsMapLoaded="false" />
<action name="panotourmapsUpdateMaxMapSize">
js(invokePluginFunction(panotourmaps, updateResizableMapMaxSize));
</action>
<action name="kolorMapJsReadyLoop-panotourmaps">
if(ptplugin[panotourmaps].jsready,
stopdelayedcall(jsReadyLoopId-panotourmaps);
if(%1 == "close",
panotourmapsClosetourmap();
,
panotourmapsOpentourmap();
);
,
delayedcall(jsReadyLoopId-panotourmaps, 0.2, kolorMapJsReadyLoop-panotourmaps(%1));
);
</action>
<action name="panotourmapsClosetourmap">
if(ptplugin[panotourmaps].jsready,
set(ptplugin[panotourmaps].state, false);
js(invokePluginFunction(panotourmaps, openCloseMap, close));
,
kolorMapJsReadyLoop-panotourmaps(close);
);
</action>
<action name="panotourmapsOpentourmap">
if(ptplugin[panotourmaps].jsready,
set(ptplugin[panotourmaps].state, true);
js(invokePluginFunction(panotourmaps, openCloseMap, open));
,
kolorMapJsReadyLoop-panotourmaps(open);
);
</action>
<action name="panotourmapsChangescene">
if(xml.scene != '%1',mainloadscene(%1);panotourmapsGoMarker(%2));
</action>
<action name="panotourmapsOnviewchange">
if ( panotourmapsMapLoaded == true,
ifnot(ptplugin[panotourmaps].markerSelected.name == "",
js(invokePluginFunction(panotourmaps, changeDirection, get(view.hlookat), get(view.fov)));
);
);
</action>
<action name="panotourmapsGoMarker">
if ( panotourmapsMapLoaded == true,
set(ptplugin[panotourmaps].markerSelected.name, %1);
set(ptplugin[panotourmaps].markerSelected.heading, get(view.hlookat));
set(ptplugin[panotourmaps].markerSelected.fov, get(view.fov));
js(invokePluginFunction(panotourmaps, changeCurrentMarker, %1, get(view.hlookat), get(view.fov)));
if( panotourmapsMarkerDefaultSet == false,
js(setMapDefaultMarker(panotourmaps, %1, get(view.hlookat), get(view.fov)));
set(panotourmapsMarkerDefaultSet,true);
);
);
</action>
<action name="panotourmapsUnselectMarker">
set(ptplugin[panotourmaps].markerSelected.name, "");
js(invokePluginFunction(panotourmaps, unselectCurrentMarker));
js(setMapDefaultMarker(panotourmaps, null, null, null));
</action>
<action name="panotourmapsActivateDefaultMarker">
set(panotourmapsMapLoaded, true);
set(panotourmapsMapSpotFound, false);
set(defaultmarkerinc-wait,50);
for(set(defaultmarkerinc,0), defaultmarkerinc LT ptplugin[panotourmaps].marker.count , inc(defaultmarkerinc),
if(defaultmarkerinc-wait == defaultmarkerinc,
add(defaultmarkerinc-wait,50);
wait(0);
);
if(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].isscene == true,
if(panotourmapsMapSpotFound == false,
if(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].scene == xml.scene,
ifnot(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].name == ptplugin[panotourmaps].markerSelected.name,
panotourmapsGoMarker(get(ptplugin[panotourmaps].marker[get(defaultmarkerinc)].name));
);
set(panotourmapsMapSpotFound, true);
);
);
);
);
if(panotourmapsMapSpotFound == false,
panotourmapsUnselectMarker();
);
</action>
<!-- ******************* -->
<!-- Classic Control Bar -->
<!-- ******************* -->
<krpano theme2barbuilt="false" theme2backgroundwidthwhenclosed="0" theme2backgroundwidthwhenopened="0" theme2IsOpened="false" />
<events name="theme2events" onxmlcomplete="theme2buildMenuBar();" keep="true"/>
<action name="theme2buildMenuBar">
ifnot (theme2barbuilt, theme2buildMenu(); set(theme2barbuilt, true););
</action>
<action name="theme2buildMenu">
set(theme2button_pos, 20);
set(layer[theme2btn_hidecontrols].x, get(theme2button_pos));
set(layer[theme2btn_showcontrols].x, get(theme2button_pos));
inc(theme2button_pos, 36);
add(theme2backgroundwidthwhenclosed, get(theme2button_pos), 20);
if (device.desktop,
set(layer[theme2btn_display_help].x, get(theme2button_pos));
set(layer[theme2btn_close_help ].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
if (device.fullscreensupport,
set(layer[theme2btn_openfs ].x, get(theme2button_pos));
set(layer[theme2btn_closefs].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
set(layer[theme2btn_display_map].x, get(theme2button_pos));
set(layer[theme2btn_hide_map ].x, get(theme2button_pos));
inc(theme2button_pos, 36);
set(layer[theme2btn_autorotate_on ].x, get(theme2button_pos));
set(layer[theme2btn_autorotate_off].x, get(theme2button_pos));
inc(theme2button_pos, 36);
set(layer[theme2btn_show_thumbnails].x, get(theme2button_pos));
set(layer[theme2btn_hide_thumbnails].x, get(theme2button_pos));
inc(theme2button_pos, 36);
if (device.desktop,
set(layer[theme2btn_ctrlmode_drag_to].x, get(theme2button_pos));
set(layer[theme2btn_ctrlmode_move_to].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
if (device.desktop,
set(layer[theme2btn_right].x, get(theme2button_pos));
inc(theme2button_pos, 36);
set(layer[theme2btn_left].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
if (device.desktop,
set(layer[theme2btn_down].x, get(theme2button_pos));
inc(theme2button_pos, 36);
set(layer[theme2btn_up].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
if (device.desktop,
set(layer[theme2btn_out].x, get(theme2button_pos));
inc(theme2button_pos, 36);
set(layer[theme2btn_in].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
if (scene.count GT 1,
set(layer[theme2btn_next_pano].x, get(theme2button_pos));
inc(theme2button_pos, 36);
set(layer[theme2btn_prev_pano].x, get(theme2button_pos));
inc(theme2button_pos, 36);
);
inc(theme2button_pos, 20);
set(theme2backgroundwidthwhenopened, get(theme2button_pos));
add(theme2VerifyVisibility, 20, 20);
if(theme2backgroundwidthwhenopened == 20,
set(theme2backgroundwidthwhenopened, 0);
);
</action>
<events name="theme2StartTourEvents" onTourStart="theme2CallOnStartTour();" keep="true" />
<action name="theme2CallOnStartTour">
set(layer[theme2menu_controlbar_bg_img].width, get(theme2button_pos));
set(layer[theme2menu_controlbar_bg].width, get(theme2button_pos));
showTourControls();
</action>
<style name="theme2_btn_style"
keep="true"
alpha="0.8"
edge="right" align="right"
width="36" height="36"
zorder="4"
onover="theme2ctrlbaronoveraction();"
onout="theme2ctrlbaronoutaction();"
onhover="showTooltip(bottom, theme2menuTooltipStyle, bottom);"
/>
<action name="theme2ctrlbaronoveraction">
tween(alpha,1,0.1,easeoutquad);
tween(y,-2,0.1,easeoutquad);
</action>
<action name="theme2ctrlbaronoutaction">
tween(alpha,0.8);
tween(y,0,0.1,easeoutquad);
hideTooltip();
</action>
<layer name="theme2menu_controlbar_bg_img"
keep="true"
align="bottom"
x="0" y="10"
url="%FIRSTXML%/graphics/classiccontrolbar/footer.png"
zorder="2"
width="40"
height="40"
scale9grid="10|10|80|80"
visible="false"
/>
<layer name="theme2menu_controlbar_bg"
keep="true"
align="bottom"
x="0" y="10"
type="container"
zorder="3"
width="40"
height="40"
visible="false"
alpha="1.0"
>
<layer name="theme2btn_ctrlmode_move_to"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_to.png"
style="theme2_btn_style"
tooltip="controlBar_classicctrlmodeMoveTip"
onclick="setControlModeMoveTo();"
visible="false"
devices="desktop"
/>
<layer name="theme2btn_ctrlmode_drag_to"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_drag_to.png"
style="theme2_btn_style"
tooltip="controlBar_classicctrlmodeDragTip"
onclick="setControlModeDragTo();"
visible="false"
devices="desktop"
/>
<layer name="theme2btn_in"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_zoom_in.png"
ondown="set(fov_moveforce, -1);"
onup="set(fov_moveforce, 0);"
style="theme2_btn_style"
tooltip="controlBar_classiczoomInTip"
devices="desktop"
visible="false"
/>
<layer name="theme2btn_out"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_zoom_out.png"
ondown="set(fov_moveforce, +1);"
onup="set(fov_moveforce, 0);"
style="theme2_btn_style"
tooltip="controlBar_classiczoomOutTip"
devices="desktop"
visible="false"
/>
<layer name="theme2btn_left"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_left.png"
ondown="set(hlookat_moveforce, -1);"
onup="set(hlookat_moveforce, 0);"
style="theme2_btn_style"
tooltip="controlBar_classicmoveLeftTip"
devices="desktop"
visible="false"
/>
<layer name="theme2btn_right"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_right.png"
ondown="set(hlookat_moveforce, +1);"
onup="set(hlookat_moveforce, 0);"
style="theme2_btn_style"
tooltip="controlBar_classicmoveRightTip"
devices="desktop"
visible="false"
/>
<layer name="theme2btn_up"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_up.png"
ondown="set(vlookat_moveforce, -1);"
onup="set(vlookat_moveforce, 0);"
style="theme2_btn_style"
tooltip="controlBar_classicmoveUpTip"
devices="desktop"
visible="false"
/>
<layer name="theme2btn_down"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_move_down.png"
ondown="set(vlookat_moveforce, +1);"
onup="set(vlookat_moveforce, 0);"
style="theme2_btn_style"
tooltip="controlBar_classicmoveDownTip"
devices="desktop"
visible="false"
/>
<layer name="theme2btn_prev_pano"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_previous_scene.png"
onclick="loadPreviousScene();"
style="theme2_btn_style"
tooltip="controlBar_classicprevSceneTip"
visible="false"
/>
<layer name="theme2btn_next_pano"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_next_scene.png"
onclick="loadNextScene();"
style="theme2_btn_style"
tooltip="controlBar_classicnextSceneTip"
visible="false"
/>
<layer name="theme2btn_hide_thumbnails"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_hide_thumbnails.png"
style="theme2_btn_style"
onclick="hideTourThumbnails();"
tooltip="controlBar_classichideThumbnailsTip"
visible="false"
/>
<layer name="theme2btn_show_thumbnails"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_show_thumbnails.png"
style="theme2_btn_style"
onclick="showTourThumbnails();"
tooltip="controlBar_classicshowThumbnailsTip"
visible="false"
/>
<layer name="theme2btn_display_map"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_map.png"
onclick="theme2displayMap();"
style="theme2_btn_style"
visible="false"
tooltip="controlBar_classicdisplayMapTip"
/>
<layer name="theme2btn_hide_map"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_map.png"
onclick="theme2hideMap();"
style="theme2_btn_style"
visible="false"
tooltip="controlBar_classichideMapTip"
/>
<layer name="theme2btn_openfs"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_enter_fs.png"
onclick="enterFullscreen();"
style="theme2_btn_style"
devices="fullscreensupport"
visible="false"
tooltip="controlBar_classicopenFsTip"
/>
<layer name="theme2btn_closefs"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_close_fs.png"
onclick="exitFullscreen();"
style="theme2_btn_style"
visible="false"
devices="fullscreensupport"
tooltip="controlBar_classiccloseFsTip"
/>
<layer name="theme2btn_autorotate_on"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_start_autorotation.png"
onclick="startautorotation();"
style="theme2_btn_style"
visible="false"
tooltip="controlBar_classicautorotateOnTip"
/>
<layer name="theme2btn_autorotate_off"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_stop_autorotation.png"
onclick="stopautorotation();"
style="theme2_btn_style"
visible="false"
tooltip="controlBar_classicautorotateOffTip"
/>
<layer name="theme2btn_display_help"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_help.png"
onclick="theme2displayHelp();"
style="theme2_btn_style"
devices="desktop"
visible="false"
tooltip="controlBar_classicdisplayHelpTip"
/>
<layer name="theme2btn_close_help"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_help.png"
onclick="theme2closeHelp();"
style="theme2_btn_style"
visible="false"
devices="desktop"
tooltip="controlBar_classichideHelpTip"
/>
<layer name="theme2btn_hidecontrols"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_hide_controls.png"
style="theme2_btn_style"
onclick="hideTourControls();"
visible="false"
tooltip="controlBar_classichideControlsTip"
/>
<layer name="theme2btn_showcontrols"
url="%FIRSTXML%/graphics/classiccontrolbar/btn_show_controls.png"
style="theme2_btn_style"
onclick="showTourControls();"
tooltip="controlBar_classicdisplayControlsTip"
visible="false"
/>
</layer>
<events name="theme2controlmodechangedevent"
oncontrolmodechanged="theme2updateControlModeButtons();"
keep="true" />
<action name="theme2HideControlModeButtons">
set(layer[theme2btn_ctrlmode_move_to].visible, false);
set(layer[theme2btn_ctrlmode_drag_to].visible, false);
</action>
<action name="theme2ShowControlModeButtons">
if (tour_controlmodemousetype == "moveto",
set(layer[theme2btn_ctrlmode_drag_to].visible, true);
set(layer[theme2btn_ctrlmode_move_to].visible, false);
,
set(layer[theme2btn_ctrlmode_move_to].visible, true);
set(layer[theme2btn_ctrlmode_drag_to].visible, false);
);
</action>
<action name="theme2updateControlModeButtons">
if (device.desktop,
if (tour_displaycontrols,
theme2ShowControlModeButtons();
,
theme2HideControlModeButtons();
);
,
theme2HideControlModeButtons();
);
</action>
<events name="theme2hideshowthumbnailsevent"
hidetourthumbnails="theme2updateHideShowThumbnailsButtons();"
showtourthumbnails="theme2updateHideShowThumbnailsButtons();"
keep="true" />
<action name="theme2HideHideShowThumbnailsButtons">
set(layer[theme2btn_show_thumbnails].visible, false);
set(layer[theme2btn_hide_thumbnails].visible, false);
</action>
<action name="theme2ShowHideShowThumbnailsButtons">
if (tour_displaythumbnails,
set(layer[theme2btn_hide_thumbnails].visible, true);
set(layer[theme2btn_show_thumbnails].visible, false);
,
set(layer[theme2btn_show_thumbnails].visible, true);
set(layer[theme2btn_hide_thumbnails].visible, false);
);
</action>
<action name="theme2updateHideShowThumbnailsButtons">
if (tour_displaycontrols,
theme2ShowHideShowThumbnailsButtons();
,
theme2HideHideShowThumbnailsButtons();
);
</action>
<events name="theme2hideshowcontrolsevent"
hidetourcontrols="theme2hideMenuControls();"
showtourcontrols="theme2showMenuControls();"
keep="true" />
<action name="theme2hideMenuControls">
set(theme2IsOpened, false);
set(layer[theme2btn_hidecontrols].visible, false);
set(layer[theme2btn_showcontrols].visible, true);
theme2updateFullscreenButtons();
if (scene.count GT 1,
set(layer[theme2btn_prev_pano].visible, false);
set(layer[theme2btn_next_pano].visible, false);
);
theme2updateAutorotationButtons();
theme2updateHideShowThumbnailsButtons();
set(layer[theme2btn_up].visible , false);
set(layer[theme2btn_down].visible, false);
set(layer[theme2btn_right].visible, false);
set(layer[theme2btn_left].visible , false);
set(layer[theme2btn_in].visible , false);
set(layer[theme2btn_out].visible, false);
theme2updateMapButtons();
theme2updateControlModeButtons();
theme2updateHelpButtons();
set(layer[theme2menu_controlbar_bg_img].visible, true);
set(layer[theme2menu_controlbar_bg].visible, true);
tween(layer[theme2menu_controlbar_bg_img].width , get(theme2backgroundwidthwhenclosed));
tween(layer[theme2menu_controlbar_bg].width , get(theme2backgroundwidthwhenclosed));
tween(layer[theme2menu_controlbar_bg_img].alpha, 0.8);
</action>
<action name="theme2showMenuControls">
set(theme2IsOpened, true);
set(layer[theme2btn_hidecontrols].visible, true);
set(layer[theme2btn_showcontrols].visible, false);
if(theme2backgroundwidthwhenopened == 0,
set(layer[theme2menu_controlbar_bg_img].visible, false);
set(layer[theme2menu_controlbar_bg].visible, false);
,
set(layer[theme2menu_controlbar_bg_img].visible, true);
set(layer[theme2menu_controlbar_bg].visible, true);
);
tween(layer[theme2menu_controlbar_bg_img].alpha, 0.8);
tween(layer[theme2menu_controlbar_bg_img].width, get(theme2backgroundwidthwhenopened), 0.5, easeOutQuad, theme2showMenuButtons(););
tween(layer[theme2menu_controlbar_bg].width, get(theme2backgroundwidthwhenopened), 0.5, easeOutQuad, theme2showMenuButtons(););
</action>
<action name="theme2showMenuButtons">
if (device.desktop,
set(layer[theme2btn_up].visible , true);
set(layer[theme2btn_down].visible, true);
);
if (device.desktop,
set(layer[theme2btn_right].visible, true);
set(layer[theme2btn_left].visible , true);
);
if (device.desktop,
set(layer[theme2btn_in].visible , true);
set(layer[theme2btn_out].visible, true);
);
theme2updateMapButtons();
theme2updateControlModeButtons();
theme2updateHelpButtons();
theme2updateFullscreenButtons();
if (scene.count GT 1,
set(layer[theme2btn_prev_pano].visible, true);
set(layer[theme2btn_next_pano].visible, true);
);
theme2updateAutorotationButtons();
theme2updateHideShowThumbnailsButtons();
</action>
<layer name="theme2helpScreen" align="center" keep="true" onclick="theme2closeHelp();" url="%FIRSTXML%/graphics/classiccontrolbar/help_screen_bg.png" visible="false" zorder="97" height="10%" width="prop" alpha="0.8" />
<layer name="theme2helpScreenFg" align="center" keep="true" onclick="theme2closeHelp();" displayed="false"
url="%FIRSTXML%/graphics/classiccontrolbar/help_screen_fg.png"
alpha="0.8"
height="50%"
width="prop"
zorder="98"
visible="false" />
<action name="theme2displayHelp">
set(layer[theme2helpScreenFg].displayed,true);
set(layer[theme2helpScreen].visible,true);
tween(layer[theme2helpScreen].height, 50%, 1, easeOutQuad,
set(layer[theme2helpScreenFg].visible,true);
);
theme2updateHelpButtons();
</action>
<action name="theme2closeHelp">
set(layer[theme2helpScreenFg].displayed,false);
set(layer[theme2helpScreenFg].visible,false);
tween(layer[theme2helpScreen].height, 10%, 1, easeOutQuad,
set(layer[theme2helpScreen].visible,false);
);
theme2updateHelpButtons();
</action>
<action name="theme2HideHelpButtons">
set(layer[theme2btn_display_help].visible, false);
set(layer[theme2btn_close_help].visible, false);
</action>
<action name="theme2ShowHelpButtons">
if (layer[theme2helpScreenFg].displayed,
set(layer[theme2btn_close_help].visible, true);
set(layer[theme2btn_display_help].visible, false);
,
set(layer[theme2btn_display_help].visible, true);
set(layer[theme2btn_close_help].visible, false);
);
</action>
<action name="theme2updateHelpButtons">
if (device.desktop,
if (tour_displaycontrols,
theme2ShowHelpButtons();
,
theme2HideHelpButtons();
);
,
theme2HideHelpButtons();
);
</action>
<action name="theme2displayMap">showMap();
</action>
<action name="theme2hideMap">hideMap();
</action>
<events name="theme2displaymapchangeevent"
onshowtourmap="theme2updateMapButtons();"
onhidetourmap="theme2updateMapButtons();"
keep="true"/>
<action name="theme2HideMapButtons">
set(layer[theme2btn_display_map].visible, false);
set(layer[theme2btn_hide_map].visible, false);
</action>
<action name="theme2ShowMapButtons">
if (tour_displaymap,
set(layer[theme2btn_hide_map].visible, true);
set(layer[theme2btn_display_map].visible, false);
,
set(layer[theme2btn_display_map].visible, true);
set(layer[theme2btn_hide_map].visible, false);
);
</action>
<action name="theme2updateMapButtons">
if (tour_displaycontrols,
theme2ShowMapButtons();
,
theme2HideMapButtons();
);
</action>
<events name="theme2menufullscreenchangeevent"
onenterfullscreen="theme2updateFullscreenButtons();"
onexitfullscreen="theme2updateFullscreenButtons();"
keep="true"/>
<action name="theme2HideFullscreenButtons">
set(layer[theme2btn_openfs].visible , false);
set(layer[theme2btn_closefs].visible, false);
</action>
<action name="theme2ShowFullscreenButtons">
if (device.fullscreensupport,
if(tour_fullscreen,
set(layer[theme2btn_openfs].visible , false);
set(layer[theme2btn_closefs].visible, true);
,
set(layer[theme2btn_openfs].visible ,true);
set(layer[theme2btn_closefs].visible,false);
);
,
theme2HideFullscreenButtons();
);
</action>
<action name="theme2updateFullscreenButtons">
if (tour_displaycontrols,
theme2ShowFullscreenButtons();
,
theme2HideFullscreenButtons();
);
</action>
<events name="theme2AutorotationEvents"
onstartautorotation="theme2updateAutorotationButtons();"
onresumeautorotation="theme2updateAutorotationButtons();"
onstopautorotation="theme2updateAutorotationButtons();"
onpauseautorotation="theme2updateAutorotationButtons();"
keep="true"/>
<action name="theme2HideAutorotationButtons">
set(layer[theme2btn_autorotate_off].visible, false);
set(layer[theme2btn_autorotate_on].visible , false);
</action>
<action name="theme2ShowAutorotationButtons">
if(tour_autorotateenabled==false,
set(layer[theme2btn_autorotate_off].visible, false);
set(layer[theme2btn_autorotate_on].visible , true);
,
set(layer[theme2btn_autorotate_off].visible, true);
set(layer[theme2btn_autorotate_on].visible , false);
);
</action>
<action name="theme2updateAutorotationButtons">
if (tour_displaycontrols,
theme2ShowAutorotationButtons();
,
theme2HideAutorotationButtons();
);
</action>
<textstyle name="theme2menuTooltipStyle"
font="Helvetica"
fontsize="14.0"
bold="true"
italic="false"
background="false"
border="false"
textcolor="0xe6e6e6"
alpha="0.8"
blendmode="normal"
effect="dropshadow(0,45,0x000000,4,2);"
noclip="true"
devices="flash"
origin="bottom"
yoffset="60"
edge="center"
xoffset="0"
textalign="center"
/>
<layer name="theme2menuTooltipStyle"
keep="true"
enabled="false"
capture="false"
url="%FIRSTXML%/graphics/textfield.swf"
align="center"
background="false"
border="false"
textshadow="1" textshadowrange="4.0" textshadowangle="45" textshadowcolor="0x000000" textshadowalpha="1"
css="color:#e6e6e6;font-family:Helvetica;font-weight:bold;font-size:14px;text-align:center;"
width="200"
height="20"
autoheight="true"
selectable="false"
zorder="0"
visible="false"
html=""
devices="html5"
edge="bottom"
/>
<!-- ********************** -->
<!-- Classic Thumbnails Bar -->
<!-- ********************** -->
<layer name="thumbnailsBar-thumbnailsBar-theme02"
keep="true"
type="image"
visible="false"
align="top"
width="100%"
height="0"
x="0"
y="10"
url="%FIRSTXML%/graphics/classicthumbnailsbar/frame_bg.png"
scale9grid="10|10|80|80"
zorder="5"
/>
<layer name="thumbnailBorderSource-thumbnailsBar-theme02"
keep="true"
visible="false"
onloaded="loadedImages-thumbnailsBar-theme02(border);"
url="%FIRSTXML%/graphics/classicthumbnailsbar/thumbnails_states.png"
offsetX="10"
offsetY="10"
quarterHeight="0"
/>
<textstyle name="tooltipStyle-thumbnailsBar-theme02"
font="Helvetica"
fontsize="14.0"
bold="true"
italic="false"
background="false"
border="false"
textcolor="0xe6e6e6"
alpha="0.8"
blendmode="normal"
origin="cursor"
effect="dropshadow(0,45,0x000000,4,2);"
edge="top"
yoffset="20"
xoffset="0"
noclip="true"
devices="flash"
/>
<layer name="tooltipStyle-thumbnailsBar-theme02"
keep="true"
enabled="false"
capture="false"
url="%FIRSTXML%/graphics/textfield.swf"
align="center"
background="false"
border="false"
textshadow="1" textshadowrange="4.0" textshadowangle="45" textshadowcolor="0x000000" textshadowalpha="1"
css="color:#e6e6e6;font-family:Helvetica;font-weight:bold;font-size:14px;text-align:center;"
width="200"
height="20"
autoheight="true"
selectable="false"
zorder="0"
xoffset="0"
yoffset="0"
visible="false"
html=""
devices="html5"
edge="top"
/>
<krpano arrow1Loaded-thumbnailsBar-theme02="false" arrow2Loaded-thumbnailsBar-theme02="false" borderLoaded-thumbnailsBar-theme02="false" thumbnailsLoadedCounter-thumbnailsBar-theme02="0" thumbsCount-thumbnailsBar-theme02="0" thumbsCounter-thumbnailsBar-theme02="0" firstInit-thumbnailsBar-theme02="false" />
<events name="thumbnailsScrollEvents-thumbnailsBar-theme02"
keep="true"
onxmlcomplete="ifnot(startResize-thumbnailsBar-theme02,set(isLoaded-thumbnailsBar-theme02, true);if(isStarted-thumbnailsBar-theme02,onLoadCompleteHandler-thumbnailsBar-theme02();););"
onTourStart="set(isStarted-thumbnailsBar-theme02, true);if(isLoaded-thumbnailsBar-theme02,onLoadCompleteHandler-thumbnailsBar-theme02(););"
onnewpano="if(startResize-thumbnailsBar-theme02,if(firstInit-thumbnailsBar-theme02,onLoadCompleteHandler-thumbnailsBar-theme02();););"
onresize="onResizeHandler-thumbnailsBar-theme02();"
hidetourthumbnails="hideWithThumbnailsButton-thumbnailsBar-theme02();"
showtourthumbnails="showWithThumbnailsButton-thumbnailsBar-theme02();"
hidetourcontrols="hideWithControlsBar-thumbnailsBar-theme02();"
showtourcontrols="showWithControlsBar-thumbnailsBar-theme02();"
onenterfullscreen="delayedcall(0.2,scrollToCurrentThumb-thumbnailsBar-theme02(););"
onexitfullscreen="delayedcall(0.2,scrollToCurrentThumb-thumbnailsBar-theme02(););"
/>
<layer name="scrollAreaContainer-thumbnailsBar-theme02"
keep="true"
type="container"
align="topleft"
x="5"
y="5"
marginX="5"
marginY="5"
width="0"
height="0"
scrollSpeedInit="10"
scrollSpeed="10"
scrollSpeedMax="70"
scrollSpeedAcceleration="20"
parent="thumbnailsBar-thumbnailsBar-theme02"
thumbWidth="0"
thumbHeight="0"
itemWidth="100"
itemHeight="50"
offsetX="0"
offsetY="0"
thumbSpacer="0"
currentThumbsCount="0"
adjustToContent="false"
zorder="1"
visible="false"
ready="false"
>
<layer name="thumbsScrollArea-thumbnailsBar-theme02"
url="%FIRSTXML%/graphics/scrollarea.swf"
alturl="%FIRSTXML%/graphics/scrollarea.js"
align="top"
onhover_autoscrolling="false"
x="0"
y="0"
direction="h"
/>
</layer>
<layer name="scrollPrevArrow-thumbnailsBar-theme02"
keep="true"
type="image"
visible="false"
parent="thumbnailsBar-thumbnailsBar-theme02"
targetHeight="0"
tagertWidth="0"
zorder="2"
onloaded="loadedImages-thumbnailsBar-theme02(arrow1);"
url="%FIRSTXML%/graphics/classicthumbnailsbar/btn_scroll_left.png"
align="left"
/>
<layer name="scrollNextArrow-thumbnailsBar-theme02"
keep="true"
type="image"
visible="false"
parent="thumbnailsBar-thumbnailsBar-theme02"
targetHeight="0"
targetWidth="0"
zorder="2"
onloaded="loadedImages-thumbnailsBar-theme02(arrow2);"
url="%FIRSTXML%/graphics/classicthumbnailsbar/btn_scroll_right.png"
align="right"
/>
<action name="loadedImages-thumbnailsBar-theme02">
if(%1 == "arrow1",
set(arrow1Loaded-thumbnailsBar-theme02, true);
);
if(%1 == "arrow2",
set(arrow2Loaded-thumbnailsBar-theme02, true);
);
if(%1 == "border",
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(borderLoaded-thumbnailsBar-theme02, true);
);
);
if(%1 == "thumbnail",
inc(thumbnailsLoadedCounter-thumbnailsBar-theme02);
);
</action>
<action name="onLoadCompleteHandler-thumbnailsBar-theme02">
set(thumbsCount-thumbnailsBar-theme02, 0);
set(thumbsCount-thumbnailsBar-theme02, get(scene.count));
loadThumbs-thumbnailsBar-theme02();
if(firstInit-thumbnailsBar-theme02,
onLoadCompleteHandlerPartThree-thumbnailsBar-theme02();
,
onLoadCompleteHandlerPartTwo-thumbnailsBar-theme02();
);
</action>
<action name="onLoadCompleteHandlerPartTwo-thumbnailsBar-theme02">
set(imgCounter-thumbnailsBar-theme02, 3);
if(arrow1Loaded-thumbnailsBar-theme02,
dec(imgCounter-thumbnailsBar-theme02);
);
if(arrow2Loaded-thumbnailsBar-theme02,
dec(imgCounter-thumbnailsBar-theme02);
);
if(thumbsCount-thumbnailsBar-theme02 == thumbnailsLoadedCounter-thumbnailsBar-theme02,
dec(imgCounter-thumbnailsBar-theme02);
);
if(imgCounter-thumbnailsBar-theme02 LE 0,
stopdelayedcall(delayedCallOnLoadComplete-thumbnailsBar-theme02);
onLoadCompleteHandlerPartThree-thumbnailsBar-theme02();
,
delayedcall(delayedCallOnLoadComplete-thumbnailsBar-theme02, 0.2, onLoadCompleteHandlerPartTwo-thumbnailsBar-theme02());
);
</action>
<action name="onLoadCompleteHandlerPartThree-thumbnailsBar-theme02">
resetMouseBehavior-thumbnailsBar-theme02();
highlightCurrentThumb-thumbnailsBar-theme02();
if(layer[scrollAreaContainer-thumbnailsBar-theme02].adjustToContent,
mul(adjustWidth-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].marginX), 2);
add(adjustWidth-thumbnailsBar-theme02, get(layer[thumbsScrollArea-thumbnailsBar-theme02].width));
mul(adjustHeight-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].marginY), 2);
add(adjustHeight-thumbnailsBar-theme02, get(layer[thumbsScrollArea-thumbnailsBar-theme02].height));
if(adjustWidth-thumbnailsBar-theme02 GT stagewidth,
set(adjustWidth-thumbnailsBar-theme02, get(stagewidth));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].adjustToContent, false);
,
if(adjustHeight-thumbnailsBar-theme02 GT stageheight,
set(adjustHeight-thumbnailsBar-theme02, get(stageheight));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].adjustToContent, false);
);
);
setSize-thumbnailsBar-theme02(get(adjustWidth-thumbnailsBar-theme02), get(adjustHeight-thumbnailsBar-theme02));
);
setupArrows-thumbnailsBar-theme02(true);
if (thumbsCounter-thumbnailsBar-theme02 LE 0,
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, false);
);
set(startResize-thumbnailsBar-theme02, true);
set(firstInit-thumbnailsBar-theme02, true);
</action>
<action name="onResizeHandler-thumbnailsBar-theme02">
delayedcall(0.1, onResizeCallback-thumbnailsBar-theme02(false); );
</action>
<action name="onResizeCallback-thumbnailsBar-theme02">
if(startResize-thumbnailsBar-theme02,
setSize-thumbnailsBar-theme02(get(layer[scrollAreaContainer-thumbnailsBar-theme02].targetWidth), get(layer[scrollAreaContainer-thumbnailsBar-theme02].targetHeight));
setupArrows-thumbnailsBar-theme02(%1);
if (thumbsCounter-thumbnailsBar-theme02 LE 0,
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, false);
);
);
</action>
<action name="showWithThumbnailsButton-thumbnailsBar-theme02">
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, true);
onResizeCallback-thumbnailsBar-theme02(true);
</action>
<action name="hideWithThumbnailsButton-thumbnailsBar-theme02">
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, false);
</action>
<action name="showWithControlsBar-thumbnailsBar-theme02">
if (tour_displaythumbnails,
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, true);
onResizeCallback-thumbnailsBar-theme02(true);
,
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, false);
);
</action>
<action name="hideWithControlsBar-thumbnailsBar-theme02">
set(layer[thumbnailsBar-thumbnailsBar-theme02].visible, false);
</action>
<action name="thumbnailBorderDrawInit-thumbnailsBar-theme02">
set(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetX, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderWidth));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetY, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderWidth));
mul(totalOffsetX-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderWidth), 2);
mul(totalOffsetY-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderWidth), 2);
if(startResize-thumbnailsBar-theme02,
sub(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth, get(totalOffsetX-thumbnailsBar-theme02));
sub(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight, get(totalOffsetY-thumbnailsBar-theme02));
);
set(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbWidth, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbHeight, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight));
add(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth, get(totalOffsetX-thumbnailsBar-theme02));
add(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight, get(totalOffsetY-thumbnailsBar-theme02));
</action>
<action name="thumbnailBorderImageInit-thumbnailsBar-theme02">
set(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetX, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].offsetX));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetY, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].offsetY));
mul(totalOffsetX-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].offsetX), 2);
mul(totalOffsetY-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].offsetY), 2);
if(startResize-thumbnailsBar-theme02,
sub(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth, get(totalOffsetX-thumbnailsBar-theme02));
sub(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight, get(totalOffsetY-thumbnailsBar-theme02));
);
set(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbWidth, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbHeight, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight));
add(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth, get(totalOffsetX-thumbnailsBar-theme02));
add(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight, get(totalOffsetY-thumbnailsBar-theme02));
div(layer[thumbnailBorderSource-thumbnailsBar-theme02].quarterHeight, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].height), 4);
set(cropX-thumbnailsBar-theme02, 0);
set(cropY-thumbnailsBar-theme02, 0);
set(cropW-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].width));
set(cropH-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropDefault, get(cropX-thumbnailsBar-theme02), '|', get(cropY-thumbnailsBar-theme02), '|', get(cropW-thumbnailsBar-theme02), '|', get(cropH-thumbnailsBar-theme02));
add(cropY-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropHover, get(cropX-thumbnailsBar-theme02), '|', get(cropY-thumbnailsBar-theme02), '|', get(cropW-thumbnailsBar-theme02), '|', get(cropH-thumbnailsBar-theme02));
add(cropY-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropSelected, get(cropX-thumbnailsBar-theme02), '|', get(cropY-thumbnailsBar-theme02), '|', get(cropW-thumbnailsBar-theme02), '|', get(cropH-thumbnailsBar-theme02));
add(cropY-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].quarterHeight));
txtadd(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropVisited, get(cropX-thumbnailsBar-theme02), '|', get(cropY-thumbnailsBar-theme02), '|', get(cropW-thumbnailsBar-theme02), '|', get(cropH-thumbnailsBar-theme02));
set(scaleX-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].offsetX));
set(scaleY-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].offsetY));
sub(scaleW-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].width), get(totalOffsetX-thumbnailsBar-theme02));
sub(scaleH-thumbnailsBar-theme02, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].quarterHeight), get(totalOffsetY-thumbnailsBar-theme02));
txtadd(layer[thumbnailBorderSource-thumbnailsBar-theme02].scale9grid, get(scaleX-thumbnailsBar-theme02), '|', get(scaleY-thumbnailsBar-theme02), '|', get(scaleW-thumbnailsBar-theme02), '|', get(scaleH-thumbnailsBar-theme02));
</action>
<action name="loadThumbs-thumbnailsBar-theme02">
loadThumbsPartTwo-thumbnailsBar-theme02();
</action>
<action name="loadThumbsPartTwo-thumbnailsBar-theme02">
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(imgCounter-thumbnailsBar-theme02, 1);
,
set(imgCounter-thumbnailsBar-theme02, 0);
);
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
if(borderLoaded-thumbnailsBar-theme02,
dec(imgCounter-thumbnailsBar-theme02);
);
);
if(imgCounter-thumbnailsBar-theme02 LE 0,
stopdelayedcall(delayedCallOnLoadCompleteBorder-thumbnailsBar-theme02);
loadThumbsPartThree-thumbnailsBar-theme02();
,
delayedcall(delayedCallOnLoadCompleteBorder-thumbnailsBar-theme02, 0.2, loadThumbsPartTwo-thumbnailsBar-theme02());
);
</action>
<action name="loadThumbsPartThree-thumbnailsBar-theme02">
ifnot(layer[scrollAreaContainer-thumbnailsBar-theme02].ready,
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
thumbnailBorderImageInit-thumbnailsBar-theme02();
,
thumbnailBorderDrawInit-thumbnailsBar-theme02();
);
set(thumbsCounter-thumbnailsBar-theme02, 0);
set(i-thumbnailsBar-theme02-wait,25);
for( set(i-thumbnailsBar-theme02, 0), i-thumbnailsBar-theme02 LT scene.count, inc(i-thumbnailsBar-theme02),
if(i-thumbnailsBar-theme02-wait == i-thumbnailsBar-theme02,
add(i-thumbnailsBar-theme02-wait,25);
wait(0);
);
createThumb-thumbnailsBar-theme02(get(scene[get(i-thumbnailsBar-theme02)].name), get(scene[get(i-thumbnailsBar-theme02)].thumburl), get(i-thumbnailsBar-theme02), get(scene[get(i-thumbnailsBar-theme02)].titleid));
inc(thumbsCounter-thumbnailsBar-theme02);
);
set(layer[scrollAreaContainer-thumbnailsBar-theme02].currentThumbsCount, get(thumbsCounter-thumbnailsBar-theme02));
setSize-thumbnailsBar-theme02(get(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].width), get(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].height));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].visible, true);
if (tour_displaycontrols,
showWithControlsBar-thumbnailsBar-theme02();
,
hideWithControlsBar-thumbnailsBar-theme02();
);
set(layer[scrollAreaContainer-thumbnailsBar-theme02].ready, true);
);
</action>
<action name="setSize-thumbnailsBar-theme02">
set(layer[scrollAreaContainer-thumbnailsBar-theme02].targetWidth, %1);
set(layer[scrollAreaContainer-thumbnailsBar-theme02].targetHeight, %2);
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].width, %1);
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].height, %2);
layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].updatepos();
mul(totalMarginX-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].x), 2);
mul(totalMarginY-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].y), 2);
add(totalPluginHeight-thumbnailsBar-theme02, get(totalMarginY-thumbnailsBar-theme02), get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight));
if(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].pixelheight LT totalPluginHeight-thumbnailsBar-theme02,
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].height, get(totalPluginHeight-thumbnailsBar-theme02));
);
layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].updatepos();
sub(containerWidth-thumbnailsBar-theme02, get(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].pixelwidth), get(totalMarginX-thumbnailsBar-theme02));
sub(containerHeight-thumbnailsBar-theme02, get(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].pixelheight), get(totalMarginY-thumbnailsBar-theme02));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].width, get(containerWidth-thumbnailsBar-theme02));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].height, get(containerHeight-thumbnailsBar-theme02));
set(scrollAreaSize-thumbnailsBar-theme02, 0);
mul(totalThumbsSpacer-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].currentThumbsCount), get(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbSpacer));
sub(totalThumbsSpacer-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbSpacer));
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].visible, true);
mul(scrollAreaSize-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth), get(layer[scrollAreaContainer-thumbnailsBar-theme02].currentThumbsCount));
add(scrollAreaSize-thumbnailsBar-theme02, get(totalThumbsSpacer-thumbnailsBar-theme02));
set(layer[thumbsScrollArea-thumbnailsBar-theme02].width, get(scrollAreaSize-thumbnailsBar-theme02));
set(layer[thumbsScrollArea-thumbnailsBar-theme02].height, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight));
if(layer[scrollAreaContainer-thumbnailsBar-theme02].width LT layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth,
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].visible, false);
,
verifyThumbnailsBarVisibility-thumbnailsBar-theme02();
);
if(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].width LT 0,
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].visible, false);
);
</action>
<action name="verifyThumbnailsBarVisibility-thumbnailsBar-theme02">
if(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].visible,
set(boolValue-thumbnailsBar-theme02, false);
if (tour_displaythumbnails,
if (tour_displaycontrols,
set(boolValue-thumbnailsBar-theme02, true);
);
);
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].visible, get(boolValue-thumbnailsBar-theme02));
);
</action>
<action name="createThumb-thumbnailsBar-theme02">
add(offsetFactor-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth), get(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbSpacer));
mul(thumbIncPos-thumbnailsBar-theme02, %3, get(offsetFactor-thumbnailsBar-theme02));
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
add(thumbIncPos-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetX));
);
mul(negativeOffsetX-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetX), -1);
mul(negativeOffsetY-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetY), -1);
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '-thumbnailsBar-theme02');
addlayer(get(thumbName));
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '-thumbnailsBar-theme02');
addlayer(get(thumbBorderName));
ifnot(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(layer[get(thumbBorderName)].type, container);
set(layer[get(thumbBorderName)].parent, thumbsScrollArea-thumbnailsBar-theme02);
);
set(layer[get(thumbName)].onloaded, loadedImages-thumbnailsBar-theme02("thumbnail"););
set(layer[get(thumbName)].url, %2);
set(layer[get(thumbName)].keep, true);
set(layer[get(thumbName)].width, get(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbWidth));
set(layer[get(thumbName)].height, get(layer[scrollAreaContainer-thumbnailsBar-theme02].thumbHeight));
set(layer[get(thumbName)].align, topleft);
set(layer[get(thumbName)].y, get(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetY));
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(layer[get(thumbName)].parent, thumbsScrollArea-thumbnailsBar-theme02);
set(layer[get(thumbName)].x, get(thumbIncPos-thumbnailsBar-theme02));
,
set(layer[get(thumbName)].parent, get(thumbBorderName));
set(layer[get(thumbName)].x, get(layer[scrollAreaContainer-thumbnailsBar-theme02].offsetX));
set(layer[get(thumbName)].onclick, mainloadscene(%1); resetMouseBehavior-thumbnailsBar-theme02(); highlightThumb-thumbnailsBar-theme02(%1));
);
set(layer[get(thumbBorderName)].keep, true);
set(layer[get(thumbBorderName)].width, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth));
set(layer[get(thumbBorderName)].height, get(layer[scrollAreaContainer-thumbnailsBar-theme02].itemHeight));
set(layer[get(thumbBorderName)].align, topleft);
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(layer[get(thumbBorderName)].url, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].url));
set(layer[get(thumbBorderName)].scale9grid, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].scale9grid));
set(layer[get(thumbBorderName)].parent, get(thumbName));
set(layer[get(thumbBorderName)].x, get(negativeOffsetX-thumbnailsBar-theme02));
set(layer[get(thumbBorderName)].y, get(negativeOffsetY-thumbnailsBar-theme02));
set(layer[get(thumbBorderName)].onclick, mainloadscene(%1); resetMouseBehavior-thumbnailsBar-theme02(); highlightThumb-thumbnailsBar-theme02(%1));
,
set(layer[get(thumbBorderName)].x, get(thumbIncPos-thumbnailsBar-theme02));
);
setupMouseBehavior-thumbnailsBar-theme02(%1, %4);
</action>
<action name="removeThumb-thumbnailsBar-theme02">
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '-thumbnailsBar-theme02');
removelayer(get(thumbName));
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '-thumbnailsBar-theme02');
removelayer(get(thumbBorderName));
</action>
<action name="setupArrows-thumbnailsBar-theme02">
if(layer[scrollAreaContainer-thumbnailsBar-theme02].adjustToContent,
hideArrows-thumbnailsBar-theme02();
,
ifnot(device.touchdevice,
if(layer[scrollAreaContainer-thumbnailsBar-theme02].width LT layer[thumbsScrollArea-thumbnailsBar-theme02].width,
showArrows-thumbnailsBar-theme02();
,
hideArrows-thumbnailsBar-theme02();
);
,
hideArrows-thumbnailsBar-theme02();
);
);
if(%1,
scrollToCurrentThumb-thumbnailsBar-theme02();
);
if(layer[scrollAreaContainer-thumbnailsBar-theme02].width LT layer[scrollAreaContainer-thumbnailsBar-theme02].itemWidth,
set(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].visible, false);
);
</action>
<action name="showArrows-thumbnailsBar-theme02">
set(layer[scrollPrevArrow-thumbnailsBar-theme02].visible, true);
set(layer[scrollNextArrow-thumbnailsBar-theme02].visible, true);
add(totalArrowSize-thumbnailsBar-theme02, get(layer[scrollPrevArrow-thumbnailsBar-theme02].width), get(layer[scrollNextArrow-thumbnailsBar-theme02].width));
sub(scrollAreaContainerSize-thumbnailsBar-theme02, get(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].pixelwidth), get(totalArrowSize-thumbnailsBar-theme02));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].width, get(scrollAreaContainerSize-thumbnailsBar-theme02));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].x, get(layer[scrollPrevArrow-thumbnailsBar-theme02].width));
set(layer[scrollPrevArrow-thumbnailsBar-theme02].onhover, scrollPrev-thumbnailsBar-theme02(););
set(layer[scrollNextArrow-thumbnailsBar-theme02].onhover, scrollNext-thumbnailsBar-theme02(););
set(layer[scrollPrevArrow-thumbnailsBar-theme02].onclick, scrollPrev-thumbnailsBar-theme02(get(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeedAcceleration)););
set(layer[scrollNextArrow-thumbnailsBar-theme02].onclick, scrollNext-thumbnailsBar-theme02(get(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeedAcceleration)););
set(layer[scrollPrevArrow-thumbnailsBar-theme02].onout, set(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed, get(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeedInit)););
set(layer[scrollNextArrow-thumbnailsBar-theme02].onout, set(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed, get(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeedInit)););
</action>
<action name="hideArrows-thumbnailsBar-theme02">
set(layer[scrollPrevArrow-thumbnailsBar-theme02].visible, false);
set(layer[scrollNextArrow-thumbnailsBar-theme02].visible, false);
mul(totalMargin-thumbnailsBar-theme02, get(layer[scrollAreaContainer-thumbnailsBar-theme02].marginX), 2);
sub(scrollAreaContainerSize-thumbnailsBar-theme02, get(layer[get(layer[scrollAreaContainer-thumbnailsBar-theme02].parent)].pixelwidth), get(totalMargin-thumbnailsBar-theme02));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].width, get(scrollAreaContainerSize-thumbnailsBar-theme02));
set(layer[scrollAreaContainer-thumbnailsBar-theme02].x, get(layer[scrollAreaContainer-thumbnailsBar-theme02].marginX));
</action>
<action name="scrollPrev-thumbnailsBar-theme02">
if(%1,
inc(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed, %1);
);
layer[thumbsScrollArea-thumbnailsBar-theme02].stopscrolling();
set(scrollLimit-thumbnailsBar-theme02, 0);
sub(scrollLimit-thumbnailsBar-theme02, get(layer[thumbsScrollArea-thumbnailsBar-theme02].width), get(layer[scrollAreaContainer-thumbnailsBar-theme02].width));
div(scrollLimit-thumbnailsBar-theme02, 2);
add(layer[thumbsScrollArea-thumbnailsBar-theme02].x, get(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed));
if(layer[thumbsScrollArea-thumbnailsBar-theme02].x GE scrollLimit-thumbnailsBar-theme02,
set(layer[thumbsScrollArea-thumbnailsBar-theme02].x, get(scrollLimit-thumbnailsBar-theme02));
);
if(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed LT layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeedMax,
inc(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed);
);
</action>
<action name="scrollNext-thumbnailsBar-theme02">
if(%1,
inc(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed, %1);
);
layer[thumbsScrollArea-thumbnailsBar-theme02].stopscrolling();
sub(scrollLimit-thumbnailsBar-theme02, get(layer[thumbsScrollArea-thumbnailsBar-theme02].width), get(layer[scrollAreaContainer-thumbnailsBar-theme02].width));
div(scrollLimit-thumbnailsBar-theme02, 2);
mul(scrollLimit-thumbnailsBar-theme02, -1);
sub(layer[thumbsScrollArea-thumbnailsBar-theme02].x, get(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed));
if(layer[thumbsScrollArea-thumbnailsBar-theme02].x LE scrollLimit-thumbnailsBar-theme02,
set(layer[thumbsScrollArea-thumbnailsBar-theme02].x, get(scrollLimit-thumbnailsBar-theme02));
);
if(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed LT layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeedMax,
inc(layer[scrollAreaContainer-thumbnailsBar-theme02].scrollSpeed);
);
</action>
<action name="resetMouseBehavior-thumbnailsBar-theme02">
set(j-thumbnailsBar-theme02-wait,25);
for( set(j-thumbnailsBar-theme02, 0), j-thumbnailsBar-theme02 LT scene.count, inc(j-thumbnailsBar-theme02),
if(j-thumbnailsBar-theme02-wait == j-thumbnailsBar-theme02,
add(j-thumbnailsBar-theme02-wait,25);
wait(0);
);
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, get(scene[get(j-thumbnailsBar-theme02)].name));
txtadd(thumbBorderName, '-thumbnailsBar-theme02');
setupMouseBehavior-thumbnailsBar-theme02(get(scene[get(j-thumbnailsBar-theme02)].name), get(scene[get(j-thumbnailsBar-theme02)].titleid));
);
</action>
<action name="setupMouseBehavior-thumbnailsBar-theme02">
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '-thumbnailsBar-theme02');
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '-thumbnailsBar-theme02');
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(layer[get(thumbBorderName)].crop, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropDefault));
set(layer[get(thumbBorderName)].onovercrop, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropHover));
set(layer[get(thumbBorderName)].ondowncrop, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropHover));
set(layer[get(thumbBorderName)].tooltip, %2);
set(layer[get(thumbBorderName)].onhover, showTooltip(get(align), tooltipStyle-thumbnailsBar-theme02));
set(layer[get(thumbBorderName)].onout, hideTooltip());
,
set(layer[get(thumbBorderName)].bgcolor, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderColorDefault));
set(layer[get(thumbBorderName)].bgalpha, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderAlphaDefault));
set(layer[get(thumbName)].tooltip, %2);
set(layer[get(thumbName)].onhover, showTooltip(get(align), tooltipStyle-thumbnailsBar-theme02));
set(layer[get(thumbName)].onover,
set(layer[get(parent)].bgcolor, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderColorHover));
set(layer[get(parent)].bgalpha, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderAlphaHover));
);
set(layer[get(thumbName)].onout,
set(layer[get(parent)].bgcolor, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderColorDefault));
set(layer[get(parent)].bgalpha, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderAlphaDefault));
hideTooltip();
);
);
</action>
<action name="highlightCurrentThumb-thumbnailsBar-theme02">
highlightThumb-thumbnailsBar-theme02(get(xml.scene));
</action>
<action name="highlightThumb-thumbnailsBar-theme02">
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '-thumbnailsBar-theme02');
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
set(layer[get(thumbBorderName)].crop, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropSelected));
set(layer[get(thumbBorderName)].onovercrop, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropSelected));
set(layer[get(thumbBorderName)].ondowncrop, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].cropSelected));
,
set(thumbName, 'thumb_');
txtadd(thumbName, %1);
txtadd(thumbName, '-thumbnailsBar-theme02');
set(layer[get(thumbBorderName)].bgcolor, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderColorSelected));
set(layer[get(thumbBorderName)].bgalpha, get(layer[thumbnailBorderSource-thumbnailsBar-theme02].borderAlphaSelected));
set(layer[get(thumbName)].onover, "");
set(layer[get(thumbName)].onout, hideTooltip(););
);
scrollToThumb-thumbnailsBar-theme02(%1);
</action>
<action name="scrollToCurrentThumb-thumbnailsBar-theme02">
scrollToThumb-thumbnailsBar-theme02(get(xml.scene));
</action>
<action name="scrollToThumb-thumbnailsBar-theme02">
set(thumbName, 'thumb_');
set(thumbBorderName, 'thumbBorder_');
txtadd(thumbName, %1);
txtadd(thumbName, '-thumbnailsBar-theme02');
txtadd(thumbBorderName, %1);
txtadd(thumbBorderName, '-thumbnailsBar-theme02');
set(posX-thumbnailsBar-theme02, 0);
if(layer[thumbnailBorderSource-thumbnailsBar-theme02].url,
div(halfThumbWidth-thumbnailsBar-theme02, get(layer[get(thumbName)].width), 2);
ifnot(layer[scrollAreaContainer-thumbnailsBar-theme02].adjustToContent,
add(posX-thumbnailsBar-theme02, get(layer[get(thumbName)].x), get(halfThumbWidth-thumbnailsBar-theme02));
);
if(layer[thumbsScrollArea-thumbnailsBar-theme02].scrolltocenter,
layer[thumbsScrollArea-thumbnailsBar-theme02].scrolltocenter(get(posX-thumbnailsBar-theme02), 0);
);
,
div(halfThumbWidth-thumbnailsBar-theme02, get(layer[get(thumbBorderName)].width), 2);
ifnot(layer[scrollAreaContainer-thumbnailsBar-theme02].adjustToContent,
add(posX-thumbnailsBar-theme02, get(layer[get(thumbBorderName)].x), get(halfThumbWidth-thumbnailsBar-theme02));
);
if(layer[thumbsScrollArea-thumbnailsBar-theme02].scrolltocenter,
layer[thumbsScrollArea-thumbnailsBar-theme02].scrolltocenter(get(posX-thumbnailsBar-theme02), 0);
);
);
</action>
<!-- ************************************************** -->
<!-- Colored Area : bottom -->
<!-- ************************************************** -->
<layer name="coloredarea"
keep="true"
type="container"
align="bottom"
x="0"
y="84"
zorder="6"
height="2"
width="100%"
visible="false"
bgcolor="0xc0c0c0"
bgalpha="0.8"
/>
<events name="coloredareaevents"
onTourStart="showcoloredarea();"
hidetourcontrols="hidecoloredarea();"
showtourcontrols="showcoloredarea();"
keep="true"/>
<action name="hidecoloredarea">
set(layer[coloredarea].visible, false);
</action>
<action name="showcoloredarea">
set(layer[coloredarea].visible, true);
</action>
<!-- ************************ -->
<!-- Title : current panorama -->
<!-- ************************ -->
<events name="title_currentpanorama_events"
onTourStart="showtitle_currentpanorama();"
hidetourcontrols="hidetitle_currentpanorama();"
showtourcontrols="showtitle_currentpanorama();"
onnewpano="updatetitle_currentpanorama();"
keep="true" />
<action name="hidetitle_currentpanorama">set(layer[title_currentpanorama].visible, false);</action>
<action name="showtitle_currentpanorama">set(layer[title_currentpanorama].visible, true );</action>
<action name="updatetitle_currentpanorama">
getmessage(layer[title_currentpanorama].html, get(scene[get(xml.scene)].titleid));
escape(layer[title_currentpanorama].html);
</action>
<layer name="title_currentpanorama" keep="true" zorder="7"
url="%FIRSTXML%/graphics/textfield.swf"
align="bottomleft" x="10" y="30" width="100%" autoheight="true"
background="false" capture="false" handcursor="false" selectable="false" enabled="false"
borderwidth="0"
alpha="0.500007629510948"
visible="false"
textshadow="1"
css="text-align:left;
color:#ffffff;
font-family:Arial;
font-weight:bold;
font-size:16px;"/>
<!-- 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>
<!-- Hide / Show Thumbnails -->
<action name="hideTourThumbnails">set(tour_displaythumbnails, false);events.dispatch(hidetourthumbnails);</action>
<action name="showTourThumbnails">set(tour_displaythumbnails, true); events.dispatch(showtourthumbnails);</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>
<!-- MAP -->
<action name="hideMap">set(tour_displaymap, false);events.dispatch(onhidetourmap);</action>
<action name="showMap">set(tour_displaymap, true); events.dispatch(onshowtourmap);</action>
</krpano>