123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467 |
- <krpano>
- <!--首屏弹出-->
- <layer name="home" type="container" bgcolor="0x000000" keep="true" width="100%" height="100%" align="center" zorder="900" bgalpha="1" bgcapture="true" visible="true" onclick2="if(progress.progress GT 0.9 , set(visible,false))">
- <layer name="homebg" type="image" url.normal="https://bigscene.4dage.com/panorama/img/pc/homebg.jpg" url.mobile="https://bigscene.4dage.com/panorama/img/mobile/homebg.png" align="top"
- keep="true" x="0%" y.mobile="0%" zorder="1" width.mobile="100%" height.mobile="prop" visible="true" onclick2="set(layer[home].visible,false)" onloaded="resize();js(hidload);"/>
-
- <layer name="hometitle" type="image" url.normal="https://bigscene.4dage.com/panorama/img/pc/title.png" url.mobile="https://bigscene.4dage.com/panorama/img/mobile/title.png" align="top"
- keep="true" x="3%" y.mobile="40%" zorder="10" width.normal="prop" width.mobile="80%" height.normal="46%" height.mobile="prop" visible="true" y="3%" onloaded="" onclick2="set(layer[home].visible,false)" />
- <!--<layer name="homelogo" type="image" url="https://bigscene.4dage.com/panorama/img/pc/blogo.png" align="top"
- keep="true" x="0%" y.mobile="31%" zorder="10" width.normal="prop" width.mobile="prop" height.normal="15%" height.mobile="14%" visible="true" onloaded="" y="84%" /> -->
- <layer name="homecn" type="image" url.normal="https://bigscene.4dage.com/panorama/img/pc/cnen.png" url.mobile="https://bigscene.4dage.com/panorama/img/mobile/cnen.png"
- align="top" keep="true" x="0%" y.mobile="40%" zorder="10" width.normal="prop" width.mobile="prop" height.normal="6%" height.mobile="6%" visible="true" onloaded="" y="80%" ox="0%" onclick="enter(cn);js(krqstunm(1))" />
- </layer>
- <events name="ui" keep="true" onresize="resize" />
- <action name="picture_resize">
-
- <!-- 使用屏幕宽度或高度的百分之九十 -->
-
- div(aspect, layer[%1].imagewidth, layer[%1].imageheight);
-
- mul(new_width, stagewidth, 1);
-
- div(new_height, new_width, aspect);
-
- mul(max_height, stageheight, 2);
-
- if(new_height GT max_height,
-
- copy(new_height, max_height);
-
- mul(new_width, new_height, aspect);
-
- );
-
- roundval(new_width);
-
- roundval(new_height);
-
- copy(layer[%1].width, new_width);
-
- copy(layer[%1].height, new_height);
-
- </action>
- <action name="resize" autorun="onstart">
- if(device.mobile,
- div(bl,stagewidth,stageheight);
- set(layer[scene_info_text].css,color:#fff; font-family:Arial; font-weight:500; font-size:50px; line-height:66px; text-indent:50px;);
- if(device.iphone,
- set(layer[homebg].height,100%);
- set(layer[homebg].width,prop);
- ,
- set(layer[homebg].height,100%);
- set(layer[homebg].width,100%);
- );
-
- set(layer[homebg].y,0);
- if(bl GT 1.77,
- set(layer[homebg].url,https://bigscene.4dage.com/panorama/img/pc/homebg.jpg);
- <!--set(layer[hometitle].url,https://bigscene.4dage.com/panorama/img/mobile/title.png); -->
- <!--set(layer[hometitle].y,15%);set(layer[hometitle].width,prop);set(layer[hometitle].height,40%); -->
- set(layer[infoimg].width,prop);
- set(layer[infoimg].height,60%);
-
- set(layer[fxmask].height,70%);
- set(layer[fxmask].width,prop);
- ,
- set(layer[homebg].url,https://bigscene.4dage.com/panorama/img/mobile/homebg.png);
- <!--set(layer[hometitle].url,https://bigscene.4dage.com/panorama/img/mobile/title.png); -->
- <!--set(layer[hometitle].y,10%);set(layer[hometitle].width,50%);set(layer[hometitle].height,prop); -->
- set(layer[infoimg].width,80%);
- set(layer[infoimg].height,prop);
-
-
- set(layer[fxmask].height,prop);
- set(layer[fxmask].width,80%);
- );
- ,
- div(bl,stagewidth,stageheight);
-
- if(bl GT 1.77,
- copy(layer[homebg].width,stagewidth);
- set(layer[homebg].height,prop);
- set(layer[fxmask].height,40%);
- set(layer[fxmask].width,prop);
- ,
- copy(layer[homebg].height,stageheight);
- set(layer[homebg].width,prop);
- set(layer[fxmask].height,40%);
- set(layer[fxmask].width,prop);
- );
- );
-
- </action>
- <!--场景信息-->
- <events name="scene_info" keep="true" onnewpano="initsceneinfo"/>
- <action name="initsceneinfo">
- trace(info);
-
- txtadd(layer[scene_info].url,https://bigscene.4dage.com/panorama/img/cninfo/,get(scene[get(xml.scene)].gid),.png);
- set(layer[scene_info_text].html,get(scene[get(xml.scene)].title));
- set(layer[scene_info].height,0);
- nav_control();
- </action>
- <layer name="scene_info_bg" type="container" handcursor="true" bgcolor="0x000000" bgalpha="0.3" keep="true" x="0%" y.mobile="5%" y.normal="5%" zorder="100" width.normal="24%" width.mobile="60%" height.normal="48px" height.mobile="70px" visible="true" onloaded="" >
- <layer name="scene_info_text" keep="true"
- url="https://bigscene.4dage.com/panorama/plugins/textfield.swf"
- align="centercenter"
- y="0%"
- x="0"
- width="100%"
- height="100%"
- background="false"
- css="color:#fff; font-family:Arial; font-weight:500; font-size:40px; line-height:40px; text-indent:50px; "
- html=""
- onclick="dropDown();"
- >
- </layer>
- <layer name="scene_cnicon" type="image" url="https://bigscene.4dage.com/panorama/images/cnicon.png" align="topleft"
- keep="true" x="0%" y="0%" zorder="10" width.normal="prop" width.mobile="prop" height="100%" height.mobile="100%" visible="true" onloaded="" />
- <layer name="scene_info" type="image" url.normal="https://bigscene.4dage.com/panorama/img/pc/info.png" align="topleft"
- keep="true" x="0%" y="100%" zorder="0" width.normal="100%" width.mobile="100%" height="0%" height.mobile="0%" visible="true" onloaded="" />
- </layer>
- <action name="dropDown">
- if(layer[scene_info].height == 0, set(layer[scene_info].height,prop), set(layer[scene_info].height,0))
- </action>
- <!--点赞-->
- <!-- <layer name="dianzhan" type="image" url.normal="https://bigscene.4dage.com/panorama/img/pc/zhan.png" crop="0|80|135|80" crop1="0|0|135|80" crop2="0|80|135|80"
- align="topright" keep="true" x="100" y="5%" zorder="10" width="prop" height="30" visible="false" onloaded=""
- onclick="if(crop == '0|0|135|80',js(like),js(unlike))" >
- <layer name="zhannum" url="https://bigscene.4dage.com/panorama/plugins/textfield.swf" align="right" edge="left" x="-5" autowidth="true" background="false" border="false" padding="5 6" html="999"
- css.normal="color:#FFFFFF; font-family:Arial; font-size:18px;"
- css.mobile="color:#FFFFFF; font-family:Arial; font-size:18px;"
- />
- <layer name="zhanleft" url="https://bigscene.4dage.com/panorama/plugins/textfield.swf" align="left" edge="right" x="-10" autowidth="true" background="false" border="false" padding="5 6" html="9999"
- css.normal="color:#FFFFFF; font-family:Arial; font-size:18px;"
- css.mobile="color:#FFFFFF; font-family:Arial; font-size:18px;"
- >
- <layer name="llsimg" type="image" url.normal="https://bigscene.4dage.com/panorama/img/pc/lls.png" edge="right"
- align="left" keep="true" x="-5%" zorder="10" width="prop" height="30" visible="true"
- />
- </layer>
- </layer>
- <action name="like">
- copy(layer[dianzhan].crop,layer[dianzhan].crop2);
- add(layer[zhannum].html,1);
- </action>
- <action name="unlike">
- copy(layer[dianzhan].crop,layer[dianzhan].crop1);
- sub(layer[zhannum].html,1);
- </action> -->
- <!--热点-->
- <style name="skin_hotspotstyle" url="https://bigscene.4dage.com/panorama/img/spot.png" scale="0.5" scale.mobile="0.7" edge="top" distorted="false"
- tooltip=""
- onclick="loadscene(get(linkedscene));skin_updatescroll();"
- onover="tween(scale,0.55);"
- onout="tween(scale,0.5);"
-
- />
- <style name="hp_hotspotstyle" url="https://bigscene.4dage.com/panorama/img/pc/hotspot/ll.jpg" scale="0.5" edge="bottom" distorted="false"
- tooltip="" onloaded="add_img" onclick="lookto(get(hotspot[get(linkedscene)].ath),get(hotspot[get(linkedscene)].atv),50,linear(50),,,
- loadscene(get(linkedscene),,MERGE,ZOOMBLEND(2.0, 2.0, easeInOutSine));skin_updatescroll();
- );"
-
- />
- <style name="hp2_hotspotstyle" scale="0.4" edge="bottom" distorted="false"
- tooltip="" onclick="lookto(get(hotspot[get(name)].ath),get(hotspot[get(name)].atv),80,linear(50),,,
- loadscene(get(name),,MERGE,ZOOMBLEND(2.0, 2.0, easeInOutSine));skin_updatescroll();
- );"
-
- />
- <style name="small_hotspotstyle"
- scale="1" edge="bottom" distorted="false"
- tooltip=""
- zorder="1"
- url="https://bigscene.4dage.com/panorama/img/pc/hotspot2.png"
- onclick="looktohotspot(get(name),50);"
- onloaded="add_hotspot_text();"
- >
- </style>
- <action name="add_hotspot_text">
- txtadd(tooltipname, 'tooltip_', get(name));
- addplugin(get(tooltipname));
- txtadd(plugin[get(tooltipname)].parent, 'hotspot[', get(name), ']');
- set(plugin[get(tooltipname)].url,'https://bigscene.4dage.com/panorama/plugins/textfield.swf');
- set(plugin[get(tooltipname)].align,top);
- set(plugin[get(tooltipname)].edge,bottom);
- set(plugin[get(tooltipname)].x,0);
- set(plugin[get(tooltipname)].y,0);
- set(plugin[get(tooltipname)].width,auto);
- set(plugin[get(tooltipname)].autoheight,true);
- set(plugin[get(tooltipname)].background,true);
- set(plugin[get(tooltipname)].backgroundcolor,0x000000);
- set(plugin[get(tooltipname)].roundedge,8);
- set(plugin[get(tooltipname)].backgroundalpha,0.7);
- set(plugin[get(tooltipname)].border,true);
- set(plugin[get(tooltipname)].glow,4);
- set(plugin[get(tooltipname)].glowcolor,0xFFFFFF);
- set(plugin[get(tooltipname)].css,'text-align:center; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:28px; padding: 0 10px;');
- set(plugin[get(tooltipname)].textshadow,1);
- set(plugin[get(tooltipname)].textshadowrange,6.0);
- set(plugin[get(tooltipname)].textshadowangle,90);
- set(plugin[get(tooltipname)].html,get(title));
- set(plugin[get(tooltipname)].enabled,false);
- </action>
-
- <style name="ar_hotspotstyle" url="https://bigscene.4dage.com/panorama/img/ar_hotspot.png" scale="0.5" devices="mobile" scale.mobile="0.7" edge="top" distorted="false"
- tooltip=""
- onclick="js(callar)"
- onover="tween(scale,0.55);"
- onout="tween(scale,0.5);"
-
- />
-
-
- <!--控制栏-->
- <style name="btn_base" url="https://bigscene.4dage.com/panorama/img/pc/btn.png" keep="true" align="lefttop" edge="center" height.normal="20%" width="prop"/>
- <layer name="btnbar" type="container" keep="true" width="96" visible.mobile="false"
- height="36%" align="rightcenter" x="0.5%" zorder="100" >
-
- <layer name="btn7" style="btn_base|show_tip" crop="136|20|96|96" x="49%" y="12%" text="返回主页" etext="Home"
- onclick="if(xml.scene == scene_01, set(crop,136|20|96|96); , loadscene(scene_01,,,BLEND(1.0, easeInCubic));skin_updatescroll();
- set(inscene,false); set(inscene,false); )"/>
- <layer name="btn1" style="btn_base|show_tip" crop="20|136|96|96" x="49%" y="62%" text="切换场景" etext="Switch the Scene"
- onclick="skin_showthumbs();"/>
- <layer name="btn2" style="btn_base|show_tip" crop="136|136|96|96" x="49%" y="37%" text="背景音乐" etext="Music"
- onclick="if(crop == '136|136|96|96'
- ,set(crop,20|136|96|96);pausesound(bgm);pausesound(sp);
- ,set(crop,136|136|96|96);resumesound(bgm);autosp(true);)" />
-
- <layer name="btn4" style="btn_base|show_tip" crop="20|368|96|96" x="49%" y="87%" text="自动旋转" etext="Autorotation"
- onclick="if(crop == '20|368|96|96'
- ,startview();
- ,stopview();)"/>
-
-
- </layer>
-
- <style name="mobbtn" url="https://bigscene.4dage.com/panorama/img/pc/btn.png" width="12%" height="prop" x="3%" keep="true" visible.normal="false" align="righttop" zorder="100"/>
-
- <layer name="mbtn7" style="mobbtn" y="5%" crop="136|20|96|96" onclick="if(xml.scene == scene_01, set(crop,136|20|96|96); , loadscene(scene_01,,,BLEND(1.0, easeInCubic));skin_updatescroll();
- set(inscene,false); set(inscene,false); )"/>
- <layer name="mbtn1" style="mobbtn" y="15%" crop="20|252|96|96" onclick="skin_showthumbs();"/>
- <layer name="mbtn2" style="mobbtn" y="25%" crop="136|136|96|96"
- onclick="if(crop == '136|136|96|96'
- ,set(crop,20|136|96|96);pausesound(bgm);pausesound(sp);
- ,set(crop,136|136|96|96);resumesound(bgm);autosp(true);)"/>
- <layer name="mbtn6" style="mobbtn" y="35%" crop="20|368|96|96" onclick="if(crop == '20|368|96|96'
- ,set(crop,'136|368|96|96');set(plugin[gyro].enabled,true);stopview();
- ,set(crop,'20|368|96|96');set(plugin[gyro].enabled,false););"/>
-
- <!-- <layer name="mbtn" style="mobbtn" y="50%" crop="0|300|75|80" onclick=""/>
- <layer name="mbtn8" style="mobbtn" y="57.5%" crop="0|497|75|80" onclick=""/> -->
-
- <events name="btnbarevt" keep="true" onnewpano="
- if(device.mobile,
- if(scene[get(xml.scene)].isar
- ,set(layer[mbtnar].visible,true);
- ,set(layer[mbtnar].visible,false);
- );
- );
- "
-
- />
-
- <action name="qiandao">
- <!-- if(%1 == 1,
- set(layer[btn5].crop,'450|80|56|56');set(layer[mbtn4].crop,'75|284|75|80');
- set(layer[btn5].onclick,null);set(layer[mbtn4].onclick,null);
- ,
- set(layer[btn6].crop,'540|80|56|56');set(layer[mbtn5].crop,'71|355|75|80');
- set(layer[btn6].onclick,null);set(layer[mbtn5].onclick,null);
- ); -->
- if(%1 == 1,
- set(layer[fxmask].url,https://bigscene.4dage.com/panorama/images/alert_bg.png);
- ,
- set(layer[fxmask].url,https://bigscene.4dage.com/panorama/images/alert_bg2.png);
- );
-
- openlayer(fxpano);
- </action>
- <!--热点弹出-->
- <!-- <layer name="infopano" type="container" keep="true" width="100%" height="100%" align="center" edge="center" zorder="200" bgcolor="0x000000" bgcapture="true" bgalpha="0.8" visible="false" onclick="hidinfo();">
- <layer name="infoimg" type="image" url="%HTMLPATH%/img/null.png" align="center" height="prop" width.normal="30%" width.mobile="80%" enabled="false" zorder="400">
- <layer name="infox" type="image" url="%HTMLPATH%/img/pc/x.png" align="bottom" edge="top" height="40" width="prop" enabled="false" zorder="400" y="-30" onclick="hidinfo();"/>
- </layer>
- </layer>
-
- <action name="showinfo">
- if(isen,
- if(device.mobile,
- txtadd(layer[infoimg].url,https://bigscene.4dage.com/panorama/img/mobile/einfo/,get(name),.jpg);
- ,
- txtadd(layer[infoimg].url,https://bigscene.4dage.com/panorama/img/pc/einfo/,get(name),.jpg);
- );
- ,
- if(device.mobile,
- txtadd(layer[infoimg].url,https://bigscene.4dage.com/panorama/img/mobile/info/,get(name),.jpg);
- ,
- txtadd(layer[infoimg].url,https://bigscene.4dage.com/panorama/img/pc/info/,get(name),.jpg);
- );
- );
- openlayer(infopano);
- </action>
- <action name="hidinfo">
- set(layer[infoimg].url,https://bigscene.4dage.com/panorama/img/null.png);
-
- closelayer(infopano);
- </action> -->
- <style name="info_style" fillcolor="0xFFFFFF" fillalpha="0.1" borderwidth="0"
- depth="-1000"
- scaleflying="false"
- tx="0"
- ty="0"
- tz="0"
- onloaded="tween(fillalpha,0,1,,tween(fillalpha,0.6,1,,onloaded))"
- onclick="showinfo"
- />
- <style name="infospot_style" url="https://bigscene.4dage.com/panorama/img/infospot.png" scale="0.8" scale.mobile="1" onclick="showinfo"
- crop="0|0|60|60"
- framewidth="60" frameheight="60" frame="0" lastframe="1"
- onloaded="hotspot_animate();"
-
-
- />
- <style name="sound_style" url="https://bigscene.4dage.com/panorama/img/sound.png" scale="0.8" scale.mobile="1.2" onclick="stopsound(sp);playsound(sp,get(sdul),1);"
- crop="0|0|60|60"
- framewidth="60" frameheight="60" frame="0" lastframe="1"
- onloaded="hotspot_animate();"
-
-
- />
- <!--切换大场景-->
- <layer name="inpano" type="container" bgcolor="0x000000" keep="true" width="100%" height="100%" align="center" zorder="900" bgalpha="1" bgcapture="true" visible="false" >
- <layer name="inimg" type="image" url="https://bigscene.4dage.com/panorama/img/in.jpg" align="top" width.normal="100%" height.normal="100%"
- keep="true" width.mobile="prop" height.mobile="100%"
- crop="0|0|1000|562.5" framewidth="1000" frameheight="562.5" frame="0" lastframe="29"
- />
- </layer>
- <action name="inpano_animate">
-
- inc(layer[inimg].frame,1);
- if(layer[inimg].frame LE layer[inimg].lastframe,
- mul(ypos,layer[inimg].frame,layer[inimg].frameheight);
- txtadd(layer[inimg].crop,'0|',get(ypos),'|',get(layer[inimg].framewidth),'|',get(layer[inimg].frameheight));
- delayedcall(0.1, if(loaded, inpano_animate() ) );
- ,
- set(layer[inimg].frame,0);
- closelayer(inpano);
- loadscene(get(linkedscene));skin_updatescroll();
- );
-
- </action>
- <!--手机分享-->
- <!-- <layer name="fxpano" type="container" bgcolor="0x000000" keep="true" width="100%" height="100%" align="center" zorder="900" bgalpha="0.6" bgcapture="true" visible="false" onclick="closelayer(get(name))">
- <layer name="fxjt" type="image" url="https://bigscene.4dage.com/panorama/img/fx.png" align="topright" x="3%" y="3%"
- keep="true" width="15%" height="prop" onloaded="isweixin"
- />
- <layer name="fxmask" url="https://bigscene.4dage.com/panorama/images/alert_bg.png" keep="true" width="80%" height="prop" align="center" zorder="900" >
- <layer name="fxtext" url="https://bigscene.4dage.com/panorama/plugins/textfield.swf" align="center" edge="center" y="-10%" width="80%" autoheight="true" background="false" bgcolor="0xFF0000" border="false" bgalpha="0.8" padding="5 6" html="9999"
- css.normal="color:#FF0000; font-family:Arial; font-size:24px;"
- css.mobile="color:#FF0000; font-family:Arial; font-size:24px;"
- />
- <layer name="fxerm" type="image" url="https://bigscene.4dage.com/panorama/img/fxerm.png" align="bottomright" x="3%" y="3%" keep="true" width="prop" height="30%" visible.mobile="false"/>
- </layer>
- </layer>
- <action name="isweixin" type="Javascript">
- <![CDATA[
- var krpano = document.getElementById("krpanoSWFObject");
- var ua = navigator.userAgent.toLowerCase();
- if(ua.match(/MicroMessenger/i)=="micromessenger") {
-
- } else {
- if(ua.match(/baiduboxapp/i)=="baiduboxapp") {
- }else{
- krpano.set("layer[fxjt].visible",false);
- }
- }
- ]]>
- </action> -->
-
- <control mousetype="drag2d"
- zoomtocursor="false"
- zoomoutcursor="false"
- mouseaccelerate="1.0"
- mousespeed="10.0"
- mousefriction="0.8"
- mousefovchange="1.0"
- keybaccelerate="0.09"
- keybfriction="0.94"
- keybfovchange="0.25"
- fovspeed="3.0"
- fovfriction="0.9"
- bouncinglimits="true"
- touchfriction="0.9"
- />
-
- </krpano>
|