oldvtourskin.xml 102 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574
  1. <krpano>
  2. <skin_settings maps="false" maps_type="bing" maps_bing_api_key="" maps_zoombuttons="false" gyro="true" webvr="true"
  3. littleplanetintro="false" title="false" thumbs="true" thumbs_width="120" thumbs_height="80"
  4. thumbs_padding="10" thumbs_crop="0|40|240|160" thumbs_opened="false" thumbs_text="true"
  5. thumbs_dragging="true" thumbs_onhoverscrolling="false" thumbs_scrollbuttons="false"
  6. thumbs_scrollindicator="false" thumbs_loop="false" tooltips_buttons="false" tooltips_thumbs="false"
  7. tooltips_hotspots="false" tooltips_mapspots="false" deeplinking="false" loadscene_flags="MERGE"
  8. loadscene_blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
  9. loadscene_blend_prev="SLIDEBLEND(0.5, 180, 0.75, linear)"
  10. loadscene_blend_next="SLIDEBLEND(0.5, 0, 0.75, linear)" loadingtext="载入中..." layout_width="100%"
  11. layout_maxwidth="100%" controlbar_width="100%" controlbar_height="0" controlbar_offset="0"
  12. controlbar_offset_closed="-40" controlbar_overlap.no-fractionalscaling="10"
  13. controlbar_overlap.fractionalscaling="0" design_skin_images="vtourskin.png" design_bgcolor="0x000000"
  14. design_bgalpha="0.5" design_bgborder="0" design_bgroundedge="1" design_bgshadow="0 4 10 0x000000 0.3"
  15. design_thumbborder_bgborder="3 0xFDE428 1.0" design_thumbborder_padding="2"
  16. design_thumbborder_bgroundedge="0" design_text_css="color:#FFFFFF; font-family:Arial;"
  17. design_text_shadow="1"/>
  18. <include url="%SWFPATH%/plugins/swipe_gallery.xml"/>
  19. <vtourskinxmlpath url="./"/>
  20. <include url="%SWFPATH%/plugins/tooltip.xml"/>
  21. <settings name="auto_thumbs" thumb_size="90" thumb_background_size="92" thumb_spacing="20" left="0" right="0"
  22. bottom="5" albums_right="0"/>
  23. <events name="auto_thumbs" keep="true" onresize="resize_auto_thumbs()" onnewscene="update_active_thumb();"
  24. onxmlcomplete="ifnot(thumbs_intitialized, create_auto_thumbs(); set(thumbs_intitialized, true););"
  25. onmousedown="hide_container(get(layer[albums].current_container)); fadein_children(albums_scrollarea); set(layer[new_thumbs].visible, false); set(layer[albums].current_container, null);"/>
  26. <layer name="thumbs_background" scalechildren="true" scale="1" type="container" align="leftbottom" x="0" y="-102"
  27. width="100%" height="102" maskchildren="false" bgcolor="0x000000" bgalpha="0.5" keep="true"
  28. state="closed" vr="false"></layer>
  29. <layer name="auto_thumbs" type="container" keep="true" preload="true" scalechildren="true" scale="1"
  30. align="leftbottom" x="0" y="0" width="100%" height="160" maskchildren="false" bgcolor="0x000000"
  31. bgalpha="0.0" parent="thumbs_background">
  32. <layer name="albums" scalechildren="true" scale="1" type="container" align="leftbottom" x="0" y="0" width="100%"
  33. height="160" maskchildren="false" bgcolor="0x000000" bgalpha="0.0"
  34. onout="delayedcall(disable_thumbs, .25, set(layer[new_thumbs].visible, false));">
  35. <layer name="albums_left_shadow" style="scroll_shadow" align="left" ox="-100%" rotate="180"/>
  36. <layer name="albums_right_shadow" style="scroll_shadow" align="right"/>
  37. <layer name="albums_scrollarea" style="scrollarea" width="0" align="center"
  38. onscroll="move_thumbs(); show_or_hide_shadows();"
  39. onout="delayedcall(fadein, .25, fadein_children(name))"></layer>
  40. </layer>
  41. <layer name="new_thumbs" scalechildren="true" scale="1" type="container" align="leftbottom" x="0" oy="0"
  42. width="100%" height="160" visible="false" maskchildren="false" bgcolor="0x000000" bgalpha="0.0"
  43. onover="stopdelayedcall(fadein); stopdelayedcall(disable_thumbs); set(visible, true);"
  44. onout="delayedcall(disable_thumbs, .25, set(layer[new_thumbs].visible, false));">
  45. <layer name="thumbs_left_shadow" style="scroll_shadow" align="left" ox="-100%" rotate="180"/>
  46. <layer name="thumbs_right_shadow" style="scroll_shadow" align="right"/>
  47. <layer name="thumbs_scrollarea" width="100%" style="scrollarea" maskchildren="false"
  48. onscroll="show_or_hide_shadows();"></layer>
  49. </layer>
  50. </layer>
  51. <style name="album_thumburl" align="leftbottom" keep="true" x="8" y="8"
  52. alpha="1" width="82" height="81"
  53. onclick="show_thumbs();"
  54. />
  55. <style name="album" url="%SWFPATH%/skin/group2.png" align="leftbottom" keep="true" oy="0" alpha="1" width="98" height="97" y="-3"
  56. blendmode="layer" as="album"
  57. ondown="layer[thumbs_scrollarea].scrolltocenter(0,0);" />
  58. <style type="container" name="thumb" align="leftbottom" bgcolor="0xffffff" bgalpha="0.5" bgborder="0" bgroundedge="2" bgshadow="" maskchildren="true" bgcapture="true" keep="true" width="92" height="92"
  59. onover="fadeout_siblings(name); fadeout_siblings(album);" blendmode="layer"
  60. onclick="loadscene(get(scene), null, MERGE, BLEND(1));if(parent == albums_scrollarea, hide_container(get(layer[albums].current_container)); );js(setUrl(get(scene)));"/>
  61. <style name="thumb_image" ox="0" oy="0" width="0" height="0" keep="true" enabled="false"/>
  62. <style name="thumbs_container" scalechildren="true" scale="1" type="container" align="leftbottom" x="0" y="-102"
  63. width="100%" height="102" maskchildren="false" bgcolor="0x000000" bgalpha="0.5" keep="true"
  64. visible="true" state="closed" vr="false"
  65. />
  66. <style name="sub_thumbs_container"
  67. direction="h" onloaded="setcenter(0,0);"
  68. scalechildren="true" scale="1" type="container" align="cneter" x="0" y="-5"
  69. height="102" maskchildren="false" keep="true" width="0"
  70. visible="true" state="closed" vr="false" onscroll="move_thumbs(); "
  71. />
  72. <style name="scrollarea" url="%SWFPATH%/plugins/scrollarea.swf" keep="true"
  73. alturl="%SWFPATH%/plugins/scrollarea.js" direction="h" onloaded="setcenter(0,0);"
  74. onhover_autoscrolling="true"/>
  75. <style name="thumbs_count" url="%SWFPATH%/plugins/textfield.swf" keep="true" scale="2" align="rightbottom" x="16"
  76. y="16" html="1" zorder="999999999" width="12" height="11" padding="0 3" roundedge="4" alpha=".95"
  77. shadow="0.01" shadowalpha=".3" embeddedfontsd="true" enabled="false" onloaded=""
  78. css="color:#777777;font-family: sans-serif;font-size: 14px;line-height: 23px;font-weight:400;text-align: center;"/>
  79. <style name="scroll_shadow" url="%SWFPATH%/skin/shadow.png" keep="true" x="0" y="0" zorder="99"/>
  80. <!-- 缩略图container -->
  81. <style name="thumb_image_title_container"
  82. type="container"
  83. bgcolor="0x000000"
  84. bgalpha="0.5"
  85. y="35"
  86. height="20"
  87. width="100%"
  88. keep="true"
  89. align="center"
  90. />
  91. <!-- 缩略图名称 -->
  92. <style name="thumb_image_title_word"
  93. url="%SWFPATH%/plugins/textfield.swf"
  94. background="false"
  95. css="color:#FFFFFF;line-height:16px;font-size:12px;text-align:center"
  96. enabled="false"
  97. width="100%"
  98. keep="true"
  99. height="20"
  100. />
  101. <action name="create_auto_thumbs">
  102. if (scene.count GT 1
  103. ,
  104. copy(thumb_size,settings[auto_thumbs].thumb_background_size);
  105. copy(thumb_image_size, settings[auto_thumbs].thumb_size);
  106. copy(style[thumb_image].width, thumb_image_size);
  107. copy(style[thumb_image].height, thumb_image_size);
  108. copy(style[thumb_image].oy, thumb_size);
  109. sub(style[thumb_image].oy, thumb_image_size);
  110. div(style[thumb_image].oy, 2);
  111. copy(style[thumb_image].ox,style[thumb_image].oy);
  112. copy(layer[thumbs_scrollarea].height, thumb_size);
  113. copy(layer[albums_scrollarea].height,thumb_size);
  114. copy(layer[albums].height, thumb_size);
  115. copy(layer[new_thumbs].height, thumb_size);
  116. copy(layer[new_thumbs].y,thumb_size);
  117. add(thumb_width, thumb_size, settings[auto_thumbs].thumb_spacing);
  118. set(album_index, 0);
  119. set(thumb_index, 0);
  120. for(set(i,0), i LT scene.count, inc(i)
  121. ,
  122. <!-- txtadd(album_image_name,'album_image_',get(i)); -->
  123. if(scene[0].album,
  124. if (scene[get(i)].album !== null
  125. ,
  126. txtadd(album_name,'album_',get(i));
  127. addlayer(get(album_name));
  128. layer[get(album_name)].loadstyle(album);
  129. set(layer[get(album_name)].parent, albums_scrollarea);
  130. set(layer[get(album_name)].album_index,get(album_index));
  131. mul(layer[get(album_name)].x, get(album_index),get(thumb_width));
  132. if(i==0, set(layer[get(album_name)].url,"%SWFPATH%/skin/group1.png"); );
  133. <!-- 缩略图 -->
  134. txtadd(album_thumburl,get(album_name),"_thumburl");
  135. addlayer(get(album_thumburl));
  136. layer[get(album_thumburl)].loadstyle(album_thumburl);
  137. set(layer[get(album_thumburl)].parent,get(album_name));
  138. set(layer[get(album_thumburl)].url,get(scene[get(i)].thumburl));
  139. <!-- 缩略图标题 -->
  140. txtadd(album_title_con,'album_title_con_',get(i));
  141. addlayer(get(album_title_con));
  142. layer[get(album_title_con)].loadstyle(thumb_image_title_container);
  143. set(layer[get(album_title_con)].parent, get(album_thumburl));
  144. set(layer[get(album_title_con)].y, 30);
  145. txtadd(album_title_word,'album_title_word_',get(i));
  146. addlayer(get(album_title_word));
  147. set(layer[get(album_title_word)].html, get(scene[get(i)].album));
  148. layer[get(album_title_word)].loadstyle(thumb_image_title_word);
  149. set(layer[get(album_title_word)].parent, get(album_title_con));
  150. add(layer[albums_scrollarea].width, get(thumb_width));
  151. txtadd(container_name,get(album_name), '_container');
  152. set(layer[get(album_thumburl)].container, get(container_name));
  153. inc(album_index);
  154. <!-- txtadd(container_name, get(album_name),'_container'); -->
  155. addlayer(get(container_name));
  156. layer[get(container_name)].loadstyle(thumbs_container);
  157. <!-- set(layer[get(container_name)].style,thumbs_container); -->
  158. set(layer[get(container_name)].album,get(album_name));
  159. txtadd(scroll_sub_container,get(container_name),'_scroll');
  160. addlayer(get(scroll_sub_container));
  161. layer[get(scroll_sub_container)].loadstyle(sub_thumbs_container);
  162. if(device.flash,
  163. set(layer[get(scroll_sub_container)].url,'%SWFPATH%/plugins/scrollarea.swf');
  164. ,
  165. set(layer[get(scroll_sub_container)].url,'%SWFPATH%/plugins/scrollarea.js');
  166. );
  167. set(layer[get(scroll_sub_container)].parent,get(container_name));
  168. set(thumb_index, 0);
  169. );
  170. create_thumb();
  171. set(layer[get(thumb_name)].parent, get(scroll_sub_container));
  172. add(layer[get(scroll_sub_container)].width, get(thumb_width));
  173. ,
  174. <!-- jscall(calc('console.log("krpano version: ")')); -->
  175. create_thumb();
  176. set(layer[get(thumb_name)].parent,albums_scrollarea);
  177. add(layer[albums_scrollarea].width, get(thumb_width));
  178. ); <!--if 结束-->
  179. ); <!--for 结束-->
  180. trace(layer[albums].width);
  181. trace(layer[auto_thumbs].width);
  182. trace(layer[auto_thumbs].pixelwidth);
  183. trace(layer[auto_thumbs].pixelheight);
  184. );
  185. if(settings[auto_thumbs].onstart, settings[auto_thumbs].onstart(); );
  186. </action>
  187. <action name="create_thumb">
  188. txtadd(thumb_name,'thumb_', get(i));
  189. addlayer(get(thumb_name));
  190. layer[get(thumb_name)].loadstyle(thumb);
  191. <!-- set(layer[get(thumb_name)].parent, get(container_name)); -->
  192. copy(layer[get(thumb_name)].scene, scene[get(i)].name);
  193. copy(layer[get(thumb_name)].album, album_name);
  194. set(layer[get(thumb_name)].thumb_index, get(thumb_index));
  195. mul(layer[get(thumb_name)].x, get(thumb_index),get(thumb_width));
  196. <!-- jscall(calc('console.log(" '+thumb_name+' x : '+layer[get(thumb_name)].x+'")')); -->
  197. <!-- if(container_name, add(layer[get(container_name)].width, get(thumb_width));); -->
  198. <!-- copy(layer[get(thumb_name)].tooltip, scene[get(i)].title);
  199. copy(layer[get(thumb_name)].tooltip_oy,layer[get(album_name)].tooltip_oy); -->
  200. txtadd(thumb_image_name,'thumb_image_',get(i)); addlayer(get(thumb_image_name));
  201. set(layer[get(thumb_image_name)].url,get( scene[get(i)].thumburl));
  202. layer[get(thumb_image_name)].loadstyle(thumb_image); set(layer[get(thumb_image_name)].parent, get(thumb_name));
  203. <!-- 缩略图标题 -->
  204. txtadd(thumb_image_title_con,'thumb_image_title_con_',get(i)); addlayer(get(thumb_image_title_con));
  205. layer[get(thumb_image_title_con)].loadstyle(thumb_image_title_container);
  206. set(layer[get(thumb_image_title_con)].parent, get(thumb_image_name));
  207. txtadd(thumb_image_title_word,'thumb_image_title_word_',get(i)); addlayer(get(thumb_image_title_word));
  208. set(layer[get(thumb_image_title_word)].html, get(scene[get(i)].title));
  209. layer[get(thumb_image_title_word)].loadstyle(thumb_image_title_word);
  210. set(layer[get(thumb_image_title_word)].parent, get(thumb_image_title_con));
  211. inc(thumb_index); if(i == 0, copy(layer[auto_thumbs].active_album, album_name);
  212. copy(layer[auto_thumbs].active_thumb, thumb_name); );
  213. </action>
  214. <action name="resize_auto_thumbs">copy(layer[auto_thumbs].width, area.pixelwidth);
  215. sub(layer[auto_thumbs].width,settings[auto_thumbs].left); sub(layer[auto_thumbs].width,
  216. settings[auto_thumbs].right); copy(layer[auto_thumbs].x, settings[auto_thumbs].left);
  217. copy(layer[auto_thumbs].y,settings[auto_thumbs].bottom); copy(layer[albums].width, layer[auto_thumbs].width);
  218. sub(layer[albums].width,settings[auto_thumbs].albums_right); add(layer[albums].width,
  219. settings[auto_thumbs].right);
  220. </action>
  221. <action name="show_thumbs">
  222. stopdelayedcall(disable_thumbs);
  223. if(!last_parent,set(last_parent,'album_0'););
  224. set(layer[get(last_parent)].url,"%SWFPATH%/skin/group2.png");
  225. if(container == last_show_sub_container AND layer[get(container)].state=='opened'
  226. ,
  227. set(layer[get(container)].state, 'closed');
  228. tween(layer[get(container)].y, -102, 0.5, easeOutQuint);
  229. <!-- set(layer[get(last_parent)].url,"%SWFPATH%/skin/group2.png"); -->
  230. ,
  231. if(layer[get(last_show_sub_container)].state=='opened',
  232. set(layer[get(last_show_sub_container)].state, 'closed');
  233. tween(layer[get(last_show_sub_container)].y, -102, 0.5, easeOutQuint);
  234. );
  235. if(layer[get(container)].state=='closed',
  236. set(layer[get(container)].state, 'opened');
  237. tween(layer[get(container)].y, 202, 0.5, easeOutQuint);
  238. set(last_show_sub_container,get(container));
  239. set(last_parent,get(parent));
  240. set(layer[get(parent)].url,"%SWFPATH%/skin/group1.png");
  241. );
  242. );
  243. <!-- set(layer[thumbs_background].visible, true); -->
  244. <!-- if(
  245. show,
  246. set(layer[thumbs_background].state, 'opened');
  247. tween(layer[thumbs_background].y, 97, 0.5, easeOutQuint);
  248. set(layer[thumbs_background].visible, true);
  249. ,
  250. set(layer[thumbs_background].state, 'closed');
  251. tween(layer[thumbs_background].y, -102, 0.5, easeOutQuint,
  252. set(layer[thumbs_background].visible, false););
  253. );
  254. -->
  255. <!-- if (layer[albums].current_container,
  256. copy(layer[get(container)].zorder,layer[get(layer[albums].current_container)].zorder);
  257. );
  258. inc(layer[get(container)].zorder);
  259. set(layer[albums].current_album, get(name));
  260. set(layer[albums].current_container, get(container));
  261. set(layer[get(container)].visible, true);
  262. tween_alpha(get(container), 1, .25);
  263. set(layer[new_thumbs].visible, true);
  264. set(layer[thumbs_scrollarea].width,get(layer[get(container)].width));
  265. if (device.pixelratio == 1,
  266. if(device.html5,mul(layer[thumbs_scrollarea].width, 2););
  267. ); -->
  268. <!-- move_thumbs();
  269. show_or_hide_shadows(); -->
  270. </action>
  271. <action name="hide_thumbs">delayedcall(get(container), 0, hide_container(get(container)); );</action>
  272. <action name="hide_container">tween(layer[%1].alpha, 0, .25, easeOutQuad, set(layer[%1].visible, false));
  273. tween(layer[thumbs_left_shadow].alpha, 0, .1); tween(layer[thumbs_right_shadow].alpha, 0, .1);
  274. </action>
  275. <action name="fadeout_siblings">for(set(i, 0), i LT layer.count, inc(i), if(layer[get(i)].parent ==
  276. layer[get(%1)].parent, if(layer[get(i)].parent == albums_scrollarea, if(scene[0].album, tween_alpha(get(i), .6);
  277. , tween_alpha(get(i), .85); ); , tween_alpha(get(i), .85); ); ) ); tween_alpha(get(%1), 1);
  278. </action>
  279. <action name="update_active_thumb">
  280. <!-- 自动获取当前场景名称 -->
  281. txtadd(current_scene_title,'',get(scene[get(xml.scene)].title));
  282. set(layer[show_current_scene_title].html,get(current_scene_title));
  283. <!-- if(scene.count GT 1 , -->
  284. txtadd(active_thumb_name, 'thumb_', get(scene[get(xml.scene)].index));
  285. set(layer[get(layer[auto_thumbs].active_thumb)].bgcolor,'0xffffff');
  286. set(layer[get(layer[auto_thumbs].active_thumb)].bgalpha,0.5);
  287. copy(layer[auto_thumbs].active_thumb,active_thumb_name);
  288. set(layer[get(layer[auto_thumbs].active_thumb)].bgcolor,'0xF6A600');
  289. set(layer[get(layer[auto_thumbs].active_thumb)].bgalpha,1);
  290. if(layer[get(layer[auto_thumbs].active_album)].as == album,
  291. copy(layer[get(layer[auto_thumbs].active_album)].crop,album_crop); ,
  292. if(layer[auto_thumbs].active_album,copy(layer[get(layer[auto_thumbs].active_album)].crop,thumb_crop)); );
  293. copy(layer[auto_thumbs].active_album,layer[get(active_thumb_name)].album);
  294. if(layer[get(layer[auto_thumbs].active_album)].as == album,
  295. copy(layer[get(layer[auto_thumbs].active_album)].crop,active_album_crop); ,
  296. if(layer[auto_thumbs].active_album, copy(layer[get(layer[auto_thumbs].active_album)].crop,active_thumb_crop); )
  297. );
  298. <!-- ); -->
  299. </action>
  300. <action name="fadein_children">for(set(i, 0), i LT layer.count, inc(i), if(layer[get(i)].parent == %1,
  301. tween_alpha(get(i), 1); ) );
  302. </action>
  303. <action name="tween_alpha">tween(layer[%1].alpha, %2, .25);</action>
  304. <action name="move_thumbs">if(layer[albums].current_container, copy(thumbs_scrollarea_width,
  305. layer[thumbs_scrollarea].width); if (device.pixelratio == 1, if (device.html5, div(thumbs_scrollarea_width, 2);
  306. ); ); if (layer[new_thumbs].pixelwidth GE thumbs_scrollarea_width, mul(a,
  307. thumb_size,layer[get(layer[albums].current_album)].album_index); add(a, thumb_size); div(b, thumb_size, 2);
  308. div(c,layer[get(layer[albums].current_container)].width, 2); sub(result, a, b); sub(result, c);
  309. set(layer[get(layer[albums].current_container)].x, get(result));
  310. sub(layer[get(layer[albums].current_container)].x, get(layer[albums_scrollarea].loverflow));
  311. if(layer[get(layer[albums].current_container)].x GT 0,
  312. add(ox_plus_thumbs_width,layer[get(layer[albums].current_container)].x,
  313. layer[get(layer[albums].current_container)].width); if(ox_plus_thumbs_width GT layer[new_thumbs].pixelwidth,
  314. sub(dif, ox_plus_thumbs_width, layer[new_thumbs].pixelwidth); sub(layer[get(layer[albums].current_container)].x,
  315. dif); ); , set(layer[get(layer[albums].current_container)].x, 0); ); ,
  316. set(layer[get(layer[albums].current_container)].x,0); ); );
  317. </action>
  318. <action name="show_or_hide_shadows">if(layer[albums_scrollarea].loverflow GT 3,
  319. tween(layer[albums_left_shadow].alpha, 1, .1); , tween(layer[albums_left_shadow].alpha, 0, .1); );
  320. if(layer[albums_scrollarea].roverflow GT 3, tween(layer[albums_right_shadow].alpha, 1, .1); ,
  321. tween(layer[albums_right_shadow].alpha, 0, .1); ); if(layer[thumbs_scrollarea].loverflow GT 3,
  322. tween(layer[thumbs_left_shadow].alpha, 1, .1); , tween(layer[thumbs_left_shadow].alpha, 0, .1); );
  323. if(layer[thumbs_scrollarea].roverflow GT 3, tween(layer[thumbs_right_shadow].alpha, 1, .1); ,
  324. tween(layer[thumbs_right_shadow].alpha, 0, .1); );
  325. </action>
  326. <control mouse="drag" touch="drag" zoomtocursor="false" zoomoutcursor="false" draginertia="0.1" dragfriction="0.9"
  327. movetoaccelerate="1.0" movetospeed="10.0" movetofriction="0.8" keybaccelerate="0.09" keybfriction="0.94"
  328. keybfovchange="0.25" mousefovchange="1.0" fovspeed="3.0" fovfriction="0.9" bouncinglimits="true"/>
  329. <cursors standard="default" dragging="move" moving="move"/>
  330. <include url="%SWFPATH%/plugins/webvr.xml" devices="html5"/>
  331. <!-- pluginurl="" -->
  332. <plugin name="WebVR" keep="true" devices="html5" pluginurl="%SWFPATH%/plugins/webvr.js?v=0422" url=""
  333. multireslock.desktop="true" multireslock.mobile.or.tablet="false" mobilevr_support="true"
  334. mobilevr_fake_support="true"
  335. onavailable="removelayer(webvr_enterbutton); skin_arrange_buttons(); webvr_onavailable();"
  336. onentervr="hotspot_enterVR();set(webvr_open,true);skin_showloading(false); webvr_onentervr(); webvr_setup(); skin_reloadscene_webvr();js(toggleBtns(''));autorotate.pause();"
  337. onexitvr="hotspot_exitVR();set(webvr_open,false);webvr_onexitvr(); webvr_setup(); skin_reloadscene_webvr();autorotate.resume();js(toggleBtns(true));"/>
  338. <style name="webvr_button_style" border="false" roundedge="calc:1.0"
  339. backgroundcolor="get:skin_settings.design_bgcolor" backgroundalpha="get:skin_settings.design_bgalpha"
  340. shadow="0.01" shadowrange="10.0" shadowangle="90.0" shadowcolor="0x30261B" shadowalpha="0.50"
  341. css="calc:skin_settings.design_text_css + ' color:#FFFFFF;font-size:' + 20*webvr_setup_scale*webvr_button_scale + 'px;'"/>
  342. <layer name="webvr_rotate_to_landscape_request" keep="true" vr="true" devices="mobile" url="rotate_device.png"
  343. scale="0.5" align="top" edge="center" y="28%" autoalpha="true" alpha="0.0" enabled="false"/>
  344. <events name="webvr_events" keep="true" devices="html5" onresize.mobile="webvr_act_as_gyro_in_portrait_mode();"
  345. onviewchange=""/>
  346. <action name="webvr_setup">if(webvr.isenabled, copy(loadscene_flags_backup, skin_settings.loadscene_flags);
  347. set(skin_settings.loadscene_flags, MERGE|KEEPVIEW|KEEPMOVING|NOPREVIEW);
  348. webvr_act_as_gyro_in_portrait_mode(true); if(scene.count GT 1, set(hotspot[webvr_prev_scene].visible, true);
  349. set(hotspot[webvr_next_scene].visible, true); set(events[webvr_events].onviewchange, webvr_menu_following()); );
  350. , if(loadscene_flags_backup !== null, copy(skin_settings.loadscene_flags, loadscene_flags_backup));
  351. tween(layer[webvr_rotate_to_landscape_request].alpha, 0.0, 0.0); set(hotspot[webvr_prev_scene].visible, false);
  352. set(hotspot[webvr_next_scene].visible, false); set(events[webvr_events].onviewchange, null); );
  353. </action>
  354. <action name="webvr_act_as_gyro_in_portrait_mode">if(device.mobile AND webvr.isenabled, div(aspect, stagewidth,
  355. stageheight); if(aspect != lastaspect OR '%1' == 'true', copy(lastaspect, aspect); if(stagewidth GT stageheight,
  356. set(display.stereo, true); set(webvr.mobilevr_sensor_mode, 3); webvr.update();
  357. tween(layer[webvr_rotate_to_landscape_request].alpha, 0.0, 0.0); , set(display.stereo, false);
  358. set(webvr.mobilevr_sensor_mode, 1); webvr.update(); tween(layer[webvr_rotate_to_landscape_request].alpha, 1.0);
  359. delayedcall(3.0, tween(layer[webvr_rotate_to_landscape_request].alpha, 0.0, 1.0); ); ); ); , set(lastaspect, 0);
  360. );
  361. </action>
  362. <style name="webvr_menu_style" depth="800" scale="0.5" distorted="true" ath="0" atv="45" alpha="0.5"/>
  363. <hotspot name="webvr_prev_scene" keep="true" style="skin_base|webvr_menu_style" crop="0|64|64|64" ox="-64"
  364. onover="tween(scale,0.6);" onout="tween(scale,0.5);" vr_timeout="750" onclick="skin_nextscene_loop(-1);"
  365. visible="false" devices="html5.and.webgl"/>
  366. <hotspot name="webvr_next_scene" keep="true" style="skin_base|webvr_menu_style" crop="64|64|64|64" ox="+64"
  367. onover="tween(scale,0.6);" onout="tween(scale,0.5);" vr_timeout="750" onclick="skin_nextscene_loop(+1);"
  368. visible="false" devices="html5.and.webgl"/>
  369. <action name="webvr_menu_following" type="Javascript" devices="html5">
  370. <![CDATA[
  371. var hs1 = krpano.get("hotspot[webvr_prev_scene]");
  372. var hs2 = krpano.get("hotspot[webvr_next_scene]");
  373. if(!hs1.hovering && !hs2.hovering)
  374. {
  375. var f = 0.01; // following speed factor
  376. var h = krpano.view.hlookat;
  377. var v = krpano.view.vlookat;
  378. var hsh = hs1.ath;
  379. var hsv = hs1.atv;
  380. h = (h -(h|0)) + (((h|0) +360180)%360) - 180.0;
  381. v = (v -(v|0)) + (((v|0) +360180)%360) - 180.0;
  382. hsh = (hsh-(hsh|0)) + (((hsh|0)+360180)%360) - 180.0;
  383. var dh = h - hsh;
  384. dh += (dh > 180) ? -360 : (dh < -180) ? 360 : 0
  385. hsh += dh*f;
  386. var a = Math.abs(v - hsv) / 90.0;
  387. a = 1.0 * Math.max(1.0 - 2.0*Math.sqrt(a), 0);
  388. v = v + 55.0 - v*1.5;
  389. hsv = hsv*(1.0 - f) + v*f;
  390. hs1.ath = hs2.ath = hsh;
  391. hs1.atv = hs2.atv = hsv;
  392. hs1.alpha = hs2.alpha = a;
  393. }
  394. ]]>
  395. </action>
  396. <style name="skin_base" url="calc:vtourskinxmlpath.url + skin_settings.design_skin_images"/>
  397. <style name="skin_glow" ondown="copy(skin_lockglow,name); skin_buttonglow(get(name)); if(ondown2, ondown2() );"
  398. onover="if(skin_lockglow === null, copy(skin_lockglow,name); skin_buttonglow(get(name),0.3) ); if(onover2, onover2() );"
  399. onout="if(skin_lockglow === name AND !pressed, skin_buttonglow(null);delete(skin_lockglow); ); if(onout2, onout2() );"
  400. onup="if(onup2, onup2()); delayedcall(0, if(hovering AND enabled, skin_buttonglow(get(name),0.3); , skin_buttonglow(null);delete(skin_lockglow); ); );"/>
  401. <style name="skin_thumbtext_style" url="%SWFPATH%/plugins/textfield.swf" align="bottom" width="100%"
  402. autoheight="true" y="0" wordwrap="false" padding="5" enabled="false" background="true"
  403. backgroundcolor="0x000000" backgroundalpha="0.5" border="false"
  404. css="calc:skin_settings.design_text_css + ' text-align:center; font-size:10px;'"
  405. textshadow="get:skin_settings.design_text_shadow"/>
  406. <style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" distorted="true" tooltip=""
  407. onclick="if(linkedscene, set(enabled,false); skin_hidetooltips(); tween(depth|alpha|oy|rx, 4000|0.0|-50|-60, 0.5, default, loadscene(get(linkedscene),null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend)); skin_updatescroll(); ); );"
  408. onover="tween(scale,0.55);" onout="tween(scale,0.5);"
  409. onloaded="if(linkedscene AND skin_settings.tooltips_hotspots, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); );"/>
  410. <style name="skin_tooltips"
  411. onover.mouse="copy(layer[skin_tooltip].html, tooltip); set(layer[skin_tooltip].visible, true); tween(layer[skin_tooltip].alpha, 1.0, 0.1); asyncloop(hovering, copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );"
  412. onout.mouse="tween(layer[skin_tooltip].alpha, 0.0, 0.1, default, set(layer[skin_tooltip].visible,false), copy(layer[skin_tooltip].x,mouse.stagex); copy(layer[skin_tooltip].y,mouse.stagey); );"/>
  413. <layer name="skin_tooltip" keep="true" url="%SWFPATH%/plugins/textfield.swf" parent="STAGE" visible="false"
  414. alpha="0" enabled="false" align="lefttop" edge="bottom" oy="-2" width="200" autoheight="true"
  415. background="false" backgroundcolor="0xFFFFFF" backgroundalpha="1.0" border="false" bordercolor="0x000000"
  416. borderalpha="1.0" borderwidth="1.0" roundedge="0" shadow="0.0" shadowrange="4.0" shadowangle="45"
  417. shadowcolor="0x000000" shadowalpha="1.0" textshadow="get:skin_settings.design_text_shadow"
  418. textshadowrange="6.0" textshadowangle="90" textshadowcolor="0x000000" textshadowalpha="1.0"
  419. css="calc:skin_settings.design_text_css + ' text-align:center; font-size:16px;'" html=""/>
  420. <layer name="skin_layer" keep="true" type="container" align="top" width="get:skin_settings.layout_width"
  421. maxwidth="get:skin_settings.layout_maxwidth" height="100%" maskchildren="true" visible="false"
  422. bgcapture="false" zorder="1">
  423. <layer name="skin_loadingtext" url="%SWFPATH%/plugins/textfield.swf" align="center" x="5" y="-5"
  424. html="get:skin_settings.loadingtext" visible="false" autoheight="true" background="false" border="false"
  425. enabled="false"
  426. css="calc:skin_settings.design_text_css + ' text-align:center; font-style:italic; font-size:22px;'"
  427. textshadow="get:skin_settings.design_text_shadow"/>
  428. </layer>
  429. <plugin name="skin_gyro" keep="true" url="" html5_url="%SWFPATH%/plugins/gyro2.js" devices="html5" enabled="false"
  430. onavailable="js(showGyroBtn());" softstart="2"/>
  431. <layer name="show_current_scene_title" url="%SWFPATH%/plugins/textfield.swf" width="100%" keep="true" background="false"
  432. css="color:#ffffff;font-size:15px;font-family:黑体;text-align:center;"
  433. enabled="false" y="50" html=""/>
  434. <events name="init_view_event" keep="true" onxmlcomplete=""/>
  435. <events name="skin_events" keep="true"
  436. onxmlcomplete="set(events[skin_events].onxmlcomplete,null); skin_startup();js(showPanoBtns(get(scene.count)));"
  437. onnewpano="skin_showloading(true); skin_update_scene_infos(); skin_deeplinking_update_url();"
  438. onremovepano="skin_showloading(true);" onloadcomplete="skin_showloading(false);"
  439. onidle="skin_deeplinking_update_url();" onresize="skin_onresize();"
  440. onenterfullscreen.fullscreensupport="set(layer[skin_btn_fs].crop, '64|576|64|64');"
  441. onexitfullscreen.fullscreensupport="set(layer[skin_btn_fs].crop, '0|576|64|64');"
  442. onkeydown="skin_keydown_event();" onnewscene="" onmouseup=""/>
  443. <action name="init_gyro">
  444. if(skin_settings.gyro AND !device.desktop AND device.html5
  445. ,
  446. copy(plugin[skin_gyro].url,plugin[skin_gyro].html5_url);
  447. );
  448. </action>
  449. <action name="skin_startup">
  450. <!-- if(skin_settings.gyro AND !device.desktop AND device.html5
  451. ,
  452. copy(plugin[skin_gyro].url,plugin[skin_gyro].html5_url);
  453. );
  454. -->
  455. if(skin_settings.webvr AND device.html5 AND device.webgl
  456. ,
  457. copy(plugin[WebVR].url, plugin[WebVR].pluginurl);
  458. js(showWebvrBtn());
  459. );
  460. <!-- if(skin_settings.littleplanetintro AND(device.webgl OR device.flash), -->
  461. if(skin_settings.littleplanetintro AND (device.webgl OR device.flash) ,
  462. js(littlePlaneOpen(get(xml.scene)));
  463. ,
  464. init_gyro();
  465. set(events[init_view_event].onnewscene,'js(initViewSetting(get(xml.scene)));js(getComment(get(xml.scene)));js(initHotspotSetting(get(xml.scene)));');
  466. );
  467. <!-- if(skin_settings.littleplanetintro AND (device.webgl OR device.flash),
  468. js(littlePlaneOpen(get(xml.scene)));
  469. ); -->
  470. set(layer[skin_layer].visible, true);
  471. </action>
  472. <!-- <action name="skin_addthumbs">if(skin_settings.thumbs == false, set(layer[skin_btn_thumbs].visible,false); ,
  473. copy(thumbwidth, skin_settings.thumbs_width); copy(thumbheight, skin_settings.thumbs_height); copy(thumbpadding,
  474. skin_settings.thumbs_padding); copy(thumbcrop, skin_settings.thumbs_crop); add(thumbxoffset, thumbwidth,
  475. thumbpadding); mul(thumbxcenter, thumbxoffset, 0.5); mul(thumbbarwidth, thumbxoffset, scene.count);
  476. add(thumbbarwidth, thumbpadding); add(thumbbarheight, thumbpadding, thumbheight); add(thumbbarheight,
  477. thumbpadding); if(skin_settings.thumbs_scrollindicator, copy(layer[skin_thumbs_scrollindicator].y,
  478. thumbbarheight); add(thumbbarheight, layer[skin_thumbs_scrollindicator].height); );
  479. copy(layer[skin_thumbs].height, thumbbarheight); copy(layer[skin_thumbs].width, thumbbarwidth); mul(halfheight,
  480. thumbbarheight, 0.5); copy(layer[skin_thumbs_scrollleft].y, halfheight); copy(layer[skin_thumbs_scrollright].y,
  481. halfheight); set(thumb_cnt,0); for(set(i,0), i LT scene.count, inc(i), inc(thumb_cnt);
  482. txtadd(thumbname,'skin_thumb_',get(i)); addlayer(get(thumbname)); copy(layer[get(thumbname)].url,
  483. scene[get(i)].thumburl); set(layer[get(thumbname)].keep, true); set(layer[get(thumbname)].parent,
  484. 'skin_thumbs'); set(layer[get(thumbname)].align, lefttop); copy(layer[get(thumbname)].crop, thumbcrop);
  485. copy(layer[get(thumbname)].width, thumbwidth); copy(layer[get(thumbname)].height, thumbheight); mul(thumbx, i,
  486. thumbxoffset); add(thumbx, thumbpadding); copy(layer[get(thumbname)].x, thumbx); copy(layer[get(thumbname)].y,
  487. thumbpadding); add(scene[get(i)].thumbx, thumbx, thumbxcenter); copy(scene[get(i)].thumby, thumbpadding);
  488. set(layer[get(thumbname)].linkedscene, get(scene[get(i)].name) ); set(layer[get(thumbname)].onclick,
  489. copy(layer[skin_thumbborder].parent, name);
  490. loadscene(get(linkedscene),null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend)); );
  491. if(skin_settings.tooltips_thumbs, set(layer[get(thumbname)].tooltip, get(scene[get(i)].title) );
  492. layer[get(thumbname)].loadstyle(skin_tooltips); ); if(skin_settings.thumbs_text, txtadd(thumbtext,
  493. 'skin_thumbtext_', get(i)); addlayer(get(thumbtext)); layer[get(thumbtext)].loadstyle(skin_thumbtext_style);
  494. set(layer[get(thumbtext)].keep, true); set(layer[get(thumbtext)].parent, get(thumbname));
  495. set(layer[get(thumbtext)].html, get(scene[get(i)].title)); ); ); if(thumb_cnt == 1,
  496. set(layer[skin_thumbs].align, 'lefttop'); ); );
  497. </action> -->
  498. <action name="skin_addmapspots">
  499. for(set(i,0), i LT scene.count, inc(i),
  500. if(scene[get(i)].lat,
  501. txtadd(spotname,'spot', get(i)); txtadd(spotclickevent, 'skin_hidetooltips(); activatespot(',get(spotname),');
  502. loadscene(',get(scene[get(i)].name), ',null,get(skin_settings.loadscene_flags),get(skin_settings.loadscene_blend));
  503. skin_updatescroll();
  504. delayedcall(0.5,skin_showmap(false));');
  505. copy(scene[get(i)].mapspotname, spotname);
  506. addspot(get(spotname), get(scene[get(i)].lat), get(scene[get(i)].lng), get(scene[get(i)].heading), false,
  507. get(spotclickevent), null);
  508. if(skin_settings.tooltips_mapspots,
  509. set(layer[skin_map].spot[get(spotname)].tooltip
  510. ,
  511. get(scene[get(i)].title));
  512. txtadd(layer[skin_map].spot[get(spotname)].onover, 'set(hovering,true);',get(style[skin_tooltips].onover) );
  513. txtadd(layer[skin_map].spot[get(spotname)].onout, 'set(hovering,false);',get(style[skin_tooltips].onout) );
  514. );
  515. );
  516. );
  517. if(xml.scene != null, activatespot(get(scene[get(xml.scene)].mapspotname) ); , activatespot(spot0); );
  518. zoomToSpotsExtent();
  519. </action>
  520. <action name="skin_setup_littleplanetintro">
  521. copy(lp_scene, xml.scene);
  522. copy(lp_hlookat, view.hlookat);
  523. copy(lp_vlookat, view.vlookat);
  524. copy(lp_fov, view.fov); copy(lp_fovmax, view.fovmax);
  525. copy(lp_limitview,view.limitview);
  526. set(view.fovmax, 170);
  527. set(view.limitview, lookto);
  528. set(view.vlookatmin, 90);
  529. set(view.vlookatmax, 90);
  530. lookat(calc(lp_hlookat - 180), 90, 150, 1, 0, 0);
  531. set(
  532. events[lp_events].onloadcomplete,
  533. delayedcall(
  534. 0.5,
  535. if(
  536. lp_scene === xml.scene,
  537. set(control.usercontrol, off);
  538. copy(view.limitview, lp_limitview);
  539. set(view.vlookatmin, null);
  540. set(view.vlookatmax, null);
  541. tween(view.hlookat|view.vlookat|view.fov|view.distortion,
  542. calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0), 3.0, easeOutQuad, set(control.usercontrol, all);
  543. tween(view.fovmax, get(lp_fovmax));
  544. set(view.fovmin,%1);
  545. set(view.vlookatmin,%2);
  546. set(view.vlookatmax,%3);
  547. set(autorotate.horizon,%4);
  548. js(getComment(get(xml.scene)));
  549. js(initHotspotSetting(get(xml.scene)));
  550. set(events[init_view_event].onnewscene,'js(initViewSetting(get(xml.scene)));js(getComment(get(xml.scene)));
  551. js(initHotspotSetting(get(xml.scene)));');
  552. );
  553. delayedcall(3,init_gyro(););
  554. );
  555. );
  556. );
  557. </action>
  558. <!-- <action name="skin_setup_littleplanetintro">
  559. copy(lp_scene, xml.scene);
  560. copy(lp_hlookat, view.hlookat);
  561. copy(lp_vlookat, view.vlookat);
  562. copy(lp_fov, view.fov);
  563. copy(lp_fovmax, view.fovmax);
  564. copy(lp_limitview, view.limitview);
  565. set(view.fovmax, 170);
  566. set(view.limitview, lookto);
  567. set(view.vlookatmin, 90);
  568. set(view.vlookatmax, 90);
  569. set_hotspot_visible(false);
  570. set(layer[skin_layer].visible,false);set(layer[skin_layer].alpha,0);
  571. set(layer[skin_control_bar].visible,false);set(layer[skin_control_bar].alpha,0);
  572. set(layer[skin_splitter_bottom].visible,false);set(layer[skin_splitter_bottom].alpha,0);
  573. lookat(calc(lp_hlookat - 180), 90, 150, 1, 0, 0);
  574. set(events[lp_events].onloadcomplete,
  575. delayedcall(2.5,
  576. if(lp_scene === xml.scene,
  577. set(control.usercontrol, off);
  578. copy(view.limitview, lp_limitview);
  579. set(view.vlookatmin, null);
  580. set(view.vlookatmax, null);
  581. tween(view.hlookat|view.vlookat|view.fov|view.distortion, calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0),
  582. 3.0, easeOutQuad,
  583. set(control.usercontrol, all);
  584. tween(view.fovmax, get(lp_fovmax));
  585. );
  586. set_hotspot_visible(true);
  587. set(layer[skin_layer].visible,true);tween(layer[skin_layer].alpha,1,1);
  588. set(layer[skin_control_bar].visible,true);tween(layer[skin_control_bar].alpha,1,1);
  589. set(layer[skin_splitter_bottom].visible,true);tween(layer[skin_splitter_bottom].alpha,1,1);
  590. );
  591. );
  592. );
  593. </action> -->
  594. <action name="set_hotspot_visible">
  595. for(set(i,0),i LT hotspot.count,inc(i),
  596. if(%1 == false,
  597. if(hotspot[get(i)].visible == true,
  598. set(hotspot[get(i)].mark,true);set(hotspot[get(i)].visible,%1);
  599. );
  600. ,
  601. if(hotspot[get(i)].mark == true,
  602. set(hotspot[get(i)].visible,%1);
  603. );
  604. );
  605. );
  606. </action>
  607. <action name="skin_onresize">mul(mh, area.pixelheight, -1); if(layer[skin_thumbs].state == 'opened',
  608. add(mh,layer[skin_thumbs].height); set(layer[skin_scroll_layer].y, 97); , set(layer[skin_scroll_layer].y,
  609. get(mh)); ); if(layer[skin_map].state == 'opened', sub(hh,area.pixelheight,skin_settings.controlbar_offset);
  610. sub(hh,layer[skin_control_bar].height); sub(hh,32); add(mh,hh); add(mh,skin_settings.controlbar_overlap);
  611. sub(mh, layer[skin_scroll_layer].y_offset); copy(layer[skin_map].height, hh); ); add(mh,
  612. layer[skin_scroll_layer].y_offset); skin_video_updateseekbarwidth(); skin_arrange_buttons();
  613. </action>
  614. <action name="skin_arrange_buttons">calc(show_selbuttons, scene.count GT 1); calc(show_thumbutton,
  615. skin_settings.thumbs == true); calc(show_mapbutton, skin_settings.maps == true); calc(show_gyrobutton,
  616. plugin[skin_gyro].available == true AND view.vlookatrange == 180 ); calc(show_vrbutton, webvr.isavailable ==
  617. true); calc(show_fsbutton, device.fullscreensupport == true); set(lpos,6); set(cpos,0); if(show_gyrobutton,
  618. dec(cpos,20)); if(show_vrbutton, dec(cpos,24)); set(rpos,6); calc(show_dirbuttons, !device.mobile AND
  619. ((area.pixelwidth + 2*cpos) GT 520)); copy(layer[skin_btn_navi].visible, show_dirbuttons);
  620. copy(layer[skin_btn_prev].visible, show_selbuttons); copy(layer[skin_btn_next].visible, show_selbuttons);
  621. if(show_selbuttons, inc(lpos,44); inc(rpos,44); ); copy(layer[skin_btn_thumbs].visible, show_thumbutton);
  622. copy(layer[skin_btn_thumbs].x, lpos); if(show_thumbutton, inc(lpos,40)); copy(layer[skin_btn_map].visible,
  623. show_mapbutton); copy(layer[skin_btn_map].x, lpos); if(show_mapbutton, inc(lpos,40)); if(show_dirbuttons,
  624. copy(layer[skin_btn_navi].x, cpos); inc(cpos,140); set(layer[skin_btn_gyro].align, center);
  625. copy(layer[skin_btn_gyro].visible, show_gyrobutton); copy(layer[skin_btn_gyro].x, cpos); if(show_gyrobutton,
  626. inc(cpos,48)); set(layer[skin_btn_vr].align, center); copy(layer[skin_btn_vr].visible, show_vrbutton);
  627. copy(layer[skin_btn_vr].x, cpos); if(show_vrbutton, inc(cpos,80)); , set(layer[skin_btn_gyro].align, left);
  628. copy(layer[skin_btn_gyro].visible, show_gyrobutton); copy(layer[skin_btn_gyro].x, lpos); if(show_gyrobutton,
  629. inc(lpos,40)); set(layer[skin_btn_vr].align, left); copy(layer[skin_btn_vr].visible, show_vrbutton);
  630. copy(layer[skin_btn_vr].x, lpos); if(show_vrbutton, inc(lpos,80)); ); copy(layer[skin_btn_hide].x, rpos);
  631. inc(rpos,40); copy(layer[skin_btn_fs].visible, show_fsbutton); copy(layer[skin_btn_fs].x, rpos);
  632. if(show_fsbutton, inc(rpos,40));
  633. </action>
  634. <action name="skin_updatescroll">if(layer[skin_thumbs].loaded, set(cursceneindex, 0); if(xml.scene,
  635. copy(cursceneindex, scene[get(xml.scene)].index));
  636. layer[skin_thumbs].setcenter(get(scene[get(cursceneindex)].thumbx), get(scene[get(cursceneindex)].thumby)); );
  637. </action>
  638. <action name="skin_updatethumbscroll">copy(padding,skin_settings.thumbs_padding);
  639. if(skin_settings.thumbs_scrollbuttons, if(loverflow GT 0, set(layer[skin_thumbs_scrollleft].visible,true),
  640. set(layer[skin_thumbs_scrollleft].visible,false) ); if(roverflow GT 0,
  641. set(layer[skin_thumbs_scrollright].visible,true), set(layer[skin_thumbs_scrollright].visible,false) ); );
  642. if(skin_settings.thumbs_scrollindicator, if(woverflow GT 0,
  643. set(layer[skin_thumbs_scrollindicator].visible,true); sub(iw,pixelwidth,woverflow); div(pw,iw,pixelwidth);
  644. div(px,loverflow,woverflow); mul(pw,iw); copy(layer[skin_thumbs_scrollindicator].width,pw); sub(iw,pw);
  645. sub(iw,padding); sub(iw,padding); mul(px,iw); add(px,padding); copy(layer[skin_thumbs_scrollindicator].x,px); ,
  646. set(layer[skin_thumbs_scrollindicator].visible,false); ); );
  647. </action>
  648. <action name="skin_update_scene_infos">if(xml.scene !== null AND scene[get(xml.scene)].index GE 0,
  649. if(skin_settings.title, if(title, txtadd(layer[skin_title].html, get(title), ' - ',
  650. get(scene[get(xml.scene)].title) ); , copy(layer[skin_title].html, scene[get(xml.scene)].title ); );
  651. delayedcall(0.1, set(layer[skin_title].visible,true) ); ); if(skin_settings.thumbs_loop == false,
  652. if(scene[get(xml.scene)].index GT 0, set(layer[skin_btn_prev].enabled, true); set(layer[skin_btn_prev].alpha,
  653. 1.0); , set(layer[skin_btn_prev].enabled, false); set(layer[skin_btn_prev].alpha, 0.3); ); sub(lastsceneindex,
  654. scene.count, 1); if(scene[get(xml.scene)].index LT lastsceneindex, set(layer[skin_btn_next].enabled, true);
  655. set(layer[skin_btn_next].alpha, 1.0); , set(layer[skin_btn_next].enabled, false);
  656. set(layer[skin_btn_next].alpha, 0.3); ); , if(scene.count GT 1, set(layer[skin_btn_prev].enabled, true);
  657. set(layer[skin_btn_prev].alpha, 1.0); set(layer[skin_btn_next].enabled, true); set(layer[skin_btn_next].alpha,
  658. 1.0); , set(layer[skin_btn_prev].enabled, false); set(layer[skin_btn_prev].alpha, 0.3);
  659. set(layer[skin_btn_next].enabled, false); set(layer[skin_btn_next].alpha, 0.3); ); ); if(scene.count GT 1,
  660. set(layer[skin_btn_prev_fs].visible, true); set(layer[skin_btn_next_fs].visible, true); ,
  661. set(layer[skin_btn_prev_fs].visible, false); set(layer[skin_btn_next_fs].visible, false); ); txtadd(parentname,
  662. 'skin_thumb_', get(scene[get(xml.scene)].index)); if(layer[get(parentname)], set(layer[skin_thumbborder].parent,
  663. get(parentname)); set(layer[skin_thumbborder].visible, true); , set(layer[skin_thumbborder].visible, false); );
  664. if(scene[get(xml.scene)].mapspotname, layer[skin_map].activatespot(get(scene[get(xml.scene)].mapspotname));
  665. layer[skin_map].pantospot(get(scene[get(xml.scene)].mapspotname)); ); if(plugin[skin_gyro].isavailable == true
  666. AND view.vlookatrange == 180, set(layer[skin_btn_gyro].visible, true); , set(layer[skin_btn_gyro].visible,
  667. false) ); if(view.vlookatrange LT 180, if(backup_control_bouncinglimits === null,
  668. copy(backup_control_bouncinglimits, control.bouncinglimits); ); set(control.bouncinglimits, false); ,
  669. if(backup_control_bouncinglimits !== null, copy(control.bouncinglimits, backup_control_bouncinglimits); ); );
  670. if(scene[get(xml.scene)].isvideopano AND plugin[video] !== null, skin_video_addcontrols(); ,
  671. skin_video_removecontrols(); ); );
  672. </action>
  673. <action name="skin_gotoscene">if(scene[%1], copy(cursceneindex, scene[get(xml.scene)].index); copy(newsceneindex,
  674. scene[%1].index); txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex));
  675. layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
  676. loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),calc(newsceneindex LT
  677. cursceneindex ? skin_settings.loadscene_blend_prev : (newsceneindex GT cursceneindex ?
  678. skin_settings.loadscene_blend_next : skin_settings.loadscene_blend))); );
  679. </action>
  680. <action name="skin_nextscene">add(newsceneindex, scene[get(xml.scene)].index, %1); if(newsceneindex GE 0 AND
  681. newsceneindex LT scene.count, txtadd(layer[skin_thumbborder].parent, 'skin_thumb_', get(newsceneindex));
  682. layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx), get(scene[get(newsceneindex)].thumby));
  683. loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),calc(%1 LT 0 ?
  684. skin_settings.loadscene_blend_prev : skin_settings.loadscene_blend_next)); );
  685. </action>
  686. <action name="skin_nextscene_loop">add(newsceneindex, scene[get(xml.scene)].index, %1); sub(lastsceneindex,
  687. scene.count, 1); if(newsceneindex LT 0, copy(newsceneindex,lastsceneindex)); if(newsceneindex GT lastsceneindex,
  688. set(newsceneindex,0)); layer[skin_thumbs].scrolltocenter(get(scene[get(newsceneindex)].thumbx),
  689. get(scene[get(newsceneindex)].thumby));
  690. loadscene(get(scene[get(newsceneindex)].name),null,get(skin_settings.loadscene_flags),calc(%1 LT 0 ?
  691. skin_settings.loadscene_blend_prev : skin_settings.loadscene_blend_next));
  692. </action>
  693. <action name="skin_showloading">if(display.stereo == true, set(layer[skin_loadingtext].visible, false); ,
  694. set(layer[skin_loadingtext].visible, %1); );
  695. </action>
  696. <action name="skin_hidetooltips">set(layer[skin_tooltip].alpha,0.0); set(layer[skin_tooltip].visible,false);
  697. </action>
  698. <action name="skin_buttonglow">if('%1' !== 'null', set(strength,0.7); if(%2 != null, set(strength,%2));
  699. set(layer[skin_buttonglow].parent, %1); set(layer[skin_buttonglow].visible, true);
  700. tween(layer[skin_buttonglow].alpha, get(strength), 0.07); , tween(layer[skin_buttonglow].alpha, 0.0, 0.1,
  701. default, set(layer[skin_buttonglow].parent, null); set(layer[skin_buttonglow].visible, false); ); );
  702. </action>
  703. <action name="skin_calc_opened_closed">set(layer[get(name)].y_opened, get(layer[get(name)].y));
  704. set(layer[get(name)].y_closed, calc(layer[get(name)].y - skin_settings.controlbar_offset -
  705. skin_settings.controlbar_height + skin_settings.controlbar_offset_closed));
  706. </action>
  707. <action name="skin_hideskin">if(layer[skin_map].state != 'closed', skin_showmap(false); wait(0.40); );
  708. if(layer[skin_thumbs].state != 'closed', skin_showthumbs(false); wait(0.25); ); set(hidetime, calc('%1' ==
  709. 'instant' ? 0.0 : 0.5)); tween(layer[skin_scroll_window].y, get(layer[skin_scroll_window ].y_closed),
  710. get(hidetime)); tween(layer[skin_splitter_bottom].y, get(layer[skin_splitter_bottom].y_closed), get(hidetime));
  711. tween(layer[skin_control_bar].y, get(layer[skin_control_bar ].y_closed), get(hidetime));
  712. tween(layer[skin_btn_prev_fs].x, 0, get(hidetime)); tween(layer[skin_btn_next_fs].x, 0, get(hidetime));
  713. if(layer[skin_logo], tween(layer[skin_logo].alpha, 0.0, 0.5, default, set(layer[skin_logo].visible,false)); );
  714. stopdelayedcall(skin_btn_show_alpha); set(layer[skin_btn_show].visible, true); delayedcall(skin_btn_show_alpha,
  715. get(hidetime), tween(layer[skin_btn_show].alpha, 0.25, 0.25); );
  716. </action>
  717. <action name="skin_showskin">tween(layer[skin_scroll_window ].y, get(layer[skin_scroll_window ].y_opened));
  718. tween(layer[skin_splitter_bottom].y, get(layer[skin_splitter_bottom].y_opened)); tween(layer[skin_control_bar
  719. ].y, get(layer[skin_control_bar ].y_opened)); tween(layer[skin_btn_prev_fs].x, -50);
  720. tween(layer[skin_btn_next_fs].x, -50); if(layer[skin_logo], set(layer[skin_logo].visible,true);
  721. tween(layer[skin_logo].alpha, 1.0); ); stopdelayedcall(skin_btn_show_alpha); set(layer[skin_btn_show].visible,
  722. false); delayedcall(skin_btn_show_alpha, 0.25, tween(layer[skin_btn_show].alpha, 0.0, 0.0); );
  723. </action>
  724. <action name="skin_showthumbs">
  725. if(!webvr_open,
  726. if(%1 == null,
  727. if(layer[thumbs_background].state == 'closed',
  728. set(show,true),
  729. set(show,false)
  730. );
  731. ,
  732. set(show,%1);
  733. );
  734. if(
  735. show,
  736. set(layer[thumbs_background].state, 'opened');
  737. tween(layer[thumbs_background].y, 97, 0.5, easeOutQuint);
  738. set(layer[thumbs_background].visible, true);
  739. if(scene[0].album,
  740. if(!last_show_sub_container,
  741. set(last_show_sub_container,"album_0_container");
  742. );
  743. set(layer[get(last_show_sub_container)].state, 'opened');
  744. tween(layer[get(last_show_sub_container)].y, 202, 0.5, easeOutQuint);
  745. );
  746. ,
  747. set(layer[thumbs_background].state, 'closed');
  748. tween(layer[thumbs_background].y, -102, 0.5, easeOutQuint,
  749. set(layer[thumbs_background].visible, false););
  750. if(last_show_sub_container,
  751. set(layer[get(last_show_sub_container)].state, 'closed');
  752. tween(layer[get(last_show_sub_container)].y, -102, 0.5, easeOutQuint);
  753. );
  754. );
  755. );
  756. </action>
  757. <action name="skin_showmap">if(%1 == null, if(layer[skin_map].state == 'closed', set(show,true), set(show,false)); ,
  758. set(show,%1); ); mul(mh, layer[skin_scroll_layer].pixelheight, -1); if(show,
  759. tween(layer[skin_thumbs_container].alpha, 0.0, 0.25, default, set(layer[skin_thumbs_container].visible,false));
  760. set(layer[skin_map].visible, true); tween(layer[skin_map].alpha, 1.0, 0.25); set(layer[skin_map].state,
  761. 'opened'); sub(hh,area.pixelheight,skin_settings.controlbar_offset); sub(hh,layer[skin_control_bar].height);
  762. sub(hh,32); add(mh,hh); sub(hh,skin_settings.controlbar_overlap); copy(layer[skin_map].height, hh);
  763. tween(layer[skin_scroll_layer].y, get(mh), 0.5, easeOutQuint); , if(layer[skin_map].state != 'closed',
  764. set(layer[skin_map].state, 'closed'); add(mh, layer[skin_scroll_layer].y_offset); tween(layer[skin_map].alpha,
  765. 0.0, 0.5, easeOutQuint); tween(layer[skin_scroll_layer].y, get(mh), 0.5, easeOutQuint,
  766. set(layer[skin_map].visible,false) ); ); );
  767. </action>
  768. <action name="skin_keydown_event">if(keycode == 33, skin_nextscene_loop(-1) ); if(keycode == 34,
  769. skin_nextscene_loop(+1) ); if(keycode == 35, skin_gotoscene(calc(scene.count-1)) ); if(keycode == 36,
  770. skin_gotoscene(0) );
  771. </action>
  772. <action name="skin_deeplinking_update_url"></action>
  773. <action name="skin_reloadscene_webvr">delayedcall(0.1, if(scene[get(xml.scene)].havevrimage,
  774. loadscene(get(xml.scene), null, MERGE|KEEPVIEW|KEEPMOVING|KEEPPLUGIN|NOPREVIEW, BLEND(0.5)); ); );
  775. </action>
  776. <action name="skin_video_addcontrols">set(events[skin_events].onclick, skin_video_clickevent() );
  777. set(plugin[video].onvideoready, skin_video_updatestate() ); set(plugin[video].onvideoplay,
  778. skin_video_updatestate() ); set(plugin[video].onvideopaused, skin_video_updatestate() );
  779. set(plugin[video].onvideocomplete, skin_video_updatestate() ); if(plugin[video].ispaused AND
  780. plugin[video].pausedonstart, set(layer[skin_video_playpause].state, 'visible');
  781. set(layer[skin_video_playpause].enabled, true); tween(layer[skin_video_playpause].alpha, 1.0); );
  782. delayedcall(skin_video_delayedvisible, 0.25, set(layer[skin_video_controls].visible, true) );
  783. skin_video_updateseekbarwidth(); set(layer[skin_video_seekpos].x,0); set(layer[skin_video_loadbar].width,0);
  784. setinterval(skin_video_seek_updates, 0.5, skin_video_updatetime() );
  785. </action>
  786. <action name="skin_video_removecontrols">stopdelayedcall(skin_video_delayedvisible);
  787. set(events[skin_events].onclick, null); set(layer[skin_video_playpause].alpha, 0.0);
  788. set(layer[skin_video_controls].visible, false); clearinterval(skin_video_seek_updates);
  789. </action>
  790. <action name="skin_video_updatetime">copy(t1, plugin[video].time); copy(t2, plugin[video].totaltime); if(%1 !==
  791. null, calc(t1, %1 * t2); ); div(t1_min, t1, 60); mod(t1_sec, t1, 60); Math.floor(t1_min); Math.floor(t1_sec);
  792. div(t2_min, t2, 60); mod(t2_sec, t2, 60); Math.floor(t2_min); Math.floor(t2_sec);
  793. calc(layer[skin_video_time].html, t1_min + ':' + (t1_sec LT 10 ? '0' : '') + t1_sec + ' / ' + t2_min + ':' +
  794. (t2_sec LT 10 ? '0' : '') + t2_sec); calc(layer[skin_video_seekpos].x, (t1 / t2 * 100) + '%');
  795. calc(layer[skin_video_loadbar].width, (plugin[video].loadedbytes / plugin[video].totalbytes * 100) + '%');
  796. </action>
  797. <action name="skin_video_updateseekbarwidth">if(skin_settings.title, calc(layer[skin_video_seekbar_container].width,
  798. 0 - (32 + layer[skin_title].pixelwidth + layer[skin_video_time].pixelwidth));
  799. calc(layer[skin_video_seekbar_container].x, layer[skin_title].pixelwidth + 16); ,
  800. calc(layer[skin_video_seekbar_container].width, 0 - (24 + layer[skin_video_time].pixelwidth));
  801. set(layer[skin_video_seekbar_container].x, 8); );
  802. </action>
  803. <action name="skin_video_ondownseeking">asyncloop(pressed, screentolayer(skin_video_seekbar,
  804. mouse.stagex,mouse.stagey, lx,ly); calc(seekpos, lx / layer[skin_video_seekbar].pixelwidth); clamp(seekpos, 0.0,
  805. 1.0); skin_video_updatetime(seekpos); , plugin[video].seek(calc((seekpos * 100) + '%')); );
  806. </action>
  807. <layer name="skin_video_playpause" keep="true" style="skin_base|skin_glow" crop="0|640|64|64" scale="0.75"
  808. align="center" alpha="0.0" autoalpha="true" state="hidden" onclick="skin_video_playpause_click();"/>
  809. <action name="skin_video_updatestate">calc(layer[skin_video_playpause].crop, plugin[video].ispaused ? '0|640|64|64'
  810. : '64|640|64|64'); if(plugin[video].iscomplete, set(layer[skin_video_playpause].state, 'visible');
  811. tween(layer[skin_video_playpause].alpha, 1.0); );
  812. </action>
  813. <action name="skin_video_playpause_click">if(plugin[video].ispaused, plugin[video].play();
  814. set(layer[skin_video_playpause].state, 'hidden'); tween(layer[skin_video_playpause].alpha, 0.0); ,
  815. plugin[video].pause(); set(layer[skin_video_playpause].state, 'visible');
  816. tween(layer[skin_video_playpause].alpha, 1.0); delayedcall(autohide_pp, 2.0,
  817. set(layer[skin_video_playpause].state,'hidden'); tween(layer[skin_video_playpause].alpha, 0.0); ); );
  818. </action>
  819. <action name="skin_video_clickevent">stopdelayedcall(autohide_pp); switch(layer[skin_video_playpause].state,
  820. 'visible', 'hidden'); if(layer[skin_video_playpause].state == 'hidden', tween(layer[skin_video_playpause].alpha,
  821. 0.0); , tween(layer[skin_video_playpause].alpha, 1.0); delayedcall(autohide_pp, 2.0,
  822. set(layer[skin_video_playpause].state,'hidden'); tween(layer[skin_video_playpause].alpha, 0.0); ); );
  823. </action>
  824. <contextmenu fullscreen="false" versioninfo="false">
  825. <item name="cc" caption="更改控制模式" onclick="skin_changecontrolmode();" separator="true"/>
  826. <item name="nv" caption="正常视角" onclick="skin_view_normal();" showif="view.vlookatrange == 180"
  827. separator="true"/>
  828. <item name="fv" caption="鱼眼视角" onclick="skin_view_fisheye();" showif="view.vlookatrange == 180"
  829. devices="flash|webgl"/>
  830. <item name="sv" caption="立体视角" onclick="skin_view_stereographic();" showif="view.vlookatrange == 180"
  831. devices="flash|webgl"/>
  832. <item name="av" caption="建筑视角" onclick="skin_view_architectural();" showif="view.vlookatrange == 180"/>
  833. <item name="pv" caption="帕尼尼视角" onclick="skin_view_pannini();" showif="view.vlookatrange == 180"
  834. devices="flash|webgl"/>
  835. <item name="lp" caption="小行星视角" onclick="skin_view_littleplanet();" showif="view.vlookatrange == 180"
  836. devices="flash|webgl"/>
  837. </contextmenu>
  838. <action name="skin_changecontrolmode">switch(control.mouse, moveto, drag); switch(control.touch, moveto, drag);
  839. </action>
  840. <action name="skin_view_look_straight">if(view.vlookat LT -80 OR view.vlookat GT +80, tween(view.vlookat, 0.0, 1.0,
  841. easeInOutSine); tween(view.fov, 100, distance(150,0.8)); );
  842. </action>
  843. <action name="skin_view_normal">skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
  844. tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5));
  845. </action>
  846. <action name="skin_view_fisheye">skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
  847. tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.35, distance(1.0,0.5));
  848. </action>
  849. <action name="skin_view_architectural">skin_view_look_straight(); tween(view.architectural, 1.0, distance(1.0,0.5));
  850. tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 0.0, distance(1.0,0.5));
  851. </action>
  852. <action name="skin_view_stereographic">skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
  853. tween(view.pannini, 0.0, distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8));
  854. </action>
  855. <action name="skin_view_pannini">skin_view_look_straight(); tween(view.architectural, 0.0, distance(1.0,0.5));
  856. tween(view.pannini, 1.0, distance(1.0,0.8)); if(view.distortion LT 0.1, tween(view.distortion, 1.0,
  857. distance(1.0,0.8)); );
  858. </action>
  859. <action name="skin_view_littleplanet">tween(view.architectural, 0.0, distance(1.0,0.5)); tween(view.pannini, 0.0,
  860. distance(1.0,0.5)); tween(view.distortion, 1.0, distance(1.0,0.8)); tween(view.fov, 150, distance(150,0.8));
  861. tween(view.vlookat, 90, distance(100,0.8)); add(new_hlookat, view.hlookat, 123.0); tween(view.hlookat,
  862. get(new_hlookat), distance(100,0.8));
  863. </action>
  864. <plugin name="soundinterface" url="%SWFPATH%/plugins/soundinterface.swf"
  865. alturl="%SWFPATH%/plugins/soundinterface.js" rootpath="" preload="true" keep="true"/>
  866. <!-- <action name="startup" autorun="onstart">if(startscene === null OR !scene[get(startscene)],
  867. copy(startscene,scene[0].name); ); if(device.fullscreensupport == true,js(showFullscreenBtn()););
  868. if(device.mobile OR device.tablet,js(hideShareAndFootmarkBtn());); loadscene(get(startscene), null, MERGE);
  869. if(startactions !== null, startactions() );
  870. </action> -->
  871. <!-- <hotspot name="newcomment" url="/static/images/kr/comment-back.png" keep="true" scale="1" zoom="false" width="prop"
  872. height="60" ondown="draghotspot();" edge="leftbottom" ath="120" atv="120" visible="false"/>
  873. <layer name="tooltip_newcomment" parent="hotspot[newcomment]" keep="true" url="%SWFPATH%/plugins/textfield.swf"
  874. align="left" edge="left" x="62" y="0" width="150" height="60" background="false"
  875. css='text-align:left; line-height:23px;color:#FFFFFF; font-family:"Microsoft YaHei"; font-weight:normal; font-size:16px;padding:3px'
  876. textshadow="1" textshadowrange="6.0" textshadowangle="90" html="[b]拖动头像到想要评论的位置[/b]" enabled="false"/>
  877. <layer name="container_newcomment" type="container" parent="hotspot[newcomment]" keep="true" maskchildren="true"
  878. align="left" edge="left" x="4" y="0" width="50" height="50" bgcolor="0xffffff" bgborder="0 0x000000 1"
  879. bgroundedge="9" enabled="false">
  880. <layer name="head_newcomment" url="/static/images/kr/face-32.png" parent="layer[container_newcomment]" keep="true"
  881. align="left" edge="left" x="0" y="0" width="50" height="50" enabled="false"/>
  882. </layer> -->
  883. <action name="draghotspot">spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, 'l'); sub(drag_adjustx,
  884. mouse.stagex, hotspotcenterx); sub(drag_adjusty, mouse.stagey, hotspotcentery); asyncloop(pressed, sub(dx,
  885. mouse.stagex, drag_adjustx); sub(dy, mouse.stagey, drag_adjusty); screentosphere(dx, dy, ath, atv); );
  886. </action>
  887. <!-- <action name="addComment">txtadd(comment_name, 'comment_',%1); addhotspot(get(comment_name));
  888. set(hotspot[get(comment_name)].url,%2); set(hotspot[get(comment_name)].ath,%4);
  889. set(hotspot[get(comment_name)].atv,%5); set(hotspot[get(comment_name)].width,40);
  890. set(hotspot[get(comment_name)].height,40); set(hotspot[get(comment_name)].edge,leftbottom);
  891. set(hotspot[get(comment_name)].zoom,false); set(hotspot[get(comment_name)].enabled,false);
  892. set(hotspot[get(comment_name)].comment,true); txtadd(tooltipname, 'tooltip_', get(comment_name));
  893. addlayer(get(tooltipname)); txtadd(layer[get(tooltipname)].parent, 'hotspot[',get(comment_name),']');
  894. set(layer[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf'); set(layer[get(tooltipname)].align,right);
  895. set(layer[get(tooltipname)].edge,left); set(layer[get(tooltipname)].x,-5); set(layer[get(tooltipname)].y,0);
  896. set(layer[get(tooltipname)].minwidth,40); set(layer[get(tooltipname)].height,40);
  897. set(layer[get(tooltipname)].background,true); set(layer[get(tooltipname)].backgroundcolor,0x000000);
  898. set(layer[get(tooltipname)].roundedge,9); set(layer[get(tooltipname)].backgroundalpha,0.5);
  899. set(layer[get(tooltipname)].border,true); set(layer[get(tooltipname)].glow,4);
  900. set(layer[get(tooltipname)].glowcolor,0xFFFFFF); set(layer[get(tooltipname)].css,'text-align:left;
  901. line-height:28px;color:#FFFFFF; font-family:"Microsoft YaHei"; font-weight:normal; font-size:13px;padding:3px');
  902. set(layer[get(tooltipname)].textshadow,1); set(layer[get(tooltipname)].textshadowrange,6.0);
  903. set(layer[get(tooltipname)].textshadowangle,90); txtadd(layer[get(tooltipname)].html,'[b]',%3,'[/b]');
  904. set(layer[get(tooltipname)].enabled,false);
  905. </action> -->
  906. <!-- <layer name="open_alert" url="" keep="true" align="center" edge="center" x="0" y="0" maxwidth="160" maxheight="160"
  907. enabled="false" visible="false"/>
  908. <action name="show_open_alert">set(layer[open_alert].url,%1); set(layer[open_alert].visible,true); delayedcall(5,
  909. tween(layer[open_alert].alpha,0,1));
  910. </action> -->
  911. <layer name="tour_guide_alert" url="" keep="true" align="center" edge="center" x="0" y="0" maxwidth="160"
  912. maxheight="160" enabled="false" visible="false"/>
  913. <action name="show_tour_guide_alert">set(layer[tour_guide_alert].url,%1); set(layer[tour_guide_alert].visible,true);
  914. set(layer[tour_guide_alert].alpha,1); delayedcall(3, tween(layer[tour_guide_alert].alpha,0,1));
  915. </action>
  916. <action name="addEffect">
  917. if(plugin[snow] === null,
  918. addplugin(snow);
  919. if(device.html5,set(plugin[snow].url,'%SWFPATH%/plugins/snow.js');,set(plugin[snow].url,'%SWFPATH%/plugins/snow.swf');)
  920. set(plugin[snow].floor,0.7);
  921. set(plugin[snow].zorder,1);
  922. set(plugin[snow].keep,false);
  923. );
  924. if('%1' == 'defaultsnow', defaultsnow());
  925. if('%1' == 'snowballs', snowballs());
  926. if('%1' == 'snowflakes', snowflakes());
  927. if('%1' == 'silverstars', silverstars());
  928. if('%1' == 'goldenstars', goldenstars());
  929. if('%1' == 'hearts', hearts());
  930. if('%1' == 'smileys', smileys());
  931. if('%1' == 'money', money());
  932. if('%1' == 'rain', rain());
  933. if('%1' == 'midrain', midrain());
  934. if('%1' == 'heavyrain', heavyrain());
  935. if('%1' =='custom', customeffect(%2));
  936. </action>
  937. <action name="defaultsnow">set(plugin[snow].mode, snow); set(plugin[snow].blendmode, normal);
  938. set(plugin[snow].flakes, 4000); set(plugin[snow].color, 0xFFFFFF); set(plugin[snow].speed, 1.0);
  939. set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 4.0);
  940. set(plugin[snow].wind, 0.0);
  941. </action>
  942. <action name="snowballs">set(plugin[snow].mode, image); set(plugin[snow].imageurl,
  943. '%SWFPATH%/snow_image/snowball.png'); set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 2000);
  944. set(plugin[snow].imagescale, 0.5); set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0);
  945. set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 2.0); set(plugin[snow].wind, 0.0);
  946. </action>
  947. <action name="snowflakes">set(plugin[snow].mode, image); set(plugin[snow].imageurl,
  948. '%SWFPATH%/snow_image/snowflake.png'); set(plugin[snow].blendmode, add); set(plugin[snow].flakes, 2000);
  949. set(plugin[snow].imagescale, 0.4); set(plugin[snow].speed, 0.5); set(plugin[snow].shake, 8.0);
  950. set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 2.0); set(plugin[snow].wind, 0.0);
  951. </action>
  952. <action name="silverstars">set(plugin[snow].mode, image); set(plugin[snow].imageurl,
  953. '%SWFPATH%/snow_image/silverstar.png'); set(plugin[snow].blendmode, add); set(plugin[snow].flakes, 2000);
  954. set(plugin[snow].imagescale, 0.3); set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0);
  955. set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 2.0); set(plugin[snow].wind, 0.0);
  956. </action>
  957. <action name="goldenstars">set(plugin[snow].mode, image); set(plugin[snow].imageurl,
  958. '%SWFPATH%/snow_image/star.png'); set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 1000);
  959. set(plugin[snow].imagescale, 1.0); set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0);
  960. set(plugin[snow].speedvariance, 2.0); set(plugin[snow].spreading, 1.9); set(plugin[snow].wind, 0.0);
  961. </action>
  962. <action name="hearts">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/heart.png');
  963. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 250); set(plugin[snow].imagescale, 0.5);
  964. set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0);
  965. set(plugin[snow].spreading, 1.5); set(plugin[snow].wind, 0.0);
  966. </action>
  967. <action name="smileys">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/smiley.png');
  968. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 1000); set(plugin[snow].imagescale, 1.0);
  969. set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0);
  970. set(plugin[snow].spreading, 1.5); set(plugin[snow].wind, 0.0);
  971. </action>
  972. <action name="money">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/redpack.png');
  973. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 500); set(plugin[snow].imagescale, 0.8);
  974. set(plugin[snow].speed, 0.8); set(plugin[snow].shake, 8.0); set(plugin[snow].speedvariance, 3.0);
  975. set(plugin[snow].spreading, 2.5); set(plugin[snow].wind, 0.0);
  976. </action>
  977. <action name="rain">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/rain.png');
  978. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 1000); set(plugin[snow].color, 0x7FAFFF);
  979. set(plugin[snow].speed, 20.0); set(plugin[snow].shake, 1.0); set(plugin[snow].speedvariance, 1.0);
  980. set(plugin[snow].spreading, 4.0); set(plugin[snow].wind, 2.0);
  981. </action>
  982. <action name="midrain">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/rain.png');
  983. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 2500); set(plugin[snow].color, 0x7FAFFF);
  984. set(plugin[snow].speed, 20.0); set(plugin[snow].shake, 1.0); set(plugin[snow].speedvariance, 1.0);
  985. set(plugin[snow].spreading, 6.0); set(plugin[snow].wind, 2.0);
  986. </action>
  987. <action name="heavyrain">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%SWFPATH%/snow_image/rain.png');
  988. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 4000); set(plugin[snow].color, 0x9FAFFF);
  989. set(plugin[snow].speed, 20.0); set(plugin[snow].shake, 0.0); set(plugin[snow].speedvariance, 1.0);
  990. set(plugin[snow].spreading, 10.0); set(plugin[snow].wind, 2.0);
  991. </action>
  992. <action name="customeffect">set(plugin[snow].mode, image); set(plugin[snow].imageurl, '%1');
  993. set(plugin[snow].blendmode, normal); set(plugin[snow].flakes, 500); set(plugin[snow].imagescale, 1.0);
  994. set(plugin[snow].speed, 1.0); set(plugin[snow].shake, 4.0); set(plugin[snow].speedvariance, 2.0);
  995. set(plugin[snow].spreading, 1.9); set(plugin[snow].wind, 0.0);
  996. </action>
  997. <events name="speechevents"
  998. onnewpano="indexoftxt(result, get(scene[get(xml.scene)].bgspeech),sound); if(result GE 0,tween(sound[bgsnd].volume, 0.5)); set(speech_bgmusic,get(scene[get(xml.scene)].bgspeech)); if(speech_bgmusic,js(openSpeechVoiceBtn());playsound(bgs,get(scene[get(xml.scene)].bgspeech),1,tween(sound[bgsnd].volume, 1)););"
  999. onremovepano="stopsound(bgs);stopsound(bgm);stopsound(hotspotbgm);" keep="true"/>
  1000. <!-- <events name="musicevents"
  1001. onnewpano="indexoftxt(result, get(scene[get(xml.scene)].bgmusic),sound); if(result GE 0,tween(sound[bgsnd].volume, 0.5)); set(music_bgmusic,get(scene[get(xml.scene)].bgmusic)); if(music_bgmusic,js(openMusicVoiceBtn());playsound(bgm,get(scene[get(xml.scene)].bgmusic),1,tween(sound[bgsnd].volume, 1)););"
  1002. keep="true"/> -->
  1003. <events name="advancedsetting" onnewscene="if(!webvr.isenabled, js(initAdvancedSetting(get(xml.scene)));)"
  1004. onloadcomplete="js(setInitAngle());" onviewchange="js(radarRotate(get(xml.scene),get(view.hlookat)));"
  1005. onclick="skin_showthumbs(false);" keep="true"/>
  1006. <action name="do_crop_animation">registerattribute(xframes, calc((imagewidth / %1) BOR 0));
  1007. registerattribute(yframes, calc((imageheight / %2) BOR 0)); registerattribute(frames, calc(xframes * yframes));
  1008. registerattribute(frame, 0); set(crop, '0|0|%1|%2'); setinterval(calc('crop_anim_' + name), calc(1.0 / %3),
  1009. if(loaded, inc(frame); if(frame GE frames, if(onlastframe !== null, onlastframe() ); set(frame,0); ); mod(xpos,
  1010. frame, xframes); div(ypos, frame, xframes); Math.floor(ypos); mul(xpos, %1); mul(ypos, %2); calc(crop, xpos +
  1011. '|' + ypos + '|%1|%2'); , clearinterval(calc('crop_anim_' + name)); ); );
  1012. </action>
  1013. <action name="hotspot_enterVR">
  1014. <!-- jscall(calc('console.log("krpano version: ' + version + '")')); -->
  1015. for(set(i,0), i LT hotspot.count, inc(i), copy(lhotspot, hotspot[get(i)]);
  1016. if(lhotspot.hsvrfalse,
  1017. set(lhotspot.visible,false);
  1018. );
  1019. if(lhotspot.hsvrtrue,
  1020. set(lhotspot.visible,true);
  1021. );
  1022. );
  1023. </action>
  1024. <action name="hotspot_exitVR">for(set(i,0), i LT hotspot.count, inc(i), copy(lhotspot, hotspot[get(i)]);
  1025. if(lhotspot.hsvrfalse, set(lhotspot.visible,true); ); if(lhotspot.hsvrtrue, set(lhotspot.visible,false); ); );
  1026. </action>
  1027. <action name="addSceneChangeHotSpot">
  1028. set(schp_name,%2);
  1029. addhotspot(get(schp_name));
  1030. set(hotspot[get(schp_name)].url,%1);
  1031. set(hotspot[get(schp_name)].ath,%4);
  1032. set(hotspot[get(schp_name)].atv,%5);
  1033. set(hotspot[get(schp_name)].linkedscene,%3);
  1034. set(hotspot[get(schp_name)].width,'prop');
  1035. set(hotspot[get(schp_name)].height,'50');
  1036. set(hotspot[get(schp_name)].visible,%8);
  1037. set(hotspot[get(schp_name)].hsvrfalse,true);
  1038. if(%7 == false,
  1039. set(hotspot[get(schp_name)].onclick,'looktohotspot(get(name));loadscene(get(linkedscene), null, MERGE, BLEND(1));'); ,
  1040. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1041. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"scene"));');
  1042. );
  1043. if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); );
  1044. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(scene[get(linkedscene)].title);
  1045. if(webvr.isenabled,set(visible,false));
  1046. txtadd(vrhs,'vr',get(name));
  1047. addhotspot(get(vrhs));
  1048. copy(hotspot[get(vrhs)].url,url);
  1049. copy(hotspot[get(vrhs)].ath,ath);
  1050. copy(hotspot[get(vrhs)].atv,atv);
  1051. copy(hotspot[get(vrhs)].linkedscene,linkedscene);
  1052. copy(hotspot[get(vrhs)].width,width);
  1053. copy(hotspot[get(vrhs)].height,height);
  1054. copy(hotspot[get(vrhs)].onclick,onclick);
  1055. if(%6 == '1',
  1056. txtadd(hotspot[get(vrhs)].onloaded
  1057. ,
  1058. 'do_crop_animation(128,128, 60);');
  1059. );
  1060. txtadd(hotspot[get(vrhs)].onloaded,
  1061. 'if(webvr.isenabled,set(visible,true),set(visible,false));');
  1062. set(hotspot[get(vrhs)].visible,false);
  1063. set(hotspot[get(vrhs)].hsvrtrue,true); ");
  1064. </action>
  1065. <action name="addLinkHotSpot">
  1066. set(schp_name,%2);
  1067. addhotspot(get(schp_name)); set(hotspot[get(schp_name)].url,%1);
  1068. set(hotspot[get(schp_name)].ath,%4); set(hotspot[get(schp_name)].atv,%5);
  1069. set(hotspot[get(schp_name)].hotspottitle,%3); set(hotspot[get(schp_name)].hotspotlink,%9);
  1070. set(hotspot[get(schp_name)].width,'prop'); set(hotspot[get(schp_name)].height,'50');
  1071. set(hotspot[get(schp_name)].visible,%8); if(%7 == false,
  1072. set(hotspot[get(schp_name)].onclick,'js(window.open(get(hotspot[get(name)].hotspotlink), "_blank"));'); ,
  1073. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1074. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"link"));');
  1075. ); if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); ); if(%10 == true,
  1076. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);"); );
  1077. </action>
  1078. <action name="addWordHotSpot">
  1079. set(schp_name,%2);
  1080. addhotspot(get(schp_name));
  1081. set(hotspot[get(schp_name)].url,%1);
  1082. set(hotspot[get(schp_name)].ath,%4);
  1083. set(hotspot[get(schp_name)].atv,%5);
  1084. set(hotspot[get(schp_name)].hotspottitle,%3);
  1085. set(hotspot[get(schp_name)].wordcontent,%9);
  1086. set(hotspot[get(schp_name)].width,'prop');
  1087. set(hotspot[get(schp_name)].height,'50');
  1088. set(hotspot[get(schp_name)].visible,%8);
  1089. if(%7 == false,
  1090. set(hotspot[get(schp_name)].onclick,'toggle_word_show(true,get(hotspot[get(name)].hotspottitle),get(hotspot[get(name)].wordcontent));');
  1091. ,
  1092. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1093. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"text"));');
  1094. );
  1095. if(%6 == '1',
  1096. txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
  1097. );
  1098. if(%10 == true,
  1099. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
  1100. );
  1101. </action>
  1102. <action name="addvideo_tie_hotspot">
  1103. set(schp_name,%2);
  1104. addhotspot(get(schp_name));
  1105. if(device.flash,
  1106. set(hotspot[get(schp_name)].url,'%SWFPATH%/plugins/videoplayer.swf');
  1107. ,
  1108. set(hotspot[get(schp_name)].url,'%SWFPATH%/plugins/videoplayer.js?v=0921');
  1109. );
  1110. set(hotspot[get(schp_name)].videourl,%1);
  1111. <!-- set(hotspot[get(schp_name)].posterurl,%17); -->
  1112. set(hotspot[get(schp_name)].hotspottitle,%3);
  1113. set(hotspot[get(schp_name)].ath,%4);
  1114. set(hotspot[get(schp_name)].atv,%5);
  1115. set(hotspot[get(schp_name)].distorted,true);
  1116. set(hotspot[get(schp_name)].edge,'center');
  1117. set(hotspot[get(schp_name)].scale,'1.0');
  1118. set(hotspot[get(schp_name)].distorted,true);
  1119. set(hotspot[get(schp_name)].rx,%6);
  1120. set(hotspot[get(schp_name)].ry,%7);
  1121. set(hotspot[get(schp_name)].rz,%8);
  1122. set(hotspot[get(schp_name)].ox,%9);
  1123. set(hotspot[get(schp_name)].oy,%10);
  1124. set(hotspot[get(schp_name)].loop,%11);
  1125. set(hotspot[get(schp_name)].depth,%12);
  1126. set(hotspot[get(schp_name)].pausedonstart,true);
  1127. set(hotspot[get(schp_name)].width,%14);
  1128. set(hotspot[get(schp_name)].height,%15);
  1129. set(hotspot[get(schp_name)].onclick,'togglepause()');
  1130. if(%16 ==true,
  1131. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1132. set(hotspot[get(schp_name)].onup,'js(update_video_tie_pos(get(xml.scene),get(name),get(ath),get(atv),"text"));');
  1133. );
  1134. <!-- js(calc('console.log("'+hotspot[get(schp_name)].url+'")')); -->
  1135. <!-- js(calc('console.log("'+hotspot[get(schp_name)].depth+'")')); -->
  1136. </action>
  1137. <action name="addImgTextHotSpot">
  1138. set(schp_name,%2);
  1139. addhotspot(get(schp_name));
  1140. set(hotspot[get(schp_name)].url,%1);
  1141. set(hotspot[get(schp_name)].ath,%4);
  1142. set(hotspot[get(schp_name)].atv,%5);
  1143. set(hotspot[get(schp_name)].hotspottitle,%3);
  1144. set(hotspot[get(schp_name)].wordcontent,%9);
  1145. set(hotspot[get(schp_name)].width,'prop');
  1146. set(hotspot[get(schp_name)].height,'50');
  1147. set(hotspot[get(schp_name)].visible,%8);
  1148. if(%7 == false,
  1149. set(hotspot[get(schp_name)].onclick,js(showPictext(get(hotspot[get(name)].hotspottitle),%9)));
  1150. <!-- toggle_word_show(true,get(hotspot[get(name)].hotspottitle),get(hotspot[get(name)].wordcontent)); -->
  1151. ,
  1152. set(hotspot[get(schp_name)].ondown,draghotspot(););
  1153. set(hotspot[get(schp_name)].onup,js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"imgtext")));
  1154. );
  1155. if(%6 == '1',
  1156. txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
  1157. );
  1158. if(%10 == true,
  1159. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
  1160. );
  1161. </action>
  1162. <action name="addVoiceHotSpot">set(schp_name,%2); addhotspot(get(schp_name)); set(hotspot[get(schp_name)].url,%1);
  1163. set(hotspot[get(schp_name)].ath,%4); set(hotspot[get(schp_name)].atv,%5);
  1164. set(hotspot[get(schp_name)].hotspottitle,%3); set(hotspot[get(schp_name)].musicsrc,%9);
  1165. set(hotspot[get(schp_name)].width,'prop'); set(hotspot[get(schp_name)].height,'50');
  1166. set(hotspot[get(schp_name)].visible,%8); if(%7 == false,
  1167. set(hotspot[get(schp_name)].onclick,'play_hotspot_voice(get(hotspot[get(name)].musicsrc));'); ,
  1168. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1169. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"voice"));');
  1170. ); if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); ); if(%10 == true,
  1171. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);"); );
  1172. </action>
  1173. <action name="addAroundHotSpot">set(schp_name,%2); if(around_object_id === null,set(around_object_id,0));
  1174. addhotspot(get(schp_name)); set(hotspot[get(schp_name)].url,%1); set(hotspot[get(schp_name)].ath,%4);
  1175. set(hotspot[get(schp_name)].atv,%5); set(hotspot[get(schp_name)].hotspottitle,%3);
  1176. set(hotspot[get(schp_name)].aroundpath,%9); if('%10' == null OR '%10' == undefined,
  1177. set(hotspot[get(schp_name)].filecount,36);, set(hotspot[get(schp_name)].filecount,%10); );
  1178. set(hotspot[get(schp_name)].aroundobjectid,get(around_object_id)); set(hotspot[get(schp_name)].width,'prop');
  1179. set(hotspot[get(schp_name)].height,'50'); set(hotspot[get(schp_name)].visible,%8); if(%7 == false,
  1180. set(hotspot[get(schp_name)].onclick,'buildframes(get(hotspot[get(name)].aroundpath),get(hotspot[get(name)].filecount),get(hotspot[get(name)].aroundobjectid));set(settings.objectid,get(hotspot[get(name)].aroundobjectid));set(settings.objectnum,36);');
  1181. inc(around_object_id); , set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1182. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"around"));');
  1183. ); if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); ); if(%11 == true,
  1184. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);"); );
  1185. </action>
  1186. <action name="addImgHotSpot">
  1187. set(schp_name,%2);
  1188. addhotspot(get(schp_name));
  1189. set(hotspot[get(schp_name)].url,%1);
  1190. set(hotspot[get(schp_name)].ath,%4);
  1191. set(hotspot[get(schp_name)].atv,%5);
  1192. set(hotspot[get(schp_name)].hotspottitle,%3);
  1193. set(hotspot[get(schp_name)].galleryname,%9);
  1194. set(hotspot[get(schp_name)].width,'prop');
  1195. set(hotspot[get(schp_name)].height,'50');
  1196. set(hotspot[get(schp_name)].visible,%8);
  1197. if(%7 == false,
  1198. set(hotspot[get(schp_name)].onclick,'js(toggleBtns());show_gallery(get(galleryname));');
  1199. ,
  1200. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1201. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"image"));');
  1202. );
  1203. if(%6 == '1', txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);"); );
  1204. if(%10 == true, txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);"); );
  1205. </action>
  1206. <action name="addObjHotSpot">
  1207. set(schp_name,%2);
  1208. addhotspot(get(schp_name));
  1209. set(hotspot[get(schp_name)].url,%1);
  1210. set(hotspot[get(schp_name)].ath,%4);
  1211. set(hotspot[get(schp_name)].atv,%5);
  1212. set(hotspot[get(schp_name)].hotspottitle,%3);
  1213. set(hotspot[get(schp_name)].width,'prop');
  1214. set(hotspot[get(schp_name)].height,'50');
  1215. set(hotspot[get(schp_name)].visible,%8);
  1216. if(%7 == false,
  1217. set(hotspot[get(schp_name)].onclick,'js(obj_buildframes(%9));');
  1218. ,
  1219. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1220. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"obj"));');
  1221. );
  1222. if(%6 == '1',
  1223. txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
  1224. );
  1225. if(%10 == true,
  1226. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
  1227. );
  1228. </action>
  1229. <action name="addVideoHotSpot">
  1230. set(schp_name,%2);
  1231. addhotspot(get(schp_name));
  1232. set(hotspot[get(schp_name)].url,%1);
  1233. set(hotspot[get(schp_name)].ath,%4);
  1234. set(hotspot[get(schp_name)].atv,%5);
  1235. set(hotspot[get(schp_name)].hotspottitle,%3);
  1236. set(hotspot[get(schp_name)].width,'prop');
  1237. set(hotspot[get(schp_name)].height,'50');
  1238. set(hotspot[get(schp_name)].visible,%8);
  1239. if(%7 == false,
  1240. set(hotspot[get(schp_name)].onclick,js(playvideo(%9)) );
  1241. ,
  1242. set(hotspot[get(schp_name)].ondown,'draghotspot();');
  1243. set(hotspot[get(schp_name)].onup,'js(updateHotSpotData(get(xml.scene),get(name),get(ath),get(atv),"video"));');
  1244. );
  1245. if(%6 == '1',
  1246. txtadd(hotspot[get(schp_name)].onloaded,"do_crop_animation(128,128, 60);");
  1247. );
  1248. if(%10 == true,
  1249. txtadd(hotspot[get(schp_name)].onloaded,"add_all_the_time_tooltip(hotspot[get(name)].hotspottitle);");
  1250. );
  1251. </action>
  1252. <action name="add_all_the_time_tooltip">
  1253. txtadd(tooltipname, 'tooltip_', get(name)); addplugin(get(tooltipname));
  1254. txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
  1255. set(plugin[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
  1256. set(plugin[get(tooltipname)].align,top);
  1257. set(plugin[get(tooltipname)].edge,bottom);
  1258. set(plugin[get(tooltipname)].x,0);
  1259. set(plugin[get(tooltipname)].y,5);
  1260. set(plugin[get(tooltipname)].autowidth,true);
  1261. set(plugin[get(tooltipname)].height,28);
  1262. set(plugin[get(tooltipname)].background,true);
  1263. set(plugin[get(tooltipname)].backgroundcolor,0x000000);
  1264. set(plugin[get(tooltipname)].roundedge,5);
  1265. set(plugin[get(tooltipname)].backgroundalpha,0.65);
  1266. set(plugin[get(tooltipname)].padding,5);
  1267. set(plugin[get(tooltipname)].vcenter,true);
  1268. set(plugin[get(tooltipname)].border,false);
  1269. set(plugin[get(tooltipname)].glow,0);
  1270. set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
  1271. set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:MicrosoftYahei; font-size:14px;');
  1272. if(device.mobile,set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF;
  1273. font-family:MicrosoftYahei; font-weight:bold; font-size:14px;'); ); set(plugin[get(tooltipname)].textshadow,0);
  1274. set(plugin[get(tooltipname)].textshadowrange,6.0); set(plugin[get(tooltipname)].textshadowangle,90); if(text ==
  1275. '' OR text === null, copy(plugin[get(tooltipname)].html,%1), copy(plugin[get(tooltipname)].html,text) );
  1276. set(plugin[get(tooltipname)].enabled,false);
  1277. </action>
  1278. <layer name="mapcontainer" keep="true" type="container" bgcolor="0x000000" bgalpha="0.5" align="righttop" x="60"
  1279. y="10" width="264" height="264" visible="false">
  1280. <layer name="map" url="" align="lefttop" x="4" y="4" width="256" height="256" handcursor="false"
  1281. scalechildren="false">
  1282. <layer name="radarmask" type="container" align="lefttop" width="100%" height="100%" maskchildren="true">
  1283. <layer name="radar" visible="false" url="%SWFPATH%/plugins/radar.swf" alturl="%SWFPATH%/plugins/radar.js" align="lefttop" edge="center"
  1284. zorder="1" scale="0.5" fillcolor="0xFFFFFF" fillalpha="0.8" linecolor="0xFF0000" linewidth="0.5"
  1285. linealpha="0.5" headingoffset="0"/>
  1286. <layer name="activespot" url="/static/images/kr/radar-active.png" scale="1.0" oy="0" align="lefttop"
  1287. edge="center" zorder="3" visible="false"/>
  1288. </layer>
  1289. </layer>
  1290. </layer>
  1291. <style name="spot" url="/static/images/kr/radar-out.png" scale="1.0" oy="0" align="lefttop" edge="center" zorder="2"
  1292. onclick="subtxt(spotid,get(name),5,38);if(spotid != get(xml.scene), loadscene(get(spotid),null,MERGE,BLEND(1)); );"/>
  1293. <action name="activatespot">txtadd(spotidnow,'spot_',get(xml.scene)); copy(layer[radar].x, layer[get(spotidnow)].x);
  1294. copy(layer[radar].y, layer[get(spotidnow)].y); copy(layer[activespot].x, layer[get(spotidnow)].x);
  1295. copy(layer[activespot].y, layer[get(spotidnow)].y); set(layer[radar].heading, %1); set(layer[radar].visible,
  1296. true); set(layer[activespot].visible, true); set(layer[get(spotidnow)].visible, false);
  1297. </action>
  1298. <action name="addTourGuidePoint">set(tour_point_name, %1); addhotspot(get(tour_point_name));
  1299. set(hotspot[get(tour_point_name)].url,'/static/images/kr/tourpoint.png');
  1300. set(hotspot[get(tour_point_name)].ath,%2); set(hotspot[get(tour_point_name)].atv,%3);
  1301. set(hotspot[get(tour_point_name)].visible,%5); set(hotspot[get(tour_point_name)].width,40);
  1302. set(hotspot[get(tour_point_name)].height,40); set(hotspot[get(tour_point_name)].zoom,false);
  1303. set(hotspot[get(tour_point_name)].ondown,'draghotspot();');
  1304. set(hotspot[get(tour_point_name)].onup,'js(putTourGuideLocation(get(name),get(ath),get(atv)));');
  1305. set(hotspot[get(tour_point_name)].onclick,'tourpointclick();'); txtadd(tooltipname, 'tooltip_',
  1306. get(tour_point_name)); addlayer(get(tooltipname)); txtadd(layer[get(tooltipname)].parent,
  1307. 'hotspot[',get(tour_point_name),']'); set(layer[get(tooltipname)].url,'%SWFPATH%/plugins/textfield.swf');
  1308. set(layer[get(tooltipname)].align,center); set(layer[get(tooltipname)].edge,center);
  1309. set(layer[get(tooltipname)].width,40); set(layer[get(tooltipname)].height,40);
  1310. set(layer[get(tooltipname)].background,false); set(layer[get(tooltipname)].backgroundcolor,0x039be5);
  1311. set(layer[get(tooltipname)].roundedge,20); set(layer[get(tooltipname)].glow,4);
  1312. set(layer[get(tooltipname)].glowcolor,0xFFFFFF); set(layer[get(tooltipname)].css,'text-align:center;
  1313. line-height:40px;color:#000000; font-family:"Microsoft YaHei"; font-weight:normal; font-size:14px;');
  1314. set(layer[get(tooltipname)].html,%4); set(layer[get(tooltipname)].enabled,false);
  1315. </action>
  1316. <action name="tourpointclick">js(krpTourPointClick(get(name)));</action>
  1317. <layer name="wordcontainer" keep="true" type="container" bgcolor="0x000000" bgalpha="0.8" align="lefttop" x="0"
  1318. y="0" width="100%" height="100%" visible="false" zorder="100" bgcapture="true"
  1319. onclick="toggle_word_show(false)">
  1320. <layer name="wordtitle" parent="wordcontainer" keep="true" type="container" align="top" width="100%"
  1321. height="20%">
  1322. <layer name="wordtitlestr" url="%SWFPATH%/plugins/textfield.swf" align="center" background="false"
  1323. css="text-align:center;color:#ffffff;font-weight:700; font-size:24px;" html=""></layer>
  1324. </layer>
  1325. <layer name="wordcontent" parent="wordcontainer" keep="true" type="container" align="bottom" edge="bottom"
  1326. width="100%" height="80%" bgcolor="0xaaaaaa">
  1327. <layer name="wordcontentstr" url="%SWFPATH%/plugins/textfield.swf" align="top" width="80%"
  1328. background="false" css="text-align:left;color:#ffffff;font-weight:500; font-size:18px;" html=""
  1329. visible="true"></layer>
  1330. </layer>
  1331. </layer>
  1332. <action name="toggle_word_show">if(%1 == true, set(layer[wordtitlestr].html,%2); set(layer[wordcontentstr].html,%3);
  1333. set(layer[wordcontainer].visible, true); tween(layer[wordcontainer].alpha, 1.0, 0.5,easeOutQuad); ,
  1334. tween(layer[wordcontainer].alpha, 0.0, 0.5,easeOutQuad,set(layer[wordcontainer].visible, false);); );
  1335. </action>
  1336. <action name="play_hotspot_voice">stopsound(hotspotbgm); playsound(hotspotbgm,%1,1);</action>
  1337. <events onresize="make_gallery(get(activeGallery));"/>
  1338. <layer name="gallery" type="container" align="center" width="100%" height="100%" alpha="0" autoalpha="true"
  1339. bgcolor="0x000000" bgalpha="0.8" keep="true" zorder="100">
  1340. <layer name="gallery_scrollarea" url="%SWFPATH%/plugins/scrollarea.swf" alturl="%SWFPATH%/plugins/scrollarea.js"
  1341. keep="true" align="left" width="0" height="100%" zorder="1" direction="h"
  1342. ondown="set(gallery_scrollarea_start_pos, get(x))"></layer>
  1343. <layer name="arrow_left" align="left" x="10" keep="true" visible="false" zorder="2" onclick="move_image(left)"
  1344. url="/static/images/kr/left-white.png"/>
  1345. <layer name="arrow_right" align="right" x="10" keep="true" visible="false" zorder="2"
  1346. onclick="move_image(right)" url="/static/images/kr/right-white.png"/>
  1347. <layer name="gallery_close" align="righttop" x="10" y="10" keep="true" zorder="2"
  1348. onclick="hide_gallery();js(toggleBtns(true));" url="/static/images/kr/close.png"/>
  1349. </layer>
  1350. <action name="open_show_scene_thumb">
  1351. if(scene.count GT 1, skin_showthumbs(true); );
  1352. </action>
  1353. <!-- <action name="toggle_all_comment">for(set(i,0), i LT hotspot.count, inc(i), copy(lcomment, hotspot[get(i)]);
  1354. if(lcomment.comment, set(lcomment.visible, %1); ); );
  1355. </action> -->
  1356. <settings imagewidth="" imageheight="" objectid="" objectnum=""/>
  1357. <events onresize="updateframeresize(container_obj,get(settings.imagewidth),get(settings.imageheight));"
  1358. onmousewheel="updateframesscale();"/>
  1359. <style name="frame" keep="true" visible="false" width="100%" height="100%" scale_o="" align="center"
  1360. onloaded="set(plugin[loadingtext].visible,false); updateframeresize(container_obj,get(imagewidth),get(imageheight));copy(scale_o,scale); copy(settings.imagewidth,imagewidth); copy(settings.imageheight,imageheight);set(layer[container_obj].visible,true);"
  1361. ondown="copy(oldmousex,mouse.x);domouserotate();"
  1362. onover=" set(iszoom, true); set(startzoom, true); copy(copy_mousefovchange, control.mousefovchange); copy(copy_touchzoom, control.touchzoom); set(control.mousefovchange, 0); set(control.touchzoom, false);"
  1363. onout=" set(iszoom, false); copy(control.mousefovchange, copy_mousefovchange); copy(control.touchzoom, copy_touchzoom);"/>
  1364. <layer name="container_obj" type="container" align="center" visible="false" maskchildren="true" bgcolor="0x000000"
  1365. width="900" height="600" bgalpha="0.5" scalechildren="true" bgborder="5 0xFFFFFF 0.9" bgroundedge="3"
  1366. keep="true">
  1367. <layer name="text_mask" type="container" align="leftbottom" y="15" x="0" visible="false" height="10%"
  1368. width="200" bgcolor="0xffffff" bgalpha="0.5" bgcapture="true" zorder="100" bgroundedge="0 3 3 0"
  1369. scalechildren="true">
  1370. <layer name="title" url="%SWFPATH%/plugins/textfield.swf" children="false" enabled="false" align="top"
  1371. autowidth="auto" height="24" vcenter="true" visible="false" border="false" background="false"
  1372. css="text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:20px;" html=""
  1373. onloaded="updatepos();add(layer[text_mask].width,pixelwidth,20); add(layer[text_mask].height,pixelheight,0);"/>
  1374. </layer>
  1375. <layer name="close_mask" type="container" align="righttop" y="10" x="10" height="10%" width="200"
  1376. bgcolor="0xffffff" bgalpha="0.5" bgcapture="true" zorder="100" bgroundedge="3" scalechildren="true">
  1377. <layer name="closetitle" url="%SWFPATH%/plugins/textfield.swf" children="false" enabled="true" align="top"
  1378. width="40" height="24" vcenter="true" border="false" background="false"
  1379. css="text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:16px;"
  1380. html="退出"
  1381. onloaded="updatepos();add(layer[close_mask].width,pixelwidth,10); add(layer[close_mask].height,pixelheight,0);"
  1382. onclick="set(layer[container_obj].visible,false);removeframes();"/>
  1383. </layer>
  1384. <plugin name="loadingtext" url="%SWFPATH%/plugins/textfield.swf" keep="true" zorder="100" visible="true"
  1385. enabled="false" preload="true" align="center" autoheight="true" width="100" background="false"
  1386. html="[p]载入中...[/p]" css="p {color:#FFFFFF; font-family:arial; font-size:16px }"/>
  1387. <layer name="gallerynext" url="%SWFPATH%/skin/gallerybtns.png" align="right" x="0" y="0" zorder="100"
  1388. crop="100|0|100|100" onovercrop="100|100|100|100" ondowncrop="100|100|100|100"
  1389. ondown="set(y,1);dorotate();" onup="set(y,0)" direction="-1"/>
  1390. <layer name="galleryprev" url="%SWFPATH%/skin/gallerybtns.png" align="left" x="0" y="0" zorder="100"
  1391. crop="0|0|100|100" onovercrop="0|100|100|100" ondowncrop="0|100|100|100" ondown="set(y,1);dorotate();"
  1392. onup="set(y,0)" direction="1"/>
  1393. </layer>
  1394. <action name="updateframeresize">div(aspect, %2,%3); mul(new_width, stagewidth, 0.70); div(new_height, new_width,
  1395. aspect); mul(max_height, stageheight, 0.70); if(new_height GT max_height, copy(new_height, max_height);
  1396. mul(new_width, new_height, aspect); ); div(new_width,stagewidth); div(new_height,stageheight);
  1397. mul(new_width,100); mul(new_height,100); roundval(new_width); roundval(new_height); txtadd(layer[%1].width,
  1398. get(new_width),'%'); txtadd(layer[%1].height, get(new_height),'%');
  1399. copy(plugin[frame0].scale_o,plugin[frame0].scale);
  1400. </action>
  1401. <action name="buildframes">if(%3 != settings.objectid, for(set(i,0), i LT %2, inc(i), txtadd(fname,frame,get(i));
  1402. removeplugin(get(fname)); ); ); for(set(i,0), i LT %2, inc(i), txtadd(fname,frame,get(i));
  1403. txtadd(furl,%1,get(i),.jpg?imageView2/2/h/450); addplugin(get(fname));
  1404. set(plugin[get(fname)].parent,layer[container_obj]); plugin[get(fname)].loadstyle(frame);
  1405. copy(plugin[get(fname)].url,furl); ); set(currentframe,0); set(framecount,%2); set(oldmousex,0); showframe(0);
  1406. </action>
  1407. <action name="removeframes">for(set(i,0), i LT framecount, inc(i), txtadd(fname,frame,get(i));
  1408. removeplugin(get(fname)); );
  1409. </action>
  1410. <action name="updateframesscale">layer[container_obj].updatepos(); for(set(i,0), i LT framecount, inc(i),
  1411. txtadd(fname,frame,get(i)); if(iszoom, if(wheeldelta_touchscale GT 0, if(startzoom, set(startzoom,false);
  1412. copy(start_wheeldelta_touchscale, wheeldelta_touchscale); copy(start_imagescale, plugin[get(fname)].scale); );
  1413. div(tmp, wheeldelta_touchscale, start_wheeldelta_touchscale); mul(plugin[get(fname)].scale, start_imagescale,
  1414. tmp); , mul(sit,get(wheeldelta),0.05); mul(sit,plugin[get(fname)].scale); plugin[get(fname)].updatepos();
  1415. add(plugin[get(fname)].scale,sit); if(plugin[get(fname)].scale LT plugin[get(fname)].scale_o,
  1416. copy(plugin[get(fname)].scale,plugin[get(fname)].scale_o);); ); ); );
  1417. </action>
  1418. <action name="showframe">txtadd(fname,frame,get(currentframe));
  1419. txtadd(tempstr,'set(plugin[',get(fname),'].visible,false);'); ifnot(%1 == 0, delayedcall(0.03,get(tempstr)); );
  1420. add(currentframe,%1); if(currentframe LT 0, sub(currentframe,framecount,1); ); if(currentframe == framecount,
  1421. set(currentframe,0); ); txtadd(fname,frame,get(currentframe)); set(plugin[get(fname)].visible,true);
  1422. ifnot(plugin[get(fname)].loaded, set(plugin[loadingtext].visible,true);, set(plugin[loadingtext].visible,false);
  1423. );
  1424. </action>
  1425. <action name="dorotate">if(pressed, showframe(get(direction)); delayedcall(0.05,dorotate();); );</action>
  1426. <action name="domouserotate">if(pressed, sub(temp,oldmousex,mouse.x); if(temp GT 0, set(temp,1); ); if(temp LT 0,
  1427. set(temp,-1); ); showframe(get(temp)); copy(oldmousex,mouse.x); delayedcall(0.03,domouserotate();); );
  1428. </action>
  1429. <krpano flare_dir="%SWFPATH%/skin/lensflare"/>
  1430. <include url="%SWFPATH%/skin/lensflare/core.xml"/>
  1431. <lensflares name="obj">
  1432. <item name="lensitemobj" ath="-29.85" atv="-23.55" scene="" typ="blinkstyle8" dust_effect="false"/>
  1433. </lensflares>
  1434. <action name="ivr_remove_flare">txtadd(na, 'flt_%1_',get(lensflares[obj].item[lensitemobj].name)); txtadd(look,
  1435. 'lookto_%1_',get(lensflares[obj].item[lensitemobj].name)); txtadd(tras,
  1436. 'trash_%1_',get(lensflares[obj].item[lensitemobj].name)); txtadd(dust,
  1437. 'dust_%1_',get(lensflares[obj].item[lensitemobj].name)); if(lensflares[obj].item[lensitemobj].scene == '%1',
  1438. vonp(na); vonp(look); vonp(tras); vonp(dust); vonp(flara_on_scene_scroll); vonh_all(tagmini, lensitemobj); );
  1439. </action>
  1440. <action name="addLensflares">
  1441. set(lensflares[obj].item[lensitemobj].scene,get(xml.scene));
  1442. set(lensflares[obj].item[lensitemobj].ath,%1);
  1443. set(lensflares[obj].item[lensitemobj].atv,%2);
  1444. load_flare_content();
  1445. </action>
  1446. <action name="addSunset">addhotspot(sunset_hs); set(hotspot[sunset_hs].url,'/static/images/kr/sunset.png');
  1447. set(hotspot[sunset_hs].ath,%1); set(hotspot[sunset_hs].atv,%2); set(hotspot[sunset_hs].zorder,100);
  1448. set(hotspot[sunset_hs].visible,true);
  1449. set(hotspot[sunset_hs].ondown,'draghotspot();ivr_remove_flare(get(xml.scene));');
  1450. set(hotspot[sunset_hs].onup,'js(updateEffectSetting(get(xml.scene),get(ath),get(atv)));');
  1451. addLensflares('%1','%2');
  1452. </action>
  1453. <action name="removeSunset">removehotspot(sunset_hs); ivr_remove_flare(get(xml.scene));</action>
  1454. <!--视频热点-->
  1455. <!-- <layer name="video_bg_cover" keep="true" type="container" bgcolor="0x000000" bgalpha="0.3" align="lefttop" x="0"
  1456. y="0" width="100%" height="100%" visible="false" zorder="0" bgcapture="true" onclick="video_clsoe()">
  1457. <layer parent="video_bg_cover" keep="true" name="vidoe_bg_close" url="%SWFPATH%/skin/gallerybtns.png" align="righttop" background="false" crop="200|0|100|100" onclick="video_clsoe()">
  1458. </layer>
  1459. <layer
  1460. parent="video_bg_cover"
  1461. name="video_player"
  1462. url.flash="%SWFPATH%/plugins/videoplayer.swf"
  1463. url.html5="%SWFPATH%/plugins/videoplayer.js"
  1464. videourl=""
  1465. posterurl="videoposter.jpg"
  1466. align="center" x="0" y="0"
  1467. pausedonstart="false"
  1468. loop="false"
  1469. volume="1.0"
  1470. onvideoready=""
  1471. onvideoplay=""
  1472. onvideopaused=""
  1473. onvideocomplete=""
  1474. onerror=""
  1475. maxwidth="60%"
  1476. />
  1477. </layer>
  1478. <action name="video_clsoe">
  1479. set(layer[video_bg_cover].visible,false);
  1480. ifnot(plugin[video_player].ispaused,plugin[video_player].pause());
  1481. </action>
  1482. <action name="play_video">
  1483. plugin[video_player].playvideo(%1);
  1484. set(layer[video_bg_cover].visible,true);
  1485. </action> -->
  1486. <!--视频热点结束-->
  1487. </krpano>