tour.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <krpano maxwidth="2048" maxheight="1024" logkey="false" showerrors="false" debugmode="false">
  2. <renderer devicescale="auto" gpu="true" />
  3. <plugin name="webvr" devices="vr_headset" html5="prefer-webgl" />
  4. <include url="skin/vtourskin.xml" />
  5. <skin_settings maps="false"
  6. maps_type="google"
  7. maps_bing_api_key=""
  8. maps_google_api_key=""
  9. maps_zoombuttons="false"
  10. maps_loadonfirstuse="true"
  11. gyro="true"
  12. gyro_keeplookingdirection="false"
  13. webvr="true"
  14. webvr_keeplookingdirection="false"
  15. webvr_prev_next_hotspots="false"
  16. autotour="false"
  17. littleplanetintro="false"
  18. followmousecontrol="false"
  19. title="false"
  20. thumbs="false"
  21. thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160"
  22. thumbs_opened="false"
  23. thumbs_text="false"
  24. thumbs_dragging="false"
  25. thumbs_onhoverscrolling="false"
  26. thumbs_scrollbuttons="false"
  27. thumbs_scrollindicator="false"
  28. thumbs_loop="false"
  29. tooltips_buttons="false"
  30. tooltips_thumbs="false"
  31. tooltips_hotspots="false"
  32. tooltips_mapspots="false"
  33. deeplinking="false"
  34. loadscene_flags="MERGE|KEEPVIEW"
  35. loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
  36. loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
  37. loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)"
  38. loadingtext=""
  39. layout_width="100%"
  40. layout_maxwidth="814"
  41. controlbar_width="-24"
  42. controlbar_height="0"
  43. controlbar_offset="20"
  44. controlbar_offset_closed="-1555540"
  45. controlbar_overlap.no-fractionalscaling="10"
  46. controlbar_overlap.fractionalscaling="0"
  47. design_skin_images="vtourskin.png"
  48. design_bgcolor="0x2D3E50"
  49. design_bgalpha="0.8"
  50. design_bgborder="0"
  51. design_bgroundedge="1"
  52. design_bgshadow="0 4 10 0x000000 0.3"
  53. design_thumbborder_bgborder="3 0xFFFFFF 1.0"
  54. design_thumbborder_padding="2"
  55. design_thumbborder_bgroundedge="0"
  56. design_text_css="color:#FFFFFF; font-family:Arial;"
  57. design_text_shadow="1"
  58. />
  59. <!-- <scene name="test12">
  60. <image>
  61. <cube url="" />
  62. </image>
  63. <view hlookat="90.0" vlookat="-60.0" fovtype="HFOV" fov="-1" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
  64. </scene> -->
  65. <!-- <contextmenu fullscreen="false" versioninfo="false" /> -->
  66. <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>
  67. <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>
  68. <action name="draghotspot">
  69. spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l');
  70. sub(drag_adjustx, mouse.stagex, hotspotcenterx);
  71. sub(drag_adjusty, mouse.stagey, hotspotcentery);
  72. asyncloop(pressed,
  73. sub(dx, mouse.stagex, drag_adjustx);
  74. sub(dy, mouse.stagey, drag_adjusty);
  75. screentosphere(dx, dy, ath, atv);
  76. roundval(ath, 3);
  77. roundval(atv, 3);
  78. js(GetHotspot(get(name),get(ath), get(atv))));
  79. )
  80. </action>
  81. <action name="draghotspot1">
  82. screentosphere(mouse.x,mouse.y,toh,tov);
  83. js(GetHotspot1(get(toh), get(tov),get(name)));
  84. </action>
  85. <style name="skin_filter" opacity="0.5"/>
  86. <scene name="test1" title="99" onstart="" thumburl="" lat="" lng="" heading="0.0">
  87. <!-- <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="95" fovmin="70" fovmax="120" limitview="auto"/> -->
  88. <!-- <preview url=""/> -->
  89. <view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="95" fovmin="70" fovmax="120" limitview="auto" />
  90. <preview url="" />
  91. <image>
  92. <cube url="" />
  93. </image>
  94. </scene>
  95. <!-- <events name="nadirlogorotation" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate,view.hlookat);"/> -->
  96. <memory maxmem="100" devices="Desktop" />
  97. <memory maxmem="80" devices="Tablet" />
  98. <memory maxmem="40" devices="iOS" />
  99. <memory maxmem="40" devices="iOS7.1" />
  100. <events name="sync" keep="true" onclick="draghotspot1();"
  101. onmousedown="draghotspot1();"
  102. />
  103. <!-- <events name="" keep="true" /> -->
  104. </krpano>