1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262 |
- <krpano licznik="0" webvr_enabled="false" x_listflar="0" y_listflar="160">
- <krpano>
- </krpano>
- <krpano devices="html5">
- <style name="flara_box_end_css" css="color:#b70000; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:16px;"/>
- <style name="flara_potwierdzenie_css" css="color:#000000; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:16px;"/>
- <style name="flara_popup_bg" type="container" height="100%" width="100%" bgcapture="true" bgalpha="0.0" bgcolor="0x000000" align="lefttop" edge="lefttop" handcursor="false" zorder="220" keep="true"/>
- <style name="flara_box_bg" type="container" parent="flara_popup_bg" bgcapture="true" bgalpha="1.0" bgcolor="0xFFFFFF" align="center" edge="center" handcursor="false" zorder="3" keep="true" width="490" height="440" bgroundedge="3" bgshadow="0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"/>
- <style name="flara_title_text" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" parent="flara_box_bg" handcursor="true" children="false" align="top" edge="top" height="30" width="-40" x="0" y="10" autowidth="false" vcenter="true" background="false" css="color:#064344; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:18px;" html="select lensflare style" keep="true"/>
- <style name="flara_box_end" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" parent="flara_box_bg" handcursor="true" align="righttop" edge="righttop" autoheight="false" autoalpha="true" width="50" height="30" padding="6" x="2" y="2" vcenter="true" background="false" html="close" border="false" zorder="10" onclick="close_popup_selectbox_flare()" keep="true"/>
- <style name="flara_thumb_id" parent="flara_box_bg" keep="true" zorder="10" align="lefttop" edge="lefttop" ox="10" oy="50" width="150" height="119"/>
- <style name="flara_thumb_id_aktyw" parent="flara_box_bg" type="container" width="150" height="119" bgcapture="false" bgalpha="0.3" bgcolor="0x00af10" align="lefttop" edge="lefttop" bordercolor="0x00af10" ox="10" oy="50" zorder="12" keep="true"/>
- <style name="flara_potwierdzenie_bg" type="container" parent="flara_box_bg" height="-50" width="100%" bgcapture="true" bgalpha="0.0" bgcolor="0xffffff" align="top" edge="top" oy="50" handcursor="false" zorder="20" maskchildren="true" keep="true"/>
- <style name="flara_potwierdzenie_minibox_bg" type="container" parent="flara_potwierdzenie_bg" bgcapture="true" bgalpha="1.0" bgcolor="0xFFFFFF" align="top" edge="bottom" handcursor="false" zorder="3" keep="true" width="460" height="150" bgroundedge="0 0 6 6" bgshadow="0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"/>
- <style name="flara_potwierdzenie_title" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" parent="flara_potwierdzenie_minibox_bg" handcursor="true" children="false" align="top" edge="top" height="40" width="-20" x="0" y="20" autowidth="false" vcenter="true" background="false" css="color:#5a5a5a; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:15px;" html="confirm your choice" keep="true"/>
- <style name="flara_potwierdzenie_style" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" textshadow="1" textshadowrange="1" textshadowangle="90" textshadowalpha="0.6" textshadowcolor="0xffffff" handcursor="false" parent="flara_potwierdzenie_minibox_bg" align="bottom" edge="bottom" width="120" height="60" padding="0" y="20" vcenter="true" background="true" zorder="5" keep="true"/>
- <style name="flara_potwierdzenie_cancel" x="-150" backgroundcolor="0xff8989" html="CANCEL" onclick="close_popup_flara_potwierdzenie_cancel()"/>
- <style name="flara_potwierdzenie_ok" x="0" backgroundcolor="0x62d55f" html="OK" onclick="load_flare_dynamic(get(lensflares[obj].item.count),get(wybrany_styl_flary_to),false)"/>
- <style name="flara_potwierdzenie_ok_dust" x="150" backgroundcolor="0xe6e600" html="OK[br][small][i]with dust effect[/i][/small]" onclick="load_flare_dynamic(get(lensflares[obj].item.count),get(wybrany_styl_flary_to),true)"/>
- <action name="potwierdz_wybor_stylu_flary">
- set(layer[flara_box_end].alpha, 0);
- flayer(flara_potwierdzenie_bg,flara_potwierdzenie_bg);
- tween(layer[flara_potwierdzenie_bg].bgalpha, 0.7,0.2,,WAIT);
- flayer(flara_potwierdzenie_minibox_bg,flara_potwierdzenie_minibox_bg);
- flayer(flara_potwierdzenie_title,flara_potwierdzenie_title);
- flayer(flara_potwierdzenie_cancel,flara_potwierdzenie_style|flara_potwierdzenie_cancel|flara_potwierdzenie_css);
- flayer(flara_potwierdzenie_ok,flara_potwierdzenie_style|flara_potwierdzenie_ok|flara_potwierdzenie_css);
- flayer(flara_potwierdzenie_ok_dust,flara_potwierdzenie_style|flara_potwierdzenie_ok_dust|flara_potwierdzenie_css);
- tween(layer[flara_potwierdzenie_minibox_bg].y, 150,0.3,easeOutCubic);
- </action>
- <action name="close_popup_flara_potwierdzenie_cancel">
- set(layer[flara_box_end].alpha, 1);
- vonp(flara_potwierdzenie_ok);
- vonp(flara_potwierdzenie_ok_dust);
- vonp(flara_potwierdzenie_cancel);
- vonp(flara_potwierdzenie_title);
- vonp(flara_thumb_id_aktyw);
- tween(layer[flara_potwierdzenie_minibox_bg].y, 0,0.2,easeOutCubic,
- vonp(flara_potwierdzenie_minibox_bg);
- vonp(flara_potwierdzenie_bg);
- );
- </action>
- <lensthumb>
- <item name="blinkstyle1" x="0" y="0"/>
- <item name="blinkstyle2" x="160" y="0"/>
- <item name="blinkstyle3" x="320" y="0"/>
- <item name="blinkstyle4" x="0" y="130"/>
- <item name="blinkstyle5" x="160" y="130"/>
- <item name="blinkstyle6" x="320" y="130"/>
- <item name="blinkstyle7" x="0" y="260"/>
- <item name="blinkstyle8" x="160" y="260"/>
- <item name="blinkstyle9" x="320" y="260"/>
- </lensthumb>
- <action name="show_popup_flare_selectbox">
- flayer(flara_popup_bg,flara_popup_bg);
- flayer(flara_box_bg,flara_box_bg);
- flayer(flara_title_text,flara_title_text);
- flayer(flara_box_end,flara_box_end);
- set(height_scroll_minibox_left, 0);
- for(set(i,0), i LT lensthumb.item.count, inc(i),
- copy(n, lensthumb.item[get(i)].name);
- flayer(get(n),flara_thumb_id);
- txtadd(p.url, '%SWFPATH%/skin/lensflare/src/',get(n),'.jpg');
- copy(p.x, lensthumb.item[get(i)].x);
- copy(p.y, lensthumb.item[get(i)].y);
- set(p.onclick, zaznacz_wybrany_styl_flary(get(name)));
- inc(height_scroll_minibox_left, 130);
- );
-
- copy(layer[height_scroll_minibox_left].height, height_scroll_minibox_left);
- </action>
- <action name="zaznacz_wybrany_styl_flary">
- set(wybrany_styl_flary_to, %1);
- if(!layer[flara_thumb_id_aktyw].loaded,
- flayer(flara_thumb_id_aktyw,flara_thumb_id_aktyw);
- copy(layer[flara_thumb_id_aktyw].x, layer[%1].x);
- copy(layer[flara_thumb_id_aktyw].y, layer[%1].y);
- ,
- copy(layer[flara_thumb_id_aktyw].x, layer[%1].x);
- copy(layer[flara_thumb_id_aktyw].y, layer[%1].y);
- );
- delayedcall(0.7, potwierdz_wybor_stylu_flary());
- </action>
- <action name="close_popup_selectbox_flare">
- vonp(flara_thumb_id_aktyw);
- vonp(blinkstyle1);
- vonp(blinkstyle2);
- vonp(blinkstyle3);
- vonp(blinkstyle4);
- vonp(blinkstyle5);
- vonp(blinkstyle6);
- vonp(blinkstyle7);
- vonp(blinkstyle8);
- vonp(blinkstyle9);
- vonp(flara_box_end);
- vonp(flara_box_bg);
- vonp(flara_title_text);
- vonp(flara_popup_bg);
- </action>
- <style name="flara_on_scene_box_bg" type="container" bgcapture="true" bgalpha="1.0" bgcolor="0xFFFFFF" align="bottom" edge="bottom" handcursor="false" zorder="200" x="get:x_listflar" y="get:y_listflar" keep="false" ondown="draglayer_flareshow()" width="400" height="90" bgroundedge="3" bgshadow="0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"/>
- <style name="flara_on_scene_box_mask" type="container" parent="flara_on_scene_box_bg" bgcapture="false" maskchildren="true" bgalpha="0.0" bgcolor="0x000000" align="center" edge="center" handcursor="false" zorder="1" keep="false" width="-40" y="0" height="-10"/>
- <style name="flara_on_scene_scroll" direction="h" width="1" height="100%" handcursor="false" parent="flara_on_scene_box_mask" y="0" x="0" onloaded="setcenter(0,0)" zorder="1" align="lefttop" edge="lefttop" keep="false"/>
- <style name="flara_on_scene_thumb_id" parent="flara_on_scene_scroll" keep="false" zorder="2" align="left" edge="left" y="0" width="110" height="90"/>
- <style name="flara_on_scene_thumb_dust_id" url="%SWFPATH%/skin/lensflare/dust/dust_true.png" keep="false" zorder="1" enabled="false" align="center" edge="center" x="0" y="0" width="100%" height="100%"/>
- <style name="flara_on_scene_lookto" crop="0|0|34|34" keep="false" zorder="2" align="leftbottom" edge="leftbottom" x="6" y="12" width="22" height="22"/>
- <style name="flara_on_scene_trash" crop="34|0|34|34" keep="false" zorder="2" align="leftbottom" edge="leftbottom" x="32" y="12" width="22" height="22"/>
- <style name="flara_on_add_mode_css" css="color:#000000; font-family: Arial, sans-serif; font-weight:bold; text-align:center; font-size:13px;"/>
- <style name="flara_on_add_mode" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" textshadow="1" textshadowrange="1" textshadowangle="90" textshadowalpha="0.6" textshadowcolor="0xffffff" handcursor="true" parent="flara_on_scene_box_bg" align="lefttop" edge="leftbottom" width="-270" height="30" padding="0" y="-10" roundedge="0" onclick="add_flare_cross()" vcenter="true" background="true" zorder="5" keep="false"/>
- <style name="flara_on_vr_mode" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" textshadow="1" textshadowrange="1" textshadowangle="90" textshadowalpha="0.6" textshadowcolor="0xffffff" handcursor="true" parent="flara_on_scene_box_bg" align="righttop" edge="rightbottom" width="-270" height="30" padding="0" y="-10" roundedge="0" onclick="switch_vr_mode()" vcenter="true" background="true" zorder="5" keep="false"/>
- <style name="flara_generate_code" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" textshadow="1" textshadowrange="1" textshadowangle="90" textshadowalpha="0.6" textshadowcolor="0xffffff" handcursor="true" parent="flara_on_scene_box_bg" align="top" edge="bottom" width="-280" height="50" padding="0" y="-10" roundedge="3" vcenter="true" background="true" zorder="5" backgroundcolor="0x1393aa" html="GET CODE" keep="false"/>
- <style name="flara_screen_cross_pion" type="container" bgalpha="1.0" bgcolor="0x0000ff" align="center" edge="center" bgcapture="false" zorder="10" keep="true" width="1" height="140"/>
- <style name="flara_screen_cross_poziom" type="container" bgalpha="1.0" bgcolor="0xff0000" align="center" edge="center" bgcapture="false" zorder="10" keep="true" width="140" height="1"/>
- <style name="flara_screen_addflare" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" shadow="1" shadowangle="90" textshadow="1" textshadowrange="1" textshadowangle="90" textshadowalpha="0.6" textshadowcolor="0xffffff" handcursor="true" parent="flara_screen_cross_pion" align="center" edge="rightbottom" width="130" height="40" padding="10" x="-20" y="-20" backgroundcolor="0x30aa13" roundedge="20 20 0 20" html="ADD LENSFLARE" onclick="show_popup_flare_selectbox(get(lang))" vcenter="true" background="true" zorder="5" keep="true"/>
- <action name="show_lensfrafe_aktyw_box">
-
- flayer(flara_on_scene_box_bg,flara_on_scene_box_bg);
- copy(p.x, x_listflar);
- copy(p.y, y_listflar);
- flayer(flara_on_scene_box_mask,flara_on_scene_box_mask);
- flayer(flara_on_scene_scroll,flara_on_scene_scroll);
- set(p.url, %SWFPATH%/plugins/scrollarea.js);
- flayer(flara_on_add_mode,flara_on_add_mode|flara_on_add_mode_css);
- if(flara_edit_mode,
- set(layer[flara_on_add_mode].backgroundcolor, 0x30aa13);
- set(layer[flara_on_add_mode].html, 'EDIT MODE ON');
- ,
- set(layer[flara_on_add_mode].backgroundcolor, 0xff8989);
- set(layer[flara_on_add_mode].html, 'EDIT MODE OFF');
- );
- flayer(flara_on_vr_mode,flara_on_vr_mode|flara_on_add_mode_css);
- if(!webvr_enabled,
- set(layer[flara_on_vr_mode].backgroundcolor, 0xff8989);
- set(layer[flara_on_vr_mode].html, 'VR DISABLED');
- ,
- set(layer[flara_on_vr_mode].backgroundcolor, 0x30aa13);
- set(layer[flara_on_vr_mode].html, 'VR ENABLED');
- );
- flayer(flara_generate_code,flara_generate_code|flara_on_add_mode_css);
- set(p.onclick, lensflare_is_build_so_generate(get(webvr_enabled)));
- set(xflpos, 0);
- for(set(i,0), i LT lensflares[obj].item.count, inc(i),
- if(lensflares[obj].item[get(i)].scene == '%1',
- txtadd(na, 'flt_%1_',get(lensflares[obj].item[get(i)].name));
- txtadd(look, 'lookto_%1_',get(lensflares[obj].item[get(i)].name));
- txtadd(tras, 'trash_%1_',get(lensflares[obj].item[get(i)].name));
- txtadd(dust, 'dust_%1_',get(lensflares[obj].item[get(i)].name));
- flayer(get(na),flara_on_scene_thumb_id);
- txtadd(p.url, '%SWFPATH%/skin/lensflare/src/',get(lensflares[obj].item[get(i)].typ),'.jpg');
- copy(p.x, xflpos);
- if(lensflares[obj].item[get(i)].dust_effect,
- flayer(get(dust),flara_on_scene_thumb_dust_id);
- copy(p.parent, na);
- );
- flayer(get(look),flara_on_scene_lookto);
- set(p.url, %SWFPATH%/skin/lensflare/src/ico.png);
- copy(p.parent, na);
- txtadd(p.onclick, 'lookto(get(lensflares[obj].item[',get(i),'].ath),get(lensflares[obj].item[',get(i),'].atv),100);');
- flayer(get(tras),flara_on_scene_trash);
- set(p.url, %SWFPATH%/skin/lensflare/src/ico.png);
- copy(p.parent, na);
- copy(p._na, na);
- copy(p._look, look);
- copy(p._tras, tras);
- copy(p._dust, dust);
- txtadd(p.onclick,
- '
- potwierdz_usuniecie_flary(get(lensflares[obj].item[',get(i),'].name),%1,get(_na),get(_look),get(_tras),get(_dust));
- '
- );
-
-
- inc(xflpos,126);
- copy(layer[flara_on_scene_scroll].width, xflpos);
- );
- sub(layer[flara_on_scene_scroll].width, 10);
- );
-
- </action>
- <action name="draglayer_flareshow">
- if('%1' != 'dragging',
- copy(drag_currentx, x);
- copy(drag_currenty, y);
- copy(drag_stagex, mouse.stagex);
- copy(drag_stagey, mouse.stagey);
- set(drag_sx, +1);
- set(drag_sy, +1);
- if(align == 'righttop', set(drag_sx,-1); );
- if(align == 'right', set(drag_sx,-1); );
- if(align == 'rightbottom', set(drag_sx,-1); set(drag_sy,-1); );
- if(align == 'bottom', set(drag_sy,-1); );
- if(align == 'leftbottom', set(drag_sy,-1); );
- draglayer_flareshow(dragging);
- ,
- if(pressed,
- sub(dx, mouse.stagex, drag_stagex);
- sub(dy, mouse.stagey, drag_stagey);
- mul(dx, drag_sx);
- mul(dy, drag_sy);
- add(x, drag_currentx, dx);
- add(y, drag_currenty, dy);
- copy(x_listflar, x);
- copy(y_listflar, y);
- delayedcall(0, draglayer_flareshow(dragging) );
- );
- );
- </action>
- <action name="switch_vr_mode">
- if(webvr_enabled,
- set(layer[flara_on_vr_mode].backgroundcolor, 0xff8989);
- set(layer[flara_on_vr_mode].html, 'WebVR OFF');
- set(webvr_enabled, false)
- ,
- set(layer[flara_on_vr_mode].backgroundcolor, 0x30aa13);
- set(layer[flara_on_vr_mode].html, 'WebVR ON');
- set(webvr_enabled, true)
- );
- </action>
- <action name="add_flare_cross">
- if(!flara_edit_mode,
- set(layer[flara_on_add_mode].backgroundcolor, 0x30aa13);
- set(layer[flara_on_add_mode].html, 'EDIT MODE ON');
- flayer(flara_screen_cross_pion,flara_screen_cross_pion);
- flayer(flara_screen_cross_poziom,flara_screen_cross_poziom);
- flayer(flara_screen_addflare,flara_screen_addflare);
- set(flara_edit_mode,true);
- ,
- set(layer[flara_on_add_mode].backgroundcolor, 0xff8989);
- set(layer[flara_on_add_mode].html, 'EDIT MODE OFF');
- vonp(flara_screen_cross_pion);
- vonp(flara_screen_cross_poziom);
- vonp(flara_screen_addflare);
- set(flara_edit_mode,false);
- )
- </action>
- <style name="vonflara_potwierdzenie_bg" type="container" height="100%" width="100%" bgcapture="true" bgalpha="0.3" bgcolor="0x000000" align="lefttop" edge="lefttop" handcursor="false" zorder="2000" keep="true"/>
- <style name="vonflara_potwierdzenie_minibox_bg" type="container" parent="vonflara_potwierdzenie_bg" bgcapture="true" bgalpha="1.0" bgcolor="0xFFFFFF" align="center" edge="center" handcursor="false" zorder="3" keep="true" width="400" height="150" bgroundedge="0 6 0 6" bgshadow="0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"/>
- <style name="vonflara_potwierdzenie_title" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" parent="vonflara_potwierdzenie_minibox_bg" handcursor="true" children="false" align="top" edge="top" height="40" width="-20" x="0" y="20" autowidth="false" vcenter="true" background="false" css="color:#5a5a5a; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:15px;" html="ARE YOU SURE?" keep="true"/>
- <style name="vonflara_potwierdzenie_style" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" textshadow="1" textshadowrange="1" textshadowangle="90" textshadowalpha="0.6" textshadowcolor="0xffffff" handcursor="true" parent="vonflara_potwierdzenie_minibox_bg" align="bottom" edge="bottom" width="160" height="60" padding="0" y="20" vcenter="true" background="true" zorder="5" keep="true"/>
- <style name="vonflara_potwierdzenie_cancel" x="-100" backgroundcolor="0xff8989" html="CANCEL" onclick="usun_box_us_flary()"/>
- <style name="vonflara_potwierdzenie_ok" x="100" backgroundcolor="0x62d55f" html="OK"/>
- <action name="potwierdz_usuniecie_flary">
- flayer(vonflara_potwierdzenie_bg,vonflara_potwierdzenie_bg);
- flayer(vonflara_potwierdzenie_minibox_bg,vonflara_potwierdzenie_minibox_bg);
- flayer(vonflara_potwierdzenie_title,vonflara_potwierdzenie_title);
- flayer(vonflara_potwierdzenie_cancel,vonflara_potwierdzenie_cancel|vonflara_potwierdzenie_style|flara_potwierdzenie_css);
- flayer(vonflara_potwierdzenie_ok,vonflara_potwierdzenie_ok|vonflara_potwierdzenie_style|flara_potwierdzenie_css);
- set(p.onclick, remove_flare_dynamic(%1,%2,%3,%4,%5,%6,%7));
- </action>
- <action name="usun_box_us_flary">
- vonp(vonflara_potwierdzenie_ok);
- vonp(vonflara_potwierdzenie_cancel);
- vonp(vonflara_potwierdzenie_title);
- vonp(vonflara_potwierdzenie_minibox_bg);
- vonp(vonflara_potwierdzenie_bg);
- </action>
- <action name="load_flare_dynamic">
- close_popup_flara_potwierdzenie_cancel();
- close_popup_selectbox_flare();
- inc(suma_flar);
- copy(_view_hlookat, view.hlookat);roundval(_view_hlookat,2);
- copy(_view_vlookat, view.vlookat);roundval(_view_vlookat,2);
- copy(_suma_flar, timertick);roundval(_suma_flar);
- set(_dust_effect, %3);
- txtadd(nf, 'flarka',get(_suma_flar));
- set(lensflares[obj].item[get(nf)].name);
- copy(lensflares[obj].item[get(nf)].ath, _view_hlookat);
- copy(lensflares[obj].item[get(nf)].atv, _view_vlookat);
- copy(lensflares[obj].item[get(nf)].dust_effect, _dust_effect);
- copy(lensflares[obj].item[get(nf)].scene, xml.scene);
- set(lensflares[obj].item[get(nf)].typ, %2);
-
- set(load_gui_flar, false);
- for(set(i,0), i LT lensflares[obj].item.count, inc(i),
- copy(name_flare, lensflares[obj].item[get(i)].name);
- copy(blink_style, lensflares[obj].item[get(i)].typ);
- if(lensflares[obj].item[get(i)].scene == xml.scene,
- set(load_gui_flar, true);
- for(set(j,0), j LT flare_style[get(blink_style)].item.count, inc(j),
- txtadd(n, 'f1_',get(lensflares[obj].item[get(i)].name),'_',get(j));
- add_single_flare(get(n),get(i),get(j),get(blink_style),get(name_flare),get(flare_style[get(blink_style)].item[get(j)].move));
- );
- );
- );
- show_lensfrafe_aktyw_box(get(xml.scene),get(load_gui_flar));
- </action>
- <action name="remove_flare_dynamic">
-
- if(lensflares[obj].item[%1].scene == '%2',
- vonp(%3);
- vonp(%4);
- vonp(%5);
- vonp(%6);
- vonp(flara_on_scene_scroll);
- wait(0);
- vonh_all(tagmini, %1);
- lensflares[obj].item.removearrayitem(%1);
- usun_box_us_flary(%1);
- load_flare_content(%1);
- show_lensfrafe_aktyw_box(%1);
- );
- </action>
- <style name="lensflare_is_build_so_generate_bg" type="container" height="100%" width="100%" bgcapture="true" bgalpha="0.5" bgcolor="0x000000" align="lefttop" edge="lefttop" handcursor="false" zorder="2200" keep="true"/>
- <style name="lensflare_is_build_so_generate_box" type="container" height="450" width="610" bgcapture="true" y="-20" bgalpha="1" bgcolor="0x272822" align="center" edge="center" handcursor="false" parent="lensflare_is_build_so_generate_bg" zorder="2" bgshadow="0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset" keep="true"/>
- <style name="lensflare_is_build_so_generate_copy" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" parent="lensflare_is_build_so_generate_box" handcursor="true" align="lefttop" edge="lefttop" autoheight="false" autoalpha="true" autowidth="true" height="44" padding="6" x="5" y="0" vcenter="true" background="false" enabled="false" html="Select, copy and paste to [strong] skin/lensflare/lensflaresettings.xml[/strong]" border="false" zorder="2" keep="true"/>
- <style name="lensflare_is_build_so_generate_end" url="https://ssl-player2.720static.com/api/lensflare/textfield.swf" parent="lensflare_is_build_so_generate_box" handcursor="true" align="righttop" edge="righttop" autoheight="false" autoalpha="true" autowidth="true" height="44" padding="6 10 6 10" x="2" y="0" vcenter="true" background="false" html="close" zorder="10" onclick="close_lensflare_is_build_so_generate()" keep="true"/>
- <style name="lensflare_is_build_css" css="color:#ffffff; font-family: Arial, sans-serif; font-weight:normal; text-align:left; font-size:13px;"/>
- <action name="lensflare_is_build_so_generate">
-
- set(flare_data_dynamic,);
- txtadd(flare_data_dynamic, '<krpano>
- <br/>
- <lensflares name="obj" webvr_enabled="%1">
- <br/>
- ');
- for(set(i,0), i LT lensflares[obj].item.count, inc(i),
- copy(_n, lensflares[obj].item[get(i)].name);
- copy(_ath, lensflares[obj].item[get(i)].ath);
- copy(_atv, lensflares[obj].item[get(i)].atv);
- copy(_scene, lensflares[obj].item[get(i)].scene);
- copy(_typ, lensflares[obj].item[get(i)].typ);
- if(lensflares[obj].item[get(i)].dust_effect === null, set(lensflares[obj].item[get(i)].dust_effect, true));
- copy(_dust_effect, lensflares[obj].item[get(i)].dust_effect);
- txtadd(flare_data_dynamic,get(flare_data_dynamic),' <item name="',get(_n),'" ath="',get(_ath),'" atv="',get(_atv),'" scene="',get(_scene),'" typ="',get(_typ),'" dust_effect="',get(_dust_effect),'" />
- <br/>
- ');
- );
- txtadd(flare_data_dynamic, get(flare_data_dynamic), ' </lensflares>
- <br/>
- </krpano>');
- flayer(lensflare_is_build_so_generate_bg,lensflare_is_build_so_generate_bg);
- flayer(lensflare_is_build_so_generate_box,lensflare_is_build_so_generate_box);
- flayer(lensflare_is_build_so_generate_end,lensflare_is_build_so_generate_end|lensflare_is_build_css);
- flayer(lensflare_is_build_so_generate_copy,lensflare_is_build_so_generate_copy|lensflare_is_build_css);
- js(show_fl_textfield(get(flare_data_dynamic)));
- </action>
- <action name="close_lensflare_is_build_so_generate">
- vonp(lensflare_is_build_so_generate_bg);
- vonp(lensflare_is_build_so_generate_box);
- vonp(lensflare_is_build_so_generate_end);
- vonp(lensflare_is_build_so_generate_copy);
- js(remove_textfield());
- </action>
- </krpano>
- <style name="blink_fl_lt" url="https://ssl-player2.720static.com/api/lensflare/dust/d1.png" enabled="false" parent="STAGE" align="center" edge="rightbottom" x="0" y="0" width="prop" height="70%" keep="false" alpha="0" zorder="100"/>
- <style name="blink_fl_rt" url="https://ssl-player2.720static.com/api/lensflare/dust/d2.png" enabled="false" parent="STAGE" align="center" edge="leftbottom" x="0" y="0" width="prop" height="70%" keep="false" alpha="0" zorder="100"/>
- <style name="blink_fl_rb" url="https://ssl-player2.720static.com/api/lensflare/dust/d3.png" enabled="false" parent="STAGE" align="center" edge="lefttop" x="0" y="0" width="prop" height="70%" keep="false" alpha="0" zorder="100"/>
- <style name="blink_fl_lb" url="https://ssl-player2.720static.com/api/lensflare/dust/d4.png" enabled="false" parent="STAGE" align="center" edge="righttop" x="0" y="0" width="prop" height="70%" keep="false" alpha="0" zorder="100"/>
- <style name="blink_fl_ce" url="https://ssl-player2.720static.com/api/lensflare/dast4.png" enabled="false" parent="STAGE" rotate="180" align="center" edge="center" x="0" y="0" width="prop" height="50%" keep="false" alpha="0" zorder="100"/>
- <events name="loasflares" keep="true" onpreviewcomplete="load_flare_content()"/>
- <style name="flare" enabled="false" distorted="get:lensflares[obj].webvr_enabled" edge="center" ox="0" oy="0" width="440" height="440" keep="false"/>
- <flare_style name="blinkstyle1">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare7.png" move="0" scale="1.0" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare2.png" move="-6" scale="0.2" alpha="0.2" zorder="-1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-3" scale="0.3" alpha="0.4" zorder="-1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare8.png" move="-0.8" scale="0.3" alpha="0.6" zorder="-1"/>
- <item name="flare6" url="https://ssl-player2.720static.com/api/lensflare/flare8.png" move="-0.3" scale="0.2" alpha="0.7" zorder="-1"/>
- <item name="flare7" url="https://ssl-player2.720static.com/api/lensflare/flare4.png" move="7" scale="0.8" alpha="0.2" zorder="-1"/>
- </flare_style>
- <flare_style name="blinkstyle2">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare7.png" move="0" scale="1.0" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-5" scale="0.2" alpha="0.3" zorder="-1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="-2" scale="0.1" alpha="0.6" zorder="-1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-1.5" scale="0.1" alpha="0.4" zorder="-1"/>
- <item name="flare6" url="https://ssl-player2.720static.com/api/lensflare/flare4.png" move="-0.7" scale="0.8" alpha="0.2" zorder="-1"/>
- </flare_style>
- <flare_style name="blinkstyle3">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare7.png" move="0" scale="1.0" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-4" scale="0.2" alpha="0.3" zorder="-1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="-2" scale="0.1" alpha="0.6" zorder="-1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-1.5" scale="0.1" alpha="0.4" zorder="-1"/>
- </flare_style>
- <flare_style name="blinkstyle4">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare7.png" move="0" scale="1.0" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare4.png" move="7" scale="0.8" alpha="0.3" zorder="-1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare1.png" move="0" scale="1" alpha="1" zorder="-1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-2.5" scale="0.1" alpha="0.4" zorder="-1"/>
- </flare_style>
- <flare_style name="blinkstyle5">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare1.png" move="0" scale="1.0" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="-6" scale="0.2" alpha="0.3" zorder="1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare4.png" move="-3" scale="0.4" alpha="0.5" zorder="1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare8.png" move="-2.5" scale="0.1" alpha="0.4" zorder="1"/>
- </flare_style>
- <flare_style name="blinkstyle6">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare7.png" move="0" scale="0.5" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="-4" scale="0.1" alpha="0.4" zorder="-1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-2" scale="0.1" alpha="0.4" zorder="-1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare2.png" move="-1.5" scale="0.1" alpha="0.4" zorder="-1"/>
- <item name="flare6" url="https://ssl-player2.720static.com/api/lensflare/flare8.png" move="-1.0" scale="0.08" alpha="0.4" zorder="-1"/>
- </flare_style>
- <flare_style name="blinkstyle7">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare1.png" move="0" scale="1.0" alpha="1.0" zorder="2"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="3"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare8.png" move="-6" scale="0.2" alpha="0.2" zorder="2"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-3" scale="0.3" alpha="0.2" zorder="2"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-0.8" scale="0.2" alpha="0.6" zorder="2"/>
- <item name="flare6" url="https://ssl-player2.720static.com/api/lensflare/flare3.png" move="6" scale="0.6" alpha="0.1" zorder="1"/>
- <item name="flare7" url="https://ssl-player2.720static.com/api/lensflare/flare4.png" move="9" scale="0.8" alpha="0.2" zorder="1"/>
- </flare_style>
- <flare_style name="blinkstyle8">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare7.png" move="0" scale="0.7" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="6.0" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare2.png" move="-4" scale="0.2" alpha="0.4" zorder="-1"/>
- <item name="flare4" url="https://ssl-player2.720static.com/api/lensflare/flare3.png" move="-3.5" scale="0.3" alpha="0.2" zorder="-1"/>
- <item name="flare5" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-2.8" scale="0.2" alpha="0.1" zorder="-1"/>
- <item name="flare6" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="-1.5" scale="0.1" alpha="0.5" zorder="-1"/>
- <item name="flare7" url="https://ssl-player2.720static.com/api/lensflare/flare4.png" move="-1" scale="0.8" alpha="0.2" zorder="-1"/>
- </flare_style>
- <flare_style name="blinkstyle9">
- <item name="flare1" url="https://ssl-player2.720static.com/api/lensflare/flare1.png" move="0" scale="0.3" alpha="1.0" zorder="-1"/>
- <item name="flare2" url="https://ssl-player2.720static.com/api/lensflare/flare5.png" move="0" scale="0.1" alpha="0.0" zorder="2"/>
- <item name="flare3" url="https://ssl-player2.720static.com/api/lensflare/flare6.png" move="-6" scale="0.03" alpha="0.4" zorder="-1"/>
- </flare_style>
- <action name="load_flare_content">
- if(!first_flare_settings,
- copy(suma_flar, lensflares[obj].item.count);
- set(first_flare_settings,true);
- );
- if(lensflares[obj].item.count GT 0 OR addflaremode == true,
- flayer(blink_fl_lt,blink_fl_lt);
- flayer(blink_fl_rt,blink_fl_rt);
- flayer(blink_fl_rb,blink_fl_rb);
- flayer(blink_fl_lb,blink_fl_lb);
-
- );
- set(load_gui_flar, false);
- for(set(i,0), i LT lensflares[obj].item.count, inc(i),
- copy(name_flare, lensflares[obj].item[get(i)].name);
- copy(blink_style, lensflares[obj].item[get(i)].typ);
- if(lensflares[obj].item[get(i)].scene == xml.scene,
- set(load_gui_flar, true);
- for(set(j,0), j LT flare_style[get(blink_style)].item.count, inc(j),
- txtadd(n, 'f1_',get(lensflares[obj].item[get(i)].name),'_',get(j));
- add_single_flare(get(n),get(i),get(j),get(blink_style),get(name_flare),get(flare_style[get(blink_style)].item[get(j)].move));
- );
- );
- );
- if(addflaremode,
- show_lensfrafe_aktyw_box(get(xml.scene),get(load_gui_flar));
- )
- </action>
- <action name="add_single_flare">
-
- fhotspot(%1,flare);
- copy(h.url, flare_style[%4].item[%3].url);
- copy(h.ath, lensflares[obj].item[%5].ath);
- copy(h.atv, lensflares[obj].item[%5].atv);
- if(lensflares[obj].item[%5].dust_effect === null, set(lensflares[obj].item[%5].dust_effect, true));
- copy(h.dust_effect, lensflares[obj].item[%5].dust_effect);
- set(h.tagmini, %5);
- copy(h.scale, flare_style[%4].item[%3].scale);
- copy(h.alpha, flare_style[%4].item[%3].alpha);
- copy(h.zorder, flare_style[%4].item[%3].zorder);
- set(h.onloaded,
- asyncloop(loaded,
- spheretoscreen(ath, atv, xposh_%1, yposh_%1);
- div(xpos_%1, stagewidth, 2);
- div(ypos_%1, stageheight, 2);
- sub(xposg_%1, xposh_%1, xpos_%1);
- sub(yposg_%1, yposh_%1, ypos_%1);
- div(ox, xposg_%1, %6);
- div(oy, yposg_%1, %6);
- if(%3 == '1',
- getlooktodistance(result_%1, view.hlookat, view.vlookat, ath, atv);
- div(result1_%1, result_%1, 10);
- clamp(result1_%1, 0.0, 1.0);
- mod(result2_%1, result1_%1, 100);
- sub(result2_%1,1);
- mul(result2_%1,-1);
- copy(alpha, result2_%1);
- sub(alpha, 0.3);
-
-
- if('%4' != 'blinkstyle9',
- if(result_%1 LT 7,
- migaj_kurzem(get(result2_%1),get(dust_effect));
- );
- if(result_%1 GT 7 AND result_%1 LT 20,
- migaj_kurzem(0,true);
- );
- );
-
- );
- testme(%1,get(xposh_%1),get(yposh_%1));
- );
- );
-
- </action>
- <action name="migaj_kurzem">
-
-
- if(%2,
- set(layer[blink_fl_lt].alpha, %1);
- set(layer[blink_fl_rt].alpha, %1);
- set(layer[blink_fl_rb].alpha, %1);
- set(layer[blink_fl_lb].alpha, %1);
- set(layer[blink_fl_ce].alpha, %1);
- );
- </action>
- <action name="testme">
- if(%3 LT 0 OR !%3,
- set(ukryj_gora_%1, true);
- ,
- set(ukryj_gora_%1, false);
- );
- if(%3 GT stageheight OR !%3,
- set(ukryj_dol_%1, true);
- ,
- set(ukryj_dol_%1, false);
- );
- if(%2 LT 0 OR !%2,
- set(ukryj_lewo_%1, true);
- ,
- set(ukryj_lewo_%1, false);
- );
- if(%2 GT stagewidth OR !%2,
- set(ukryj_prawo_%1, true);
- ,
- set(ukryj_prawo_%1, false);
- );
-
- if(!ukryj_gora_%1 AND !ukryj_dol_%1 AND !ukryj_lewo_%1 AND !ukryj_prawo_%1,
- set(visible, true);
- ,
- set(visible, false);
- );
- </action>
- <action name="reset_pano_lensflare"/>
- <action name="flayer">
- addlayer(%1);
- layer[%1].loadstyle(%2);
- copy(p, layer[%1]);
- </action>
- <action name="fhotspot">
- addhotspot(%1);
- hotspot[%1].loadstyle(%2);
- copy(h, hotspot[%1]);
- </action>
- <action name="vonp">
- if(layer[%1].loaded, removelayer(%1));
- </action>
- <action name="vonh">
- if(hotspot[%1].loaded, removehotspot(%1));
- </action>
- <action name="vonh_all">
- sub(i,hotspot.count,1);
- if(i GE 0,loop_vonh_all(get(i),%1,%2));
- </action>
- <action name="loop_vonh_all">
- if(%2 == null,
- vonh(%1);
- ,
- if(hotspot[%1].%2 == %3,
- vonh(%1);
- );
- );
- dec(i);
- if(i GE 0, loop_vonh_all(get(i),%2,%3));
- </action>
- </krpano>
- <krpano>
- <style name="skin_style" url="calc:settings.root_url + '/krp/skin/skin_v10.png'"/>
- <control mouse="moveto" keycodesin="16,65,107" keycodesout="17,89,90,109" bouncinglimits="true"/>
- <settings root_url="https://ssl-player2.720static.com/krp/%$playerDomain%" base_url="%HTMLPATH%/%$playerDomain%/krp/1.20.7/" skin_url="%HTMLPATH%/%$playerDomain%/krp/1.19-pr16/" domain="%HTMLPATH%/%$playerDomain%/" first_pano_inited="false" client="false" sound_play_id="play_sound_id" sound_playing="false" sound_on="true" voice_play_id="play_voice_id" voice_playing="false" voice_on="true" bottom_right_btn_width="55" menu_btn_width="70" pano_thumbs_width="80" pano_thumbs_height="80" pano_thumbs_padding_v="10" pano_thumbs_padding_h="20" category_thumbs_width="100" category_thumbs_height="100" category_thumbs_padding_v="10" category_thumbs_padding_h="30" category_thumbs_bg_crop="0|0|218|218" category_thumbs_bg_crop_selected="218|241|218|218" thumb_btn_url="calc:settings.skin_url + 'system/piclist.png'" start_image_desktop="calc:settings.skin_url + 'skin/mouseAlert.png'" start_image_mobile="calc:settings.skin_url + 'skin/touchAlert.png'" circle_mask="calc:settings.skin_url + 'skin/ground-logo.png'" rain_image="calc: settings.skin_url + 'skin/rain.png'" snow_image="calc: settings.skin_url + 'skin/snow.png'" map_zoom_image="calc:settings.skin_url + 'skin/mapZoom.png'" close_image="calc:settings.skin_url + 'skin/close.png'" embed_txt_image="calc:settings.skin_url + 'skin/embed_txt_bg.png'" embed_line_image="calc:settings.domain + 'krp/embed.png'" embed_txt_colored_image="calc:settings.skin_url + 'skin/hotspot_txt_arrow_color.png'" weather_image_1="calc:settings.skin_url + 'skin/hongbao.png'" weather_image_2="calc:settings.skin_url + 'skin/hongbao1.png'" weather_image_3="calc:settings.skin_url + 'skin/hongbao2.png'" comment_add_head_bg_image="calc:settings.skin_url + 'skin/comment_add_head_bg.png'" comment_edit_line_image="calc:settings.skin_url + 'skin/editLine.png'" comment_edit_bg_image="calc:settings.skin_url + 'skin/editBg.png'" custom_weather_image_4="calc:settings.skin_url + 'skin/hongbao.png'" custom_weather_image_5="calc:settings.skin_url + 'skin/hongbao1.png'" custom_weather_image_6="calc:settings.skin_url + 'skin/hongbao2.png'" feipai_logo_url="calc:settings.skin_url + 'source/720_feipai.png'" blank_music_url="calc:settings.root_url + '/krp/music/blank.mp3'"/>
- <plugin_url TEXT_SWF="calc:settings.base_url + 'plugins/textfield.swf'" GYRO="calc:settings.base_url + 'plugins/gyro2.js'" SOUND_SWF="calc:settings.base_url + 'plugins/soundinterface.swf'" SOUND_JS="calc:settings.skin_url + 'plugins/soundinterface.js'" SCROLL_SWF="calc:settings.base_url + 'plugins/scrollarea.swf'" SCROLL_JS="calc:settings.base_url + 'plugins/scrollarea.js'" RADAR_SWF="calc:settings.base_url + 'plugins/radar.swf'" RADAR_JS="calc:settings.base_url + 'plugins/radar.js'" SNOW_SWF="calc:settings.base_url + 'plugins/snow.swf'" SNOW_JS="calc:settings.base_url + 'plugins/snow.js'" PLUGINS_SUN_IMAGE="calc:settings.base_url + 'plugins/lensflareset/lensflares.jpg'" WEBVR_JS="calc:settings.base_url + 'plugins/webvr.js'" WEBVR_XML="calc:settings.base_url + 'plugins/webvr.xml'" VIDEO_JS="calc:settings.base_url + 'plugins/krp_video_player_4_pich.js'" TWEENTYPES_JS="calc:settings.base_url + 'plugins/moretweentypes.js'"/>
- <plugin url="calc:plugin_url.TWEENTYPES_JS" preload="true"/>
- <blendmodes name="blend0" blend="OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"/>
- <blendmodes name="blend1" blend="ZOOMBLEND(2.0, 2.0, easeInOutSine)"/>
- <blendmodes name="blend2" blend="COLORBLEND(2.0, 0x000000, easeOutSine)"/>
- <blendmodes name="blend3" blend="LIGHTBLEND(1.0, 0xFFFFFF, 2.0, linear)"/>
- <blendmodes name="blend4" blend="SLIDEBLEND(1.0, 0.0, 0.2, linear)"/>
- <blendmodes name="blend5" blend="SLIDEBLEND(1.0, 135.0, 0.4, linear)"/>
- <blendmodes name="blend6" blend="OPENBLEND(1.0, 0.0, 0.2, 0.0, linear)"/>
- <blendmodes name="blend7" blend="OPENBLEND(1.0, -1.0, 0.3, 0.0, linear)"/>
- <blendmodes name="blend8" blend="OPENBLEND(1.0, -0.5, 0.3, 0.8, linear)"/>
- <action name="showtext_install" autorun="preinit">
-
- set(showtext, action(showtext_xml,%%1,%%2) );
-
- set(showtext_style, DEFAULT);
- set(showtext_prevstyle, null);
- set(showtext_text, '');
- set(showtext_prevtext, '');
- set(showtext_timeout, 0.1);
- set(showtext_fadeout, 0.0);
- set(showtext_clipping, false);
- </action>
- <action name="showtext_xml">
- set(showtext_style, DEFAULT);
- if(%2 != null, ifnot(textstyle[%2], trace('textstyle "%2" not found'); , set(showtext_style,%2)); );
- set(showtext_text, %1);
- if(showtext_text != showtext_prevtext,
- copy(showtext_prevtext, showtext_text);
- showtext_createnewtext();
- ,
- delayedcall(showtext_timer, get(showtext_timeout), showtext_hide() );
- );
- </action>
- <action name="showtext_createnewtext">
-
- stopdelayedcall(showtext_mouseupdates);
- stoptween(layer[showtext_tf].alpha);
-
- if(showtext_style != showtext_prevstyle,
- copy(showtext_prevstyle, showtext_style);
- removelayer(showtext_tf);
- );
-
- addlayer(showtext_tf);
-
- copy(tf, layer[showtext_tf]);
- copy(ts, textstyle[get(showtext_style)]);
-
- if(ts.origin !== null, copy(ts_origin, ts.origin), set(ts_origin, 'cursor'));
- if(ts.edge !== null, copy(ts_edge, ts.edge), set(ts_edge, 'bottom'));
- if(ts.xoffset !== null, copy(ts_xoffset, ts.xoffset), set(ts_xoffset, 0));
- if(ts.yoffset !== null, copy(ts_yoffset, ts.yoffset), set(ts_yoffset, -3));
-
- if(ts_origin == 'cursor',
- set(tf.align, 'lefttop');
- showtext_movetomouse();
- ,
- copy(tf.align, ts_origin);
- );
- copy(tf.edge, ts_edge);
- copy(tf.ox, ts_xoffset);
- copy(tf.oy, ts_yoffset);
-
- if(ts.font !== null, copy(ts_font, ts.font), set(ts_font, 'Times'));
- if(ts.fontsize !== null, copy(ts_fontsize, ts.fontsize), set(ts_fontsize, 12.0));
- if(ts.bold !== null, copy(ts_bold, ts.bold), set(ts_bold, true));
- if(ts.italic !== null, copy(ts_italic, ts.italic), set(ts_italic, false));
- if(ts.textcolor !== null, copy(ts_textcolor, ts.textcolor), set(ts_textcolor, 0x000000));
- if(ts.textalign !== null, copy(ts_textalign, ts.textalign), set(ts_textalign, 'left'));
-
- set(tf_css, '');
- tohex(ts_textcolor, '#', 6);
- txtadd(tf_css, 'font-family:',get(ts_font),'; font-size:',get(ts_fontsize),'px; color:',get(ts_textcolor),'; ');
- if(ts_textalign != 'none', txtadd(tf_css, get(tf_css), 'text-align:',get(ts_textalign),'; '));
- if(ts_bold, txtadd(tf_css, 'font-weight:bold; '));
- if(ts_italic, txtadd(tf_css, 'font-style:italic; '));
- if(ts.css !== null, txtadd(tf_css, get(ts.css)));
- copy(tf.css, tf_css);
-
- if(ts.width !== null, copy(tf.width, ts.width));
- if(ts.height !== null, copy(tf.height, ts.height));
- if(ts.vcenter !== null, copy(tf.vcenter, ts.vcenter));
- if(ts.padding !== null, copy(tf.padding, ts.padding), set(tf.padding,1));
-
- if(ts.background !== null, copy(tf.background, ts.background));
- if(ts.backgroundcolor !== null, copy(tf.backgroundcolor, ts.backgroundcolor));
- if(ts.backgroundalpha !== null, copy(tf.backgroundalpha, ts.backgroundalpha));
- if(ts.border !== null, copy(tf.border, ts.border), set(tf.border,true));
- if(ts.bordercolor !== null, copy(tf.bordercolor, ts.bordercolor));
- if(ts.borderalpha !== null, copy(tf.borderalpha, ts.borderalpha));
- if(ts.borderwidth !== null, copy(tf.borderwidth, ts.borderwidth));
- if(ts.roundedge !== null, copy(tf.roundedge, ts.roundedge));
- if(ts.shadow !== null, copy(tf.shadow, ts.shadow));
- if(ts.shadowrange !== null, copy(tf.shadowrange, ts.shadowrange));
- if(ts.shadowangle !== null, copy(tf.shadowangle, ts.shadowangle));
- if(ts.shadowcolor !== null, copy(tf.shadowcolor, ts.shadowcolor));
- if(ts.shadowalpha !== null, copy(tf.shadowalpha, ts.shadowalpha));
- if(ts.textshadow !== null, copy(tf.textshadow, ts.textshadow));
- if(ts.textshadowrange !== null, copy(tf.textshadowrange, ts.textshadowrange));
- if(ts.textshadowangle !== null, copy(tf.textshadowangle, ts.textshadowangle));
- if(ts.textshadowcolor !== null, copy(tf.textshadowcolor, ts.textshadowcolor));
- if(ts.textshadowalpha !== null, copy(tf.textshadowalpha, ts.textshadowalpha));
-
- if(ts.alpha !== null, copy(ts_alpha, ts.alpha), set(ts_alpha, 1.0));
- if(ts.showtime !== null, copy(ts_showtime, ts.showtime), set(ts_showtime, 0.1));
- if(ts.fadetime !== null, copy(ts_fadetime, ts.fadetime), set(ts_fadetime, 0.0));
- if(ts.fadeintime !== null, copy(ts_fadeintime, ts.fadeintime), set(ts_fadeintime, 0.0));
- copy(showtext_timeout, ts_showtime);
- copy(showtext_fadeout, ts_fadetime);
- if(ts_fadeintime GT 0,
- set(tf.alpha, 0.0);
- tween(layer[showtext_tf].alpha, get(ts_alpha), get(ts_fadeintime), linear);
- ,
- copy(tf.alpha, ts_alpha);
- );
- if(ts.noclip !== null, copy(showtext_clipping,ts.noclip), set(showtext_clipping, true));
- if(showtext_clipping,
- set(tf.onloaded, showtext_do_clipping() );
- set(tf.onautosized, showtext_do_clipping() );
- );
-
- if(ts.embeddedfonts !== null, copy(tf.embeddedfonts, ts.embeddedfonts));
- if(ts.effect !== null, copy(tf.effect, ts.effect));
- if(ts.blendmode !== null, copy(tf.blendmode, ts.blendmode));
-
- copy(tf.html, showtext_text);
- set(tf.enabled, false);
- set(tf.zorder, 3000);
- if(ts.parent, copy(tf.parent, ts.parent) );
- set(tf.url,get(plugin_url.TEXT_SWF));
-
- delete(ts);
- delete(tf);
-
- delayedcall(showtext_timer, get(showtext_timeout), showtext_hide() );
- </action>
- <action name="showtext_do_clipping">
- if(showtext_clipping,
- layer[showtext_tf].updatepos();
- copy(tf_px, layer[showtext_tf].pixelx);
- copy(tf_py, layer[showtext_tf].pixely);
- if(tf_px LT 0,
- sub(layer[showtext_tf].x, tf_px);
- ,
- add(tf_rightedge, tf_px, layer[showtext_tf].pixelwidth);
- if(tf_rightedge GE stagewidth, sub(tf_rightedge,stagewidth); sub(layer[showtext_tf].x,tf_rightedge); );
- );
- if(tf_py LT 0,
- sub(layer[showtext_tf].y, tf_py);
- ,
- add(tf_bottomedge, tf_py, layer[showtext_tf].pixelheight);
- if(tf_bottomedge GE stageheight, sub(tf_bottomedge,stageheight); sub(layer[showtext_tf].y,tf_bottomedge); );
- );
- );
- </action>
- <action name="showtext_movetomouse">
- copy(layer[showtext_tf].x, mouse.stagex);
- copy(layer[showtext_tf].y, mouse.stagey);
- showtext_do_clipping();
- delayedcall(showtext_mouseupdates, 0, showtext_movetomouse() );
- </action>
- <action name="showtext_hide">
- if(layer[showtext_tf],
- tween(layer[showtext_tf].alpha, 0.0, get(showtext_fadeout), linear,
- stopdelayedcall(showtext_mouseupdates);
- removelayer(showtext_tf);
- set(showtext_text, '');
- set(showtext_prevtext, '');
- );
- );
- </action>
- <textstyle name="tooltipTextStyle" font="STXihei" fontsize.no-mobile="14" fontsize.mobile="18" bold="false" background="true" backgroundcolor="0x000000" backgroundalpha="0.667" border="true" borderwidth="2" bordercolor="0xFFFFFF" roundedge="5" textcolor="0xFFFFFF" padding="6 10" textalign="center" yoffset.no-touch="-5" yoffset.touch="-40"/>
- <events onsingleclick="on_single_click();" ondoubleclick="on_double_click();" onautorotateoneround="load_pano_loop();" onloadcomplete="on_load_complete();" onviewchange="on_view_changed();" onmouseup="on_mouse_up();" onclick="on_click();"/>
- <action name="on_click">
- if(useMarkMode == true,
- screentosphere(mouse.x,mouse.y, hclick,vclick);
- clickToAddFlag();
- );
- </action>
- <action name="on_single_click">
- js_playerClickCallback();
- </action>
- <action name="on_double_click">
- js_playerDoubleClickCallback();
- </action>
- <action name="on_mouse_up">
- set(js_command, 'interfaceObject.mouseUpCallback()');
- jscall(get(js_command));
- </action>
- <action name="on_view_changed">
- js_viewChangedCallback();
- </action>
- <action name="clickToAddFlag">
- krpAddSelfMark(get(hclick), get(vclick));
- set(js_command, '{\"type\":1, \"action\":0, \"to\":\"\", \"payload\":[\"krpAddMark(');
- txtadd(js_command, get(hclick));
- txtadd(js_command, ',');
- txtadd(js_command, get(vclick));
- txtadd(js_command, ',');
- txtadd(js_command, get(daikanAvatar));
- txtadd(js_command, ',');
- txtadd(js_command, get(daikanNickname));
- txtadd(js_command, ');\"]}');
- js_sendCommand(get(js_command));
- js_App('krpFlagClick', get(hclick), get(vclick));
-
- </action>
- <layer name="radar_container" keep="true" type="container" align="topleft" width="100%" height="100%" maskchildren="fasle" visible="true" bgcapture="false" zorder="10">
- <layer name="radar_layer" keep="true" type="container" align="topright" width="100%" height="100%" maskchildren="false" visible="true" bgcapture="false" zorder="10"/>
- </layer>
- <action name="show_UI">
- set(layer[radar_container].visible,true);
- set(layer[radarBtn].visible,true);
- if(%1 != 1,
- js_toggleUI(true);
- );
- </action>
- <action name="hide_UI">
- if(%1 != 1,
- set(layer[radar_container].visible,false);
- set(layer[radarBtn].visible,false);
- );
- if(%2 != 1,
- js_toggleUI(false);
- );
- </action>
- <action name="js_viewChangedCallback">
- set(js_command, 'interfaceObject.viewDidChangeCallback()');
- jscall(get(js_command));
- js_App('krpViewChange', get(view.hlookat), get(view.vlookat), get(view.fov));
- </action>
- <action name="js_showViewType">
- set(js_command, 'interfaceObject.showViewType()');
- jscall(get(js_command));
- </action>
- <action name="js_toggleLoading">
- set(js_command, calc('interfaceObject.toggleLoading(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_playerReadyCallback">
- set(js_command, 'interfaceObject.playerDidReadyCallback()');
-
- </action>
- <action name="js_playerClickCallback">
- set(js_command, 'interfaceObject.playerDidClickCallback()');
- jscall(get(js_command));
- </action>
- <action name="js_playerDoubleClickCallback">
- set(js_command, 'interfaceObject.playerDidDoubleClickCallback()');
- jscall(get(js_command));
- </action>
- <action name="js_sceneReadyCallback">
- set(js_command, 'interfaceObject.sceneDidChangeCallback()');
- jscall(get(js_command));
- </action>
- <action name="js_sceneLoadedCallback">
- set(js_command, 'interfaceObject.sceneDidLoadedCallback()');
- jscall(get(js_command));
- </action>
- <action name="js_sceneChangeCallback">
- set(jscall_scene_id,%1);
- if(%2 === null,
- set(js_command, calc('interfaceObject.loadScene("' + jscall_scene_id + '")'));
- ,
- set(jscall_blend_mode,%2);
- set(js_command, calc('interfaceObject.loadScene("' + jscall_scene_id + '",' + jscall_blend_mode + ')'));
- );
- jscall(get(js_command));
- </action>
- <action name="js_panoChangeCallback">
- set(jscall_pano_id,%1);
- if(%2 === null,
- set(js_command, calc('interfaceObject.loadSceneByPanoID(' + jscall_pano_id + ')'));
- ,
- set(jscall_blend_mode,%2);
- set(js_command, calc('interfaceObject.loadSceneByPanoID(' + jscall_pano_id + ',' + jscall_blend_mode + ')'));
- );
- jscall(get(js_command));
- </action>
- <action name="js_hotspotClickCallback">
- set(jscall_hotspot_id,%1);
- js_App('krpHotspotClick', get(jscall_hotspot_id));
- set(js_command, calc('interfaceObject.hotspotDidClickCallback("' + jscall_hotspot_id + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_toggleUI">
- set(js_command, calc('interfaceObject.toggleUI(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_radarMapStatusDidChangeCallback">
- set(js_command, calc('interfaceObject.radarMapStatusDidChangeCallback(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_radarMapFullscreenStatusDidChangeCallback">
- set(js_command, calc('interfaceObject.radarMapFullscreenStatusDidChangeCallback(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_showAutoTourSubtitle">
- set(jscall_autotour_subtitle_text, %1);
- set(jscall_autotour_subtitle_position, %2);
- set(jscall_autotour_subtitle_size, %3);
- set(jscall_autotour_subtitle_background, %4);
- set(js_command, calc('interfaceObject.showAutoTourSubtitle("' + jscall_autotour_subtitle_text + '","' + jscall_autotour_subtitle_position + '",' + jscall_autotour_subtitle_size + ',"' + jscall_autotour_subtitle_background + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_hideAutoTourSubtitle">
- set(js_command, 'interfaceObject.hideAutoTourSubtitle()');
- jscall(get(js_command));
- </action>
- <action name="js_toggleAutoTourUI">
- set(js_command, calc('interfaceObject.toggleAutoTourUI(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_autoTourEndCallback">
- set(js_command, 'interfaceObject.autoTourEndCallback()');
- jscall(get(js_command));
- unmuted_embed_video();
- </action>
- <action name="js_vrUnavailableCallback">
- set(js_command, 'interfaceObject.unavailableCallback("vr")');
- jscall(get(js_command));
- </action>
- <action name="js_exitVRCallback">
- set(js_command, 'interfaceObject.vrDidExitCallback()');
- jscall(get(js_command));
- </action>
- <action name="js_playSound">
- set(jscall_id,%1);
- set(jscall_url,%2);
- set(js_command, calc('interfaceObject.playSound("' + jscall_id + '","' + jscall_url + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_pauseSound">
- set(jscall_id,%1);
- set(js_command, calc('interfaceObject.pauseSound("' + jscall_id + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_resumeSound">
- set(jscall_id,%1);
- set(js_command, calc('interfaceObject.resumeSound("' + jscall_id + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_stopSound">
- set(jscall_id,%1);
- set(js_command, calc('interfaceObject.stopSound("' + jscall_id + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_toggleBgMusic">
- set(js_command, calc('interfaceObject.toggleMusic(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_toggleBgMusicEmbedVideo">
- set(js_command, calc('interfaceObject.toggleMusicEmbedVideo(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_toggleBgVoice">
- set(js_command, calc('interfaceObject.toggleVoice(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_toggleBgVoiceEmbedVideo">
- set(js_command, calc('interfaceObject.toggleVoiceEmbedVideo(' + %1 + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_toggleFullscreen">
- if(fullscreen == true,
- set(js_command, false);
- ,
- set(js_command, true);
- );
- set(js_command, calc('interfaceObject.toggleFullscreen(' + js_command + ')'));
- jscall(get(js_command));
- </action>
- <action name="js_mouseControlChangedCallback">
- set(jscall_state,%1);
- set(js_command, calc('interfaceObject.mouseControlChangedCallback("' + jscall_state + '")'));
- jscall(get(js_command));
- </action>
- <action name="js_openReport">
- set(js_command, calc('interfaceObject.openReport()'));
- jscall(get(js_command));
- </action>
- <action name="js_sendCommand">
- set(js_command, 'interfaceObject.sendCommand("%1")');
- jscall(get(js_command));
- </action>
- <action name="js_closeOverlay">
- set(js_command, 'interfaceObject.toggleInfo(false)');
- jscall(get(js_command));
- </action>
- <action name="js_App">
- if(device.ios,
- js_iOS(%1,%2, %3, %4);
- );
- if(device.android,
- js_Android(%1,%2, %3, %4);
- );
- </action>
- <action name="js_Android">
- set(command_action, %1);
- set(command_arg1, %2);
- set(js_command, calc('window.androidInterface.' + command_action + '("' + command_arg1));
- if(%3 !== null,
- set(command_arg2, %3);
- txtadd(js_command, calc('","' + command_arg2));
- );
- if(%4 !== null,
- set(command_arg3, %4);
- txtadd(js_command, calc('","' + command_arg3));
- );
- txtadd(js_command, '")');
- jscall(get(js_command));
- </action>
- <action name="js_iOS">
- set(command_action, %1);
- set(command_arg1, %2);
- set(js_command, calc('window.webkit.messageHandlers.' + command_action + '.postMessage(["' + command_arg1));
- if(%3 !== null,
- set(command_arg2, %3);
- txtadd(js_command, calc('","' + command_arg2));
- );
- if(%4 !== null,
- set(command_arg3, %4);
- txtadd(js_command, calc('","' + command_arg3));
- );
- txtadd(js_command, '"])');
- jscall(get(js_command));
- </action>
- <action name="js_request_gyro_promission">
- </action>
- <action name="krpSceneChange">
- set(sceneChange_id, %1);
- set(sceneChange_effect, %2);
- set(sceneChange_keepView, %3);
- if(sceneChange_id != 's_NaN',
- load_pano_by_id(get(sceneChange_id), get(sceneChange_keepView), get(sceneChange_effect));
- js_App('krpSceneChange', get(sceneChange_id));
- ,
- js_toggleLoading(false);
- );
- </action>
- <action name="krpSphereToScreen">
- set(tmp_h,%1);
- set(tmp_v,%2);
- spheretoscreen(tmp_h,tmp_v,tmp_x,tmp_y);
- set(js_command, calc('interfaceObject.krpSphereToScreenCb(' + tmp_x + ', ' + tmp_y + ')'));
- jscall(get(js_command));
- </action>
- <action name="krpAddTextHotspot">
- add_text_hotspot(%1,%2,%3,%4,%5,%6,%7,%8);
- </action>
- <action name="krpRemoveTextHotspot">
- remove_text_hotspot(%1);
- </action>
- <action name="krpUpdateTextHotspotColor">
- update_text_hotspot_color(%1,%2,%3,%4,%5);
- </action>
- <action name="krpAddHotspot">
- add_hotspot(%1,%2,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12);
- </action>
- <action name="krpAddPolygonalHotspot">
- add_polygon(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14);
- </action>
- <action name="krpAddComment">
- addComment(%1,%2,%3,%4,%5);
- </action>
- <action name="krpToggleComments">
- if(%1 == true,
- showComments();
- ,
- hideComments();
- );
- </action>
- <action name="krpBeginNewComment">
- enterEditComment(%1);
- </action>
- <action name="krpEndNewComment">
- exitEditComment();
- </action>
- <action name="krpUpdateNewComment">
- updateInputComment(%1);
- </action>
- <action name="krpRemoveComments">
- removeComments();
- </action>
- <action name="krpStartAutoTour">
- autoTourStart();
- muted_embed_video();
- </action>
- <action name="krpPauseAutoTour">
- autoTourPause();
- </action>
- <action name="krpResumeAutoTour">
- autoTourResume();
- </action>
- <action name="krpStopAutoTour">
- autoTourEndAction(true);
- </action>
- <action name="krpToggleRadarMap">
- if(%1 == true AND radarIsShow != true,
- toggleRadar()
- );
- if(%1 == false AND radarIsShow == true,
- toggleRadar()
- );
- </action>
- <action name="krpToggleUI">
- if(%1 == true
- show_UI(1);
- ,
- hide_UI(null, 1);
- );
- </action>
- <action name="krpToggleVR">
- js_request_gyro_promission();
- if(%1 == true,
- turn_on_vr();
- pause_embed_video();
- ,
- turn_off_vr();
- resume_embed_video();
- );
- </action>
- <action name="krpChangeViewType">
- change_multi_view(%1);
- </action>
- <action name="krpToggleGyro">
- js_request_gyro_promission();
- if(%1 == true,
- start_gyro();
- ,
- stop_gyro();
- );
- </action>
- <action name="krpToggleHD">
- if(%1 == true,
- switch_to_multires();
- ,
- switch_to_mobile();
- );
- </action>
- <action name="krpToggleCopyright">
- set(contextmenu.item["copyright"].visible, %1);
- </action>
- <action name="krpToggleAgreement">
-
- set(contextmenu.item["ccagreement"].visible, true);
- </action>
- <action name="krpToggleAutoPlay">
- if(config.panos.pano[get(scene_name)].autoplay.enabled == 1,
- if(%1 == true,
- resume_autoplay();
- ,
- pause_autoplay();
- );
- );
- </action>
- <action name="krpResetAutoPlay">
- set(autorotate.enabled, %1);
- set(autorotate.accel,10);
- set(autorotate.waittime, 0);
- if(%2 !== null,
- set(temp_speed,360.0);
- div(temp_speed, %2);
- copy(autorotate.speed, temp_speed);
- );
- </action>
- <action name="krpLookTo">
- set(targetHLookAt, %1);
- set(targetVLookAt, %2);
- set(targetFov, %3);
- set(lookToType, %4);
- if(lookToType == 1,
- lookto(get(view.hlookat),get(view.vlookat),120,smooth(720,-720,720), true, true,
- lookto(get(targetHLookAt),get(targetVLookAt),120,smooth(720,-720,720), true, true,
- lookto(get(targetHLookAt),get(targetVLookAt), get(targetFov));
- );
- );
- ,
- lookto(get(targetHLookAt),get(targetVLookAt), get(targetFov));
- );
- </action>
- <action name="krpMutedEmbedVideo">
- muted_embed_video();
- </action>
- <action name="krpUnmutedEmbedVideo">
- unmuted_embed_video();
- </action>
- <action name="krpPauseEmbedVideo">
- pause_embed_video();
- </action>
- <action name="krpResumeEmbedVideo">
- resume_embed_video();
- </action>
- <action name="krpOverlayDidShowCallback">
- if(%1 == VIDEO_MODAL OR %1 == MIX_MODAL OR %1 == ARTICLE_MODAL,
- if(hotspot[get(embed_video_name)].ispaused == false,
- pause_embed_video();
- );
- );
- </action>
- <action name="krpOverlayDidHideCallback">
- if(%1 == VIDEO_MODAL OR %1 == MIX_MODAL OR %1 == ARTICLE_MODAL,
- if(hotspot[get(embed_video_name)].ispaused == true AND hotspot[get(embed_video_name)].need_resume == true,
- resume_embed_video();
- );
- );
- js_App('krpOverlayDidHide',true);
- </action>
- <action name="krpHotspotMusicStopedCallback">
- unmuted_embed_video();
- </action>
- <action name="krpChangeMouseControl">
- if(%1 == 'moveto',
- set(control.mouse, 'moveto');
- set(contextmenu.item['controldrag'].visible,false);
- set(contextmenu.item['controlmoveto'].visible,true);
- );
- if(%1 == 'drag',
- set(control.mouse, 'drag');
- set(contextmenu.item['controldrag'].visible,true);
- set(contextmenu.item['controlmoveto'].visible,false);
- );
- </action>
- <action name="krpAddBottomMask">
- add_bottom_mask(%1, %2);
- </action>
- <action name="krpSetLanguage">
- if(%1 == 'en',
- set(contextmenu.item['fullscreen'].caption, 'Toggle Fullscreen');
- set(contextmenu.item['viewtype'].caption, 'View type');
- set(contextmenu.item['controlmoveto'].caption, 'Switch to MoveTo');
- set(contextmenu.item['controldrag'].caption, 'Switch to Drag');
- set(contextmenu.item['openReport'].caption, 'Report');
- set(layer[webvr_exitbutton].html, 'Exit VR');
- set(layer[webvr_setupbutton].html, 'VR Setup');
- set(mobilevr_presets.headset["nodt"].caption,'No Distortion');
- set(webvr_text_noDistortion, 'No Distortion');
- set(webvr_text_webvrSetup, 'WebVR Setup');
- set(webvr_text_mobilevrSetup, 'MobileVR Setup');
- set(webvr_text_screensize, 'Screensize (inch):');
- set(webvr_text_vrheadset, 'VR Headset Preset:');
- set(webvr_text_customizeHeadset, 'Customize Headset');
- set(webvr_text_adjustmentInVR, 'Interactive Adjustment in VR');
- set(webvr_text_close, 'CLOSE');
- set(webvr_text_preset, 'Preset:');
- set(webvr_text_fov, 'Lens-Field-of-View:');
- set(webvr_text_interLensDistance, 'Inter-Lens-Distance(mm):');
- set(webvr_text_screenToLensDistance, 'Screen-toLens-Distance(mm):');
- set(webvr_text_trayToLensCenterDistance, 'Tray-to-Lens-Center-Distance(mm):');
- set(webvr_text_lensDistortion, 'Lens-Distortion Coefficients:');
- set(webvr_text_oversampling, 'Oversampling:');
-
- );
- if(%1 == 'cn',
- set(contextmenu.item['fullscreen'].caption, '全屏切换');
- set(contextmenu.item['viewtype'].caption, '视角切换');
- set(contextmenu.item['controlmoveto'].caption, '切换拖拽方式为正向');
- set(contextmenu.item['controldrag'].caption, '切换拖拽方式为反向');
- set(contextmenu.item['openReport'].caption, '举报');
- set(layer[webvr_exitbutton].html, '退出 VR');
- set(layer[webvr_setupbutton].html, 'VR 设置');
- set(mobilevr_presets.headset["nodt"].caption,'无畸变');
- set(webvr_text_noDistortion, '无畸变');
- set(webvr_text_webvrSetup, 'WebVR 设置');
- set(webvr_text_mobilevrSetup, 'MobileVR 设置');
- set(webvr_text_screensize, '屏幕尺寸(英寸):');
- set(webvr_text_vrheadset, 'VR 头显预设');
- set(webvr_text_customizeHeadset, '自定义头显');
- set(webvr_text_adjustmentInVR, '在 VR 中进行调整');
- set(webvr_text_close, '关闭');
- set(webvr_text_preset, '预设:');
- set(webvr_text_fov, 'FOV');
- set(webvr_text_interLensDistance, '内镜距离(mm):');
- set(webvr_text_screenToLensDistance, '屏幕到镜头距离(mm):');
- set(webvr_text_trayToLensCenterDistance, '头显到镜头中央的距离(mm):');
- set(webvr_text_lensDistortion, '镜头畸变系数:');
- set(webvr_text_oversampling, '过采样:');
- );
- </action>
- <action name="krpEnterMarkMode">
- set(useMarkMode, true);
- </action>
- <action name="krpExitMarkMode">
- set(useMarkMode, false);
- </action>
- <action name="krpAddSelfMark">
- krpAddMark(%1,%2,get(daikanAvatar),get(daikanNickname));
- </action>
- <action name="krpAddMark">
- set(flag_name, '_flagImage');
- txtadd(flag_name, get(timertick));
- addhotspot(get(flag_name));
- set(hotspot[get(flag_name)].alpha, 1);
- set(hotspot[get(flag_name)].ath,%1);
- set(hotspot[get(flag_name)].atv,%2);
- set(hotspot[get(flag_name)].edge,center);
- set(hotspot[get(flag_name)].width,40);
- set(hotspot[get(flag_name)].height,40);
- set(hotspot[get(flag_name)].roundedge,20);
- set(avatarURL, %3);
- if(avatarURL === null || avatarURL == '',
- delete(avatarURL);
- );
- set(avatarNickname, %4);
- if(avatarNickname === null || avatarNickname == '',
- delete(avatarNickname);
- );
-
- if(avatarURL === null AND avatarNickname !== null,
- set(hotspot[get(flag_name)].url,get(plugin_url.TEXT_SWF));
- copy(hotspot[get(flag_name)].html, avatarNickname);
- set(hotspot[get(flag_name)].backgroundcolor,0x000000);
- set(hotspot[get(flag_name)].backgroundalpha,0.6);
- set(hotspot[get(flag_name)].css, 'text-align:center; line-height: 36px; font-size:12px; color:#FFFFFF;');
- );
-
- if(avatarURL !== null,
- copy(hotspot[get(flag_name)].url,avatarURL);
- );
-
- set(hotspot[get(flag_name)].onloaded,
- delayedcall(0.5,
- tween(hotspot[get(name)].alpha, 0, 0.5, easeOutQuad,
- removehotspot(get(name));
- );
- );
- );
- </action>
- <action name="krpRemoveMark">
- set(flag_name, '_flagImage');
- removehotspot(get(flag_name));
- </action>
- <action name="krpAddContextMenu">
- set(menuURL, %2);
- if(add_content_menu_count === null,
- set(add_content_menu_count,1);
- set(contextmenu.item[custom1].visible, true);
- set(contextmenu.item[custom1].caption, %1);
- if(menuURL != "" AND menuURL !== null,
- set(contextmenu.item[custom1].url, get(menuURL));
- set(contextmenu.item[custom1].enabled, true);
- ,
- set(contextmenu.item[custom1].enabled, true);
- set(contextmenu.item[custom1].onclick, );
- );
- ,
- if(add_content_menu_count == 1,
- inc(add_content_menu_count);
- set(contextmenu.item[custom2].visible, true);
- set(contextmenu.item[custom2].caption, %1);
- if(menuURL != "" AND menuURL !== null,
- set(contextmenu.item[custom2].url, get(menuURL));
- set(contextmenu.item[custom2].enabled, true);
- ,
- set(contextmenu.item[custom2].enabled, true);
- set(contextmenu.item[custom2].onclick, );
- );
- ,
- if(add_content_menu_count == 2,
- inc(add_content_menu_count);
- set(contextmenu.item[custom3].visible, true);
- set(contextmenu.item[custom3].caption, %1);
- if(menuURL != "" AND menuURL !== null,
- set(contextmenu.item[custom3].url, get(menuURL));
- set(contextmenu.item[custom3].enabled, true);
- ,
- set(contextmenu.item[custom3].enabled, true);
- set(contextmenu.item[custom3].onclick, );
- );
- );
- );
- );
- </action>
- <action name="startup" autorun="onstart">
- setup_startup_vars();
- js_playerReadyCallback();
- </action>
- <action name="setup_startup_vars">
-
- if(device.mobile,
- set(customScale, 1);
- if(stagewidth LT stageheight,
- div(customScale, stagewidth,540);
- ,
- div(customScale, stageheight,360);
- );
- if(customScale LT 0.5,
- set(customScale,0.7);
- );
- if(customScale GT 0.8,
- set(customScale, 0.75);
- );
- copy(stagescale,customScale);
- );
- set(display.autofullscreen, false);
-
- if((sceneType == 1 OR sceneType == 3) AND (config.panos.pano[get(scene_name)].radar.enabled == 1 OR config.panos.pano[get(scene_name)].radar.enable == 1),
- set(radarEnabled, true);
- );
- set(view_type,0);
- if(sceneType == 2,
-
- set(enableLittleplanet, 0);
- hide_UI(0,1);
- );
- if(sceneType == 3,
-
- );
- if(sceneType == 4,
- hide_UI(0,1);
- );
- setup_hotspot();
- set(events.onpreviewcomplete,on_preview_complete());
- set(events.onloadcomplete,on_load_complete());
- </action>
- <action name="setup_start_pano">
-
-
- set(view.fovtype, MFOV);
- if(enableLittleplanet != 0,
- setup_littleplanet_view();
- );
- </action>
- <action name="on_load_complete">
- if(preview_load_inited != true,
- on_preview_complete(true);
- );
- if(webvr.isenabled,
- delayedcall(2,
- set(have_vr_controllers, false);
- webvr_load_vr_controller_hs();
- );
- );
- </action>
- <action name="on_preview_complete">
- if(xml.scene !== null,
- js_toggleLoading(false);
- set(preview_load_inited, true);
- if(enableLittleplanet != 0 AND %1 === null,
- setup_weather();
- setup_littleplanet();
- delayedcall(0.2,
- setup_bottom_mask();
- );
- ,
- if(xml.scene === null,
- delayedcall(0.2,
- setup_pano_settings();
- if(settings.first_pano_inited == false,
- setup_global_settings();
- );
- js_sceneReadyCallback();
- setup_autoplay();
- );
- ,
- setup_pano_settings();
- if(settings.first_pano_inited == false,
- setup_global_settings();
- );
- js_sceneReadyCallback();
- setup_autoplay();
- );
- );
- if(isAutoTouring AND isAutoTourPause == false,
- pause_autoplay();
- delayedcall(0.5,autoTourPlay(););
- );
- if(webvr.isenabled,
- hide_UI();
- );
- );
- </action>
- <action name="setup_pano_settings">
- setup_top_mask();
- setup_contextmenu();
- setup_view();
- if(is_clean != 1,
-
-
-
- setup_embed();
-
- if(enableLittleplanet == 0,
- setup_bottom_mask();
- setup_weather();
- );
- if(isAutoTouring == true,
- hide_UI();
- );
- ,
- if(enableLittleplanet == 0,
- setup_bottom_mask();
- setup_weather();
- );
- );
- </action>
- <action name="setup_global_settings">
- delayedcall(0.5,
-
-
-
- setup_gyro();
-
-
-
-
-
-
- setup_vr();
- setup_autotour();
-
-
-
-
-
- set(settings.first_pano_inited, true);
- set(enableLittleplanet, 0);
- );
- </action>
- <action name="change_multi_view">
- set(view_type,%1);
- if(view_type_changing != true,
- set(view_type_changing,true);
- if(%1 == 4,
- skin_view_flat();
- );
- if(%1 == 3,
- skin_view_ball();
- ,
- if(%1 == 2,
- skin_view_fisheye();
- ,
- if(%1 == 1,
- cm_littleplanet_view();
- ,
- cm_normal_view();
- );
- );
- );
- delete(multi_view_type);
- ,
- set(multi_view_type,%1);
- );
- </action>
- <action name="cancel_view_limit">
- set(view.limitview, off);
- set(view.fovmin, 1);
- set(view.fovmax, 179);
- </action>
- <action name="recover_view_limit">
- set(control.bouncinglimits, true);
- if(config.panos.pano[get(scene_name)].view.vlookatmin != -90 OR config.panos.pano[get(scene_name)].view.vlookatmax != 90,
- set(view.limitview, lookat);
- copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
- copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
- set(control.bouncinglimits, false);
- );
- if((config.panos.pano[get(scene_name)].view.hlookatmin != -180 AND config.panos.pano[get(scene_name)].view.hlookatmin !== null) OR (config.panos.pano[get(scene_name)].view.hlookatmax != 180 AND config.panos.pano[get(scene_name)].view.hlookatmax !== null),
- set(view.limitview, lookat);
- copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
- copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
- set(control.bouncinglimits, false);
- );
- if(config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
- set(config.panos.pano[get(scene_name)].view.fovmin,70);
- );
- copy(view.fovmin, config.panos.pano[get(scene_name)].view.fovmin);
- if(config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
- set(config.panos.pano[get(scene_name)].view.fovmax,120);
- );
- copy(view.fovmax, config.panos.pano[get(scene_name)].view.fovmax);
- if(config.panos.pano[get(scene_name)].view.vlookatmin !== null AND config.panos.pano[get(scene_name)].view.vlookatmin != "",
- copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
- );
- if(config.panos.pano[get(scene_name)].view.vlookatmax !== null AND config.panos.pano[get(scene_name)].view.vlookatmax != "",
- copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
- );
- if(config.panos.pano[get(scene_name)].view.hlookatmin !== null AND config.panos.pano[get(scene_name)].view.hlookatmin != "",
- copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
- );
- if(config.panos.pano[get(scene_name)].view.hlookatmax !== null AND config.panos.pano[get(scene_name)].view.hlookatmax != "",
- copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
- );
- copy(view.limitview, viewLimitState);
- </action>
- <action name="setup_view">
- if(forceFov !== null,
- copy(view.hlookat, config.panos.pano[get(scene_name)].view.hlookat);
- copy(view.vlookat, config.panos.pano[get(scene_name)].view.vlookat);
- copy(view.fov, forceFov);
- copy(view.fovmin, forceFovmin);
- copy(view.fovmax, forceFovmax);
- ,
- if((view_type == 0 OR view_type === null) AND webvr.isenabled != true AND isAutoTouring != true,
-
- copy(view.hlookat, config.panos.pano[get(scene_name)].view.hlookat);
- copy(view.vlookat, config.panos.pano[get(scene_name)].view.vlookat);
- set(control.bouncinglimits, true);
- if(config.panos.pano[get(scene_name)].view.vlookatmin != -90 OR config.panos.pano[get(scene_name)].view.vlookatmax != 90,
- set(view.limitview, lookat);
- copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
- copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
- set(control.bouncinglimits, false);
- );
- if((config.panos.pano[get(scene_name)].view.hlookatmin != -180 AND config.panos.pano[get(scene_name)].view.hlookatmin !== null) OR (config.panos.pano[get(scene_name)].view.hlookatmax != 180 AND config.panos.pano[get(scene_name)].view.hlookatmax !== null),
- set(view.limitview, lookat);
- copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
- copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
- set(control.bouncinglimits, false);
- );
- if(config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
- set(config.panos.pano[get(scene_name)].view.fovmin,70);
- );
- copy(view.fovmin, config.panos.pano[get(scene_name)].view.fovmin);
- if(config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
- set(config.panos.pano[get(scene_name)].view.fovmax,120);
- );
- copy(view.fovmax, config.panos.pano[get(scene_name)].view.fovmax);
- if(config.panos.pano[get(scene_name)].view.fov != 0 AND config.panos.pano[get(scene_name)].view.fov != "" AND config.panos.pano[get(scene_name)].view.fov !== null,
- copy(view.fov, config.panos.pano[get(scene_name)].view.fov);
- ,
- set(view.fov, 95);
- );
- if(config.panos.pano[get(scene_name)].view.vlookatmin !== null AND config.panos.pano[get(scene_name)].view.vlookatmin != "",
- copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
- );
- if(config.panos.pano[get(scene_name)].view.vlookatmax !== null AND config.panos.pano[get(scene_name)].view.vlookatmax != "",
- copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
- );
- if(config.panos.pano[get(scene_name)].view.hlookatmin !== null AND config.panos.pano[get(scene_name)].view.hlookatmin != "",
- copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
- );
- if(config.panos.pano[get(scene_name)].view.hlookatmax !== null AND config.panos.pano[get(scene_name)].view.hlookatmax != "",
- copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
- );
- if(needKeepview == true,
- copy(view.hlookat, needKeepviewHlookat);
- copy(view.vlookat, needKeepviewVlookat);
- copy(view.fov, needKeepviewFov);
- );
- );
- );
- </action>
- <action name="setup_view_limit">
- set(control.bouncinglimits, true);
- if(config.panos.pano[get(scene_name)].view.vlookatmin != -90 OR config.panos.pano[get(scene_name)].view.vlookatmax != 90,
- set(view.limitview, lookat);
- copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
- copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
- set(control.bouncinglimits, false);
- );
- if((config.panos.pano[get(scene_name)].view.hlookatmin != -180 AND config.panos.pano[get(scene_name)].view.hlookatmin !== null) OR (config.panos.pano[get(scene_name)].view.hlookatmax != 180 AND config.panos.pano[get(scene_name)].view.hlookatmax !== null),
- set(view.limitview, lookat);
- copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
- copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
- set(control.bouncinglimits, false);
- );
- if(config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
- set(config.panos.pano[get(scene_name)].view.fovmin,70);
- );
- copy(view.fovmin, config.panos.pano[get(scene_name)].view.fovmin);
- if(config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
- set(config.panos.pano[get(scene_name)].view.fovmax,120);
- );
- copy(view.fovmax, config.panos.pano[get(scene_name)].view.fovmax);
- if(config.panos.pano[get(scene_name)].view.vlookatmin !== null AND config.panos.pano[get(scene_name)].view.vlookatmin != "",
- copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
- );
- if(config.panos.pano[get(scene_name)].view.vlookatmax !== null AND config.panos.pano[get(scene_name)].view.vlookatmax != "",
- copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
- );
- if(config.panos.pano[get(scene_name)].view.hlookatmin !== null AND config.panos.pano[get(scene_name)].view.hlookatmin != "",
- copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
- );
-
- if(config.panos.pano[get(scene_name)].view.hlookatmax !== null AND config.panos.pano[get(scene_name)].view.hlookatmax != "",
- copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
- );
- </action>
- <action name="skin_view_look_straight">
-
- set(view.fovmax, get(config.panos.pano[get(scene_name)].view.fovmax));
- set(view.fovmin, get(config.panos.pano[get(scene_name)].view.fovmin));
- set(view.limitview,auto);
-
- </action>
- <action name="cm_normal_view">
- tween(view.architectural, 0.0, 0.5);
- tween(view.pannini, 0.0, 0.5);
- tween(view.fisheye, 0.0, 0.5);
- tween(view.fov, get(config.panos.pano[get(scene_name)].view.fov), 0.5);
- tween(view.vlookat, get(config.panos.pano[get(scene_name)].view.vlookat), 0.5,easeOutQuad,
- skin_view_look_straight();
- set(view_type_changing,false);
- if(multi_view_type !== null,
- delayedcall(0.1,change_multi_view(multi_view_type));
- ,
- setup_view_limit();
- );
- );
- </action>
- <action name="skin_view_fisheye">
- tween(view.architectural, 0.0, distance(1.0,0.5));
- tween(view.pannini, 0.0, distance(1.0,0.5));
- tween(view.fisheye, 1.0, distance(1.0,0.5));
- tween(view.vlookat, get(config.panos.pano[get(scene_name)].view.vlookat), 0.5);
- tween(view.fov, 115, 0.5);
- tween(view.distortion, 1.0, distance(1.0,0.5),easeOutQuad,
- skin_view_look_straight();
- set(view_type_changing,false);
- if(multi_view_type !== null,
- delayedcall(0.1,change_multi_view(multi_view_type));
- );
- );
- </action>
- <action name="skin_view_ball">
- tween(view.architectural, 0.0, distance(1.0,0.5));
- tween(view.pannini, 0.0, distance(1.0,0.5));
-
- tween(view.distortion, 2.8, distance(1.0,0.5),easeOutQuad,
- skin_view_look_straight();
- set(view_type_changing,false);
- if(multi_view_type !== null,
- delayedcall(0.1,change_multi_view(multi_view_type));
- );
- );
- </action>
- <action name="skin_view_architectural">
- skin_view_look_straight();
- tween(view.architectural, 1.0, distance(1.0,0.5));
- tween(view.pannini, 0.0, distance(1.0,0.5));
- tween(view.distortion, 0.0, distance(1.0,0.5));
- </action>
- <action name="skin_view_stereographic">
- skin_view_look_straight();
- tween(view.architectural, 0.0, distance(1.0,0.5));
- tween(view.pannini, 0.0, distance(1.0,0.5));
- tween(view.distortion, 1.0, distance(1.0,0.8));
- </action>
- <action name="skin_view_pannini">
- skin_view_look_straight();
- tween(view.architectural, 0.0, distance(1.0,0.5));
- tween(view.pannini, 1.0, distance(1.0,0.8));
- if(view.distortion LT 0.1,
- tween(view.distortion, 1.0, distance(1.0,0.8));
- );
- </action>
- <action name="cm_littleplanet_view">
- tween(view.architectural, 0.0, 0.25);
- tween(view.vlookat, 90, distance(179, 1.50), easeoutquad);
- set(backtonormalfirst,false);
- if(view.pannini == true, set(backtonormalfirst,true) );
- if(view.stereographic == false, set(backtonormalfirst,true) );
- if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
- set(view.pannini, false);
- set(view.stereographic, true);
- set(view.fovmax, 150);
- tween(view.fov, 150, distance(179, 0.75),easeoutquad);
- tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad,
- set(view_type_changing,false);
- if(multi_view_type !== null,
- delayedcall(0.1,change_multi_view(multi_view_type));
- );
- );
- </action>
- <action name="skin_view_flat">
- set(plugin[skin_gyro].enabled, false);
- skin_update_view_menu(1);
- if(videointerface_isflat !== true,
- set(videointerface_isflat, true);
- stoptween(view.fov);
- mod(view.hlookat, 360);
- set(view.limitview, off);
- set(view.maxpixelzoom, 0);
- copy(videointerface_backup_fovmin, view.fovmin);
- set(view.fovmin, 0.01);
- set(control.usercontrol, off);
- copy(videointerface_backup_mouse, control.mouse);
- set(control.mouse, drag);
- copy(current_fov, view.fov);
- copy(videointerface_backup_fovtype, view.fovtype);
- remapfovtype(current_fov, get(view.fovtype), HFOV);
- set(view.fovtype, HFOV);
- copy(view.fov, current_fov);
- copy(startfov, current_fov);
- copy(image_hfov, image.hfov);
- tween(image_hfov, 1.0, 3.0, linear,
- set(control.usercontrol,all);
- set(view.fovmin, 0.25);
- set(view.hlookatmin, -2);
- set(view.hlookatmax, +2);
- set(view.vlookatmin, -1);
- set(view.vlookatmax, +1);
- set(view.limitview, range);
- ,
- if(image_hfov LT 90,
- mul(view.fov, image_hfov, 1.1);
- ,
- sub(hr, image_hfov, 90);
- div(hr, 270);
- sub(hr2, 1, hr);
- mul(a, startfov, hr);
- mul(b, 99, hr2);
- add(view.fov, a,b);
- );
- copy(image.hfov, image_hfov);
- set(image.vfov, 0);
- updateobject(true, true);
- if(multi_view_type !== null,
- delayedcall(0.1,change_multi_view(multi_view_type));
- );
- );
- adjusthlookat(0);
- tween(view.hlookat, 0, 1.5);
- tween(view.vlookat, 0, 1.5);
- );
- </action>
- <action name="setup_autoplay">
- if(config.panos.pano[get(scene_name)].autoplay.enabled == 1 OR forceAutoplay == 1,
-
- set(autorotate.waittime, 6);
- set(autorotate.accel, 0);
- if(config.panos.pano[get(scene_name)].autoplay.duration !== null,
- set(temp_speed,360.0);
- div(temp_speed,config.panos.pano[get(scene_name)].autoplay.duration);
- copy(autorotate.speed, temp_speed);
- ,
- set(autorotate.speed, 2);
- );
- set(autorotate.accel,10);
- set(autorotate.enabled, true);
- if(config.panos.pano[get(scene_name)].view.autorotatekeepview == 1,
- set(autorotate.horizon, 'off');
- ,
- set(autorotate.horizon, 0.0);
- );
- if(config.panos.pano[get(scene_name)].autoplay.keep_originview == 1,
- copy(autorotate.horizon, config.panos.pano[get(scene_name)].view.vlookat);
- ,
- set(autorotate.horizon, 0.0);
- );
-
- set(hlookatmax, get(config.panos.pano[get(scene_name)].view.hlookatmax));
- set(hlookatmin, get(config.panos.pano[get(scene_name)].view.hlookatmin));
- sub(range,hlookatmax,hlookatmin);
- set(autorotate.oneroundrange, get(range));
-
- if(autoplayWaitPause,
- delayedcall(0.5,
- pause_autoplay();
- set(autoplayWaitPause,false);
- );
- );
-
- );
- </action>
- <action name="resume_autoplay">
- set(autoplayWaitPause,false);
-
- if(isAutoTouring != true AND config.panos.pano[get(scene_name)].autoplay.enabled == 1 OR forceAutoplay == 1,
- set(autorotate.enabled, true);
- autorotate.interrupt();
- );
-
- </action>
- <action name="pause_autoplay">
- set(autoplayWaitPause,true);
- set(autorotate.enabled, false);
- </action>
- <action name="load_pano_loop">
- if(is_looping != true AND config.panos.pano[get(scene_name)].autoplay.enter_next != 0 AND isAutoTouring != true,
- set(loop_flag,false);
-
- set(js_command, calc('interfaceObject.switchToNextScene("' + config.panos.pano[get(scene_name)].autoplay.hiddenscene_noenter + '")'));
- jscall(get(js_command));
- delayedcall(1,
- set(is_looping,false);
- );
- );
- </action>
- <action name="setup_autotour">
- if(config.autoTours.tour.point.count GT 0 ,
- set(autoTourPointIndex,0);
- js_toggleAutoTourUI(true);
- addplugin(soundinterface);
- if(device.html5 == true ,
- copy(plugin[soundinterface].url,plugin_url.SOUND_JS);
- if(device.ios,
- if(plugin[soundinterface].loaded,
- set(autoTourSoundName,'auto_tour_sound_id');
- playsound(get(autoTourSoundName),get(settings.blank_music_url),1);
- ,
- set(plugin[soundinterface].onloaded,
- set(autoTourSoundName,'auto_tour_sound_id');
- playsound(get(autoTourSoundName),get(settings.blank_music_url),1);
- );
- );
- );
- ,
- copy(plugin[soundinterface].url,plugin_url.SOUND_SWF);
- );
- set(plugin[soundinterface].preload,true);
- if(config.autoTours.tour.startImage !== null AND config.autoTours.tour.startImage != "" ,
- set(autoTourShowButtonDelay,4);
- ,
- set(autoTourShowButtonDelay,0);
- );
-
- );
- </action>
- <action name="autoTourStart">
- hide_UI();
- cancel_view_limit();
- set(isAutoTourPause,false);
- set(isAutoTouring,true);
-
-
- set(autorotateEnabledForAutoTour,get(autorotate.enabled));
- set(usercontrolEnabledForAutoTour,get(control.usercontrol));
- if(config.autoTours.tour.startImage !== null AND config.autoTours.tour.startImage != "" ,
- addlayer(autoTourStartAlert);
- copy(autoTour_startImage,config.autoTours.tour.startImage);
- txtadd(autoTour_startImage,'?imageView2/0/w/2000/h/2000');
- set(layer[autoTourStartAlert].url,get(autoTour_startImage));
- set(layer[autoTourStartAlert].align,center);
- set(layer[autoTourStartAlert].scale,0.5);
- set(layer[autoTourStartAlert].background,false);
- set(layer[autoTourStartAlert].autoalpha,true);
- set(layer[autoTourStartAlert].enable,false);
- set(layer[autoTourStartAlert].y,0);
- set(layer[autoTourStartAlert].keep,true);
- set(layer[autoTourStartAlert].alpha,0.0);
- tween(layer[autoTourStartAlert].alpha,1.0,0.5);
- delayedcall(3,tween(layer[autoTourStartAlert].alpha,0.0,0.5););
- set(hasAutoTourStartAlert,true);
- ,
- set(hasAutoTourStartAlert,false);
- );
- pause_autoplay();
- set(control.usercontrol,off);
- if(%1 != true,
- js_toggleBgVoice(false);
- if(config.autoTours.tour.disableMusic == true,
- js_toggleBgMusic(false);
- );
- );
- if(config.autoTours.tour.hideHotspots == true,
- hide_hotspots();
- copy(auto_tour_comments_state,config.feature.show_comment);
-
-
- );
- if(pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetPano || scene[get(pano_id)].pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetPano,
- set(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
- set(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
- set(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
- if(hasAutoTourStartAlert == true ,
- delayedcall(autoTourDelayedCallID, 4,autoTourPlay(););
- set(hasAutoTourStartAlert, null);
- ,
- delayedcall(autoTourDelayedCallID, 1,autoTourPlay(););
- );
- ,
- set(waitAutoTourContinue, true);
- stoptween(view.hlookat,view.vlookat,view.fov);
- if(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode !== null,
- copy(blend_mode,blendmodes[get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode)].blend);
- );
- if(config.autoTours.tour.point[get(autoTourPointIndex)].targetScene !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].targetScene != "",
- set(targetScene, get(scene[get(config.autoTours.tour.point[get(autoTourPointIndex)].targetScene)].scene_id));
- js_sceneChangeCallback(get(targetScene), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
- ,
- js_panoChangeCallback(get(config.autoTours.tour.point[get(autoTourPointIndex)].targetPano), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
- );
-
- set(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
- set(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
- set(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
- );
- </action>
- <action name="autoTourResume">
- set(isAutoTourPause,false);
- dec(autoTourPointIndex);
- set(control.usercontrol,off);
- cancel_view_limit();
- tween(layer[autoTourResumeBtnContainer].alpha,0.0,0.2,default,set(ayer[autoTourResumeBtnContainer].enable.false););
- set(layer[autoTourPauseBtnContainer].enable,false);
- tween(layer[autoTourPauseBtnContainer].alpha,1.0,0.2,default,set(ayer[autoTourPauseBtnContainer].enable.true););
- if(pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetScene || scene[get(pano_id)].pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetPano,
- set(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
- set(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
- set(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
- delayedcall(autoTourDelayedCallID, 1,autoTourPlay(););
- ,
- stoptween(view.hlookat,view.vlookat,view.fov);
- if(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode !== null,
- copy(blend_mode,blendmodes[get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode)].blend);
- );
- if (config.autoTours.tour.point[get(autoTourPointIndex)].targetScene !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].targetScene != "",
- set(targetScene, get(scene[get(config.autoTours.tour.point[get(autoTourPointIndex)].targetScene)].scene_id));
- js_sceneChangeCallback(get(targetScene),get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
- ,
- js_panoChangeCallback(get(config.autoTours.tour.point[get(autoTourPointIndex)].targetPano), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
- );
-
- set(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
- set(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
- set(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
- );
- </action>
- <action name="autoTourPlay">
- if(waitAutoTourContinue == true,
- set(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
- set(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
- set(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
- set(waitAutoTourContinue, null);
- if(hasAutoTourStartAlert == true ,
- delayedcall(autoTourDelayedCallID, 4,autoTourPlay(););
- set(hasAutoTourStartAlert, null);
- ,
- delayedcall(autoTourDelayedCallID, 1,autoTourPlay(););
- );
- ,
- copy(preAutoTourSoundName,autoTourSoundName);
- set(layer[autoTourPauseBtnContainer].enable,false);
- tween(layer[autoTourPauseBtnContainer].alpha,1.0,0.2,default,set(ayer[autoTourPauseBtnContainer].enable.true););
- set(layer[autoTourStopBtnContainer].enable,false);
- tween(layer[autoTourStopBtnContainer].alpha,1.0,0.2,default,set(ayer[autoTourStopBtnContainer].enable.true););
- set(autoTourSoundName,'auto_tour_sound_id');
-
- set(tempAutoTourIndex,get(config.autoTours.tour.point.count));
- dec(tempAutoTourIndex);
- copy(preAutoTourPointIndex,autoTourPointIndex);
- sub(preAutoTourPointIndex,1);
- if(config.autoTours.tour.point[get(autoTourPointIndex)].music != config.autoTours.tour.point[get(preAutoTourPointIndex)].music,
- stopsound(get(preAutoTourSoundName));
-
- ,
- copy(autoTourSoundName, preAutoTourSoundName);
- );
- if(autoTourPointIndex == tempAutoTourIndex,
- autoTourEnd();
- ,
- if(config.autoTours.tour.point[get(autoTourPointIndex)].playMode == 3,
- copy(tempAutoTourPointIndex,autoTourPointIndex);
- inc(tempAutoTourPointIndex);
- stoptween(view.hlookat,view.vlookat,view.fov);
- if(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode !== null,
- copy(blend_mode,blendmodes[get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode)].blend);
- );
- if (config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetScene !== null AND config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetScene != "",
- set(targetScene, get(scene[get(config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetScene)].scene_id));
- js_sceneChangeCallback(get(targetScene),get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
- ,
- js_panoChangeCallback(get(config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetPano), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
- );
-
- set(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].endath));
- set(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].endatv));
- set(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov));
- inc(autoTourPointIndex);
- ,
- showSubtitle();
- tween(view.hlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].endath),get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime));
- tween(view.vlookat,get(config.autoTours.tour.point[get(autoTourPointIndex)].endatv),get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime));
- if(config.autoTours.tour.point[get(autoTourPointIndex)].music !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].music != '',
- if(config.autoTours.tour.point[get(autoTourPointIndex)].playMode == 0,
-
- set(plugin[soundinterface].volume, get(config.autoTours.tour.point[get(autoTourPointIndex)].volume));
- playsound(get(autoTourSoundName),get(config.autoTours.tour.point[get(autoTourPointIndex)].music),1,autoTourPlay(););
- set(autoTourSoundIsPause, false);
- tween(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov),get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime));
- ,
- if(config.autoTours.tour.point[get(autoTourPointIndex)].music != config.autoTours.tour.point[get(preAutoTourPointIndex)].music,
-
- set(plugin[soundinterface].volume, get(config.autoTours.tour.point[get(autoTourPointIndex)].volume));
- playsound(get(autoTourSoundName),get(config.autoTours.tour.point[get(autoTourPointIndex)].music),1);
-
- ,
- copy(autoTourSoundName,preAutoTourSoundName);
- set(plugin[soundinterface].volume, get(config.autoTours.tour.point[get(autoTourPointIndex)].volume));
- if(autoTourSoundIsPause == true,
-
- playsound(get(autoTourSoundName),get(config.autoTours.tour.point[get(autoTourPointIndex)].music),1);
- set(autoTourSoundIsPause, false);
- );
- );
- tween(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov),get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime),null,autoTourPlay(););
- );
- ,
- stopsound(get(autoTourSoundName));
-
- set(sound[get(autoTourSoundName)].oncomplete,null);
- tween(view.fov,get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov),get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime),null,autoTourPlay(););
- );
- inc(autoTourPointIndex);
- );
- );
- );
- </action>
- <action name="autoTourPause">
- set(isAutoTourPause,true);
- stopdelayedcall('delayedStopAutoTour');
- if(autoTourPointIndex == 0,
- set(autoTourPointIndex, 1);
- stopdelayedcall(autoTourDelayedCallID);
- );
- set(layer[autoTourResumeBtnContainer].enable,false);
-
- pausesound(get(autoTourSoundName));
-
- stoptween(view.hlookat);
- stoptween(view.vlookat);
- stoptween(view.fov);
- set(autoTourSoundIsPause,true);
- set(control.usercontrol,all);
- recover_view_limit();
- </action>
- <action name="autoTourEnd">
- if(config.autoTours.tour.stopImage !== null AND config.autoTours.tour.stopImage != "" ,
- addlayer(autoTourStopAlert);
- copy(autoTour_stopImage,config.autoTours.tour.stopImage);
- txtadd(autoTour_stopImage,'?imageView2/0/w/2000/h/2000');
- set(layer[autoTourStopAlert].url,get(autoTour_stopImage));
- set(layer[autoTourStopAlert].align,center);
- set(layer[autoTourStopAlert].scale,0.5);
- set(layer[autoTourStopAlert].background,false);
- set(layer[autoTourStopAlert].autoalpha,true);
- set(layer[autoTourStopAlert].enable,false);
- set(layer[autoTourStopAlert].y,0);
- set(layer[autoTourStopAlert].keep,true);
- set(layer[autoTourStopAlert].alpha,0.0);
- tween(layer[autoTourStopAlert].alpha,1.0,0.5);
- delayedcall(3,tween(layer[autoTourStopAlert].alpha,0.0,0.5););
- delayedcall('delayedStopAutoTour',3,autoTourEndAction(););
- hideSubtitle();
- ,
- autoTourEndAction();
- );
- </action>
- <action name="autoTourEndAction">
- set(isAutoTourPause,false);
- set(autoTourPointIndex,0);
- stopsound(get(autoTourSoundName));
-
- stoptween(view.hlookat);
- stoptween(view.vlookat);
- stoptween(view.fov);
-
- set(layer[autoTourPauseBtnContainer].enable,false);
- tween(layer[autoTourPauseBtnContainer].alpha,0.0,0.2);
- set(layer[autoTourResumeBtnContainer].enable,false);
- tween(layer[autoTourResumeBtnContainer].alpha,0.0,0.2);
- set(layer[autoTourStopBtnContainer].enable,false);
- tween(layer[autoTourStopBtnContainer].alpha,0.0,0.2);
- set(isAutoTouring,false);
- set(waitAutoTourContinue, null);
- if(config.autoTours.tour.loop == true AND %1 != true,
- autoTourStart(true);
- ,
- stopdelayedcall('delayedStopAutoTour');
- set(control.usercontrol,all);
- if(autorotateEnabledForAutoTour == true,
- resume_autoplay();
- );
- if(config.autoTours.tour.disableMusic == true,
- js_toggleBgMusic(true);
-
- );
-
- js_toggleBgVoice(true);
-
- show_UI();
- recover_view_limit();
- stopdelayedcall(autoTourDelayedCallID);
- tween(layer[autoTourStartAlert].alpha,0.0,0.01);
- if(config.autoTours.tour.hideHotspots == true,
- show_hotspots();
- if(auto_tour_comments_state == 1,
-
-
- );
- );
- hideSubtitle();
- js_autoTourEndCallback();
- js_toggleAutoTourUI(true);
- );
- </action>
- <action name="showSubtitle">
- if(config.autoTours.tour.point[get(autoTourPointIndex)].subtitle !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].subtitle != '',
- copy(subtitle_txt,config.autoTours.tour.point[get(autoTourPointIndex)].subtitle);
- copy(subtitle_position,config.autoTours.tour.subtitlePosition);
- copy(subtitle_size,config.autoTours.tour.subtitleSize);
- copy(subtitle_background,config.autoTours.tour.subtitleBackground);
- escape(subtitle_txt);
- js_showAutoTourSubtitle(get(subtitle_txt), get(subtitle_position), get(subtitle_size), get(subtitle_background));
-
- ,
- hideSubtitle();
- );
- </action>
- <action name="hideSubtitle">
- js_hideAutoTourSubtitle();
- </action>
- <action name="showComments">
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].isComment,
- set(hotspot[get(i)].visible,true);
- );
- );
- for(set(i,0),i LT layer.count,inc(i),
- if(layer[get(i)].isComment,
- set(layer[get(i)].visible,true);
- );
- );
- set(commentVisibled,true);
- if(config.feature.enable_comment == 0,
- set(modify_comment_cmd,get(js_modify_comment));
- txtadd(modify_comment_cmd,"('");
- txtadd(modify_comment_cmd,get(config.info.id));
- txtadd(modify_comment_cmd,"','");
- txtadd(modify_comment_cmd,get(pano_id));
- txtadd(modify_comment_cmd,"')");
- jscall(get(modify_comment_cmd));
- set(config.feature.enable_comment ,1);
- set(config.feature.show_comment,1);
- jscall(get(js_show_comments));
- );
- set(layer[comment_btn].crop,0|734|80|81);
- set(config.feature.show_comment,1);
- if(isAutoTouring == true AND config.autoTours.tour.hideHotspots == true,
- hide_hotspots();
- );
- hide_vr_hotspot();
- </action>
- <action name="hideComments">
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].isComment,
- set(hotspot[get(i)].visible,false);
- );
- );
- for(set(i,0),i LT layer.count,inc(i),
- if(layer[get(i)].isComment,
- set(layer[get(i)].visible,false);
- );
- );
- set(layer[comment_btn].crop,0|814|80|80);
- jscall(get(js_hide_comments));
- set(config.feature.show_comment,0);
- </action>
- <action name="addComment">
-
- set(avatarUrl,%3);
- if( avatarUrl !== null,
- if(plugin[commentsContainer] === null,
- addplugin(commentsContainer);
- set(plugin[commentsContainer].zorder,50);
- set(plugin[commentsContainer].keep,true);
- );
- set(newCommentContainer,'new_comment_container');
- txtadd(newCommentContainer,%1);
- addhotspot(get(newCommentContainer));
- set(hotspot[get(newCommentContainer)].isComment,true);
- set(hotspot[get(newCommentContainer)].keep,true);
- set(hotspot[get(newCommentContainer)].isActiveHotspot,true);
- set(hotspot[get(newCommentContainer)].ath,%4);
- set(hotspot[get(newCommentContainer)].atv,%5);
- set(hotspot[get(newCommentContainer)].width,32);
- set(hotspot[get(newCommentContainer)].height,48);
- if(device.desktop,
- set(hotspot[get(newCommentContainer)].scale,1);
- ,
- set(hotspot[get(newCommentContainer)].scale,1.5);
- );
- hotspot[get(newCommentContainer)].loadstyle(skin_style);
- set(hotspot[get(newCommentContainer)].crop,200|203|64|96);
- set(hotspot[get(newCommentContainer)].edge,bottom);
- set(hotspot[get(newCommentContainer)].enabled,false);
- set(hotspot[get(newCommentContainer)].zorder,get(hotspot.count));
- set(hotspot[get(newCommentContainer)].handcursor,false);
- set(hotspot[get(newCommentContainer)].visible,get(commentVisibled));
- set(hotspot[get(newCommentContainer)].parent,commentsContainer);
- set(newCommentHeadMask,'new_comment_mask');
- txtadd(newCommentHeadMask,%1);
- addlayer(get(newCommentHeadMask));
- set(layer[get(newCommentHeadMask)].isComment,true);
- set(layer[get(newCommentHeadMask)].visible,get(commentVisibled));
- set(layer[get(newCommentHeadMask)].type,container);
- if(device.desktop,
- set(layer[get(newCommentHeadMask)].scale,1);
- ,
- set(layer[get(newCommentHeadMask)].scale,1.5);
- );
- set(layer[get(newCommentHeadMask)].keep,true);
- set(layer[get(newCommentHeadMask)].x,1);
- set(layer[get(newCommentHeadMask)].width,30);
- set(layer[get(newCommentHeadMask)].height,30);
- set(layer[get(newCommentHeadMask)].bgcolor,0xffffff);
- set(layer[get(newCommentHeadMask)].bgalpha,1);
- set(layer[get(newCommentHeadMask)].maskchildren,true);
- set(addCommentHotspotName,'hotspot[');
- txtadd(addCommentHotspotName,get(newCommentContainer));
- txtadd(addCommentHotspotName,']');
- set(layer[get(newCommentHeadMask)].parent,get(addCommentHotspotName));
- set(layer[get(newCommentHeadMask)].handcursor,false);
- set(layer[get(newCommentHeadMask)].enabled,false);
- set(layer[get(newCommentHeadMask)].zorder,get(layer.count));
- set(layer[get(newCommentHeadMask)].bgroundedge,5);
- set(layer[get(newCommentHeadMask)].capture,false);
- set(layer[get(newCommentHeadMask)].isActiveHotspot,true);
- set(newCommentHead,'new_comment_avatar');
- txtadd(newCommentHead,%1);
- addlayer(get(newCommentHead));
- set(layer[get(newCommentHead)].isComment,true);
- set(layer[get(newCommentHead)].isActiveHotspot,true);
- set(layer[get(newCommentHead)].visible,get(commentVisibled));
- set(layer[get(newCommentHead)].keep,true);
- if(device.desktop,
- set(layer[get(newCommentHead)].scale,1);
- ,
- set(layer[get(newCommentHead)].scale,1.5);
- );
- set(layer[get(newCommentHead)].width,30);
- set(layer[get(newCommentHead)].height,"prop");
- set(newCommentHeadUrl,%3);
- if(newCommentHeadUrl.length GT 0,
- txtadd(newCommentHeadUrl,?imageMogr2/thumbnail/60x60!);
- set(layer[get(newCommentHead)].url,get(newCommentHeadUrl));
- );
- set(addCommentMaskName,'layer[');
- txtadd(addCommentMaskName,get(newCommentHeadMask));
- txtadd(addCommentMaskName,']');
- set(layer[get(newCommentHead)].parent,get(addCommentMaskName));
- set(layer[get(newCommentHead)].handcursor,false);
- set(layer[get(newCommentHead)].enabled,false);
- set(layer[get(newCommentHead)].zorder,get(layer.count));
- set(layer[get(newCommentHead)].capture,false);
- set(layer[get(newCommentHead)].isActiveHotspot,true);
- set(newCommentPointTextName,'new_comment_point_text_container');
- txtadd(newCommentPointTextName,%1);
- addhotspot(get(newCommentPointTextName));
- set(hotspot[get(newCommentPointTextName)].keep,true);
- set(hotspot[get(newCommentPointTextName)].isActiveHotspot,true);
- set(hotspot[get(newCommentPointTextName)].isComment,true);
- set(hotspot[get(newCommentPointTextName)].ath,%4);
- set(hotspot[get(newCommentPointTextName)].atv,%5);
- set(hotspot[get(newCommentPointTextName)].visible,get(commentVisibled));
- set(hotspot[get(newCommentPointTextName)].type,container);
- set(hotspot[get(newCommentPointTextName)].url,get(plugin_url.TEXT_SWF));
- set(hotspot[get(newCommentPointTextName)].backgroundcolor,0x000000);
- set(hotspot[get(newCommentPointTextName)].backgroundalpha,0.6);
- if(device.flash,
- set(hotspot[get(newCommentPointTextName)].backgroundalpha,0.0);
- );
- set(hotspot[get(newCommentPointTextName)].enabled,false);
- set(hotspot[get(newCommentPointTextName)].handcursor,false);
- set(hotspot[get(newCommentPointTextName)].edge,topleft);
- set(hotspot[get(newCommentPointTextName)].parent,get(addCommentHotspotName));
- if(device.desktop,
- set(hotspot[get(newCommentPointTextName)].css,font-family:STXihei; font-size:12px; color:#FFFFFF;letter-spacing:1px;);
- set(hotspot[get(newCommentPointTextName)].padding,8);
- set(hotspot[get(newCommentPointTextName)].oy,-48);
- set(hotspot[get(newCommentPointTextName)].ox,18);
- set(hotspot[get(newCommentPointTextName)].roundedge,5);
- set(hotspot[get(newCommentPointTextName)].parent,get(addCommentHotspotName));
- ,
- set(hotspot[get(newCommentPointTextName)].css,font-family:STXihei; font-size:14px; color:#FFFFFF;letter-spacing:1px;);
- set(hotspot[get(newCommentPointTextName)].padding,10);
- set(hotspot[get(newCommentPointTextName)].oy,-74);
- set(hotspot[get(newCommentPointTextName)].ox,26);
- set(hotspot[get(newCommentPointTextName)].roundedge,5);
- );
- set(hotspot[get(newCommentPointTextName)].zorder,get(hotspot.count));
- set(hotspot[get(newCommentPointTextName)].html,'%2');
- set(hotspot[get(newCommentPointTextName)].renderer,"css3d");
- set(hotspot[get(newCommentPointTextName)].parent,get(addCommentHotspotName));
- );
- </action>
- <action name="removeComments">
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].isComment,
- removehotspot(get(hotspot[get(i)].name));
- dec(i);
- );
- );
- for(set(i,0),i LT layer.count,inc(i),
- if(layer[get(i)].isComment,
- removelayer(get(layer[get(i)].name));
- dec(i);
- );
- );
- set(config.feature.show_comment,0);
- </action>
- <action name="enterEditComment">
-
-
- set(modify_comment_cmd,get(js_modify_comment));
- txtadd(modify_comment_cmd,"('");
- txtadd(modify_comment_cmd,get(config.info.id));
- txtadd(modify_comment_cmd,"','");
- txtadd(modify_comment_cmd,get(pano_id));
- txtadd(modify_comment_cmd,"')");
- set(config.feature.show_comment, 1);
- jscall(get(modify_comment_cmd));
-
- pause_autoplay();
- hide_ui();
- copy(commentAddAnimationUrl,settings.comment_add_head_bg_image);
- addhotspot(add_hotspot_comment_bg_container);
- set(hotspot[add_hotspot_comment_bg_container].ath,get(view.hlookat));
- set(hotspot[add_hotspot_comment_bg_container].atv,get(view.vlookat));
- set(hotspot[add_hotspot_comment_bg_container].width,32);
- set(hotspot[add_hotspot_comment_bg_container].height,48);
- if(device.desktop,
- set(hotspot[add_hotspot_comment_bg_container].scale,1.5);
- ,
- set(hotspot[add_hotspot_comment_bg_container].scale,2);
- );
- copy(hotspot[add_hotspot_comment_bg_container].url,settings.comment_edit_line_image);
- set(hotspot[add_hotspot_comment_bg_container].keep,false);
- set(hotspot[add_hotspot_comment_bg_container].edge,bottom);
- set(hotspot[add_hotspot_comment_bg_container].handcursor,true);
- set(hotspot[add_hotspot_comment_bg_container].enabled,true);
- set(hotspot[add_hotspot_comment_bg_container].zorder,3600);
- set(hotspot[add_hotspot_comment_bg_container].ondown,dragAddHotspot());
- addlayer(add_hotspot_comment_mask);
- set(layer[add_hotspot_comment_mask].type,"container");
- if(device.desktop,
- set(layer[add_hotspot_comment_mask].scale,1.5);
- ,
- set(layer[add_hotspot_comment_mask].scale,2.0);
- );
- set(layer[add_hotspot_comment_mask].keep,false);
- set(layer[add_hotspot_comment_mask].x,1);
- set(layer[add_hotspot_comment_mask].width,30);
- set(layer[add_hotspot_comment_mask].height,30);
- set(layer[add_hotspot_comment_mask].bgcolor,0xffffff);
- set(layer[add_hotspot_comment_mask].bgalpha,1);
- set(layer[add_hotspot_comment_mask].maskchildren,true);
- set(addCommentHotspotName,'hotspot[');
- txtadd(addCommentHotspotName,add_hotspot_comment_bg_container);
- txtadd(addCommentHotspotName,']');
- set(layer[add_hotspot_comment_mask].parent,get(addCommentHotspotName));
- set(layer[add_hotspot_comment_mask].handcursor,false);
- set(layer[add_hotspot_comment_mask].enabled,false);
- set(layer[add_hotspot_comment_mask].zorder,3601);
- set(layer[add_hotspot_comment_mask].bgroundedge,6);
- set(layer[add_hotspot_comment_mask].capture,false);
- addlayer(add_hotspot_comment_avatar);
- if(device.desktop,
- set(layer[add_hotspot_comment_avatar].scale,1.5);
- ,
- set(layer[add_hotspot_comment_avatar].scale,2);
- );
- set(layer[add_hotspot_comment_avatar].width,30);
- set(layer[add_hotspot_comment_avatar].height,"prop");
- set(newEditCommentHeadUrl,%1);
- if(newEditCommentHeadUrl.length GT 0,
- txtadd(newEditCommentHeadUrl,?imageMogr2/thumbnail/60x60!);
- set(layer[add_hotspot_comment_avatar].url,get(newEditCommentHeadUrl));
- );
- set(addCommentMaskName,'layer[');
- txtadd(addCommentMaskName,add_hotspot_comment_mask);
- txtadd(addCommentMaskName,']');
- set(layer[add_hotspot_comment_avatar].parent,get(addCommentMaskName));
- set(layer[add_hotspot_comment_avatar].handcursor,false);
- set(layer[add_hotspot_comment_avatar].enabled,false);
- set(layer[add_hotspot_comment_avatar].zorder,2602);
- set(layer[add_hotspot_comment_avatar].capture,false);
-
- addhotspot(add_comment_point_text_container);
- set(hotspot[add_comment_point_text_container].ath,get(view.hlookat));
- set(hotspot[add_comment_point_text_container].atv,get(view.vlookat));
- set(hotspot[add_comment_point_text_container].visible,true);
- set(hotspot[add_comment_point_text_container].scale,1);
- copy(hotspot[add_comment_point_text_container].url,settings.comment_edit_bg_image);
- set(hotspot[add_comment_point_text_container].css,font-family:STXihei; font-size:14px; color:#FFFFFF;letter-spacing:1px;);
- set(hotspot[add_comment_point_text_container].backgroundcolor,0xFF7F00);
- set(hotspot[add_comment_point_text_container].backgroundalpha,1);
- set(hotspot[add_comment_point_text_container].padding,10);
- set(hotspot[add_comment_point_text_container].keep,false);
- set(hotspot[add_comment_point_text_container].edge,topleft);
- set(hotspot[add_comment_point_text_container].handcursor,true);
- set(hotspot[add_comment_point_text_container].enabled,true);
- set(hotspot[add_comment_point_text_container].ondown,dragAddHotspot());
- if(device.desktop,
- set(hotspot[add_comment_point_text_container].width,178);
- set(hotspot[add_comment_point_text_container].height,52);
- set(hotspot[add_comment_point_text_container].oy,-75);
- set(hotspot[add_comment_point_text_container].ox,-26);
- set(hotspot[add_comment_point_text_container].roundedge,10);
- ,
- set(hotspot[add_comment_point_text_container].width,232);
- set(hotspot[add_comment_point_text_container].height,68);
-
- if(device.ios,
- set(hotspot[add_comment_point_text_container].oy,-100);
- set(hotspot[add_comment_point_text_container].ox,-35);
- ,
- set(hotspot[add_comment_point_text_container].oy,-100);
- set(hotspot[add_comment_point_text_container].ox,-35);
- );
- set(hotspot[add_comment_point_text_container].roundedge,18);
- set(hotspot[add_comment_point_text_container].enable,true);
- );
- set(hotspot[add_comment_point_text_container].zorder,2499);
- addlayer(add_comment_text);
- if(device.desktop,
- set(layer[add_comment_text].x,45);
- ,
- set(layer[add_comment_text].x,65);
- );
- set(layer[add_comment_text].y,-15);
- set(layer[add_comment_text].visible,true);
- set(layer[add_comment_text].scale,1);
- set(layer[add_comment_text].align,left);
- set(layer[add_comment_text].url,get(plugin_url.TEXT_SWF));
- set(layer[add_comment_text].css,font-family:STXihei; font-size:12px; color:#ffffff;letter-spacing:1px;);
- set(layer[add_comment_text].backgroundcolor,#000000);
- set(layer[add_comment_text].backgroundalpha,0);
- set(layer[add_comment_text].padding,8);
- set(layer[add_comment_text].keep,false);
- set(layer[add_comment_text].enabled,false);
- set(layer[add_comment_text].handcursor,false);
- set(layer[add_comment_text].alpha,0);
- set(layer[add_comment_text].zorder,2604);
- set(layer[add_comment_text].ondown,dragAddHotspot());
- set(layer[add_comment_text].parent,get(addCommentHotspotName)); if(auto_rotate==1,stopAutoRotate());
- txtadd(addCommentTextContent,'');
- set(newCommentAth,get(view.hlookat));
- set(newCommentAtv,get(view.vlookat));
-
- </action>
- <action name="dragAddHotspot">
- if(%1 != dragging,
- spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery);
- sub(drag_adjustx, mouse.stagex, hotspotcenterx);
- sub(drag_adjusty, mouse.stagey, hotspotcentery);
- dragAddHotspot(dragging);
- ,
- if(pressed,
- sub(dx, mouse.stagex, drag_adjustx);
- sub(dy, mouse.stagey, drag_adjusty);
- screentosphere(dx, dy, ath, atv);
- copy(print_ath, ath);
- copy(print_atv, atv);
- roundval(print_ath, 3);
- roundval(print_atv, 3);
- set(hotspot[add_hotspot_comment_bg_container].ath,get(print_ath));
- set(hotspot[add_hotspot_comment_bg_container].atv,get(print_atv));
- set(hotspot[add_comment_text].ath,get(print_ath));
- set(hotspot[add_comment_text].atv,get(print_atv));
- set(hotspot[add_comment_point_text_container].ath,get(print_ath));
- set(hotspot[add_comment_point_text_container].atv,get(print_atv));
- delayedcall(0, dragAddHotspot(dragging) );
- set(newCommentAth,get(print_ath));
- set(newCommentAtv,get(print_atv));
- );
- );
- </action>
- <action name="updateInputComment">
- set(comment_content, %1); if(addCommentTextName!=null AND comment_content!=null,
- set(layer[add_comment_text].html,%1);
- txtadd(comment_tooltip_width_search, %1,'_countend');
- indexoftxt(number_of_characters,get(comment_tooltip_width_search), '_countend',0);
- if(number_of_characters LT 8 ,
- set(layer[add_comment_text].width,auto);
- ,
- set(layer[add_comment_text].width,140);
- );
- set(layer[add_comment_text].height,auto);
- delayedcall(0.2,
- set(layer[add_comment_text].alpha,1);
- );
- ,
- set(layer[add_comment_text].html,'');
- );
- </action>
- <action name="exitEditComment">
- removehotspot(add_hotspot_comment_bg_container);
- removelayer(add_hotspot_comment_mask);
- removelayer(add_hotspot_comment_avatar);
- removehotspot(add_comment_point_text_container);
- removelayer(add_comment_text);
- resume_autoplay();
- show_UI();
- </action>
- <action name="setup_contextmenu">
- if(sceneType != 3,
-
- if(device.desktop,
- set(contextmenu.item['fullscreen'].visible, true);
- );
- if(enableReport == true,
- set(contextmenu.item['openReport'].visible, true);
- );
- );
- </action>
- <contextmenu keep="true" fullscreen="false">
- <item name="custom1" caption="1" enabled="false" visible="false" separator="false" onclick="openurl(get(contextmenu.item[custom1].url));"/>
- <item name="custom2" caption="2" enabled="false" visible="false" separator="false" onclick="openurl(get(contextmenu.item[custom2].url));"/>
- <item name="custom3" caption="3" enabled="false" visible="false" separator="false" onclick="openurl(get(contextmenu.item[custom3].url));"/>
- <item name="copyright" caption="720yun.com" enabled="true" visible="true" separator="true" onclick="openurl(https://720yun.com);"/>
- <item name="fullscreen" caption="全屏切换" enabled="true" visible="false" separator="true" onclick="js_toggleFullscreen();"/>
- <item name="viewtype" caption="视角切换" enabled="true" visible="true" separator="false" onclick="js_showViewType();"/>
- <item name="controlmoveto" caption="切换拖拽方式为正向" enabled="true" visible="true" separator="false" showif="device.desktop" onclick="krpChangeMouseControl('drag');js_mouseControlChangedCallback('drag');"/>
- <item name="controldrag" caption="切换拖拽方式为反向" enabled="true" visible="false" separator="true" showif="device.desktop" onclick="krpChangeMouseControl('moveto');js_mouseControlChangedCallback('moveto');"/>
- <item name="openReport" caption="举报" enabled="true" visible="false" separator="true" onclick="js_openReport();"/>
- </contextmenu>
- <action name="setup_embed">
- if(forceDisableEmbed != 1,
- if(plugin[embed_container] === null,
- addplugin(embed_container);
- set(plugin[embed_container].zorder,0);
- );
- delete(embed_video_name);
- set(embed_count,get(config.panos.pano[get(xml.scene)].embeds.embed.count));
- for(set(i,0),i LT embed_count,inc(i),
- set(embed_name,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].name));
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 2,
- copy(embed_name_bk, embed_name);
- txtadd(embed_name_bk,'_bk');
- addhotspot(get(embed_name_bk));
- set(hotspot[get(embed_name_bk)].keep,false);
- set(hotspot[get(embed_name_bk)].scale,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
- set(hotspot[get(embed_name_bk)].ath,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
- set(hotspot[get(embed_name_bk)].atv,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
- set(hotspot[get(embed_name_bk)].edge,center);
- set(hotspot[get(embed_name_bk)].distorted,true);
- set(hotspot[get(embed_name_bk)].zoom,true);
- set(hotspot[get(embed_name_bk)].renderer,css3d);
- set(hotspot[get(embed_name_bk)].handcursor, false);
- set(hotspot[get(embed_name_bk)].enabled, false);
- set(hotspot[get(embed_name_bk)].visible, false);
- set(hotspot[get(embed_name_bk)].parent,'embed_container');
- addhotspot(get(embed_name));
- set(hotspot[get(embed_name)].keep,false);
- copy(embed_image_url,config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image[0].url);
- txtadd(embed_image_url,'?imageView2/0/w/2000/h/2000');
- copy(hotspot[get(embed_name)].url,embed_image_url);
- set(hotspot[get(embed_name)].scale,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
- set(hotspot[get(embed_name)].ath,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
- set(hotspot[get(embed_name)].atv,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
- set(hotspot[get(embed_name)].rx,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_x));
- set(hotspot[get(embed_name)].ry,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_y));
- set(hotspot[get(embed_name)].rz,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_z));
- set(hotspot[get(embed_name)].edge,center);
- set(hotspot[get(embed_name)].distorted,true);
- set(hotspot[get(embed_name)].zoom,true);
- set(hotspot[get(embed_name)].renderer,css3d);
- set(hotspot[get(embed_name)].image_count, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image.count));
- set(hotspot[get(embed_name)].image_index, 0);
- set(hotspot[get(embed_name)].parent,'embed_container');
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].play_type == 0 ,
- set(hotspot[get(embed_name)].handcursor, false);
- set(hotspot[get(embed_name)].enabled, false);
- set(hotspot[get(embed_name)].playInterval,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].interval));
- set(hotspot[get(embed_name)].onloaded,
- if(image_count GT 1,
- switch_embed_image();
- );
- );
- ,
- set(hotspot[get(embed_name)].handcursor, true);
- set(hotspot[get(embed_name)].enabled, true);
- set(hotspot[get(embed_name)].capture, false);
- set(hotspot[get(embed_name)].playInterval,0);
- set(hotspot[get(embed_name)].onclick,
- if(image_count GT 1,
- switch_embed_image_click();
- );
- );
- );
- );
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 3,
- addhotspot(get(embed_name));
- set(hotspot[get(embed_name)].keep,false);
- copy(embed_image_url,config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image_url);
- txtadd(embed_image_url,'?imageView2/2/w/2000/');
- copy(hotspot[get(embed_name)].url,embed_image_url);
- set(hotspot[get(embed_name)].scale,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
- set(hotspot[get(embed_name)].ath,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
- set(hotspot[get(embed_name)].atv,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
- set(hotspot[get(embed_name)].rx,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_x));
- set(hotspot[get(embed_name)].ry,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_y));
- set(hotspot[get(embed_name)].rz,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_z));
- set(hotspot[get(embed_name)].looptype,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].loop_type));
- set(hotspot[get(embed_name)].frame,0);
- set(hotspot[get(embed_name)].framewidth,1);
- set(hotspot[get(embed_name)].frameheight,1);
- set(hotspot[get(embed_name)].framespeed,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].frame_speed));
- set(hotspot[get(embed_name)].lastframe,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].frame_number));
- set(hotspot[get(embed_name)].edge,center);
- set(hotspot[get(embed_name)].distorted,true);
- set(hotspot[get(embed_name)].zoom,true);
- set(hotspot[get(embed_name)].renderer,css3d);
- set(hotspot[get(embed_name)].image_count, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image.count));
- set(hotspot[get(embed_name)].image_index, 0);
- set(hotspot[get(embed_name)].parent,'embed_container');
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].play_type == 0 ,
- set(hotspot[get(embed_name)].handcursor, false);
- set(hotspot[get(embed_name)].enabled, false);
- set(hotspot[get(embed_name)].playing, true);
- set(hotspot[get(embed_name)].onloaded,
- copy(framewidth,width);
- copy(frameheight,height);
- div(frameheight,lastframe);
- txtadd(crop,'0|0|',get(framewidth),'|',get(frameheight));
- embed_animate();
- );
- ,
- set(hotspot[get(embed_name)].handcursor, true);
- set(hotspot[get(embed_name)].enabled, true);
- set(hotspot[get(embed_name)].capture, false);
- set(hotspot[get(embed_name)].playing, false);
- set(hotspot[get(embed_name)].onloaded,
- copy(framewidth,width);
- copy(frameheight,height);
- div(frameheight,lastframe);
- txtadd(crop,'0|0|',get(framewidth),'|',get(frameheight));
- );
- set(hotspot[get(embed_name)].onclick,
- toggle(playing);
- embed_animate();
- );
- );
- );
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 5,
- add_linear_polygon(
- get(embed_name),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_0].ath),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_0].atv),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_1].ath),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_1].atv),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].thickness),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].color),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].alpha),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].title),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath),
- get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv)
- );
- );
- jsget(isVip, 'window.interfaceObject.isVip()');
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 4 AND device.ie != true AND isVip == true,
- set(need_pause_bg_music_sound, true);
- set(embed_video_name, get(embed_name));
- addhotspot(get(embed_name));
- set(hotspot[get(embed_name)].keep, false);
- set(hotspot[get(embed_name)].posterurl, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].cover_url));
- set(hotspot[get(embed_name)].videourl, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].video_url));
- set(hotspot[get(embed_name)].music_pause, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].music_pause));
- set(hotspot[get(embed_name)].sound_pause, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].sound_pause));
- set(hotspot[get(embed_name)].edge,center);
- set(hotspot[get(embed_name)].distorted,true);
- set(hotspot[get(embed_name)].embed_type,4);
- copy(hotspot[get(embed_name)].url, plugin_url.VIDEO_JS);
- copy(embed_name_play, embed_name);
- txtadd(embed_name_play,'_play');
- addhotspot(get(embed_name_play));
- set(hotspot[get(embed_name_play)].keep,false);
- set(hotspot[get(embed_name_play)].scale, 0.5);
-
- set(hotspot[get(embed_name_play)].url, calc(settings.skin_url + 'skin/embed_video_play.png'));
- set(hotspot[get(embed_name_play)].edge,center);
- set(hotspot[get(embed_name_play)].distorted,true);
- copy(hotspot[get(embed_name_play)].target_video,embed_name);
-
- set(hotspot[get(embed_name_play)].handcursor, true);
- set(hotspot[get(embed_name_play)].visible, false);
- set(hotspot[get(embed_name_play)].onclick, toggle_embed_video(););
- set(hotspot[get(embed_name_play)].hotspot_id, get(embed_name));
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].position_type == 0,
- set(hotspot[get(embed_name)].rotate,0);
- set(hotspot[get(embed_name)].scale,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
- set(hotspot[get(embed_name)].ath,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
- set(hotspot[get(embed_name)].atv,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
- set(hotspot[get(embed_name)].rx,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_x));
- set(hotspot[get(embed_name)].ry,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_y));
- set(hotspot[get(embed_name)].rz,get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_z));
- copy(hotspot[get(embed_name_play)].ath, hotspot[get(embed_name)].ath);
- copy(hotspot[get(embed_name_play)].atv, hotspot[get(embed_name)].atv);
- copy(hotspot[get(embed_name_play)].rx, hotspot[get(embed_name)].rx);
- copy(hotspot[get(embed_name_play)].ry, hotspot[get(embed_name)].ry);
- copy(hotspot[get(embed_name_play)].rz, hotspot[get(embed_name)].rz);
- ,
- set(hotspot[get(embed_name)].scale,1);
- set(hotspot[get(embed_name)].ath,0);
- set(hotspot[get(embed_name)].atv,0);
- set(hotspot[get(embed_name)].rx,0);
- set(hotspot[get(embed_name)].ry,0);
- set(hotspot[get(embed_name)].rz,0);
- set(hotspot[get(embed_name)].ox,0);
- set(hotspot[get(embed_name)].oy,0);
-
-
- set(hotspot[get(embed_name)].touchworkarounds, true);
- set(hotspot[get(embed_name)].playsinline, true);
- copy(hotspot[get(embed_name)].hfov, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].hfov);
- copy(hotspot[get(embed_name)].yaw, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].yaw);
- copy(hotspot[get(embed_name)].pitch, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].pitch);
- copy(hotspot[get(embed_name)].roll, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].roll);
- set(hotspot[get(embed_name)].onloaded, calc_pos_from_hfov_yaw_pitch_roll());
- );
-
- set(hotspot[get(embed_name)].capture, false);
- set(hotspot[get(embed_name)].onclick, toggle_embed_video(););
- set(hotspot[get(embed_name)].hotspot_id, get(embed_name));
- set(hotspot[get(embed_name)].handcursor, true);
- set(hotspot[get(embed_name)].pausedonstart, true);
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].loop_type == 0,
- set(hotspot[get(embed_name)].loop, true);
- ,
- set(hotspot[get(embed_name)].loop, false);
- );
- if(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].muted == 0,
- if(isAutoTouring == true,
- set(hotspot[get(embed_name)].muted, true);
- ,
- set(hotspot[get(embed_name)].muted, false);
- );
- set(hotspot[get(embed_name)].muted_enabled, false);
- ,
- set(hotspot[get(embed_name)].muted, true);
- set(hotspot[get(embed_name)].muted_enabled, true);
- );
- set(hotspot[get(embed_name)].onvideoready,
- set(js_command, calc('interfaceObject.onKrpEmbedVideoReady("' + get(name) + '")'));
- jscall(get(js_command));
- if(webvr.isenabled == true,
- set(hotspot[calc(name + '_play')].visible, false);
- ,
- set(hotspot[calc(name + '_play')].visible, true);
- );
- set(hotspot[get(embed_name)].onclick, );
- set(hotspot[get(embed_name)].handcursor, false);
- );
- set(hotspot[get(embed_name)].onvideoplay,
- set(hotspot[calc(name + '_play')].visible, false);
-
- set(hotspot[get(name)].handcursor, true);
- if(hotspot[get(name)].music_pause == 1,
- js_toggleBgMusicEmbedVideo(false);
- );
- if(hotspot[get(name)].sound_pause == 1,
- js_toggleBgVoiceEmbedVideo(false);
- );
- set(need_pause_bg_music_sound, false);
- );
- set(hotspot[get(embed_name)].onvideopaused,
- if(need_show_play != false,
- set(hotspot[calc(name + '_play')].visible, true);
- );
- set(hotspot[get(name)].handcursor, false);
- if(hotspot[get(name)].music_pause == 1,
- js_toggleBgMusicEmbedVideo(true);
- );
- if(hotspot[get(name)].sound_pause == 1,
- js_toggleBgVoiceEmbedVideo(true);
- );
- );
- );
- );
- delete(embed_name);
- hide_vr_hotspot();
- );
- </action>
- <action name="calc_pos_from_hfov_yaw_pitch_roll">
- div(hfov,57.295779);
- div(yaw,-57.295779);
- div(pitch,57.295779);
- div(roll,-57.295779);
- mul(hfov,0.5);Math.tan(hfov);mul(width,hfov,1000);set(height,'prop');
- Math.cos(ch,yaw);Math.sin(sh,yaw);
- Math.cos(ca,pitch);Math.sin(sa,pitch);
- Math.cos(cb,roll);Math.sin(sb,roll);
- mul(m0,ca,ch);
- mul(tmp,cb,sa);mul(tmp,ch);mul(tmp2,sb,sh);add(m3,tmp,tmp2);
- mul(m4,cb,ca);
- mul(tmp,cb,sa);mul(tmp,sh);mul(tmp2,sb,ch);sub(m5n,tmp,tmp2);mul(m5n,-1);
- mul(tmp,sb,sa);mul(tmp,ch);mul(tmp2,cb,sh);sub(m6n,tmp,tmp2);mul(m6n,-1);
- Math.atan2(yaw,m6n,m0);
- Math.atan2(roll,m5n,m4);
- Math.asin(pitch,m3);
- mul(ath,yaw,57.295779);
- mul(atv,pitch,57.295779);
- mul(rotate,roll,57.295779);
- copy(hotspot[calc(name + '_play')].ath, ath);
- copy(hotspot[calc(name + '_play')].atv, atv);
- copy(hotspot[calc(name + '_play')].rotate, rotate);
- </action>
- <action name="embed_animate">
- if(looptype == 1 AND frame == lastframe,
- set(frame, 0);
- mul(ypos,frame,frameheight);
- txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
- set(playing, false);
- ,
- inc(frame,1,get(lastframe),0);
- mul(ypos,frame,frameheight);
- txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
- if(playing == true,
- delayedcall(get(framespeed), embed_animate());
- );
- );
- </action>
- <action name="switch_embed_image">
- if(webvr.isenabled != true,
- set(onloaded,);
- copy(switch_embed_name_bk, name);
- txtadd(switch_embed_name_bk,'_bk');
- set(hotspot[calc(name)].bk,calc(name + '_bk'));
- copy(hotspot[calc(name + '_bk')].target,name);
- copy(hotspot[calc(name + '_bk')].rx, rx);
- copy(hotspot[calc(name + '_bk')].ry, ry);
- copy(hotspot[calc(name + '_bk')].rz, rz);
- delayedcall(get(playInterval),
- set(hotspot[calc(name + '_bk')].onloaded,
- set(alpha,1);
- set(visible,true);
- add(hotspot[calc(target)].image_index,1);
- if(hotspot[calc(target)].image_index == hotspot[calc(target)].image_count,
- set(hotspot[calc(target)].image_index,0);
- );
- set(hotspot[calc(target)].onloaded,
- set(visible,true);
- set(alpha,0);
- tween(alpha,1.0,0.2,linear,
- set(hotspot[calc(bk)].visible,false);
- switch_embed_image();
- );
- delayedcall(0.1,
- tween(hotspot[calc(bk)].alpha,0.0,0.2,linear,
- set(hotspot[calc(bk)].visible,false);
- );
- );
- );
- copy(embed_image_url,config.panos.pano[get(xml.scene)].embeds.embed[calc(target)].image[get(hotspot[calc(target)].image_index)].url);
- txtadd(embed_image_url,'?imageView2/0/w/2000/h/2000');
- set(hotspot[calc(target)].url,get(embed_image_url));
- );
- copy(hotspot[calc(name + '_bk')].url,url);
- );
- );
- </action>
- <action name="switch_embed_image_click">
- set(onloaded,);
- copy(switch_embed_name_bk, name);
- txtadd(switch_embed_name_bk,'_bk');
- set(hotspot[calc(name)].bk,calc(name + '_bk'));
- copy(hotspot[calc(name + '_bk')].target,name);
- copy(hotspot[calc(name + '_bk')].rx, rx);
- copy(hotspot[calc(name + '_bk')].ry, ry);
- copy(hotspot[calc(name + '_bk')].rz, rz);
- set(hotspot[calc(name + '_bk')].onloaded,
- set(alpha,1);
- set(visible,true);
- add(hotspot[calc(target)].image_index,1);
- if(hotspot[calc(target)].image_index == hotspot[calc(target)].image_count,
- set(hotspot[calc(target)].image_index,0);
- );
- set(hotspot[calc(target)].onloaded,
- set(visible,true);
- set(alpha,0);
- tween(alpha,1.0,0.2,linear,
- set(hotspot[calc(bk)].visible,false);
- );
- delayedcall(0.1,
- tween(hotspot[calc(bk)].alpha,0.0,0.2,linear,
- set(hotspot[calc(bk)].visible,false);
- );
- );
- );
- copy(embed_image_url,config.panos.pano[get(xml.scene)].embeds.embed[calc(target)].image[get(hotspot[calc(target)].image_index)].url);
- txtadd(embed_image_url,'?imageView2/0/w/2000/h/2000');
- set(hotspot[calc(target)].url,get(embed_image_url));
- );
- copy(hotspot[calc(name + '_bk')].url,url);
- </action>
- <action name="muted_embed_video">
- if(embed_video_name !== null AND hotspot[get(embed_video_name)].muted_enabled == false,
- set(hotspot[get(embed_video_name)].muted, true);
- );
- </action>
- <action name="unmuted_embed_video">
- if(embed_video_name !== null AND hotspot[get(embed_video_name)].muted_enabled == false,
- set(hotspot[get(embed_video_name)].muted, false);
- );
- </action>
- <action name="pause_embed_video">
- if(embed_video_name !== null AND hotspot[get(embed_video_name)].ispaused == true,
- copy(embed_name_play, embed_video_name);
- txtadd(embed_name_play,'_play');
- if(hotspot[get(embed_name_play)] !== null AND hotspot[get(embed_name_play)].visible,
- set(hotspot[get(embed_name_play)].visible, false);
- set(need_resume_play_button, true);
- );
- );
- if(embed_video_name !== null AND hotspot[get(embed_video_name)].ispaused == false,
- hotspot[get(embed_video_name)].pause();
- set(hotspot[get(embed_video_name)].need_resume, true);
- set(hotspot[get(embed_video_name)].need_show_play, false);
- );
- </action>
- <action name="resume_embed_video">
- if(embed_video_name !== null AND hotspot[get(embed_video_name)].ispaused == true,
- copy(embed_name_play, embed_video_name);
- txtadd(embed_name_play,'_play');
- if(hotspot[get(embed_name_play)] !== null AND need_resume_play_button,
- set(hotspot[get(embed_name_play)].visible, true);
- set(need_resume_play_button, false);
- );
- );
- if(embed_video_name !== null AND hotspot[get(embed_video_name)].need_resume == true,
- hotspot[get(embed_video_name)].resume();
- set(hotspot[get(embed_video_name)].need_show_play, true);
- set(hotspot[get(embed_video_name)].need_resume, false);
- );
- </action>
- <action name="toggle_embed_video">
-
- set(js_command, calc('interfaceObject.onKrpEmbedVideoClick("' + get(hotspot_id) + '", ' + hotspot[get(hotspot_id)].ispaused + ')'));
- jscall(get(js_command));
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].embed_type == '4',
- if(hotspot[get(i)].hotspot_id == get(hotspot_id),
- hotspot[get(hotspot_id)].togglepause();
- ,
- hotspot[get(i)].pause();
- );
- );
- );
- </action>
- <action name="add_linear_polygon">
- update_linear_polygon_title(%1,%9,%10,%11);
- addhotspot(%1);
- set(hotspot[%1].enabled, fasle);
- set(hotspot[%1].capture,false);
- set(hotspot[%1].renderer,'css3d');
- set(hotspot[%1].onclick,
- if(editing_linear_polygon_name != name,
- jscall(calc('window.onKrpEmbedClick("'+ name + '")'));
- );
- );
- update_linear_polygon_position(%1,%2,%3,%4,%5);
- update_linear_polygon_style(%1,%6,%7,%8);
- updatescreen();
- </action>
- <action name="remove_linear_polygon">
- end_edit_linear_polygon();
- if(%1 != null,
- removehotspot(%1);
- set(linear_polygon_txt_name, %1);
- txtadd(linear_polygon_txt_name, '_txt');
- removehotspot(get(linear_polygon_txt_name));
- );
- </action>
- <action name="update_linear_polygon_position">
- if(%1 != null AND %2 !== null AND %3 !== null,
- set(hotspot[%1].point[0].ath, %2);
- set(hotspot[%1].point[0].atv, %3);
- );
- if(%1 != null AND %4 !== null AND %5 !== null,
- set(hotspot[%1].point[1].ath, %4);
- set(hotspot[%1].point[1].atv, %5);
- );
- </action>
- <action name="update_linear_polygon_style">
- if(%2 !== null,
- set(linear_polygon_default_width, %2);
- copy(hotspot[%1].borderwidth, linear_polygon_default_width);
- );
- if(%3 != null,
- set(linear_polygon_default_color, %3);
- txtreplace(linear_polygon_default_color, '#', '0x');
- copy(hotspot[%1].bordercolor, linear_polygon_default_color);
- );
- if(%4 !== null,
- set(linear_polygon_default_alpha, %4);
- copy(hotspot[%1].borderalpha, linear_polygon_default_alpha);
- );
- </action>
- <action name="update_linear_polygon_title">
- if(%1 != null,
- set(linear_polygon_txt_name, %1);
- txtadd(linear_polygon_txt_name, '_txt');
- if(hotspot[get(linear_polygon_txt_name)] === null,
- addhotspot(get(linear_polygon_txt_name));
- );
- set(hotspot[get(linear_polygon_txt_name)].target_hotspot_name,%1);
- set(hotspot[get(linear_polygon_txt_name)].scale,1);
- set(hotspot[get(linear_polygon_txt_name)].capture,false);
- set(hotspot[get(linear_polygon_txt_name)].enabled, false);
- set(hotspot[get(linear_polygon_txt_name)].keep,false);
- set(hotspot[get(linear_polygon_txt_name)].url,'https://ssl-player2.720static.com/@/krp/1.19-pr8/plugins/textfield.swf');
- set(hotspot[get(linear_polygon_txt_name)].backgroundcolor,#000000);
- set(hotspot[get(linear_polygon_txt_name)].backgroundalpha,0.5);
- set(hotspot[get(linear_polygon_txt_name)].roundedge,5);
- set(hotspot[get(linear_polygon_txt_name)].padding,5);
- set(hotspot[get(linear_polygon_txt_name)].css,font-family:STXihei; font-size:12px; color:#ffffff;letter-spacing:1px;textAlign:center;);
- set(hotspot[get(linear_polygon_txt_name)].edge,center);
- set(hotspot[get(linear_polygon_txt_name)].renderer,"css3d");
- set(hotspot[get(linear_polygon_txt_name)].zorder2, 1.0);
- set(hotspot[get(linear_polygon_txt_name)].visible,true);
- set(hotspot[get(linear_polygon_txt_name)].onclick,
- if(editing_linear_polygon_name != target_hotspot_name,
- jscall(calc('window.onKrpEmbedClick("'+ target_hotspot_name + '")'));
- );
- );
- if(%3 != null,
- set(hotspot[get(linear_polygon_txt_name)].ath, %3);
- );
- if(%4 != null,
- set(hotspot[get(linear_polygon_txt_name)].atv, %4);
- );
- set(linear_txt,%2);
- if(linear_txt != null,
- set(hotspot[get(linear_polygon_txt_name)].html, %2);
- txtreplace(hotspot[get(linear_polygon_txt_name)].html,'
- ','[br]');
- set(hotspot[get(linear_polygon_txt_name)].visible, true);
- ,
- set(hotspot[get(linear_polygon_txt_name)].html, );
- set(hotspot[get(linear_polygon_txt_name)].visible, false);
- );
- );
- </action>
- <plugin name="gyro_plugin" keep="true" url="" devices="html5" enabled="false"/>
- <action name="setup_gyro">
- if(!device.desktop AND device.html5,
- copy(plugin[gyro_plugin].url, plugin_url.GYRO);
- );
- </action>
- <action name="toggle_gyro">
- js_request_gyro_promission();
- switch(plugin[gyro_plugin].enabled);
- </action>
- <action name="start_gyro">
- js_request_gyro_promission();
- if(isAutoTouring != true,
- set(plugin[gyro_plugin].enabled, true);
- );
- </action>
- <action name="stop_gyro">
- set(plugin[gyro_plugin].enabled, false);
- </action>
- <action name="setup_hotspot">
- if(plugin[hotspot_container] === null,
- addplugin(hotspot_container);
- set(plugin[hotspot_container].zorder,90);
- set(plugin[hotspot_container].keep,true);
- set(hotspot[hotspot_container].handcursor, true);
- );
- </action>
- <action name="add_hotspot">
- set(hotspot_name,%1);
- ifnot(%3 == 0,
- addhotspot(get(hotspot_name));
- set(hotspot[get(hotspot_name)].isActiveHotspot,true);
- set(hotspot[get(hotspot_name)].hotspot_type,%6);
- set(hotspot[get(hotspot_name)].hotspot_id,%1);
-
-
-
- set(hotspot[get(hotspot_name)].ath,%4);
- set(hotspot[get(hotspot_name)].atv,%5);
- if(displayMode === null,
- add(hotspot[get(hotspot_name)].atv,5);
- );
-
-
-
-
-
-
- set(scale,%12);
- if(scale == null || scale == 'undefined',set(scale,1));
-
- if(%3 == "1",
- mul(scale,0.5);
- set(hotspot[get(hotspot_name)].scale, get(scale));
- ,
- mul(scale,0.75);
- set(hotspot[get(hotspot_name)].scale, get(scale));
- );
- if(%8 == "1",
- set(hotspot[get(hotspot_name)].frame,0);
- set(hotspot[get(hotspot_name)].framewidth,100);
- set(hotspot[get(hotspot_name)].frameheight,100);
- set(hotspot[get(hotspot_name)].isframe,%8);
- set(hotspot[get(hotspot_name)].framespeed,%10);
- set(hotspot[get(hotspot_name)].lastframe,%9);
- dec(hotspot[get(hotspot_name)].lastframe);
- );
- set(hotspot[get(hotspot_name)].capture, false);
- set(hotspot[get(hotspot_name)].keep, false);
-
-
- set(hotspot[get(hotspot_name)].handcursor, true);
- set(hotspot[get(hotspot_name)].edge, center);
- set(hotspot[get(hotspot_name)].zorder, 1000);
-
- set(hotspot[get(hotspot_name)].onclick, hotspot_action(););
- set(hotspot[get(hotspot_name)].parent,plugin[hotspot_container]);
-
- set(hotspot_name_URL,%2);
- if(%3 == "2",
- if(%8 == "1",
- txtadd(hotspot_name_URL,'?imageView2/2/w/300/');
- ,
- txtadd(hotspot_name_URL,'?imageView2/0/w/300/');
- );
- set(hotspot[get(hotspot_name)].renderer, css3d);
- set(hotspot[get(hotspot_name)].image_type, 2);
- ,
- set(hotspot[get(hotspot_name)].crop,0|0|128|128);
- indexoftxt(gif_index,%2,'_gif');
- if(gif_index GT -1,
- if(device.flash,
- set(hotspot[get(hotspot_name)].framewidth,64);
- set(hotspot[get(hotspot_name)].frameheight,64);
- txtadd(hotspot_name_URL,'?imageView2/0/w/1600');
- ,
- set(hotspot[get(hotspot_name)].framewidth,128);
- set(hotspot[get(hotspot_name)].frameheight,128);
- );
- set(hotspot[get(hotspot_name)].frame,0);
- indexoftxt(new_index,%2,'new_');
- if(new_index GT -1,
- set(hotspot[get(hotspot_name)].lastframe,24);
- ,
- set(hotspot[get(hotspot_name)].lastframe,9);
- );
- set(hotspot[get(hotspot_name)].onloaded,hotspot_animate(););
- ,
- if(device.flash,
- txtadd(hotspot_name_URL,'?imageView2/0/w/64');
- set(hotspot[get(hotspot_name)].crop,0|0|64|64);
- );
- );
- );
- set(hotspot[get(hotspot_name)].url,get(hotspot_name_URL));
- );
- if(%8 == "1",
- set(hotspot[get(hotspot_name)].renderer, css3d);
- set(hotspot[get(hotspot_name)].onloaded,
- copy(framewidth,width);
- copy(frameheight,height);
- copy(framecount,lastframe);
- inc(framecount);
- div(frameheight,framecount);
- txtadd(crop,'0|0|',get(framewidth),'|',get(frameheight));
- custom_hotspot_animate();
- );
- );
- set(hotspot_txt_string, %7);
- if(hotspot_txt_string !== null AND hotspot_txt_string != undefined AND (hotspot_txt_string != '' OR calc(%7 == '0')),
- set(hotspot_txt_name,get(hotspot_name));
- txtadd(hotspot_txt_name,"_txt");
- addhotspot(get(hotspot_txt_name));
- set(hotspot[get(hotspot_txt_name)].isActiveHotspot,true);
- set(hotspot[get(hotspot_txt_name)].hotspot_id,%1);
- set(hotspot[get(hotspot_txt_name)].hotspot_type,%6);
- set(hotspot[get(hotspot_txt_name)].is_hotspot_txt,true);
- set(hotspot[get(hotspot_txt_name)].image_type, get(hotspot[get(hotspot_name)].image_type));
- set(hotspot[get(hotspot_txt_name)].html,get(hotspot_txt_string));
- set(hotspot[get(hotspot_txt_name)].ath,%4);
- set(hotspot[get(hotspot_txt_name)].atv,get(hotspot[get(hotspot_name)].atv));
- set(hotspot[get(hotspot_txt_name)].scale,1);
- set(hotspot[get(hotspot_txt_name)].url,get(plugin_url.TEXT_SWF));
- set(hotspot[get(hotspot_txt_name)].capture,false);
- set(hotspot[get(hotspot_txt_name)].keep,false);
- set(hotspot[get(hotspot_txt_name)].renderer,"css3d");
- if(hotspot[get(hotspot_name)].height === null ,
- set(hotspot[get(hotspot_name)].onloaded,
- if(%8 == "1",
- copy(framewidth,width);
- copy(frameheight,height);
- copy(framecount, lastframe);
- inc(framecount);
- div(frameheight,framecount);
- txtadd(crop,'0|0|',get(framewidth),'|',get(frameheight));
- custom_hotspot_animate();
- );
- adjust_hotspot_position();
- );
- ,
- set(hotspot[get(hotspot_txt_name)].oy,get(hotspot[get(hotspot_name)].height));
- mul(hotspot[get(hotspot_txt_name)].oy,get(hotspot[get(hotspot_name)].scale));
- mul(hotspot[get(hotspot_txt_name)].oy,-0.5);
- sub(hotspot[get(hotspot_txt_name)].oy,6);
- );
- set(hotspot[get(hotspot_txt_name)].backgroundcolor,#000000);
- set(hotspot[get(hotspot_txt_name)].backgroundalpha,0.5);
- set(hotspot[get(hotspot_txt_name)].roundedge,5);
- set(hotspot[get(hotspot_txt_name)].padding,5);
- if(%11 === null,
- set(hotspot[get(hotspot_txt_name)].css,font-family:STXihei; font-size:12px; color:#ffffff;letter-spacing:1px;text-align:center;);
- ,
- set(hotspot[get(hotspot_txt_name)].css,'font-family:STXihei; font-size:');
- txtadd(hotspot[get(hotspot_txt_name)].css,%11);
- txtadd(hotspot[get(hotspot_txt_name)].css,'px; color:#ffffff;letter-spacing:1px;text-align:center;');
- );
- set(hotspot[get(hotspot_txt_name)].edge,center);
- set(hotspot[get(hotspot_txt_name)].show_txt,get(config.panos.pano[get(xml.scene)].hotspots.hotspot[get(i)].show_txt));
- set(hotspot[get(hotspot_txt_name)].onclick,hotspot_action(););
- set(hotspot[get(hotspot_txt_name)].parent, plugin[hotspot_container]);
- );
- if(webvr.isenabled,
- hide_vr_hotspot();
- );
- if(isAutoTouring == true AND config.autoTours.tour.hideHotspots == true,
- hide_hotspots();
- );
- </action>
- <action name="add_text_hotspot">
- addhotspot(%1);
- set(hotspot[%1].hotspot_id, %1);
- set(hotspot[%1].ath,%3);
- set(hotspot[%1].atv,%4);
- set(hotspot[%1].scale,1);
- set(hotspot[%1].keep,false);
- set(hotspot[%1].url,get(plugin_url.TEXT_SWF));
- set(hotspot[%1].html,%2);
- txtreplace(hotspot[%1].html,'
- ','[br]');
- set(hotspot[%1].bgshadow, "0 2 4 0x000000 0.3");
- set(hotspot_css,'font-size:12px; letter-spacing:1px;textAlign:center;');
- if(%5 != null,
- txtadd(hotspot_css, 'color:');
- txtadd(hotspot_css, %5);
- txtadd(hotspot_css, ';');
- ,
- txtadd(hotspot_css, 'color:#ffffff;');
- );
- if(%6 != null,
- txtadd(hotspot_css, '');
- ,
- txtadd(hotspot_css, '');
- );
- if(%7 !== null,
- set(hotspot[%1].backgroundcolor,%7);
- ,
- set(hotspot[%1].backgroundcolor,#000000);
- set(hotspot[%1].bgborder, 0);
- );
- if(%8 !== null,
- set(hotspot[%1].backgroundalpha,%8);
- ,
- set(hotspot[%1].backgroundalpha,0.5);
- );
- set(hotspot[%1].roundedge,2);
- set(hotspot[%1].padding,'2 6');
- set(hotspot[%1].multiline,true);
- set(hotspot[%1].oy,-9);
- set(hotspot[%1].edge,bottom);
- copy(hotspot[%1].css,hotspot_css);
- set(hotspot[%1].handcursor, true);
- set(hotspot[%1].enabled, true);
- set(hotspot[%1].renderer,"css3d");
- set(hotspot[%1].zorder2, 1.0);
- set(hotspot[%1].parent,plugin[hotspot_container]);
- set(hotspot[%1].zorder, 1000);
- set(hotspot[%1].onclick, hotspot_action(););
- set(embed_txt_bg_name,%1);
- txtadd(embed_txt_bg_name,"_bg");
- addhotspot(get(embed_txt_bg_name));
- if(%7 !== null,
- set(textbgcolor,%7);
- txtreplace(textbgcolor,'#','');
- txtreplace(textbgcolor,'0x','');
- toupper(textbgcolor);
- copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_colored_image);
- txtreplace(hotspot[get(embed_txt_bg_name)].url,'color',get(textbgcolor));
- if(textbgcolor == '24A566',
- set(hotspot[%1].bgborder, '1 0x31c27a 1');
- ,
- if(textbgcolor == 'ADADAD',
- set(hotspot[%1].bgborder, '1 0xbec0cd 1');
- ,
- if(textbgcolor == 'DB4437',
- set(hotspot[%1].bgborder, '1 0xF36264 1');
- ,
- if(textbgcolor == 'F5A623',
- set(hotspot[%1].bgborder, '1 0xffbb0f 1');
- ,
- if(textbgcolor == 'FFFFFF',
- set(hotspot[%1].bgborder, '1 0xc6c6c6 1');
- );
- );
- );
- );
- );
- ,
- copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_image);
- );
- copy(hotspot[get(embed_txt_bg_name)].ath,hotspot[%1].ath);
- copy(hotspot[get(embed_txt_bg_name)].atv,hotspot[%1].atv);
- sub(hotspot[get(embed_txt_bg_name)].atv,0.02);
- set(hotspot[get(embed_txt_bg_name)].keep,false);
- set(hotspot[get(embed_txt_bg_name)].scale,0.5);
- set(hotspot[get(embed_txt_bg_name)].edge,top);
- if(device.mobile == true,
- set(hotspot[get(embed_txt_bg_name)].oy,-6);
- ,
- set(hotspot[get(embed_txt_bg_name)].oy,-9);
- );
- set(hotspot[get(embed_txt_bg_name)].handcursor, true);
- set(hotspot[get(embed_txt_bg_name)].enabled, true);
- set(hotspot[get(embed_txt_bg_name)].renderer, 'css3d');
- copy(hotspot[get(embed_txt_bg_name)].zorder, hotspot[%1].zorder);
- add(hotspot[get(embed_txt_bg_name)].zorder, 1);
- set(hotspot[get(embed_txt_bg_name)].parent,plugin[hotspot_container]);
- if(webvr.isenabled,
- hide_vr_hotspot();
- );
- </action>
- <action name="remove_text_hotspot">
- removehotspot(%1);
- set(embed_txt_bg_name,%1);
- txtadd(embed_txt_bg_name,"_bg");
- removehotspot(get(embed_txt_bg_name));
- </action>
- <action name="update_text_hotspot_color">
- if(%2 != null,
- set(hotspot_css,'font-size:12px; letter-spacing:1px;textAlign:center;');
- txtadd(hotspot_css, 'color:');
- txtadd(hotspot_css, %2);
- txtadd(hotspot_css, ';');
- copy(hotspot[%1].css, hotspot_css);
- );
- if(%3 != null,
- );
-
- if(%4 !== null,
- set(embed_txt_bg_name,%1);
- txtadd(embed_txt_bg_name,"_bg");
- set(hotspot[%1].backgroundcolor,%4);
- set(textbgcolor,%4);
- txtreplace(textbgcolor,'#','');
- txtreplace(textbgcolor,'0x','');
- toupper(textbgcolor);
- copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_colored_image);
- txtreplace(hotspot[get(embed_txt_bg_name)].url,'color',get(textbgcolor));
- if(textbgcolor == '24A566',
- set(hotspot[%1].bgborder, '1 0x31c27a 1');
- ,
- if(textbgcolor == 'ADADAD',
- set(hotspot[%1].bgborder, '1 0xbec0cd 1');
- ,
- if(textbgcolor == 'DB4437',
- set(hotspot[%1].bgborder, '1 0xF36264 1');
- ,
- if(textbgcolor == 'F5A623',
- set(hotspot[%1].bgborder, '1 0xffbb0f 1');
- ,
- if(textbgcolor == 'FFFFFF',
- set(hotspot[%1].bgborder, '1 0xc6c6c6 1');
- );
- );
- );
- );
- );
- );
- if(%5 !== null,
- set(hotspot[%1].backgroundalpha,%5);
- );
- </action>
- <action name="adjust_frame_hotspot">
- </action>
- <action name="adjust_hotspot_position">
- delayedcall(0.1,
- set(hotspot_loaded_txt_name,get(name));
- txtadd(hotspot_loaded_txt_name,"_txt");
- set(hotspot[get(hotspot_loaded_txt_name)].oy,get(hotspot[get(name)].height));
- mul(hotspot[get(hotspot_loaded_txt_name)].oy,get(hotspot[get(name)].scale));
- mul(hotspot[get(hotspot_loaded_txt_name)].oy,-0.5);
- sub(hotspot[get(hotspot_loaded_txt_name)].oy,11);
- sub(hotspot[get(hotspot_loaded_txt_name)].oy,5);
- );
- </action>
- <action name="hotspot_action">
- js_hotspotClickCallback(get(hotspot_id));
-
-
- if(hotspot_type == 5,
- muted_embed_video();
- );
- </action>
- <action name="hotspot_animate">
- inc(frame,1,get(lastframe),0);
- mul(ypos,frame,frameheight);
- txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
- delayedcall(0.03, hotspot_animate());
- </action>
- <action name="custom_hotspot_animate">
- inc(frame,1,get(lastframe),0);
- mul(ypos,frame,frameheight);
- txtadd(crop,'0|',get(ypos),'|',get(framewidth),'|',get(frameheight));
- delayedcall(get(framespeed), custom_hotspot_animate());
- </action>
- <action name="show_hotspots">
- set(plugin[hotspot_container].visible , true);
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].hide_action == 'hide_hotspots',
- set(hotspot[get(i)].visible,true);
- set(hotspot[get(i)].hide_action,'');
- );
- );
- </action>
- <action name="hide_hotspots">
- set(plugin[hotspot_container].visible , false);
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].isActiveHotspot AND hotspot[get(i)].visible,
- set(hotspot[get(i)].visible,false);
- set(hotspot[get(i)].hide_action,'hide_hotspots');
- );
- );
- </action>
- <polygon_swap_data>
- <point name="p0" ath="0" atv="0"/>
- <point name="p1" ath="5" atv="0"/>
- <point name="p2" ath="0" atv="5"/>
- <point name="p3" ath="5" atv="5"/>
- </polygon_swap_data>
- <action name="add_polygon">
- if(%1 != null,
- addhotspot(%1);
- for(set(i,0),i LT polygon_swap_data.point.count,inc(i),
- copy(hotspot[%1].point[get(i)].ath, polygon_swap_data.point[get(i)].ath);
- copy(hotspot[%1].point[get(i)].atv, polygon_swap_data.point[get(i)].atv);
- );
- set(hotspot[%1].title, %13);
- set(hotspot[%1].isActiveHotspot,true);
- set(hotspot[%1].hotspot_type,%12);
- set(hotspot[%1].hotspot_id, %1);
- set(hotspot[%1].capture, false);
- set(hotspot[%1].zorder, 1000);
- set(hotspot[%1].onclick, hotspot_action(););
- update_polygon_style(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11);
- update_polygon_title(%1, %13, %14);
- );
- </action>
- <action name="update_polygon_title">
- if(%1 != null,
- set(polygon_txt_name, %1);
- txtadd(polygon_txt_name, '_txt');
- set(hotspot[%1].title, %2);
- if(hotspot[get(polygon_txt_name)] === null,
- addhotspot(get(polygon_txt_name));
- );
- if(hotspot[%1].title !== null AND hotspot[%1].title != '' AND hotspot[%1].title != undefined AND hotspot[%1].point.count GT 0,
- set(hotspot[get(polygon_txt_name)].target_hotspot_name,%1);
- set(hotspot[get(polygon_txt_name)].scale,1);
- set(hotspot[get(polygon_txt_name)].capture,false);
- set(hotspot[get(polygon_txt_name)].isActiveHotspot,true);
- set(hotspot[get(polygon_txt_name)].hotspot_id,%1);
- copy(hotspot[get(polygon_txt_name)].hotspot_type,hotspot[%1].hotspot_type);
- set(hotspot[get(polygon_txt_name)].keep,false);
- set(hotspot[get(polygon_txt_name)].renderer, "css3d");
- set(hotspot[get(polygon_txt_name)].url,'https://ssl-player2.720static.com/@/krp/1.19-pr8/plugins/textfield.swf');
- set(hotspot[get(polygon_txt_name)].backgroundcolor,#000000);
- set(hotspot[get(polygon_txt_name)].backgroundalpha,0.5);
- set(hotspot[get(polygon_txt_name)].roundedge,5);
- set(hotspot[get(polygon_txt_name)].padding,5);
- if(%3 === null,
- set(hotspot[get(polygon_txt_name)].css, font-family:STXihei; font-size:12px; color:#ffffff;letter-spacing:1px;text-align:center;);
- ,
- set(hotspot[get(polygon_txt_name)].css,'font-family:STXihei; font-size:');
- txtadd(hotspot[get(polygon_txt_name)].css,%3);
- txtadd(hotspot[get(polygon_txt_name)].css,'px; color:#ffffff;letter-spacing:1px;text-align:center;');
- );
- set(hotspot[get(polygon_txt_name)].edge,center);
- set(hotspot[get(polygon_txt_name)].visible,true);
- copy(hotspot[get(polygon_txt_name)].html,hotspot[%1].title);
- set(hotspot[get(polygon_txt_name)].onclick,
- if(target_hotspot_name != editing_polygon_name,
- hotspot_action();
- );
- );
- update_polygon_title_postion(%1);
- ,
- set(hotspot[get(polygon_txt_name)].visible,false);
- );
- );
- if(webvr.isenabled,
- hide_vr_hotspot();
- );
- </action>
- <action name="update_polygon_title_postion">
- copy(toAth,hotspot[%1].point[0].ath);
- copy(toAtv,hotspot[%1].point[0].atv);
- for(set(i,1),i LT hotspot[%1].point.count,inc(i),
- if(hotspot[%1].point[get(i)].atv LT toAtv,
- copy(toAth, hotspot[%1].point[get(i)].ath);
- copy(toAtv, hotspot[%1].point[get(i)].atv);
- );
- );
- copy(hotspot[get(polygon_txt_name)].ath, toAth);
- copy(hotspot[get(polygon_txt_name)].atv, toAtv);
- sub(hotspot[get(polygon_txt_name)].atv, 2);
- </action>
- <action name="remove_polygon">
- if(%1 != null,
- set(polygon_txt_name, %1);
- txtadd(polygon_txt_name, '_txt');
- removehotspot(%1);
- removehotspot(get(polygon_txt_name));
- );
- </action>
- <action name="update_polygon_style">
- if(%1 != null,
- if(%2 !== null,
- set(hotspot[%1].fillcolor, %2);
- set(hotspot[%1].normal_color, %2);
- );
- if(%3 !== null,
- set(hotspot[%1].normal_alpha, %3);
- set(hotspot[%1].fillalpha, %3);
- );
- if(%4 !== null,
- set(hotspot[%1].normal_border_width, %4);
- set(hotspot[%1].borderwidth, %4);
- );
- if(%5 !== null,
- set(hotspot[%1].normal_border_color, %5);
- set(hotspot[%1].bordercolor, %5);
- );
- if(%6 !== null,
- set(hotspot[%1].normal_border_alpha, %6);
- set(hotspot[%1].borderalpha, %6);
- );
- set(hotspot[%1].over_color, %7);
- set(hotspot[%1].over_alpha, %8);
- set(hotspot[%1].over_border_width, %9);
- set(hotspot[%1].over_border_color, %10);
- set(hotspot[%1].over_border_alpha, %11);
- if(%7 !== null OR %8 !== null OR %9 !== null OR %10 !== null OR %11 !== null,
- set(hotspot[%1].onover,
- if(over_color !== null,
- tween(fillcolor, get(over_color));
- );
- if(over_alpha !== null,
- tween(fillalpha, get(over_alpha));
- );
- if(over_border_width !== null,
- tween(borderwidth, get(over_border_width));
- );
- if(over_border_color !== null,
- tween(bordercolor, get(over_border_color));
- );
- if(over_border_alpha !== null,
- tween(borderalpha, get(over_border_alpha));
- );
- );
- set(hotspot[%1].onout,
- if(normal_color !== null,
- tween(fillcolor, get(normal_color));
- );
- if(normal_alpha !== null,
- tween(fillalpha, get(normal_alpha));
- );
- if(normal_border_width !== null,
- tween(borderwidth, get(normal_border_width));
- );
- if(normal_border_color !== null,
- tween(bordercolor, get(normal_border_color));
- );
- if(normal_border_alpha !== null,
- tween(borderalpha, get(normal_border_alpha));
- );
- );
- if(device.mouse == false,
- set(hotspot[%1].ondown,
- if(over_color !== null,
- tween(fillcolor, get(over_color));
- );
- if(over_alpha !== null,
- tween(fillalpha, get(over_alpha));
- );
- if(over_border_width !== null,
- tween(borderwidth, get(over_border_width));
- );
- if(over_border_color !== null,
- tween(bordercolor, get(over_border_color));
- );
- if(over_border_alpha !== null,
- tween(borderalpha, get(over_border_alpha));
- );
- );
- set(hotspot[%1].onup,
- if(normal_color !== null,
- tween(fillcolor, get(normal_color));
- );
- if(normal_alpha !== null,
- tween(fillalpha, get(normal_alpha));
- );
- if(normal_border_width !== null,
- tween(borderwidth, get(normal_border_width));
- );
- if(normal_border_color !== null,
- tween(bordercolor, get(normal_border_color));
- );
- if(normal_border_alpha !== null,
- tween(borderalpha, get(normal_border_alpha));
- );
- );
- );
- ,
- set(hotspot[%1].onover,null);
- set(hotspot[%1].onout,null);
- );
- );
- </action>
- <action name="setup_littleplanet_view">
- if(config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
- set(config.panos.pano[get(scene_name)].view.fovmin,70);
- );
- if(config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
- set(config.panos.pano[get(scene_name)].view.fovmax,120);
- );
- if(forceFov !== null,
- copy(config.panos.pano[get(scene_name)].view.fov, forceFov);
- copy(config.panos.pano[get(scene_name)].view.fovmin, forceFovmin);
- copy(config.panos.pano[get(scene_name)].view.fovmax, forceFovmax);
- );
- if(enableLittleplanet == 1,
- set(view.fovmax, 170);
- set(view.limitview, lookat);
- set(view.vlookatmin, 90);
- set(view.vlookatmax, 90);
- lookat(calc(lp_hlookat + 180), 90, 150, 1, 0, 0);
- ,
- if(enableLittleplanet == 2,
- copy(view.hlookat, config.panos.pano[get(xml.scene)].view.hlookat);
- copy(view.vlookat, config.panos.pano[get(xml.scene)].view.vlookat);
- copy(view.fov, config.panos.pano[get(xml.scene)].view.fov);
- copy(view.fovmax, config.panos.pano[get(xml.scene)].view.fovmax);
- copy(view.limitview, config.panos.pano[get(xml.scene)].view.limitview);
- add(view.hlookat, 360);
- ,
- if(enableLittleplanet == 3,
- set(view.fisheye, 1.0);
- set(view.fov, 150);
- set(view.vlookat, -65);
- set(view.hlookat, get(config.panos.pano[get(xml.scene)].hlookat));
- ,
- if(enableLittleplanet == 4,
- set(view.fov, 110);
- set(view.architectural, 0.0);
- set(view.pannini, 0.0);
- set(view.distortion, 2.8);
- ,
- if(enableLittleplanet == 5,
- set(view.architectural, 0.0);
- set(view.fovmax, 150);
- set(view.fov, 150);
- set(view.fisheye, 1.0);
- );
- );
- );
- );
- );
- </action>
- <action name="setup_littleplanet">
- set(control.usercontrol, off);
- copy(lp_scene, xml.scene);
- copy(lp_hlookat, config.panos.pano[get(xml.scene)].view.hlookat);
- copy(lp_vlookat, config.panos.pano[get(xml.scene)].view.vlookat);
- copy(lp_fov, config.panos.pano[get(xml.scene)].view.fov);
- copy(lp_fovmax, config.panos.pano[get(xml.scene)].view.fovmax);
- copy(lp_limitview, config.panos.pano[get(xml.scene)].view.limitview);
- if(enableLittleplanet == 1,
- startViewAnimation1();
- ,
- if(enableLittleplanet == 2,
- startViewAnimation2();
- ,
- if(enableLittleplanet == 3,
- startViewAnimation3();
- ,
- if(enableLittleplanet == 4,
- startViewAnimation4();
- ,
- if(enableLittleplanet == 5,
- startViewAnimation5();
- );
- );
- );
- );
- );
- autorotate.stop();
- </action>
- <action name="startViewAnimation1">
- set(view.fovmax, 170);
- set(view.limitview, lookat);
- set(view.vlookatmin, 90);
- set(view.vlookatmax, 90);
- lookat(calc(lp_hlookat + 180), 90, 150, 1, 0, 0);
- set(events[lp_events].onpreviewcomplete,
- delayedcall(2,
- if(lp_scene === xml.scene,
- set(control.usercontrol, off);
- copy(view.limitview, lp_limitview);
- set(view.vlookatmin, null);
- set(view.vlookatmax, null);
- tween(view.hlookat|view.vlookat|view.fov|view.distortion, calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0),
- 3.0, easeOutQuad,
- animationComplete();
- );
- );
- );
- );
- </action>
- <action name="startViewAnimation2">
- copy(view.hlookat, config.panos.pano[get(xml.scene)].view.hlookat);
- sub(view.hlookat, 360);
- set(events[lp_events].onpreviewcomplete,
- delayedcall(1,
- if(lp_scene === xml.scene,
- set(control.usercontrol, off);
- tween(view.hlookat, get(lp_hlookat),
- 12.0, easeInOutSine,
- animationComplete();
- );
- );
- );
- );
- </action>
- <action name="startViewAnimation3">
- set(view.fov, 70);
- set(view.vlookat, -40);
- set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
- sub(view.hlookat, 360);
- tween(view.vlookat, 90, 9, easeInOutSine);
- delayedcall(animation2_0,2,
- tween(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat), 7.5, easeInOutSine);
- tween(view.fov, 150.0, 7.5, easeInOutSine);
- delayedcall(animation2_1,7.6,
- tween(view.fisheye, 0.0,3);
- tween(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat), 3, easeInOutSine);
- tween(view.fov, get(config.panos.pano[get(xml.scene)].view.fov), 3, easeInOutSine,
- animationComplete();
- );
- );
- );
- </action>
- <action name="startViewAnimation4">
- set(view.fov, 110);
- set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
- sub(view.hlookat, 360);
- tween(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat), 7.5, easeInOutSine);
- tween(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat), 7.5, easeInOutSine);
- delayedcall(3.5, tween(view.distortion, 0, 4, easeInOutSine););
- tween(view.fov, get(config.panos.pano[get(xml.scene)].view.fov), 7.5, easeInOutSine,
- animationComplete();
- );
- </action>
- <action name="startViewAnimation5">
- set(view.fov, 150);
- set(view.vlookat, -65);
- set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
- add(view.hlookat, 360);
- tween(view.vlookat, 90.0, 9.5, easeInOutSine);
- tween(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat), 9.5, easeInOutSine);
- delayedcall(animation3_0,9.6,
- tween(view.fisheye, 0.0,3);
- tween(view.fov, get(config.panos.pano[get(xml.scene)].view.fov), 3, easeInOutSine,
- animationComplete();
- );
- delayedcall(0.5, tween(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat), 2.5, easeInOutSine););
- );
- </action>
- <action name="animationComplete">
- set(control.usercontrol, all);
- setup_pano_settings();
- setup_global_settings();
- js_sceneReadyCallback();
- setup_autoplay();
- autorotate.interrupt();
- </action>
- <action name="setup_top_mask">
- if(config.panos.pano[get(scene_name)].top_circle !== null AND config.panos.pano[get(scene_name)].top_circle.type != 1 AND forceDisableMask != 1,
- addhotspot(top_mask_layer);
- set(hotspot[top_mask_layer].ath,0);
- set(hotspot[top_mask_layer].isMask,true);
- set(hotspot[top_mask_layer].atv,-90);
- if(config.panos.pano[get(scene_name)].top_circle.scale !== null,
- set(hotspot[top_mask_layer].scale, get(config.panos.pano[get(scene_name)].top_circle.scale));
- );
- set(hotspot[top_mask_layer].rotate,0.0);
- set(hotspot[top_mask_layer].distorted,true);
- set(hotspot[top_mask_layer].enabled,false);
- set(hotspot[top_mask_layer].handcursor,false);
- set(hotspot[top_mask_layer].visible,true);
- set(hotspot[top_mask_layer].keep,false);
- if(config.panos.pano[get(scene_name)].top_circle.is_float == 1,
- set(hotspot[top_mask_layer].distorted,false);
- set(hotspot[top_mask_layer].zoom,true);
- );
- if(config.panos.pano[get(scene_name)].top_circle.type == 0,
- copy(hotspot[top_mask_layer].url, settings.circle_mask);
- ,
- copy(top_circle_url,config.panos.pano[get(scene_name)].top_circle.url);
- txtadd(top_circle_url,'?imageView2/0/w/1024/h/1024');
- copy(hotspot[top_mask_layer].url,top_circle_url);
- );
- );
- </action>
- <action name="setup_bottom_mask">
- if(config.panos.pano[get(scene_name)].bottom_circle !== null AND config.panos.pano[get(scene_name)].bottom_circle.type != 1 AND forceDisableMask != 1,
- addhotspot(bottom_mask_layer);
- if(config.panos.pano[get(scene_name)].bottom_circle.scale !== null,
- set(hotspot[bottom_mask_layer].scale, get(config.panos.pano[get(scene_name)].bottom_circle.scale));
- );
- set(hotspot[bottom_mask_layer].ath,0);
- set(hotspot[bottom_mask_layer].isMask,true);
- set(hotspot[bottom_mask_layer].atv,90);
- set(hotspot[bottom_mask_layer].rotate,0.0);
- set(hotspot[bottom_mask_layer].distorted,true);
- set(hotspot[bottom_mask_layer].enabled,false);
- set(hotspot[bottom_mask_layer].handcursor,false);
- set(hotspot[bottom_mask_layer].visible,true);
- set(hotspot[bottom_mask_layer].keep,false);
- set(hotspot[bottom_mask_layer].zorder,0);
- if(config.panos.pano[get(scene_name)].bottom_circle.is_float == 1,
- set(hotspot[bottom_mask_layer].distorted,false);
- set(hotspot[bottom_mask_layer].zoom,true);
- );
- if(config.panos.pano[get(scene_name)].bottom_circle.type == 0,
- copy(hotspot[bottom_mask_layer].url, settings.circle_mask);
- ,
- copy(bottom_circle_url,config.panos.pano[get(scene_name)].bottom_circle.url);
- txtadd(bottom_circle_url,'?imageView2/0/w/1024/h/1024');
- copy(hotspot[bottom_mask_layer].url,bottom_circle_url);
- );
- );
- </action>
- <action name="setup_radar">
- set(radarEnabled, false);
- if((sceneType == 1 OR sceneType == 3) AND (config.panos.pano[get(scene_name)].radar.enabled == 1 OR config.panos.pano[get(scene_name)].radar.enable == 1),
- set(radarEnabled, true);
- set(layer[radar_layer].type,container);
- set(layer[radar_layer].align,topright);
- set(layer[radar_layer].width,200);
- set(layer[radar_layer].height,200);
- set(layer[radar_layer].bgcapture, true);
- set(layer[radar_layer].handcursor, false);
- set(layer[radar_layer].onclick,toggleRadar();set(layer[radarImageClose].visible,false);js_radarMapFullscreenStatusDidChangeCallback(false););
- if(device.html5 ,
- add(layer[radar_layer].width,4);
- add(layer[radar_layer].height,4);
- );
- if(device.desktop,
- set(layer[radar_layer].y,55);
- set(layer[radar_layer].x,-313);
- ,
- set(layer[radar_layer].y,60);
- set(layer[radar_layer].x,-313);
- );
- set(layer[radar_layer].bgalpha,0);
- set(layer[radar_layer].zorder,5);
- set(destpos1,-313);
- set(destpos2,-100);
- addlayer(radarBtn);
- set(layer[radarBtn].parent,feature_container);
- set(layer[radarBtn].align,centerright);
- set(layer[radarBtn].scale,0.5);
- set(layer[radarBtn].x,0);
- set(layer[radarBtn].y,0);
- if(sceneType == 1,
- set(layer[radarBtn].crop,2|107|108|192);
- layer[radarBtn].loadstyle(skin_style);
- set(layer[radarBtn].title, '沙盘开关');
- set(layer[radarBtn].onclick,
- toggleRadar();
- );
- ,
- set(layer[radarBtn].scale,0);
- set(layer[radarBtn].width,0);
- set(layer[radarBtn].height,0);
- );
- addlayer(mapImage);
- set(layer[mapImage].parent,radar_layer);
- set(layer[mapImage].align,center);
- set(layer[mapImage].x,0);
- set(layer[mapImage].y,0);
- set(map_url,get(config.panos.pano[get(scene_name)].radar.map_url));
- txtadd(map_url,'?imageMogr2/thumbnail/480x');
- set(layer[mapImage].url,get(map_url));
- set(layer[mapImage].zorder,9);
- set(layer[mapImage].handcursor,false);
- set(layer[mapImage].onloaded,set(radarImageWidth,get(width));set(radarImageHeight,get(height));set(layer[mapImage].width,200);set(layer[mapImage].height,200););
- addlayer(mapImageLoading);
- set(layer[mapImageLoading].parent,radar_layer);
- set(layer[mapImageLoading].align,center);
- set(layer[mapImageLoading].x,0);
- set(layer[mapImageLoading].y,0);
- set(layer[mapImageLoading].zorder,7);
- set(layer[mapImageLoading].handcursor,false);
- addlayer(radarMask);
- set(layer[radarMask].parent,mapImage);
- set(layer[radarMask].type,container);
- set(layer[radarMask].align,lefttop);
- set(layer[radarMask].width,100%);
- set(layer[radarMask].height,100%);
- set(layer[radarMask].maskchildren,true);
- addlayer(mapZoomBtn);
- set(layer[mapZoomBtn].parent,radar_layer);
- set(layer[mapZoomBtn].align,bottomcenter);
- set(layer[mapZoomBtn].width,120);
- set(layer[mapZoomBtn].height,50);
- set(layer[mapZoomBtn].scale,0.75);
- set(layer[mapZoomBtn].x,0);
- set(layer[mapZoomBtn].y,-35);
- copy(layer[mapZoomBtn].url,settings.map_zoom_image);
- set(layer[mapZoomBtn].zorder,10);
- set(layer[mapZoomBtn].handcursor,true);
- set(layer[mapZoomBtn].onclick,zoomRadar(););
- txtadd(radarActiveSpotName,'radarActiveSpot');
- txtadd(radarSpotTitle,'',get(config.panos.pano[get(scene_name)].info.title));
- addlayer(get(radarActiveSpotName));
- set(layer[get(radarActiveSpotName)].parent,radarMask);
- set(layer[get(radarActiveSpotName)].crop,279|109|49|49);
- layer[get(radarActiveSpotName)].loadstyle(skin_style);
- set(layer[get(radarActiveSpotName)].align,lefttop);
- set(layer[get(radarActiveSpotName)].edge,center);
- set(layer[get(radarActiveSpotName)].visible,false);
- if(config.panos.pano[get(scene_name)].radar.heading_offset !== null,
- set(layer[get(radarActiveSpotName)].visible,true);
- if(config.panos.pano[get(scene_name)].radar.scale === null,
- set(layer[get(radarActiveSpotName)].scale,0.5);
- ,
- set(layer[get(radarActiveSpotName)].scale,get(config.panos.pano[get(scene_name)].radar.scale));
- );
- set(radarx,get(config.panos.pano[get(scene_name)].radar.x));
- set(radary,get(config.panos.pano[get(scene_name)].radar.y));
- div(radarx,2.4);
- set(layer[get(radarActiveSpotName)].x,get(radarx));
- div(radary,2.4);
- set(layer[get(radarActiveSpotName)].y,get(radary));
- set(layer[get(radarActiveSpotName)].zorder,10);
- set(layer[get(radarActiveSpotName)].linkedSceneTitle,get(config.panos.pano[get(scene_name)].info.title));
- set(layer[get(radarActiveSpotName)].onhover,showtext(get(linkedSceneTitle),tooltipTextStyle););
- );
- addlayer(radarImageClose);
- copy(layer[radarImageClose].url,settings.close_image);
- set(layer[radarImageClose].align,topright);
- set(layer[radarImageClose].x,0);
- set(layer[radarImageClose].y,0); if(config.panos.pano[get(scene_name)].inner=="1" AND device.mobile==true,
- set(layer[radarImageClose].y,61);
- );
- set(layer[radarImageClose].visible,false);
- set(layer[radarImageClose].scale,0.5);
- set(layer[radarImageClose].autowidth,true);
- set(layer[radarImageClose].autoheight,true);
- set(layer[radarImageClose].background,false);
- set(layer[radarImageClose].zorder,101);
- set(layer[radarImageClose].border,false);
- set(layer[radarImageClose].onclick,toggleRadar();set(layer[radarImageClose].visible,false);js_radarMapFullscreenStatusDidChangeCallback(false););
- set(layer[radarImageClose].parent,layer[radar_layer]);
- if(config.panos.pano[get(scene_name)].radar.heading_offset !== null,
- addlayer(radar);
- set(layer[radar].parent,radarMask);
- if(device.flash,
- set(layer[radar].url,get(plugin_url.RADAR_SWF));
- ,
- set(layer[radar].url,get(plugin_url.RADAR_JS));
- );
- set(layer[radar].align,lefttop);
- set(layer[radar].edge,center);
- set(layer[radar].scale,0.5);
- set(layer[radar].zorder,9);
- set(layer[radar].fillcolor,0xFFFFFF);
- set(layer[radar].fillalpha,0.4);
- set(layer[radar].linecolor,0xFF0000);
- set(layer[radar].linewidth,1.0);
- set(layer[radar].linealpha,0.5);
- set(layer[radar].headingoffset,get(config.panos.pano[get(scene_name)].radar.heading_offset));
- set(layer[radar].x,get(layer[get(radarActiveSpotName)].x));
- set(layer[radar].y,get(layer[get(radarActiveSpotName)].y));
- );
- for(set(i,0),i LT config.panos.pano[get(scene_name)].radar.radarspot.count,inc(i),
- txtadd(radarSpotName,'radarSpot',get(i));
- txtadd(radarSpotTitle,'',get(config.panos.pano[get(scene_name)].info.title));
- addlayer(get(radarSpotName));
- set(layer[get(radarSpotName)].parent,radarMask);
- set(layer[get(radarSpotName)].crop,195|109|80|80);
- layer[get(radarSpotName)].loadstyle(skin_style);
- set(layer[get(radarSpotName)].align,lefttop);
- set(layer[get(radarSpotName)].edge,center);
- if(config.panos.pano[get(scene_name)].radar.scale === null,
- set(layer[get(radarSpotName)].scale,0.35);
- ,
- set(layer[get(radarSpotName)].scale,get(config.panos.pano[get(scene_name)].radar.scale));
- );
- set(radarx,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].x));
- set(radary,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].y));
- div(radarx,2.4);
- set(layer[get(radarSpotName)].x,get(radarx));
- div(radary,2.4);
- set(layer[get(radarSpotName)].y,get(radary));
- set(layer[get(radarSpotName)].zorder,2);
- set(layer[get(radarSpotName)].linkedScene,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].linkedscene));
- set(layer[get(radarSpotName)].linkedSceneTitle,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].title));
- set(layer[get(radarSpotName)].onhover,showtext(get(linkedSceneTitle),tooltipTextStyle););
- set(layer[get(radarSpotName)].onclick,
- js_sceneChangeCallback(get(scene[get(linkedscene)].scene_id));
- );
- );
- set(radarOldStatus,true);
- ); if(config.panos.pano[get(scene_name)].radar.opened=="1" AND radarIsShow === null,
- set(radarIsShow,false);
- toggleRadar();
- , if(radarIsShow==true AND vrmode!=true,
- set(radarIsShow,false);
- toggleRadar();
- ,
- if(radarEnabled == true,
- js_radarMapStatusDidChangeCallback(false);
- );
- set(layer[radarBtn].crop,98|107|108|192);
- );
- );
- if(webvr.isenabled == true,
- hide_UI(0,1);
- );
- </action>
- <action name="zoomRadar">
- set(layer[radar_layer].bgalpha,0.5);
- set(layer[radarBtn].visible,false);
- set(layer[radarImageClose].visible,true);
- set(radarOldPosX,get(layer[radar_layer].x));
- set(radarOldPosY,get(layer[radar_layer].y));
- set(layer[radar_layer].height,100%);
- set(layer[radar_layer].width,100%);
- set(layer[radar_layer].x,0);
- set(layer[radar_layer].y,0);
- set(radarImageScale,get(radarImageWidth));
- div(radarImageScale,get(radarImageHeight));
- set(radarStageScale,get(stagewidth));
- mul(radarStageScale,0.8);
- div(radarStageScale,get(stageheight));
- div(radarImageScale,0.8);
- if(radarImageWidth LT stagewidth AND radarImageHeight LT stageheight,
- set(layer[mapImage].width,get(radarImageWidth));
- set(layer[mapImage].height,get(radarImageHeight));
- ,
- if(radarImageScale GT radarStageScale,
- set(layer[mapImage].width,get(stagewidth));
- mul(layer[mapImage].width,0.8);
- set(layer[mapImage].height,get(radarImageHeight));
- mul(layer[mapImage].height,get(layer[mapImage].width));
- div(layer[mapImage].height,get(radarImageWidth));
- ,
- set(layer[mapImage].height,get(stageheight));
- mul(layer[mapImage].height,0.8);
- set(layer[mapImage].width,get(radarImageWidth));
- mul(layer[mapImage].width,get(layer[mapImage].height));
- div(layer[mapImage].width,get(radarImageHeight));
- );
- );
- set(layer[get(radarActiveSpotName)].x,get(config.panos.pano[get(scene_name)].radar.x));
- mul(layer[get(radarActiveSpotName)].x,get(layer[mapImage].width));
- div(layer[get(radarActiveSpotName)].x,480);
- set(layer[get(radarActiveSpotName)].y,get(config.panos.pano[get(scene_name)].radar.y));
- mul(layer[get(radarActiveSpotName)].y,get(layer[mapImage].height));
- div(layer[get(radarActiveSpotName)].y,480);
- set(layer[radar].x,get(layer[get(radarActiveSpotName)].x));
- set(layer[radar].y,get(layer[get(radarActiveSpotName)].y));
- for(set(i,0),i LT config.panos.pano[get(scene_name)].radar.radarspot.count,inc(i),
- txtadd(radarSpotName,'radarSpot',get(i));
- txtadd(radarSpotTitle,'',get(config.panos.pano[get(scene_name)].info.title));
- set(layer[get(radarSpotName)].x,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].x));
- mul(layer[get(radarSpotName)].x,get(layer[mapImage].width));
- div(layer[get(radarSpotName)].x,480);
- set(layer[get(radarSpotName)].y,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].y));
- mul(layer[get(radarSpotName)].y,get(layer[mapImage].width));
- div(layer[get(radarSpotName)].y,480);
- );
- pause_autoplay();
- hide_UI(1);
- js_radarMapFullscreenStatusDidChangeCallback(true);
- </action>
- <action name="toggleRadar">
- set(layer[radar_layer].bgalpha,0);
- set(layer[radarImageClose].visible,false);
- set(layer[radarBtn].visible,true);
- if(layer[radar_layer].height == 100%,
- set(layer[radar_layer].width,200);
- set(layer[radar_layer].height,200);
- set(layer[mapImage].width,200);
- set(layer[mapImage].height,200);
- set(layer[radar_layer].x,get(radarOldPosX));
- set(layer[radar_layer].y,get(radarOldPosY));
- set(radarx,get(config.panos.pano[get(scene_name)].radar.x));
- set(radary,get(config.panos.pano[get(scene_name)].radar.y));
- div(radarx,2.4);
- set(layer[get(radarActiveSpotName)].x,get(radarx));
- div(radary,2.4);
- set(layer[get(radarActiveSpotName)].y,get(radary));
- set(layer[radar].x,get(layer[get(radarActiveSpotName)].x));
- set(layer[radar].y,get(layer[get(radarActiveSpotName)].y));
- for(set(i,0),i LT config.panos.pano[get(scene_name)].radar.radarspot.count,inc(i),
- txtadd(radarSpotName,'radarSpot',get(i));
- txtadd(radarSpotTitle,'',get(config.panos.pano[get(scene_name)].info.title));
- set(radarx,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].x));
- set(radary,get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].y));
- div(radarx,2.4);
- set(layer[get(radarSpotName)].x,get(radarx));
- div(radary,2.4);
- set(layer[get(radarSpotName)].y,get(radary));
- );
- ,
- if(radarIsShow == true,
- if(device.mobile,
- set(destpos1, -313);
- ,
- set(destpos1, -313);
- );
- set(layer[radarBtn].crop,98|107|108|192);
- set(radarIsShow,false);
-
- ,
- if(device.mobile,
- set(destpos1, 50);
- ,
- set(destpos1, 66);
- );
- set(layer[radarBtn].crop,2|107|108|192);
- set(radarIsShow,true);
-
- );
- tween(layer[radar_layer].x,get(destpos1));
- if(radarEnabled == true,
- js_radarMapStatusDidChangeCallback(get(radarIsShow));
- );
- );
- if(isAutoTouring OR webvr.isenabled,
- hide_UI();
- ,
-
- show_UI();
- );
- </action>
- <action name="switch_to_multires">
- for(set(i,0), i LT scene.count, inc(i),
- txtreplace(scene[get(i)].content, "webvr.isenabled AND device.desktop", "webvr.isenabled OR device.desktop");
- );
- ifnot(xml.scene === null,
- loadscene(get(xml.scene),null,KEEPVIEW|MERGE,BLEND(0.5, easeInCubic));
- );
- </action>
- <action name="switch_to_mobile">
- for(set(i,0), i LT scene.count, inc(i),
- txtreplace(scene[get(i)].content, "webvr.isenabled OR device.desktop", "webvr.isenabled AND device.desktop");
- );
- ifnot(xml.scene === null,
- loadscene(get(xml.scene),null,KEEPVIEW|MERGE,BLEND(0.5, easeInCubic));
- );
- </action>
- <action name="load_pano_by_id">
- if(pano_id != %1,
- if(autorotate.enabled == true,
- set(autorotate.enabled, false);
- );
-
-
-
-
- if(hotspot[get(embed_video_name)].music_pause == 1 AND hotspot[get(embed_video_name)].ispaused == false AND need_pause_bg_music_sound == false,
- js_toggleBgMusic(true);
- );
- if(hotspot[get(embed_video_name)].sound_pause == 1 AND hotspot[get(embed_video_name)].ispaused == false AND need_pause_bg_music_sound == false,
- js_toggleBgVoice(true);
- );
- set(pano_id,%1);
- copy(scene_name, pano_id);
- set(blend_mode_name, 'blend');
- txtadd(blend_mode_name, %3);
- set(blend_mode, get(blendmodes[get(blend_mode_name)].blend));
- if(blend_mode === null,
- copy(blend_mode,blendmodes[blend0].blend);
- );
- if(%2 == 1 ,
- set(needKeepview, true);
- copy(needKeepviewHlookat, view.hlookat);
- copy(needKeepviewVlookat, view.vlookat);
- copy(needKeepviewFov, view.fov);
- loadscene(get(pano_id),null,KEEPVIEW|MERGE,get(blend_mode));
- ,
- set(needKeepview, false);
- loadscene(get(pano_id),null,MERGE,get(blend_mode));
- set(view.hlookat,get(config.panos.pano[get(xml.scene)].view.hlookat));
- set(view.vlookat,get(config.panos.pano[get(xml.scene)].view.vlookat));
- set(view.fov,get(config.panos.pano[get(xml.scene)].view.fov));
- );
- copy(blend_mode,blendmodes[blend0].blend);
- ,
- lookto(get(config.panos.pano[get(xml.scene)].view.hlookat), get(config.panos.pano[get(xml.scene)].view.vlookat), get(config.panos.pano[get(xml.scene)].view.fov));
- );
- if(is_setup_start_pano === null,
- setup_start_pano();
- set(is_setup_start_pano, true);
- );
- if(webvr.isenabled,
- webvr_load_vr_cursor_hs();
- );
- </action>
- <action name="setup_vr">
- copy(vr_plugin_url,plugin_url.WEBVR_JS);
- copy(plugin[WebVR].url, vr_plugin_url);
- set(webvr_text_noDistortion, '无畸变');
- set(webvr_text_webvrSetup, 'WebVR 设置');
- set(webvr_text_mobilevrSetup, 'MobileVR 设置');
- set(webvr_text_screensize, '屏幕尺寸(英寸):');
- set(webvr_text_vrheadset, 'VR 头显预设');
- set(webvr_text_customizeHeadset, '自定义头显');
- set(webvr_text_adjustmentInVR, '在 VR 中进行调整');
- set(webvr_text_close, '关闭');
- set(webvr_text_preset, '预设:');
- set(webvr_text_fov, 'FOV');
- set(webvr_text_interLensDistance, '内镜距离(mm):');
- set(webvr_text_screenToLensDistance, '屏幕到镜头距离(mm):');
- set(webvr_text_trayToLensCenterDistance, '头显到镜头中央的距离(mm):');
- set(webvr_text_lensDistortion, '镜头畸变系数:');
- set(webvr_text_oversampling, '过采样:');
- </action>
- <action name="disable_vr">
- set(layer[vr_layer].visible,false);
- js_vrUnavailableCallback();
- </action>
- <action name="turn_on_vr">
- webvr.entervr();
- </action>
- <action name="turn_off_vr">
- webvr.exitvr();
- </action>
- <action name="hide_vr_hotspot">
- if(webvr.isenabled == true,
- pause_embed_video();
- copy(hotspotCount,hotspot.count);
- for(set(i,0),i LT hotspotCount,inc(i),
- if(hotspot[get(i)].image_type == 2 AND hotspot[get(i)].isActiveHotspot == true,
- set(hotspot[get(i)].renderer,webgl);
- );
- if(hotspot[get(i)].isMask == true,
- ,
- if(hotspot[get(i)].hotspot_type == 0 AND hotspot[get(i)].is_hotspot_txt != true,
- if(device.mobilevr ,
- set(hotspot[get(i)].scale,0.25);
- );
- );
- if(hotspot[get(i)].hotspot_type == 0,
- if(device.mobilevr,
- set(hotspot[get(i)].scale,0.5);
- );
- );
- if(hotspot[get(i)].hotspot_type != 0 AND hotspot[get(i)].hotspot_type != 4,
- set(hotspot[get(i)].visible,false);
- set(hotspot[get(i)].hide_action,'hide_vr_hotspot');
- );
- );
- if(hotspot[get(i)].html !== null,
- if(webvr.isenabled == true,
- set(hotspot[get(i)].renderer, 'webgl');
- ,
- set(hotspot[get(i)].renderer, 'css3d');
- );
- copy(texthtml, hotspot[get(i)].html);
- set(hotspot[get(i)].html, '');
- copy(hotspot[get(i)].html, texthtml);
- );
- );
- );
- </action>
- <action name="show_vr_hotspot">
- copy(hotspotCount,hotspot.count);
- for(set(i,0),i LT hotspotCount,inc(i),
- if(hotspot[get(i)].image_type == 2 AND hotspot[get(i)].html === null,
- set(hotspot[get(i)].renderer,"css3d");
- );
- if(hotspot[get(i)].isMask,
- ,
- if(hotspot[get(i)].hotspot_type == 0 AND hotspot[get(i)].is_hotspot_txt != true,
- if(device.mobilevr ,
- set(hotspot[get(i)].scale,0.5)
- );
- );
- if(hotspot[get(i)].hotspot_type == 0 AND hotspot[get(i)].is_hotspot_txt == true,
- if(device.mobilevr,
- set(hotspot[get(i)].scale,1);
- );
- );
- if(hotspot[get(i)].hotspot_type != 0 AND hotspot[get(i)].hide_action == 'hide_vr_hotspot',
- set(hotspot[get(i)].visible,true);
- set(hotspot[get(i)].hide_action,'');
- );
- );
- if(hotspot[get(i)].html !== null,
- if(webvr.isenabled == true,
- set(hotspot[get(i)].renderer, 'webgl');
- ,
- set(hotspot[get(i)].renderer, 'css3d');
- );
- copy(texthtml, hotspot[get(i)].html);
- set(hotspot[get(i)].html, '');
- copy(hotspot[get(i)].html, texthtml);
- );
- );
- </action>
- <plugin name="webvr" devices="html5" keep="true" url="" mobilevr_support="true" mobilevr_touch_support="true" mobilevr_fake_support="true" mobilevr_profile.normal="90|60|42|0|0|0" mobilevr_profile.mobile="80|60|42|35|0.441|0.156" mobilevr_wakelock="true" fullscreen_mirroring="false" mouse_pointerlock="true" vr_cursor_onover="if(handcursor, tween(hotspot[vr_cursor].scale,0.4,0.1); vr_auto_click(get(vr_timeout)); );" vr_cursor_onout="tween(hotspot[vr_cursor].scale,0.3,0.1);" onavailable="webvr_onavailable();" onunavailable="" onunknowndevice="webvr_onunknowndevice();" onvrcontrollers="webvr_onvrcontrollers();" onentervr="webvr_onentervr();" onexitvr="webvr_onexitvr();" onloaded="copy(webvr, plugin[WebVR]);"/>
- <style name="vr_cursor_style" url="calc:settings.skin_url + 'skin/webvr_cursor_80x80_17f.png'" visible="false" enabled="false" distorted="true" crop="0|0|80|80" scale="0.3" depth="120"/>
- <action name="webvr_load_vr_cursor_hs" scope="local">
- addhotspot('vr_cursor', hs);
- hs.loadstyle(vr_cursor_style);
- set(hs.keep, true);
- set(webvr.vr_cursor, 'hotspot[vr_cursor]');
- </action>
- <action name="webvr_load_vr_controller_hs" scope="private:VRCONTROLLERS" args="controllerstyle">
- removehotspot('vr_controller_l');
- removehotspot('vr_controller_r');
- addhotspot('vr_controller_l', vr_ctrl_l);
- addhotspot('vr_controller_r', vr_ctrl_r);
- set(vr_ctrl_l.keep, true);
- set(vr_ctrl_r.keep, true);
- vr_ctrl_l.loadstyle(calc(controllerstyle ? controllerstyle : 'vrcontroller_light_and_point'));
- vr_ctrl_r.loadstyle(calc(controllerstyle ? controllerstyle : 'vrcontroller_light_and_point'));
- vr_ctrl_l.addevent('onvrcontrollerbutton', 'if(vrbuttonindex == 3 AND vrbuttonstate == "up", vrsetup_open(); );' );
- vr_ctrl_r.addevent('onvrcontrollerbutton', 'if(vrbuttonindex == 3 AND vrbuttonstate == "up", vrsetup_open(); );' );
- set(global.webvr.vr_controller, 'vr_controller_l,vr_controller_r');
- set(global.have_vr_controllers, true);
- if(global.webvr.isvrbrowser AND global.webvr.vrcontrollers[0].buttons.length LE 2,
- addhotspot('webvr_vrsetup', vr_setup_hs);
- vr_setup_hs.loadstyle('webvr_button_style');
- set(vr_setup_hs, keep=true, ath=0, atv=90, depth=160, zorder=999, torigin=view, html='VR SETUP', oversampling=3, scale=0.2, onclick='vrsetup_open();', onloaded='renderloop( copy(ath,view.hlookat); );');
- );
- </action>
- <action name="webvr_onvrcontrollers" scope="private:VRCONTROLLERS">
- if(!global.have_vr_controllers, webvr_load_vr_controller_hs(); );
- </action>
- <style name="vrcontroller_laser" url="calc:settings.skin_url + 'skin/webvr_laser.png'" distorted="true" enabled="false" visible="false" width="0.5" height="1000" edge="bottom" oref="1" oy="0" torigin="world" tx="0" ty="0" tz="0" depth="0" zorder="99999" depthbuffer="true" onloaded="asyncloop(loaded, calc(height, (target AND target.hitd GT 0 ? target.hitd : 1000) / display.hotspotworldscale); );"/>
- <style name="vrcontroller_light_and_point" url="calc:settings.skin_url + 'skin/webvr_light.png'" distorted="true" enabled="false" visible="false" width="0.5" height="18" edge="bottom" oref="1" oy="0" torigin="world" tx="0" ty="0" tz="0" depth="0" zorder="99999" depthbuffer="true" onloaded="vrcontroller_target_point();"/>
- <style name="vrcontroller_handcursor_and_point" url="calc:settings.skin_url + 'skin/webvr_handcursor.png'" distorted="true" enabled="false" visible="false" width="10" height="10" edge="center" oref="1" oy="-1" torigin="world" tx="0" ty="0" tz="0" depth="0" zorder="99999" depthbuffer="true" onloaded="vrcontroller_target_point();"/>
- <action name="vrcontroller_target_point" scope="localonly">
- addhotspot(auto, hs);
- set(hs, keep=true, type=text, bgcolor=0xFFFFFF, bgalpha=1.0, width=10, height=10, bgroundedge=5, bgborder='1 0x000000 1.0', oversampling=2, scale=0.4, torigin=world, depth=0, distorted=false, zoom=true, zorder=99998, enabled=false
- );
- renderloop(
- if(!caller.loaded,
- removehotspot(get(hs.name));
- stoprenderloop();
- ,
- if(global.display.havedepthmap,
- removehotspot(get(hs.name));
- stoprenderloop();
- webvr_load_vr_controller_hs('vrcontroller_laser');
- ,
- calc(hs.bgcolor, caller.pressed ? 0x049AFF : (caller.hovering ? 0x00FF00 : 0xFFFFFF));
- calc(distance, (caller.target AND caller.target.hitd GT 0 ? caller.target.hitd : 1000));
- calc(hs.scale, 0.4 * (distance GT 1000 ? distance / 1000 : (distance LT 200 ? 0.25 : (0.25 + (distance - 200)/800 * 0.75))));
- calc(hs.tx, caller.tx + caller.dx * distance);
- calc(hs.ty, caller.ty + caller.dy * distance);
- calc(hs.tz, caller.tz + caller.dz * distance);
- );
- );
- );
- </action>
- <action name="vr_auto_click" scope="local" args="vr_aclk_timeout">
- if(webvr.isenabled,
- if(vr_aclk_timeout == null, set(vr_aclk_timeout, 2000));
- copy(vr_aclk_t1, timertick);
- set(vr_aclk_waiting, true);
- copy(webvr.vr_aclk_hotspot, caller.name);
- set(hotspot[vr_cursor].crop,'0|0|80|80');
- asyncloop(vr_aclk_waiting AND webvr.vr_aclk_hotspot == caller.name,
- sub(dt, timertick, vr_aclk_t1);
- if(!caller.hovering,
- set(vr_aclk_waiting, false);
- set(hotspot[vr_cursor].crop,'0|0|80|80');
- ,
- div(f, dt, vr_aclk_timeout);
- mul(f, 16);
- roundval(f);
- Math.min(f, 16);
- mul(f, 80);
- txtadd(hotspot[vr_cursor].crop,get(f),'|0|80|80');
- sub(dt, 100);
- if(dt GT vr_aclk_timeout,
- set(vr_aclk_waiting,false);
- set(hotspot[vr_cursor].crop,'0|0|80|80');
- callwith(caller, scope(global, ondown();onup();onclick(); ); );
- );
- );
- );
- );
- </action>
- <events name="webvr_events" devices="html5" keep="true" onmousedown="if(webvr AND webvr.isenabled, webvr_showbuttons() );"/>
- <action name="webvr_onavailable">
- webvr.loadsettings();
- jsget(needUpdateVRSettings,'krpCallbackObject');
- if(needUpdateVRSettings !== null,
- delayedcall(3,
- jscall('krpCallbackObject.krpUpdateVRSettingCallback();');
- );
- );
- </action>
- <action name="webvr_onunknowndevice">
- if(webvr.isfake AND device.desktop AND webvr.havesettings == false,
- set(webvr.mobilevr_lens_overlap, 1.0);
- set(webvr.mobilevr_lens_fov, 96.0);
- set(webvr.mobilevr_lens_dist, 0.0);
- set(webvr.mobilevr_lens_dist2, '1|0|0|0');
- set(webvr.mobilevr_lens_ca, 0.0);
- set(webvr.mobilevr_lens_vign, 100);
- );
- </action>
- <action name="webvr_onentervr">
- webvr_showbuttons();
- webvr_hide_all_non_vr_layers();
- if(webvr.isfake, webvr_show_fakemode_info(true); );
- webvr_load_vr_cursor_hs();
- hide_UI();
- hide_vr_hotspot();
- </action>
- <action name="webvr_onexitvr">
- removehotspot('vr_cursor');
- removehotspot('vr_controller_l');
- removehotspot('vr_controller_r');
- set(have_vr_controllers, false);
- stopdelayedcall(vr_button_fadeout);
- tween(layer[webvr_exitbutton].alpha,0);
- tween(layer[webvr_setupbutton].alpha,0);
- webvr_show_fakemode_info(false);
- webvr_restore_layers();
- show_vr_hotspot();
- show_UI();
- if(plugin[snow] !== null,
- set(plugin[snow].visible, true);
- );
- resume_embed_video();
- js_exitVRCallback();
- </action>
- <action name="webvr_hide_all_non_vr_layers" scope="local">
- for(set(i,0), i LT layer.count, inc(i),
- copy(lr, layer[get(i)]);
- if(lr.vr !== true,
- copy(lr.vr_backup_visible, lr.visible);
- set(lr.visible, false);
- );
- );
- </action>
- <action name="webvr_restore_layers" scope="local">
- for(set(i,0), i LT layer.count, inc(i),
- copy(lr, layer[get(i)]);
- if(lr.vr_backup_visible,
- copy(lr.visible, lr.vr_backup_visible);
- delete(lr.vr_backup_visible);
- );
- );
- </action>
- <action name="webvr_show_fakemode_info" scope="local" args="show">
- if(show == true, addlayer(webvr_fakemode_info); set(layer[webvr_fakemode_info], type='text', keep=true, align='bottom', y=80, bg=false, css='color:#FFFFFF;text-align:center;', html='[i][u]Simulated WebVR Mode![/u][br]For real WebVR with headset tracking use a [a href="http://webvr.info" target="_blank" style="color:#FFFFFF;"]WebVR-capable[/a] browser or a mobile device and a VR headset.[/i]'
- );
- ,
- removelayer(webvr_fakemode_info);
- );
- </action>
- <krpano webvr_setup_scale="calc:(1.0 + 1.0*(device.mobile AND stagescale LT 1.0)) / (1.0 + 1.0*device.mobile)" webvr_button_scale.normal="1.0" webvr_button_scale.mobile="1.6"/>
- <style name="webvr_button_style" type="text" bgcolor="0x000000" bgalpha="0.5" bgroundedge="0" css="calc:'color:#FFFFFF;font-size:' + 20*webvr_setup_scale*webvr_button_scale + 'px;'" padding="calc:6*webvr_setup_scale*webvr_button_scale + ' ' + 10*webvr_setup_scale*webvr_button_scale"/>
- <layer name="webvr_exitbutton" keep="true" vr="true" style="webvr_button_style" html="退出 VR" align="top" y="24" autoalpha="true" alpha="0.0" onclick="webvr.exitVR();"/>
- <layer name="webvr_setupbutton" keep="true" vr="true" style="webvr_button_style" html="VR 设置" align="bottom" y="110" autoalpha="true" alpha="0.0" onclick="vrsetup_open();"/>
- <action name="webvr_showbuttons">
- stopdelayedcall(vr_button_fadeout);
- tween(layer[webvr_exitbutton].alpha|layer[webvr_setupbutton].alpha, 1.0|1.0, 0.25);
- delayedcall(vr_button_fadeout, 3.0, tween(layer[webvr_exitbutton].alpha|layer[webvr_setupbutton].alpha, 0.0|0.0, 1.0); );
- </action>
- <mobilevr_presets>
- <headset name="cbv1" caption="Cardboard V1" profile="80|60|42|35|0.441|0.156"/>
- <headset name="cbv2" caption="Cardboard V2" profile="120|64|39|35|0.34|0.55"/>
- <headset name="dydm" caption="Daydream" profile="104|60|41|35|0.42|0.51"/>
- <headset name="nodt" caption="无畸变" profile="90|60|42|0|0|0"/>
- <headset name="pico" caption="Pico" profile="92|62.5|42|0|0|0"/>
- </mobilevr_presets>
- <action name="vrsetup_open">
- if(!vrsetup_open_js, vrsetup_init(); );
- vrsetup_open_js();
- </action>
- <action name="vrsetup_init" type="Javascript"><![CDATA[
- var webvr = krpano.webvr;
- var padding = 20;
- function vrsetup_dlg_create(type)
- {
- var dlg = {type:type, bg:null, y:0, scale:1, elements:[]};
- if (type == 'layer')
- {
- dlg.bg = krpano.addlayer();
- dlg.bg.keep = true;
- dlg.bg.type = 'container';
- dlg.bg.align = 'center';
- }
- else // 'hotspot'
- {
- dlg.scale = 0.15;
- dlg.bg = krpano.addhotspot();
- dlg.bg.keep = true;
- dlg.bg.type = 'text';
- dlg.bg.distorted = true;
- dlg.bg.ath = krpano.view.hlookat;
- dlg.bg.atv = 0;
- dlg.bg.depth = 150;
- dlg.bg.torigin = 'world';
- dlg.bg.tx = krpano.view.tx;
- dlg.bg.ty = krpano.view.ty;
- dlg.bg.tz = krpano.view.tz;
- }
- dlg.bg.bgcolor = 0x000000;
- dlg.bg.bgalpha = 0.5;
- dlg.bg.bgcapture = true;
- dlg.bg.handcursor = false;
- dlg.bg.capture = false;
- dlg.bg.zorder = 100;
- dlg.bg.visible = false;
- dlg.y = 0;
- return dlg;
- }
- function vrsetup_dlg_addline(dlg, linetext, customcss, onclick)
- {
- var txt;
- if (dlg.type == 'layer')
- {
- txt = krpano.addlayer();
- txt.keep = true;
- txt.type = 'text';
- txt.align = 'center';
- txt.zorder = 101;
- }
- else // 'hotspot'
- {
- txt = krpano.addhotspot();
- txt.keep = true;
- txt.type = 'text';
- txt.distorted = true;
- txt.zorder = 101;
- txt.ath = dlg.bg.ath;
- txt.atv = dlg.bg.atv;
- txt.depth = dlg.bg.depth - 1;
- txt.oversampling = 2;
- txt.scale = dlg.scale;
- txt.torigin = dlg.bg.torigin;
- txt.tx = dlg.bg.tx;
- txt.ty = dlg.bg.ty;
- txt.tz = dlg.bg.tz;
- }
- txt.onautosized = function()
- {
- txt.havesize = true;
- }
- txt.edge = 'top';
- txt.visible = false;
- txt.bg = false;
- txt.html = "" + linetext;
- txt.css = 'font-size:32px;font-weight:bold;color:#FFFFFF; line-height:90%;' + (customcss || '');
- if (onclick)
- {
- txt.onclick = onclick;
- }
- else
- {
- txt.enabled = false;
- }
- dlg.elements.push( txt );
- return txt;
- }
- function vrsetup_dlg_addctrl(dlg, changedelay, callback)
- {
- var txt = vrsetup_dlg_addline(dlg, callback(0) );
- var inc;
- var dec;
- if(dlg.type == 'layer')
- {
- inc = krpano.addlayer();
- inc.keep = true;
- inc.type = 'text';
- inc.align = 'center';
- inc.zorder = 101;
- dec = krpano.addlayer();
- dec.keep = true;
- dec.type = 'text';
- dec.align = 'center';
- dec.zorder = 101;
- }
- else // 'hotspot'
- {
- inc = krpano.addhotspot();
- inc.keep = true;
- inc.type = 'text';
- inc.distorted = true;
- inc.zorder = 101;
- inc.ath = dlg.bg.ath;
- inc.atv = dlg.bg.atv;
- inc.depth = dlg.bg.depth - 1;
- inc.oversampling = 2;
- inc.scale = dlg.scale;
- inc.torigin = dlg.bg.torigin;
- inc.tx = dlg.bg.tx;
- inc.ty = dlg.bg.ty;
- inc.tz = dlg.bg.tz;
- dec = krpano.addhotspot();
- dec.keep = true;
- dec.type = 'text';
- dec.distorted = true;
- dec.zorder = 101;
- dec.ath = dlg.bg.ath;
- dec.atv = dlg.bg.atv;
- dec.depth = dlg.bg.depth - 1;
- dec.oversampling = 2;
- dec.scale = dlg.scale;
- dec.torigin = dlg.bg.torigin;
- dec.tx = dlg.bg.tx;
- dec.ty = dlg.bg.ty;
- dec.tz = dlg.bg.tz;
- }
- inc.edge = 'top';
- inc.visible = false;
- inc.bg = false;
- inc.html = '>';
- inc.css = 'font-size:32px;font-weight:bold;color:#FFFFFF; line-height:90%;';
- inc.padding = '0 10';
- dec.edge = 'top';
- dec.visible = false;
- dec.bg = false;
- dec.html = '<';
- dec.css = 'font-size:32px;font-weight:bold;color:#FFFFFF; line-height:90%;';
- dec.padding = '0 10';
- inc.vr_timeout = changedelay * 1000;
- dec.vr_timeout = changedelay * 1000;
- inc.ondown = function(){ txt.html = ""+callback(+1); inc.enabled = false; setTimeout(function(){ inc.enabled = true; },0); };
- dec.ondown = function(){ txt.html = ""+callback(-1); dec.enabled = false; setTimeout(function(){ dec.enabled = true; },0); };
- txt.ctrlchilds = [inc,dec];
- txt.updateControl = function()
- {
- txt.html = callback(0);
- }
- return txt;
- }
- function vrsetup_dlg_addspace(dlg, customspace)
- {
- dlg.elements.push(customspace|| padding);
- }
- function vrsetup_dlg_finish(dlg)
- {
- var i, w=0, h=0;
- var waitforsizes=false;
- for (i=0; i < dlg.elements.length; i++)
- {
- var e = dlg.elements[i];
- if ( isNaN(e) )
- {
- if ( e.havesize )
- {
- w = Math.max( w, e.width * 1);
- h += e.height * 1;
- }
- else
- {
- waitforsizes = true;
- break;
- }
- }
- else
- {
- h += e;
- }
- }
- if (waitforsizes)
- {
- setTimeout( function(){ vrsetup_dlg_finish(dlg); }, 16 );
- }
- else
- {
- var y = 0;
- dlg.bg.width = Math.ceil((w + padding*2)*dlg.scale);
- dlg.bg.height = Math.ceil((h + padding*2)*dlg.scale);
- for (i=0; i < dlg.elements.length; i++)
- {
- var e = dlg.elements[i];
- if ( isNaN(e) )
- {
- e.oy = Math.round((-h/2 + y) * dlg.scale);
- e.visible = true;
- y += e.height * 1;
- if (e.ctrlchilds )
- {
- for (var j=0; j < e.ctrlchilds.length; j++)
- {
- var sube = e.ctrlchilds[j];
- sube.ox = Math.round(((j&1)-0.5) * (-w) * dlg.scale);
- sube.oy = e.oy;
- sube.visible = true;
- }
- }
- }
- else
- {
- y += e;
- }
- }
- dlg.bg.visible = true;
- }
- }
- function vrsetup_dlg_remove(dlg)
- {
- var removefu = dlg.type == 'layer' ? krpano.removelayer : krpano.removehotspot;
- var i,j;
- for (i=0; i < dlg.elements.length; i++)
- {
- var e = dlg.elements[i];
- if ( isNaN(e) )
- {
- if (e.ctrlchilds )
- {
- for (j=0; j < e.ctrlchilds.length; j++)
- {
- var sube = e.ctrlchilds[j];
- removefu(sube.name);
- }
- }
- removefu(e.name);
- }
- }
- removefu(dlg.bg.name);
- }
- function vrsetup_webvr_dialog()
- {
- // WebVR API rendering
- var dlg = vrsetup_dlg_create('hotspot');
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_webvrSetup"));
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, 'Oversampling:', 'font-size:16px;')
- var ctrl_ss = vrsetup_dlg_addctrl(dlg, 1.0, function(change)
- {
- var p = webvr.oversampling;
- if (change < 0) { p = Math.max(0.2, Number(p) - 0.1); webvr.oversampling = p; } else
- if (change > 0) { p = Math.min(4.0, Number(p) + 0.1); webvr.oversampling = p; }
- krpano.actions.delayedcall(0, function()
- {
- var gl = krpano.webGL.context;
- var gl_width = gl.drawingBufferWidth | 0;
- var gl_height = gl.drawingBufferHeight | 0;
- renderres.html = gl_width + "x" + gl_height;
- });
- return p.toFixed(1);
- });
- vrsetup_dlg_addspace(dlg,8);
- vrsetup_dlg_addline(dlg, 'Rendering Resolution:', 'font-size:16px;');
- var renderres = vrsetup_dlg_addline(dlg, '');
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, 'CLOSE', '', vrsetup_close);
- vrsetup_dlg_finish(dlg);
- return dlg;
- }
- function vrsetup_mobilevr_dialog()
- {
- // MobileVR / Cardboard rendering
- var dlg = vrsetup_dlg_create(0 ? 'hotspot' : 'layer');
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_mobilevrSetup"));
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_screensize"), 'font-size:16px;')
- vrsetup_dlg_addctrl(dlg, 1.0, function(change){ var ss = Number(webvr.mobilevr_screensize); if (isNaN(ss)) ss = 5.0; if (change < 0) { ss = Math.max(4.0, ss - 0.1); webvr.mobilevr_screensize = ss; } else if (change > 0) { ss = Math.min(10.0, ss + 0.1); webvr.mobilevr_screensize = ss; } return ss.toFixed(1); });
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_vrheadset"), 'font-size:16px;')
- var ctrl_ps = vrsetup_dlg_addctrl(dlg, 1.0, function(change)
- {
- var preset_index = -1;
- var i;
- var profile = webvr.mobilevr_profile;
- var presets = krpano.get("mobilevr_presets.headset");
- if (presets)
- {
- presets = presets.getArray();
- for (i=0; i < presets.length; i++)
- {
- if ( profile == presets[i].profile )
- {
- preset_index = i;
- break;
- }
- }
- if (change < 0)
- {
- preset_index--;
- if (preset_index < 0)
- preset_index = presets.length - 1;
- webvr.mobilevr_profile = presets[preset_index].profile;
- }
- else if (change > 0)
- {
- preset_index++;
- if (preset_index >= presets.length)
- preset_index = 0;
- webvr.mobilevr_profile = presets[preset_index].profile;
- }
- }
- if (preset_index >= 0)
- {
- return presets[preset_index].caption;
- }
- return 'Custom';
- });
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_customizeHeadset"), 'font-size:25px;', function()
- {
- vrsetup_dlg_remove(dlg);
- dlg=null;
- vrsetup_dialog = vrsetup_mobilevr_interactive_dialog();
- });
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_adjustmentInVR"), 'font-size:12px;');
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_close"), '', vrsetup_close);
- vrsetup_dlg_finish(dlg);
- return dlg;
- }
- function vrsetup_mobilevr_interactive_dialog()
- {
- // MobileVR / Cardboard rendering
- var ctrl_preset, ctrl_fov, ctrl_ild, ctrl_stl, ctrl_ttl, ctrl_k1, ctrl_k2, ctrl_os;
- var dlg = vrsetup_dlg_create('hotspot');
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_mobilevrSetup"));
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_preset"), 'font-size:16px;')
- ctrl_preset = vrsetup_dlg_addctrl(dlg, 1.0, function(change)
- {
- var preset_index = -1;
- var i;
- var profile = webvr.mobilevr_profile;
- var presets = krpano.get("mobilevr_presets.headset");
- if (presets)
- {
- presets = presets.getArray();
- for (i=0; i < presets.length; i++)
- {
- if ( profile == presets[i].profile )
- {
- preset_index = i;
- break;
- }
- }
- if (change < 0)
- {
- preset_index--;
- if (preset_index < 0)
- preset_index = presets.length - 1;
- webvr.mobilevr_profile = presets[preset_index].profile;
- }
- else if (change > 0)
- {
- preset_index++;
- if (preset_index >= presets.length)
- preset_index = 0;
- webvr.mobilevr_profile = presets[preset_index].profile;
- }
- if (change != 0)
- {
- ctrl_fov.updateControl();
- ctrl_ild.updateControl();
- ctrl_stl.updateControl();
- if (ctrl_ttl) ctrl_ttl.updateControl();
- ctrl_k1.updateControl();
- ctrl_k2.updateControl();
- }
- }
- if (preset_index >= 0)
- {
- return presets[preset_index].caption;
- }
- return 'Custom';
- });
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_fov"), 'font-size:16px;');
- ctrl_fov = vrsetup_dlg_addctrl(dlg, 0.25, function(change){ var p = webvr.mobilevr_profile.split("|"); if (change < 0) { p[0] = Number(p[0]) - 1.0; webvr.mobilevr_profile = p.join("|"); } else if (change > 0) { p[0] = Number(p[0]) + 1.0; webvr.mobilevr_profile = p.join("|"); } if (change != 0) ctrl_preset.updateControl(); return Number(p[0]).toFixed(0); });
- vrsetup_dlg_addspace(dlg, 8);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_interLensDistance"), 'font-size:16px;');
- ctrl_ild = vrsetup_dlg_addctrl(dlg, 0.25, function(change){ var p = webvr.mobilevr_profile.split("|"); if (change < 0) { p[1] = Number(p[1]) - 1.0; webvr.mobilevr_profile = p.join("|"); } else if (change > 0) { p[1] = Number(p[1]) + 1.0; webvr.mobilevr_profile = p.join("|"); } if (change != 0) ctrl_preset.updateControl(); return Number(p[1]).toFixed(0); });
- vrsetup_dlg_addspace(dlg, 8);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_screenToLensDistance"), 'font-size:16px;');
- ctrl_stl = vrsetup_dlg_addctrl(dlg, 0.25, function(change){ var p = webvr.mobilevr_profile.split("|"); if (change < 0) { p[2] = Number(p[2]) - 1.0; webvr.mobilevr_profile = p.join("|"); } else if (change > 0) { p[2] = Number(p[2]) + 1.0; webvr.mobilevr_profile = p.join("|"); } if (change != 0) ctrl_preset.updateControl(); return Number(p[2]).toFixed(0); });
- vrsetup_dlg_addspace(dlg, 8);
- if (!webvr.isfake)
- {
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_trayToLensCenterDistance"), 'font-size:16px;');
- ctrl_ttl = vrsetup_dlg_addctrl(dlg, 0.25, function(change){ var p = webvr.mobilevr_profile.split("|"); if (change < 0) { p[3] = Number(p[3]) - 1.0; webvr.mobilevr_profile = p.join("|"); } else if (change > 0) { p[3] = Number(p[3]) + 1.0; webvr.mobilevr_profile = p.join("|"); } if (change != 0) ctrl_preset.updateControl(); return Number(p[3]).toFixed(0); });
- vrsetup_dlg_addspace(dlg, 8);
- }
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_lensDistortion"), 'font-size:16px;');
- ctrl_k1 = vrsetup_dlg_addctrl(dlg, 0.1, function(change){ var p = webvr.mobilevr_profile.split("|"); if (change < 0) { p[4] = Number(p[4]) - 0.01; webvr.mobilevr_profile = p.join("|"); } else if (change > 0) { p[4] = Number(p[4]) + 0.01; webvr.mobilevr_profile = p.join("|"); } if (change != 0) ctrl_preset.updateControl(); return Number(p[4]).toFixed(3); });
- ctrl_k2 = vrsetup_dlg_addctrl(dlg, 0.1, function(change){ var p = webvr.mobilevr_profile.split("|"); if (change < 0) { p[5] = Number(p[5]) - 0.01; webvr.mobilevr_profile = p.join("|"); } else if (change > 0) { p[5] = Number(p[5]) + 0.01; webvr.mobilevr_profile = p.join("|"); } if (change != 0) ctrl_preset.updateControl(); return Number(p[5]).toFixed(3); });
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_oversampling"), 'font-size:16px;');
- ctrl_os = vrsetup_dlg_addctrl(dlg, 0.25, function(change){ var p = webvr.oversampling; if (change < 0) { p = Math.max(0.2, Number(p) - 0.1); webvr.oversampling = p; } else if (change > 0) { p = Math.min(4.0, Number(p) + 0.1); webvr.oversampling = p; } return p.toFixed(1); });
- vrsetup_dlg_addspace(dlg);
- vrsetup_dlg_addline(dlg, krpano.get("webvr_text_close"), '', vrsetup_close);
- vrsetup_dlg_finish(dlg);
- return dlg;
- }
- var vrsetup_dialog = null;
- var vrsetup_events = null;
- function vrsetup_close()
- {
- if (vrsetup_dialog)
- {
- webvr.savesettings();
- vrsetup_dlg_remove(vrsetup_dialog);
- vrsetup_dialog = null;
- }
- if (vrsetup_events)
- {
- krpano.events.removeItem(vrsetup_events.name);
- vrsetup_events = null;
- }
- }
- krpano.vrsetup_close = function()
- {
- vrsetup_close();
- }
- krpano.vrsetup_open_js = function()
- {
- if (vrsetup_dialog != null)
- {
- // already open...
- return;
- }
- if (webvr.iswebvr)
- {
- vrsetup_dialog = vrsetup_webvr_dialog();
- }
- else
- {
- vrsetup_dialog = vrsetup_mobilevr_dialog();
- }
- vrsetup_events = krpano.events.createItem("auto");
- vrsetup_events.keep = true;
- vrsetup_events.webvr_onexitvr = function()
- {
- vrsetup_close();
- }
- }
- ]]></action>
- <mobilevr_device_database>
- <device name="iPhone 5/5S/SE" screen="320x568x2" size="4.0" bevel="3"/>
- <device name="iPhone 6/6S/7/8" screen="375x667x2" size="4.7"/>
- <device name="iPhone 6/6S/7/8 Plus" screen="414x736" size="5.5"/>
- <device name="iPhone 6/6S/7/8 Plus (zoomed)" screen="375x667x3" size="5.5"/>
- <device name="iPhone X/XS/11Pro" screen="375x812x3" size="5.85|5.33"/>
- <device name="iPhone XS/11Pro Max" screen="414x896x3" size="6.46|5.95"/>
- <device name="iPhone XR/11" screen="414x896x2" size="6.06|5.58"/>
- <device name="Samsung S6" ua="sm-g930" size="5.1"/>
- <device name="Samsung S6 Edge" ua="sm-g925" size="5.1"/>
- <device name="Samsung S6 Edge Plus" ua="sm-g928" size="5.7"/>
- <device name="Samsung S7" ua="sm-g930" size="5.1"/>
- <device name="Samsung S7 Edge" ua="sm-g935" size="5.5"/>
- <device name="Samsung S8" ua="sm-g950" size="5.8"/>
- <device name="Samsung S8+" ua="sm-g955" size="6.2"/>
- <device name="Samsung S9" ua="sm-g960" size="5.8"/>
- <device name="Samsung S9+" ua="sm-g965" size="6.2"/>
- <device name="Samsung S10e" ua="sm-g970" size="5.8"/>
- <device name="Samsung S10" ua="sm-g973" size="6.1"/>
- <device name="Samsung S10+" ua="sm-g975" size="6.4"/>
- <device name="Samsung S10 5G" ua="sm-g977" size="6.7"/>
- <device name="Samsung Note 7" ua="sm-n930" size="5.7"/>
- <device name="Samsung Note 8" ua="sm-n950" size="6.3"/>
- <device name="Samsung Note 9" ua="sm-n960" size="6.4"/>
- <device name="Samsung Note 10" ua="sm-n970" size="6.3"/>
- <device name="Samsung Note 10 5G" ua="sm-n971" size="6.3"/>
- <device name="Samsung Note 10+" ua="sm-n975" size="6.8"/>
- <device name="Samsung Note 10+ 5G" ua="sm-n976" size="6.8"/>
- <device name="Huawei P10 Lite" ua="HUAWEIWAS-TL10" size="5.2"/>
- <device name="Huawei P20 Lite" ua="HUAWEIANE-LX1" size="5.84"/>
- </mobilevr_device_database>
- <action name="setup_weather">
- if(config.panos.pano[get(scene_name)].sun.id !== null,
- add_sun(get(config.panos.pano[get(scene_name)].sun.ath),get(config.panos.pano[get(scene_name)].sun.atv));
- );
- if(config.panos.pano[get(scene_name)].weather.id !== null AND config.panos.pano[get(scene_name)].weather.id != -1,
- if(config.panos.pano[get(scene_name)].weather.id == 0,
- add_snow(get(config.panos.pano[get(scene_name)].weather.size));
- ,
- if(config.panos.pano[get(scene_name)].weather.id == 1,
- add_rain(get(config.panos.pano[get(scene_name)].weather.size));
- ,
- if(config.panos.pano[get(scene_name)].weather.id == 2,
- add_sun(get(config.panos.pano[get(scene_name)].weather.ath),get(config.panos.pano[get(scene_name)].weather.atv));
- ,
- if(config.panos.pano[get(scene_name)].weather.id == 3,
- if(config.panos.pano[get(scene_name)].weather.type == 1,
- add_image_rain(get(settings.weather_image_1), get(config.panos.pano[get(scene_name)].weather.size));
- ,
- if(config.panos.pano[get(scene_name)].weather.type == 2,
- add_image_rain(get(settings.weather_image_2), get(config.panos.pano[get(scene_name)].weather.size));
- ,
- add_image_rain(get(settings.weather_image_3), get(config.panos.pano[get(scene_name)].weather.size));
- );
- );
- ,
- copy(custom_weather_url,config.panos.pano[get(scene_name)].weather.url);
- txtadd(custom_weather_url,'?imageView2/0/w/512/h/512');
- add_image_rain(get(custom_weather_url), get(config.panos.pano[get(scene_name)].weather.size));
- );
- );
- );
- );
- );
- if(webvr.isenabled AND plugin[snow] !== null,
- set(plugin[snow].visible, false);
- );
- </action>
- <action name="add_sun">
-
- addlensflare("obj",true);
- set(lensflares[obj].keep,false);
- set(lensflares[obj].visible,true);
- set(lensflares[obj].device,html5);
- set(lensflares[obj].item[flareobj].ath,%1);
- set(lensflares[obj].item[flareobj].atv,%2);
- set(lensflares[obj].item[flareobj].scene,get(xml.scene));
- set(lensflares[obj].item[flareobj].typ,blinkstyle1);
- set(lensflares[obj].item[flareobj].dust_effect,false);
- set(lensflares[obj].item[flareobj].keep,false);
- </action>
- <action name="add_rain">
- if(%1 === null,
- set(rain_size, 2);
- ,
- set(rain_size, %1);
- );
- removeplugin(snow);
- addplugin(snow);
- set(plugin[snow].keep, false);
- set(plugin[snow].onloaded,
- set(plugin[snow].mode, image);
- copy(plugin[snow].imageurl, settings.rain_image);
- set(plugin[snow].blendmode, normal);
- set(plugin[snow].flakes, 1000);
- mul(plugin[snow].flakes, rain_size);
- set(plugin[snow].color, 0xefe3e4);
- set(plugin[snow].speed, 15.5);
- set(plugin[snow].shake, 1.0);
- set(plugin[snow].speedvariance, 1.0);
- set(plugin[snow].spreading, 2.0);
- set(plugin[snow].rainwidth, 0.4);
- mul(plugin[snow].rainwidth, rain_size);
- set(plugin[snow].rainalpha, 0.5);
- set(plugin[snow].wind, 2.0);
- );
- if(device.flash,
- copy(plugin[snow].url, plugin_url.SNOW_SWF);
- ,
- copy(plugin[snow].url, plugin_url.SNOW_JS);
- );
- </action>
- <action name="remove_rain">
- removeplugin(snow);
- </action>
- <action name="add_snow">
- if(%1 === null,
- set(snow_size, 2);
- ,
- set(snow_size, %1);
- );
- removeplugin(snow);
- addplugin(snow);
- set(plugin[snow].keep, false);
- set(plugin[snow].onloaded,
- set(plugin[snow].mode, image);
- copy(plugin[snow].imageurl, settings.snow_image);
- set(plugin[snow].blendmode, normal);
- set(plugin[snow].flakes, 1500);
- mul(plugin[snow].flakes, snow_size);
- set(plugin[snow].color, 0xdfe3e4);
- set(plugin[snow].speed, get(snow_size));
- mul(plugin[snow].speed, snow_size);
- add(plugin[snow].speed, 1);
- set(plugin[snow].shake, 4.0);
- set(plugin[snow].speedvariance, 2.0);
- set(plugin[snow].spreading, 4.0);
- set(plugin[snow].wind, 1.0);
- sub(plugin[snow].wind, snow_size);
- );
- if(device.flash,
- copy(plugin[snow].url, plugin_url.SNOW_SWF);
- ,
- copy(plugin[snow].url, plugin_url.SNOW_JS);
- );
- </action>
- <action name="add_image_rain">
- if(%2 == null ,
- set(snow_size, 2);
- ,
- set(snow_size, %2);
- );
- removeplugin(snow);
- addplugin(snow);
- set(plugin[snow].keep, false);
- set(plugin[snow].onloaded,
- set(plugin[snow].mode, image);
- set(plugin[snow].imageurl, %1);
- set(plugin[snow].imagescale, 0.5);
- set(plugin[snow].blendmode, normal);
- set(plugin[snow].flakes, 150);
- mul(plugin[snow].flakes, snow_size);
- set(plugin[snow].color, 0xdfe3e4);
- add(plugin[snow].speed, 0.5);
- set(plugin[snow].shake, 1.0);
- set(plugin[snow].speedvariance, 2.0);
- set(plugin[snow].spreading, 1.5);
- set(plugin[snow].wind, 0);
- );
- if(device.flash,
- copy(plugin[snow].url, plugin_url.SNOW_SWF);
- ,
- copy(plugin[snow].url, plugin_url.SNOW_JS);
- );
- </action>
- <action name="update_bgcolor">
- set(hotspot[%1].bgcolor, %2);
- </action>
- <action name="update_backgroundalpha">
- set(hotspot[%1].backgroundalpha, %2);
- </action>
- <action name="update_color">
- set(css,get(hotspot[%1].css));
-
- indexoftxt(startIndex,get(css),'color');
- if(startIndex GE 0,
- indexoftxt(endIndex,get(css),';',get(startIndex));
- add(endIndex,1);
- calc(startSrc,substr(get(css),0,startIndex));
- calc(endSrc,substr(get(css),endIndex));
- set(newcss,get(startSrc));
- txtadd(newcss,get(endSrc));
- ,
- set(newcss,get(css));
- );
- txtadd(newcss, 'color:');
- txtadd(newcss, %2);
- txtadd(newcss, ';');
- set(hotspot[%1].css,get(newcss))
- </action>
- <action name="update_font_size">
- set(css,get(hotspot[%1].css));
-
- indexoftxt(startIndex,get(css),'font-size');
- if(startIndex GE 0,
- indexoftxt(endIndex,get(css),';',get(startIndex));
- add(endIndex,1);
- calc(startSrc,substr(get(css),0,startIndex));
- calc(endSrc,substr(get(css),endIndex));
- set(newcss,get(startSrc));
- txtadd(newcss,get(endSrc));
- ,
- set(newcss,get(css));
- );
- txtadd(newcss, 'font-size:');
- txtadd(newcss, %2);
- txtadd(newcss, 'px;');
- set(hotspot[%1].css,get(newcss))
- </action>
- <action name="add_embed_txt_default">
- addhotspot(%1);
- set(hotspot[%1].embedTxt,true);
- set(hotspot[%1].ath,%3);
- set(hotspot[%1].atv,%4);
- set(hotspot[%1].scale,1);
- set(hotspot[%1].keep,false);
- set(hotspot[%1].type,text);
- set(hotspot[%1].html,%2);
- txtreplace(hotspot[%1].html,'
- ','[br]');
- set(hotspot[%1].bgcolor,#000000);
- set(hotspot[%1].backgroundalpha,0.5);
- set(hotspot[%1].roundedge,5);
- set(hotspot[%1].padding,10);
- set(hotspot[%1].multiline,true);
- set(hotspot[%1].oy,-9);
- set(hotspot[%1].css,font-family:STXihei; font-size:12px; color:#ffffff;letter-spacing:1px;textAlign:center;line-height: 20px;);
- set(hotspot[%1].edge,bottom);
- set(hotspot[%1].renderer,"css3d");
- set(hotspot[%1].zorder2, 1.0);
- set(hotspot[%1].parent,'embed_container');
- set(embed_txt_bg_name,%1);
- txtadd(embed_txt_bg_name,"_bg");
- addhotspot(get(embed_txt_bg_name));
- copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_image);
- copy(hotspot[get(embed_txt_bg_name)].ath,hotspot[%1].ath);
- copy(hotspot[get(embed_txt_bg_name)].atv,hotspot[%1].atv);
- set(hotspot[get(embed_txt_bg_name)].keep,false);
- set(hotspot[get(embed_txt_bg_name)].scale,0.5);
- set(hotspot[get(embed_txt_bg_name)].edge,top);
- if(device.mobile == true,
- set(hotspot[get(embed_txt_bg_name)].oy,-6);
- ,
- set(hotspot[get(embed_txt_bg_name)].oy,-9);
- );
- set(hotspot[get(embed_txt_bg_name)].handcursor, false);
- set(hotspot[get(embed_txt_bg_name)].enabled, false);
- set(hotspot[get(embed_txt_bg_name)].renderer, 'css3d');
- set(hotspot[get(embed_txt_bg_name)].parent,get(embed_container));
- set(hotspot[%1].onclick,
- jscall(calc('window.onKrpEmbedClick("'+ name + '")'));
- );
- </action>
- <action name="add_embed_txt_line">
- addhotspot(%1);
- if(%3,
- set(hotspot[%1].ath,%3);
- ,
- set(hotspot[%1].ath,get(view.hlookat));
- );
- if(%4,
- set(hotspot[%1].atv,%4);
- ,
- set(hotspot[%1].atv,get(view.vlookat));
- );
- set(hotspot[%1].scale,1);
- set(hotspot[%1].embedTxt,true);
- set(hotspot[%1].type,text);
- set(hotspot[%1].keep,false);
- set(hotspot[%1].html,%2);
- set(hotspot[%1].bgcolor, %5);
- set(hotspot[%1].backgroundalpha,%6);
- set(hotspot_css,'font-family:STXihei; letter-spacing:1px;textAlign:center;line-height: 20px;');
- set(hotspot[%1].oy,-36);
- txtadd(hotspot_css, 'color:');
- txtadd(hotspot_css, %7);
- txtadd(hotspot_css, ';');
- txtadd(hotspot_css, 'font-size:');
- txtadd(hotspot_css, %8);
- txtadd(hotspot_css, 'px;');
- copy(hotspot[%1].css, hotspot_css);
- set(hotspot[%1].borderwidth,1.0);
- set(hotspot[%1].bordercolor,0xfad057);
- set(hotspot[%1].bgroundedge,5);
- set(hotspot[%1].padding,10);
-
- set(hotspot[%1].renderer,"css3d");
- set(hotspot[%1].edge,bottom);
- set(hotspot[%1].onup,
- jscall(calc('window.onKrpEmbedMoveEnd("'+ name + '",' + ath + ',' + atv + ')'));
- );
- set(hotspot[%1].ondown,drag_enable_embed_txt(););
- set(hotspot[%1].onclick,
- jscall(calc('window.onKrpEmbedClick("'+ name + '")'));
- );
- set(embed_txt_bg_name,%1);
- txtadd(embed_txt_bg_name,"_bg");
- addhotspot(get(embed_txt_bg_name));
-
- copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_line_image);
- copy(hotspot[get(embed_txt_bg_name)].ath,hotspot[%1].ath);
- copy(hotspot[get(embed_txt_bg_name)].atv,hotspot[%1].atv);
- set(hotspot[get(embed_txt_bg_name)].keep,false);
- set(hotspot[get(embed_txt_bg_name)].scale,0.5);
- set(hotspot[get(embed_txt_bg_name)].edge,top);
- set(hotspot[get(embed_txt_bg_name)].oy,-36);
- </action>
- <action name="remove_all_embed_txt">
- def(arr,array);
- def(arrIndex,number,0);
- trace(arr);
- for(set(i,0),i LT hotspot.count,inc(i),
- if(hotspot[get(i)].embedTxt,
- set(arr[get(arrIndex)],get(hotspot[get(i)].name));
- add(arrIndex,1)
- );
- );
- for(set(i,0),i LT arrIndex,inc(i),
- set(id,get(arr[get(i)]));
- removehotspot(get(id));
- txtadd(id,"_bg");
- removehotspot(get(id));
- );
- </action>
- <action name="addEmbedEnd">
- hide_vr_hotspot();
- </action>
- </krpano>
- <scene name="s_63001578" pano_id="35249793" scene_id="63001578">
- <preview url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35249793/imgs/preview.jpg"/>
- <image if="true">
- <cube url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35249793/imgs/mobile_%s.jpg"/>
- </image>
- </scene>
- <scene name="s_63001579" pano_id="35033441" scene_id="63001579">
- <preview url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35033441/imgs/preview.jpg"/>
- <image if="true">
- <cube url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35033441/imgs/mobile_%s.jpg"/>
- </image>
- </scene>
- <scene name="s_62962605" pano_id="36030771" scene_id="62962605">
- <preview url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030771/imgs/preview.jpg"/>
- <image if="true">
- <cube url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030771/imgs/mobile_%s.jpg"/>
- </image>
- </scene>
- <scene name="s_62962604" pano_id="36030772" scene_id="62962604">
- <preview url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030772/imgs/preview.jpg"/>
- <image if="true">
- <cube url="%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030772/imgs/mobile_%s.jpg"/>
- </image>
- </scene>
- <config>
- <autoTours>
- <tour title="一键导览" startImage="%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png" stopImage="%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png" hideHotspots="false" loop="false" disableMusic="false" subtitlePosition="bottom" subtitleSize="16" subtitleBackground="black" newTitle="导览" endBackToStart="false">
- <point name="piont_0" endatv="-1.3374506172596108" endath="-120.19396266728683" playMode="1" startfov="95" music="%$mediaDomain%/85bjkdyfvk1/1/b2ea955f75d02620a29434a4ce63eb4av5.mp3" musicName="谢海清 - 清平乐(古琴曲).mp3" endfov="95" startatv="0.513610111008311" moveTime="5" startath="43.06368191921319" targetPano="35249793" targetScene="" subtitle="大黄鸭大黄鸭大黄鸭大黄鸭大黄鸭大黄鸭大黄鸭" blendMode="0" volume="1"/>
- <point name="piont_1" endatv="-7.5046347877928845" endath="66.00453849023253" playMode="3" startfov="95" music="" musicName="" endfov="95" startatv="-1.3374506172596108" moveTime="5" startath="-120.19396266728683" targetPano="35249793" targetScene="" subtitle="" blendMode="0" volume="1"/>
- <point name="piont_2" endatv="-4.557" endath="-20.719" playMode="1" startfov="95" music="" musicName="" endfov="95" startatv="-7.5046347877928845" moveTime="5" startath="66.00453849023253" targetPano="36030771" targetScene="" subtitle="" blendMode="0" volume="1"/>
- <point name="piont_3" endatv="13.5571161198236" endath="-228.89689867965873" playMode="3" startfov="95" music="" musicName="" endfov="95" startatv="-4.557" moveTime="5" startath="-20.719" targetPano="36030771" targetScene="" subtitle="" blendMode="0" volume="1"/>
- <point name="piont_4" endatv="10.515114591550208" endath="-0.2950380275813873" playMode="1" startfov="95" music="" musicName="" endfov="95" startatv="13.5571161198236" moveTime="5" startath="-228.89689867965873" targetPano="36030772" targetScene="" subtitle="" blendMode="0" volume="1"/>
- <point name="piont_5" endatv="" endath="" playMode="1" startfov="95" music="" musicName="" endfov="" startatv="10.515114591550208" moveTime="5" startath="-0.2950380275813873" targetPano="36030772" targetScene="" subtitle="" blendMode="0" volume="1"/>
- </tour>
- </autoTours>
- <panos>
- <pano name="s_63001578">
- <info title="水悦喷泉" pano_id="35249793"/>
- <view autorotatekeepview="0" maxpixelzoom="2.0" fovmin="70" loadscenekeepview="0" hlookatmax="180" fov="95" vlookatmax="90" vlookat="-0.19272354352438953" fovmax="120" hlookatmin="-180" vlookatmin="-90" hlookat="203.68762226219638" fovtype="MFOV"/>
- <autoplay duration="30" hiddenscene_noenter="0" keep_originview="1" enabled="1" enter_next="1"/>
- <top_circle scale="0.5" is_float="0" type="2" url="%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png"/>
- <bottom_circle scale="1" is_float="0" type="2" url="%$mediaDomain%/85bjkdyfvk1/2/7e09f89bb50fbcd627250dc5fc2b6920v5.png"/>
- <weather size="1" id="0"/>
- </pano>
- <pano name="s_63001579">
- <info title="免税广场喷泉" pano_id="35033441"/>
- <view autorotatekeepview="0" maxpixelzoom="2.0" fovmin="70" loadscenekeepview="0" hlookatmax="180" fov="95" vlookatmax="90" vlookat="4.400086331986964" fovmax="135.2" hlookatmin="-180" vlookatmin="-90" hlookat="69.36782718495546" fovtype="MFOV"/>
- <autoplay duration="30" hiddenscene_noenter="0" keep_originview="false" enabled="1" enter_next="1"/>
- <top_circle scale="1" is_float="0" type="2" url="%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png"/>
- <bottom_circle type="1" scale="1" is_float="0"/>
- </pano>
- <pano name="s_62962605">
- <info title="云戒广场" pano_id="36030771"/>
- <view autorotatekeepview="0" maxpixelzoom="2.0" fovmin="70" loadscenekeepview="0" hlookatmax="180" fov="95" vlookatmax="90" vlookat="0" fovmax="120" hlookatmin="-180" vlookatmin="-90" hlookat="0" fovtype="MFOV"/>
- <autoplay duration="30" hiddenscene_noenter="0" keep_originview="0" enabled="1" enter_next="1"/>
- </pano>
- <pano name="s_62962604">
- <info title="云戒桥2" pano_id="36030772"/>
- <view autorotatekeepview="0" maxpixelzoom="2.0" fovmin="70" loadscenekeepview="0" hlookatmax="180" fov="95" vlookatmax="90" vlookat="0" fovmax="120" hlookatmin="-180" vlookatmin="-90" hlookat="0" fovtype="MFOV"/>
- <autoplay duration="30" hiddenscene_noenter="0" keep_originview="0" enabled="1" enter_next="1"/>
- </pano>
- </panos>
- </config>
|