123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- <krpano version="1.20" title="Virtual Tour" showerrors="false">
- <include url="../skin/vtourskin.xml" />
- <include url="../skin/loadingpercenttext.xml" />
- <skin_settings maps="true"
- maps_type="google"
- maps_bing_api_key=""
- maps_google_api_key=""
- maps_zoombuttons="false"
- maps_loadonfirstuse="false"
- gyro="true"
- gyro_keeplookingdirection="false"
- webvr="true"
- webvr_keeplookingdirection="true"
- webvr_prev_next_hotspots="true"
- littleplanetintro="false"
- followmousecontrol="false"
- title="true"
- thumbs="true"
- thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
- thumbs_opened="false"
- thumbs_text="false"
- thumbs_dragging="true"
- thumbs_onhoverscrolling="false"
- thumbs_scrollbuttons="false"
- thumbs_scrollindicator="false"
- thumbs_loop="false"
- tooltips_buttons="false"
- tooltips_thumbs="false"
- tooltips_hotspots="false"
- tooltips_mapspots="false"
- deeplinking="false"
- loadscene_flags="MERGE"
- loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
- loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
- loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
- loadingtext="loading..."
- layout_width="100%"
- layout_maxwidth="814"
- controlbar_width="-24"
- controlbar_height="40"
- controlbar_offset="20"
- controlbar_offset_closed="-40"
- controlbar_overlap.no-fractionalscaling="10"
- controlbar_overlap.fractionalscaling="0"
- design_skin_images="vtourskin.png"
- design_bgcolor="0x2D3E50"
- design_bgalpha="0.8"
- design_bgborder="0"
- design_bgroundedge="1"
- design_bgshadow="0 4 10 0x000000 0.3"
- design_thumbborder_bgborder="3 0xFFFFFF 1.0"
- design_thumbborder_padding="2"
- design_thumbborder_bgroundedge="0"
- design_text_css="color:#FFFFFF; font-family:Arial;"
- design_text_shadow="1"
- />
- <control
- bouncinglimits="true"
- />
- <action name="startup" autorun="onstart">
- if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
- loadscene(get(startscene), null, MERGE);
- if(startactions !== null, startactions() );
- </action>
- <action name="add_all_the_time_tooltip_for_VR">
- txtadd(tooltipname, 'vrtooltip_', get(name));
- addhotspot(get(tooltipname));
- set(hotspot[get(tooltipname)],
- type=text,
- edge=get(hotspot[get(name)].edge),
- distorted=get(hotspot[get(name)].distorted),
- ath=get(hotspot[get(name)].ath),
- atv=get(hotspot[get(name)].atv),
- oy=-36,
- ox=0,
- vcenter=true,
- padding='3 8',
- mipmapping=true,
- oversampling=2,
- bg=true,
- bgcolor=rgba(18, 18, 18, 0.8),
- bgroundedge=2,
- bgalpha=0.8,
- bgborder=0,
- bgshadow='0 0 0 0x000000 0',
- css=calc(device.mobile ? 'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;':'text-align:left; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;'),
- txtshadow='0 0 0 0x000000 0';
- enabled=true,
- );
- txtadd(hotspot[get(tooltipname)].onclick,'callwith(hotspot[',get(name),'],onclick)');
- if(text == '' OR text === null,
-
- copy(hotspot[get(tooltipname)].html,scene[get(linkedscene)].title),
- copy(hotspot[get(tooltipname)].html,text);
-
- );
- if(lp_running == false,
- set(hotspot[get(tooltipname)].visible,true);
- ,
- if(!webvr.isenabled,
- if(lp_running == true,
- set(hotspot[get(tooltipname)].visible,false);
- set(hotspot[get(tooltipname)].mark2,true);
- );
- );
- );
- if(hotspot[get(name)].normal == false,
-
- set(hotspot[get(tooltipname)].normal,false);
- set(hotspot[get(tooltipname)].onloaded,
- if(webvr.isenabled,
- set(visible,false);
- ,
- if(lp_running == false OR lp_running == null OR lp_running === null,
- set(visible,true);
- );
- );
- );
-
- );
- </action>
- <action name="draghotspot">
- spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, calc(mouse.stagex LT stagewidth/2 ? 'l' : 'r'));
- sub(drag_adjustx, mouse.stagex, hotspotcenterx);
- sub(drag_adjusty, mouse.stagey, hotspotcentery);
- asyncloop(pressed,
- sub(dx, mouse.stagex, drag_adjustx);
- sub(dy, mouse.stagey, drag_adjusty);
- screentosphere(dx, dy, ath, atv);
- <!-- print_hotspot_pos(); -->
- jscall(calc('document.getElementById(window.activekrpanowindow).hooks.hookFn("'+get(name)+','+get(ath)+','+get(atv)+'")'));
- <!-- js(getHotspotPoint(get(name),get(ath),get(atv));); -->
- );
- </action>
- <!-- <action name="test" scope="local">
- jscall(calc('window.krp.hooks.hookFn()'));
- </action> -->
- <style name="skin_filter" opacity="0.5"/>
- <scene name="scene_99" title="99" onstart="" thumburl="" lat="" lng="" heading="0.0">
- <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="95" fovmin="70" fovmax="120" limitview="auto" />
- <preview url="" />
- <image>
- <cube url="" />
- </image>
- </scene>
- <events name="nadirlogorotation"
- keep="true"
- onviewchange="copy(hotspot[nadirlogo].rotate,view.hlookat);"
- />
- </krpano>
|