out.js 240 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104
  1. {
  2. "krpano": [
  3. {
  4. "krpano": {
  5. "style": [
  6. {
  7. "@name": "flara_box_end_css",
  8. "@css": "color:#b70000; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:16px;"
  9. },
  10. {
  11. "@name": "flara_potwierdzenie_css",
  12. "@css": "color:#000000; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:16px;"
  13. },
  14. {
  15. "@name": "flara_popup_bg",
  16. "@type": "container",
  17. "@height": "100%",
  18. "@width": "100%",
  19. "@bgcapture": "true",
  20. "@bgalpha": "0.0",
  21. "@bgcolor": "0x000000",
  22. "@align": "lefttop",
  23. "@edge": "lefttop",
  24. "@handcursor": "false",
  25. "@zorder": "220",
  26. "@keep": "true"
  27. },
  28. {
  29. "@name": "flara_box_bg",
  30. "@type": "container",
  31. "@parent": "flara_popup_bg",
  32. "@bgcapture": "true",
  33. "@bgalpha": "1.0",
  34. "@bgcolor": "0xFFFFFF",
  35. "@align": "center",
  36. "@edge": "center",
  37. "@handcursor": "false",
  38. "@zorder": "3",
  39. "@keep": "true",
  40. "@width": "490",
  41. "@height": "440",
  42. "@bgroundedge": "3",
  43. "@bgshadow": "0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"
  44. },
  45. {
  46. "@name": "flara_title_text",
  47. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  48. "@parent": "flara_box_bg",
  49. "@handcursor": "true",
  50. "@children": "false",
  51. "@align": "top",
  52. "@edge": "top",
  53. "@height": "30",
  54. "@width": "-40",
  55. "@x": "0",
  56. "@y": "10",
  57. "@autowidth": "false",
  58. "@vcenter": "true",
  59. "@background": "false",
  60. "@css": "color:#064344; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:18px;",
  61. "@html": "select lensflare style",
  62. "@keep": "true"
  63. },
  64. {
  65. "@name": "flara_box_end",
  66. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  67. "@parent": "flara_box_bg",
  68. "@handcursor": "true",
  69. "@align": "righttop",
  70. "@edge": "righttop",
  71. "@autoheight": "false",
  72. "@autoalpha": "true",
  73. "@width": "50",
  74. "@height": "30",
  75. "@padding": "6",
  76. "@x": "2",
  77. "@y": "2",
  78. "@vcenter": "true",
  79. "@background": "false",
  80. "@html": "close",
  81. "@border": "false",
  82. "@zorder": "10",
  83. "@onclick": "close_popup_selectbox_flare()",
  84. "@keep": "true"
  85. },
  86. {
  87. "@name": "flara_thumb_id",
  88. "@parent": "flara_box_bg",
  89. "@keep": "true",
  90. "@zorder": "10",
  91. "@align": "lefttop",
  92. "@edge": "lefttop",
  93. "@ox": "10",
  94. "@oy": "50",
  95. "@width": "150",
  96. "@height": "119"
  97. },
  98. {
  99. "@name": "flara_thumb_id_aktyw",
  100. "@parent": "flara_box_bg",
  101. "@type": "container",
  102. "@width": "150",
  103. "@height": "119",
  104. "@bgcapture": "false",
  105. "@bgalpha": "0.3",
  106. "@bgcolor": "0x00af10",
  107. "@align": "lefttop",
  108. "@edge": "lefttop",
  109. "@bordercolor": "0x00af10",
  110. "@ox": "10",
  111. "@oy": "50",
  112. "@zorder": "12",
  113. "@keep": "true"
  114. },
  115. {
  116. "@name": "flara_potwierdzenie_bg",
  117. "@type": "container",
  118. "@parent": "flara_box_bg",
  119. "@height": "-50",
  120. "@width": "100%",
  121. "@bgcapture": "true",
  122. "@bgalpha": "0.0",
  123. "@bgcolor": "0xffffff",
  124. "@align": "top",
  125. "@edge": "top",
  126. "@oy": "50",
  127. "@handcursor": "false",
  128. "@zorder": "20",
  129. "@maskchildren": "true",
  130. "@keep": "true"
  131. },
  132. {
  133. "@name": "flara_potwierdzenie_minibox_bg",
  134. "@type": "container",
  135. "@parent": "flara_potwierdzenie_bg",
  136. "@bgcapture": "true",
  137. "@bgalpha": "1.0",
  138. "@bgcolor": "0xFFFFFF",
  139. "@align": "top",
  140. "@edge": "bottom",
  141. "@handcursor": "false",
  142. "@zorder": "3",
  143. "@keep": "true",
  144. "@width": "460",
  145. "@height": "150",
  146. "@bgroundedge": "0 0 6 6",
  147. "@bgshadow": "0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"
  148. },
  149. {
  150. "@name": "flara_potwierdzenie_title",
  151. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  152. "@parent": "flara_potwierdzenie_minibox_bg",
  153. "@handcursor": "true",
  154. "@children": "false",
  155. "@align": "top",
  156. "@edge": "top",
  157. "@height": "40",
  158. "@width": "-20",
  159. "@x": "0",
  160. "@y": "20",
  161. "@autowidth": "false",
  162. "@vcenter": "true",
  163. "@background": "false",
  164. "@css": "color:#5a5a5a; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:15px;",
  165. "@html": "confirm your choice",
  166. "@keep": "true"
  167. },
  168. {
  169. "@name": "flara_potwierdzenie_style",
  170. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  171. "@textshadow": "1",
  172. "@textshadowrange": "1",
  173. "@textshadowangle": "90",
  174. "@textshadowalpha": "0.6",
  175. "@textshadowcolor": "0xffffff",
  176. "@handcursor": "false",
  177. "@parent": "flara_potwierdzenie_minibox_bg",
  178. "@align": "bottom",
  179. "@edge": "bottom",
  180. "@width": "120",
  181. "@height": "60",
  182. "@padding": "0",
  183. "@y": "20",
  184. "@vcenter": "true",
  185. "@background": "true",
  186. "@zorder": "5",
  187. "@keep": "true"
  188. },
  189. {
  190. "@name": "flara_potwierdzenie_cancel",
  191. "@x": "-150",
  192. "@backgroundcolor": "0xff8989",
  193. "@html": "CANCEL",
  194. "@onclick": "close_popup_flara_potwierdzenie_cancel()"
  195. },
  196. {
  197. "@name": "flara_potwierdzenie_ok",
  198. "@x": "0",
  199. "@backgroundcolor": "0x62d55f",
  200. "@html": "OK",
  201. "@onclick": "load_flare_dynamic(get(lensflares[obj].item.count),get(wybrany_styl_flary_to),false)"
  202. },
  203. {
  204. "@name": "flara_potwierdzenie_ok_dust",
  205. "@x": "150",
  206. "@backgroundcolor": "0xe6e600",
  207. "@html": "OK[br][small][i]with dust effect[/i][/small]",
  208. "@onclick": "load_flare_dynamic(get(lensflares[obj].item.count),get(wybrany_styl_flary_to),true)"
  209. },
  210. {
  211. "@name": "flara_on_scene_box_bg",
  212. "@type": "container",
  213. "@bgcapture": "true",
  214. "@bgalpha": "1.0",
  215. "@bgcolor": "0xFFFFFF",
  216. "@align": "bottom",
  217. "@edge": "bottom",
  218. "@handcursor": "false",
  219. "@zorder": "200",
  220. "@x": "get:x_listflar",
  221. "@y": "get:y_listflar",
  222. "@keep": "false",
  223. "@ondown": "draglayer_flareshow()",
  224. "@width": "400",
  225. "@height": "90",
  226. "@bgroundedge": "3",
  227. "@bgshadow": "0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"
  228. },
  229. {
  230. "@name": "flara_on_scene_box_mask",
  231. "@type": "container",
  232. "@parent": "flara_on_scene_box_bg",
  233. "@bgcapture": "false",
  234. "@maskchildren": "true",
  235. "@bgalpha": "0.0",
  236. "@bgcolor": "0x000000",
  237. "@align": "center",
  238. "@edge": "center",
  239. "@handcursor": "false",
  240. "@zorder": "1",
  241. "@keep": "false",
  242. "@width": "-40",
  243. "@y": "0",
  244. "@height": "-10"
  245. },
  246. {
  247. "@name": "flara_on_scene_scroll",
  248. "@direction": "h",
  249. "@width": "1",
  250. "@height": "100%",
  251. "@handcursor": "false",
  252. "@parent": "flara_on_scene_box_mask",
  253. "@y": "0",
  254. "@x": "0",
  255. "@onloaded": "setcenter(0,0)",
  256. "@zorder": "1",
  257. "@align": "lefttop",
  258. "@edge": "lefttop",
  259. "@keep": "false"
  260. },
  261. {
  262. "@name": "flara_on_scene_thumb_id",
  263. "@parent": "flara_on_scene_scroll",
  264. "@keep": "false",
  265. "@zorder": "2",
  266. "@align": "left",
  267. "@edge": "left",
  268. "@y": "0",
  269. "@width": "110",
  270. "@height": "90"
  271. },
  272. {
  273. "@name": "flara_on_scene_thumb_dust_id",
  274. "@url": "%SWFPATH%/skin/lensflare/dust/dust_true.png",
  275. "@keep": "false",
  276. "@zorder": "1",
  277. "@enabled": "false",
  278. "@align": "center",
  279. "@edge": "center",
  280. "@x": "0",
  281. "@y": "0",
  282. "@width": "100%",
  283. "@height": "100%"
  284. },
  285. {
  286. "@name": "flara_on_scene_lookto",
  287. "@crop": "0|0|34|34",
  288. "@keep": "false",
  289. "@zorder": "2",
  290. "@align": "leftbottom",
  291. "@edge": "leftbottom",
  292. "@x": "6",
  293. "@y": "12",
  294. "@width": "22",
  295. "@height": "22"
  296. },
  297. {
  298. "@name": "flara_on_scene_trash",
  299. "@crop": "34|0|34|34",
  300. "@keep": "false",
  301. "@zorder": "2",
  302. "@align": "leftbottom",
  303. "@edge": "leftbottom",
  304. "@x": "32",
  305. "@y": "12",
  306. "@width": "22",
  307. "@height": "22"
  308. },
  309. {
  310. "@name": "flara_on_add_mode_css",
  311. "@css": "color:#000000; font-family: Arial, sans-serif; font-weight:bold; text-align:center; font-size:13px;"
  312. },
  313. {
  314. "@name": "flara_on_add_mode",
  315. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  316. "@textshadow": "1",
  317. "@textshadowrange": "1",
  318. "@textshadowangle": "90",
  319. "@textshadowalpha": "0.6",
  320. "@textshadowcolor": "0xffffff",
  321. "@handcursor": "true",
  322. "@parent": "flara_on_scene_box_bg",
  323. "@align": "lefttop",
  324. "@edge": "leftbottom",
  325. "@width": "-270",
  326. "@height": "30",
  327. "@padding": "0",
  328. "@y": "-10",
  329. "@roundedge": "0",
  330. "@onclick": "add_flare_cross()",
  331. "@vcenter": "true",
  332. "@background": "true",
  333. "@zorder": "5",
  334. "@keep": "false"
  335. },
  336. {
  337. "@name": "flara_on_vr_mode",
  338. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  339. "@textshadow": "1",
  340. "@textshadowrange": "1",
  341. "@textshadowangle": "90",
  342. "@textshadowalpha": "0.6",
  343. "@textshadowcolor": "0xffffff",
  344. "@handcursor": "true",
  345. "@parent": "flara_on_scene_box_bg",
  346. "@align": "righttop",
  347. "@edge": "rightbottom",
  348. "@width": "-270",
  349. "@height": "30",
  350. "@padding": "0",
  351. "@y": "-10",
  352. "@roundedge": "0",
  353. "@onclick": "switch_vr_mode()",
  354. "@vcenter": "true",
  355. "@background": "true",
  356. "@zorder": "5",
  357. "@keep": "false"
  358. },
  359. {
  360. "@name": "flara_generate_code",
  361. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  362. "@textshadow": "1",
  363. "@textshadowrange": "1",
  364. "@textshadowangle": "90",
  365. "@textshadowalpha": "0.6",
  366. "@textshadowcolor": "0xffffff",
  367. "@handcursor": "true",
  368. "@parent": "flara_on_scene_box_bg",
  369. "@align": "top",
  370. "@edge": "bottom",
  371. "@width": "-280",
  372. "@height": "50",
  373. "@padding": "0",
  374. "@y": "-10",
  375. "@roundedge": "3",
  376. "@vcenter": "true",
  377. "@background": "true",
  378. "@zorder": "5",
  379. "@backgroundcolor": "0x1393aa",
  380. "@html": "GET CODE",
  381. "@keep": "false"
  382. },
  383. {
  384. "@name": "flara_screen_cross_pion",
  385. "@type": "container",
  386. "@bgalpha": "1.0",
  387. "@bgcolor": "0x0000ff",
  388. "@align": "center",
  389. "@edge": "center",
  390. "@bgcapture": "false",
  391. "@zorder": "10",
  392. "@keep": "true",
  393. "@width": "1",
  394. "@height": "140"
  395. },
  396. {
  397. "@name": "flara_screen_cross_poziom",
  398. "@type": "container",
  399. "@bgalpha": "1.0",
  400. "@bgcolor": "0xff0000",
  401. "@align": "center",
  402. "@edge": "center",
  403. "@bgcapture": "false",
  404. "@zorder": "10",
  405. "@keep": "true",
  406. "@width": "140",
  407. "@height": "1"
  408. },
  409. {
  410. "@name": "flara_screen_addflare",
  411. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  412. "@shadow": "1",
  413. "@shadowangle": "90",
  414. "@textshadow": "1",
  415. "@textshadowrange": "1",
  416. "@textshadowangle": "90",
  417. "@textshadowalpha": "0.6",
  418. "@textshadowcolor": "0xffffff",
  419. "@handcursor": "true",
  420. "@parent": "flara_screen_cross_pion",
  421. "@align": "center",
  422. "@edge": "rightbottom",
  423. "@width": "130",
  424. "@height": "40",
  425. "@padding": "10",
  426. "@x": "-20",
  427. "@y": "-20",
  428. "@backgroundcolor": "0x30aa13",
  429. "@roundedge": "20 20 0 20",
  430. "@html": "ADD LENSFLARE",
  431. "@onclick": "show_popup_flare_selectbox(get(lang))",
  432. "@vcenter": "true",
  433. "@background": "true",
  434. "@zorder": "5",
  435. "@keep": "true"
  436. },
  437. {
  438. "@name": "vonflara_potwierdzenie_bg",
  439. "@type": "container",
  440. "@height": "100%",
  441. "@width": "100%",
  442. "@bgcapture": "true",
  443. "@bgalpha": "0.3",
  444. "@bgcolor": "0x000000",
  445. "@align": "lefttop",
  446. "@edge": "lefttop",
  447. "@handcursor": "false",
  448. "@zorder": "2000",
  449. "@keep": "true"
  450. },
  451. {
  452. "@name": "vonflara_potwierdzenie_minibox_bg",
  453. "@type": "container",
  454. "@parent": "vonflara_potwierdzenie_bg",
  455. "@bgcapture": "true",
  456. "@bgalpha": "1.0",
  457. "@bgcolor": "0xFFFFFF",
  458. "@align": "center",
  459. "@edge": "center",
  460. "@handcursor": "false",
  461. "@zorder": "3",
  462. "@keep": "true",
  463. "@width": "400",
  464. "@height": "150",
  465. "@bgroundedge": "0 6 0 6",
  466. "@bgshadow": "0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset"
  467. },
  468. {
  469. "@name": "vonflara_potwierdzenie_title",
  470. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  471. "@parent": "vonflara_potwierdzenie_minibox_bg",
  472. "@handcursor": "true",
  473. "@children": "false",
  474. "@align": "top",
  475. "@edge": "top",
  476. "@height": "40",
  477. "@width": "-20",
  478. "@x": "0",
  479. "@y": "20",
  480. "@autowidth": "false",
  481. "@vcenter": "true",
  482. "@background": "false",
  483. "@css": "color:#5a5a5a; font-family: Arial, sans-serif; font-weight:normal; text-align:center; font-size:15px;",
  484. "@html": "ARE YOU SURE?",
  485. "@keep": "true"
  486. },
  487. {
  488. "@name": "vonflara_potwierdzenie_style",
  489. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  490. "@textshadow": "1",
  491. "@textshadowrange": "1",
  492. "@textshadowangle": "90",
  493. "@textshadowalpha": "0.6",
  494. "@textshadowcolor": "0xffffff",
  495. "@handcursor": "true",
  496. "@parent": "vonflara_potwierdzenie_minibox_bg",
  497. "@align": "bottom",
  498. "@edge": "bottom",
  499. "@width": "160",
  500. "@height": "60",
  501. "@padding": "0",
  502. "@y": "20",
  503. "@vcenter": "true",
  504. "@background": "true",
  505. "@zorder": "5",
  506. "@keep": "true"
  507. },
  508. {
  509. "@name": "vonflara_potwierdzenie_cancel",
  510. "@x": "-100",
  511. "@backgroundcolor": "0xff8989",
  512. "@html": "CANCEL",
  513. "@onclick": "usun_box_us_flary()"
  514. },
  515. {
  516. "@name": "vonflara_potwierdzenie_ok",
  517. "@x": "100",
  518. "@backgroundcolor": "0x62d55f",
  519. "@html": "OK"
  520. },
  521. {
  522. "@name": "lensflare_is_build_so_generate_bg",
  523. "@type": "container",
  524. "@height": "100%",
  525. "@width": "100%",
  526. "@bgcapture": "true",
  527. "@bgalpha": "0.5",
  528. "@bgcolor": "0x000000",
  529. "@align": "lefttop",
  530. "@edge": "lefttop",
  531. "@handcursor": "false",
  532. "@zorder": "2200",
  533. "@keep": "true"
  534. },
  535. {
  536. "@name": "lensflare_is_build_so_generate_box",
  537. "@type": "container",
  538. "@height": "450",
  539. "@width": "610",
  540. "@bgcapture": "true",
  541. "@y": "-20",
  542. "@bgalpha": "1",
  543. "@bgcolor": "0x272822",
  544. "@align": "center",
  545. "@edge": "center",
  546. "@handcursor": "false",
  547. "@parent": "lensflare_is_build_so_generate_bg",
  548. "@zorder": "2",
  549. "@bgshadow": "0 29 77 -27 0x000000 1,0 -22 109 -59 0x000000 0.7 inset",
  550. "@keep": "true"
  551. },
  552. {
  553. "@name": "lensflare_is_build_so_generate_copy",
  554. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  555. "@parent": "lensflare_is_build_so_generate_box",
  556. "@handcursor": "true",
  557. "@align": "lefttop",
  558. "@edge": "lefttop",
  559. "@autoheight": "false",
  560. "@autoalpha": "true",
  561. "@autowidth": "true",
  562. "@height": "44",
  563. "@padding": "6",
  564. "@x": "5",
  565. "@y": "0",
  566. "@vcenter": "true",
  567. "@background": "false",
  568. "@enabled": "false",
  569. "@html": "Select, copy and paste to [strong] skin/lensflare/lensflaresettings.xml[/strong]",
  570. "@border": "false",
  571. "@zorder": "2",
  572. "@keep": "true"
  573. },
  574. {
  575. "@name": "lensflare_is_build_so_generate_end",
  576. "@url": "https://ssl-player2.720static.com/api/lensflare/textfield.swf",
  577. "@parent": "lensflare_is_build_so_generate_box",
  578. "@handcursor": "true",
  579. "@align": "righttop",
  580. "@edge": "righttop",
  581. "@autoheight": "false",
  582. "@autoalpha": "true",
  583. "@autowidth": "true",
  584. "@height": "44",
  585. "@padding": "6 10 6 10",
  586. "@x": "2",
  587. "@y": "0",
  588. "@vcenter": "true",
  589. "@background": "false",
  590. "@html": "close",
  591. "@zorder": "10",
  592. "@onclick": "close_lensflare_is_build_so_generate()",
  593. "@keep": "true"
  594. },
  595. {
  596. "@name": "lensflare_is_build_css",
  597. "@css": "color:#ffffff; font-family: Arial, sans-serif; font-weight:normal; text-align:left; font-size:13px;"
  598. }
  599. ],
  600. "action": [
  601. "set(layer[flara_box_end].alpha, 0);
  602. flayer(flara_potwierdzenie_bg, flara_potwierdzenie_bg);
  603. tween(layer[flara_potwierdzenie_bg].bgalpha, 0.7, 0.2,, WAIT);
  604. flayer(flara_potwierdzenie_minibox_bg, flara_potwierdzenie_minibox_bg);
  605. flayer(flara_potwierdzenie_title, flara_potwierdzenie_title);
  606. flayer(flara_potwierdzenie_cancel, flara_potwierdzenie_style | flara_potwierdzenie_cancel | flara_potwierdzenie_css);
  607. flayer(flara_potwierdzenie_ok, flara_potwierdzenie_style | flara_potwierdzenie_ok | flara_potwierdzenie_css);
  608. flayer(flara_potwierdzenie_ok_dust, flara_potwierdzenie_style | flara_potwierdzenie_ok_dust | flara_potwierdzenie_css);
  609. tween(layer[flara_potwierdzenie_minibox_bg].y, 150, 0.3, easeOutCubic); ",
  610. "set(layer[flara_box_end].alpha, 1);
  611. vonp(flara_potwierdzenie_ok);
  612. vonp(flara_potwierdzenie_ok_dust);
  613. vonp(flara_potwierdzenie_cancel);
  614. vonp(flara_potwierdzenie_title);
  615. vonp(flara_thumb_id_aktyw);
  616. tween(layer[flara_potwierdzenie_minibox_bg].y, 0, 0.2, easeOutCubic,
  617. vonp(flara_potwierdzenie_minibox_bg);
  618. vonp(flara_potwierdzenie_bg);
  619. ); ",
  620. "flayer(flara_popup_bg,flara_popup_bg);
  621. flayer(flara_box_bg, flara_box_bg);
  622. flayer(flara_title_text, flara_title_text);
  623. flayer(flara_box_end, flara_box_end);
  624. set(height_scroll_minibox_left, 0);
  625. for(set(i, 0), i LT lensthumb.item.count, inc(i),
  626. copy(n, lensthumb.item[get(i)].name);
  627. flayer(get(n), flara_thumb_id);
  628. txtadd(p.url, '%SWFPATH%/skin/lensflare/src/', get(n), '.jpg');
  629. copy(p.x, lensthumb.item[get(i)].x);
  630. copy(p.y, lensthumb.item[get(i)].y);
  631. set(p.onclick, zaznacz_wybrany_styl_flary(get(name)));
  632. inc(height_scroll_minibox_left, 130);
  633. );
  634. copy(layer[height_scroll_minibox_left].height, height_scroll_minibox_left); ",
  635. "set(wybrany_styl_flary_to, %1);
  636. if (!layer[flara_thumb_id_aktyw].loaded,
  637. flayer(flara_thumb_id_aktyw, flara_thumb_id_aktyw);
  638. copy(layer[flara_thumb_id_aktyw].x, layer[% 1].x);
  639. copy(layer[flara_thumb_id_aktyw].y, layer[% 1].y);
  640. ,
  641. copy(layer[flara_thumb_id_aktyw].x, layer[% 1].x);
  642. copy(layer[flara_thumb_id_aktyw].y, layer[% 1].y);
  643. );
  644. delayedcall(0.7, potwierdz_wybor_stylu_flary()); ",
  645. "vonp(flara_thumb_id_aktyw);
  646. vonp(blinkstyle1);
  647. vonp(blinkstyle2);
  648. vonp(blinkstyle3);
  649. vonp(blinkstyle4);
  650. vonp(blinkstyle5);
  651. vonp(blinkstyle6);
  652. vonp(blinkstyle7);
  653. vonp(blinkstyle8);
  654. vonp(blinkstyle9);
  655. vonp(flara_box_end);
  656. vonp(flara_box_bg);
  657. vonp(flara_title_text);
  658. vonp(flara_popup_bg); ",
  659. "flayer(flara_on_scene_box_bg,flara_on_scene_box_bg);
  660. copy(p.x, x_listflar);
  661. copy(p.y, y_listflar);
  662. flayer(flara_on_scene_box_mask, flara_on_scene_box_mask);
  663. flayer(flara_on_scene_scroll, flara_on_scene_scroll);
  664. set(p.url, % SWFPATH % /plugins/scrollarea.js);
  665. flayer(flara_on_add_mode, flara_on_add_mode | flara_on_add_mode_css);
  666. if (flara_edit_mode,
  667. set(layer[flara_on_add_mode].backgroundcolor, 0x30aa13);
  668. set(layer[flara_on_add_mode].html, 'EDIT MODE ON');
  669. ,
  670. set(layer[flara_on_add_mode].backgroundcolor, 0xff8989);
  671. set(layer[flara_on_add_mode].html, 'EDIT MODE OFF');
  672. );
  673. flayer(flara_on_vr_mode, flara_on_vr_mode | flara_on_add_mode_css);
  674. if (!webvr_enabled,
  675. set(layer[flara_on_vr_mode].backgroundcolor, 0xff8989);
  676. set(layer[flara_on_vr_mode].html, 'VR DISABLED');
  677. ,
  678. set(layer[flara_on_vr_mode].backgroundcolor, 0x30aa13);
  679. set(layer[flara_on_vr_mode].html, 'VR ENABLED');
  680. );
  681. flayer(flara_generate_code, flara_generate_code | flara_on_add_mode_css);
  682. set(p.onclick, lensflare_is_build_so_generate(get(webvr_enabled)));
  683. set(xflpos, 0);
  684. for (set(i, 0), i LT lensflares[obj].item.count, inc(i),
  685. if (lensflares[obj].item[get(i)].scene == '%1',
  686. txtadd(na, 'flt_%1_', get(lensflares[obj].item[get(i)].name));
  687. txtadd(look, 'lookto_%1_', get(lensflares[obj].item[get(i)].name));
  688. txtadd(tras, 'trash_%1_', get(lensflares[obj].item[get(i)].name));
  689. txtadd(dust, 'dust_%1_', get(lensflares[obj].item[get(i)].name));
  690. flayer(get(na), flara_on_scene_thumb_id);
  691. txtadd(p.url, '%SWFPATH%/skin/lensflare/src/', get(lensflares[obj].item[get(i)].typ), '.jpg');
  692. copy(p.x, xflpos);
  693. if (lensflares[obj].item[get(i)].dust_effect,
  694. flayer(get(dust), flara_on_scene_thumb_dust_id);
  695. copy(p.parent, na);
  696. );
  697. flayer(get(look), flara_on_scene_lookto);
  698. set(p.url, % SWFPATH % /skin/lensflare / src / ico.png);
  699. copy(p.parent, na);
  700. txtadd(p.onclick, 'lookto(get(lensflares[obj].item[', get(i), '].ath),get(lensflares[obj].item[', get(i), '].atv),100);');
  701. flayer(get(tras), flara_on_scene_trash);
  702. set(p.url, % SWFPATH % /skin/lensflare / src / ico.png);
  703. copy(p.parent, na);
  704. copy(p._na, na);
  705. copy(p._look, look);
  706. copy(p._tras, tras);
  707. copy(p._dust, dust);
  708. txtadd(p.onclick,
  709. '
  710. potwierdz_usuniecie_flary(get(lensflares[obj].item[',get(i),'].name),% 1, get(_na), get(_look), get(_tras), get(_dust));
  711. '
  712. );
  713. inc(xflpos, 126);
  714. copy(layer[flara_on_scene_scroll].width, xflpos);
  715. );
  716. sub(layer[flara_on_scene_scroll].width, 10);
  717. ); ",
  718. "if('%1' != 'dragging',
  719. copy(drag_currentx, x);
  720. copy(drag_currenty, y);
  721. copy(drag_stagex, mouse.stagex);
  722. copy(drag_stagey, mouse.stagey);
  723. set(drag_sx, +1);
  724. set(drag_sy, +1);
  725. if (align == 'righttop', set(drag_sx, -1); );
  726. if (align == 'right', set(drag_sx, -1); );
  727. if (align == 'rightbottom', set(drag_sx, -1); set(drag_sy, -1); );
  728. if (align == 'bottom', set(drag_sy, -1); );
  729. if (align == 'leftbottom', set(drag_sy, -1); );
  730. draglayer_flareshow(dragging);
  731. ,
  732. if (pressed,
  733. sub(dx, mouse.stagex, drag_stagex);
  734. sub(dy, mouse.stagey, drag_stagey);
  735. mul(dx, drag_sx);
  736. mul(dy, drag_sy);
  737. add(x, drag_currentx, dx);
  738. add(y, drag_currenty, dy);
  739. copy(x_listflar, x);
  740. copy(y_listflar, y);
  741. delayedcall(0, draglayer_flareshow(dragging));
  742. );
  743. ); ",
  744. "if(webvr_enabled,
  745. set(layer[flara_on_vr_mode].backgroundcolor, 0xff8989);
  746. set(layer[flara_on_vr_mode].html, 'WebVR OFF');
  747. set(webvr_enabled, false)
  748. ,
  749. set(layer[flara_on_vr_mode].backgroundcolor, 0x30aa13);
  750. set(layer[flara_on_vr_mode].html, 'WebVR ON');
  751. set(webvr_enabled, true)
  752. ); ",
  753. "if(!flara_edit_mode,
  754. set(layer[flara_on_add_mode].backgroundcolor, 0x30aa13);
  755. set(layer[flara_on_add_mode].html, 'EDIT MODE ON');
  756. flayer(flara_screen_cross_pion, flara_screen_cross_pion);
  757. flayer(flara_screen_cross_poziom, flara_screen_cross_poziom);
  758. flayer(flara_screen_addflare, flara_screen_addflare);
  759. set(flara_edit_mode, true);
  760. ,
  761. set(layer[flara_on_add_mode].backgroundcolor, 0xff8989);
  762. set(layer[flara_on_add_mode].html, 'EDIT MODE OFF');
  763. vonp(flara_screen_cross_pion);
  764. vonp(flara_screen_cross_poziom);
  765. vonp(flara_screen_addflare);
  766. set(flara_edit_mode, false);
  767. ) ",
  768. "flayer(vonflara_potwierdzenie_bg,vonflara_potwierdzenie_bg);
  769. flayer(vonflara_potwierdzenie_minibox_bg, vonflara_potwierdzenie_minibox_bg);
  770. flayer(vonflara_potwierdzenie_title, vonflara_potwierdzenie_title);
  771. flayer(vonflara_potwierdzenie_cancel, vonflara_potwierdzenie_cancel | vonflara_potwierdzenie_style | flara_potwierdzenie_css);
  772. flayer(vonflara_potwierdzenie_ok, vonflara_potwierdzenie_ok | vonflara_potwierdzenie_style | flara_potwierdzenie_css);
  773. set(p.onclick, remove_flare_dynamic(% 1,% 2,% 3,% 4,% 5,% 6,% 7)); ",
  774. "vonp(vonflara_potwierdzenie_ok);
  775. vonp(vonflara_potwierdzenie_cancel);
  776. vonp(vonflara_potwierdzenie_title);
  777. vonp(vonflara_potwierdzenie_minibox_bg);
  778. vonp(vonflara_potwierdzenie_bg); ",
  779. "close_popup_flara_potwierdzenie_cancel();
  780. close_popup_selectbox_flare();
  781. inc(suma_flar);
  782. copy(_view_hlookat, view.hlookat); roundval(_view_hlookat, 2);
  783. copy(_view_vlookat, view.vlookat); roundval(_view_vlookat, 2);
  784. copy(_suma_flar, timertick); roundval(_suma_flar);
  785. set(_dust_effect, % 3);
  786. txtadd(nf, 'flarka', get(_suma_flar));
  787. set(lensflares[obj].item[get(nf)].name);
  788. copy(lensflares[obj].item[get(nf)].ath, _view_hlookat);
  789. copy(lensflares[obj].item[get(nf)].atv, _view_vlookat);
  790. copy(lensflares[obj].item[get(nf)].dust_effect, _dust_effect);
  791. copy(lensflares[obj].item[get(nf)].scene, xml.scene);
  792. set(lensflares[obj].item[get(nf)].typ, % 2);
  793. set(load_gui_flar, false);
  794. for (set(i, 0), i LT lensflares[obj].item.count, inc(i),
  795. copy(name_flare, lensflares[obj].item[get(i)].name);
  796. copy(blink_style, lensflares[obj].item[get(i)].typ);
  797. if (lensflares[obj].item[get(i)].scene == xml.scene,
  798. set(load_gui_flar, true);
  799. for (set(j, 0), j LT flare_style[get(blink_style)].item.count, inc(j),
  800. txtadd(n, 'f1_', get(lensflares[obj].item[get(i)].name), '_', get(j));
  801. 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));
  802. );
  803. );
  804. );
  805. show_lensfrafe_aktyw_box(get(xml.scene), get(load_gui_flar)); ",
  806. "if(lensflares[obj].item[%1].scene == '%2',
  807. vonp(% 3);
  808. vonp(% 4);
  809. vonp(% 5);
  810. vonp(% 6);
  811. vonp(flara_on_scene_scroll);
  812. wait(0);
  813. vonh_all(tagmini, % 1);
  814. lensflares[obj].item.removearrayitem(% 1);
  815. usun_box_us_flary(% 1);
  816. load_flare_content(% 1);
  817. show_lensfrafe_aktyw_box(% 1);
  818. ); ",
  819. "set(flare_data_dynamic,);
  820. txtadd(flare_data_dynamic, '<krpano><lensflares name="obj" webvr_enabled="%1">');
  821. for (set(i, 0), i LT lensflares[obj].item.count, inc(i),
  822. copy(_n, lensflares[obj].item[get(i)].name);
  823. copy(_ath, lensflares[obj].item[get(i)].ath);
  824. copy(_atv, lensflares[obj].item[get(i)].atv);
  825. copy(_scene, lensflares[obj].item[get(i)].scene);
  826. copy(_typ, lensflares[obj].item[get(i)].typ);
  827. if (lensflares[obj].item[get(i)].dust_effect === null, set(lensflares[obj].item[get(i)].dust_effect, true));
  828. copy(_dust_effect, lensflares[obj].item[get(i)].dust_effect);
  829. 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), '" />');
  830. );
  831. txtadd(flare_data_dynamic, get(flare_data_dynamic), ' </lensflares></krpano>');
  832. flayer(lensflare_is_build_so_generate_bg, lensflare_is_build_so_generate_bg);
  833. flayer(lensflare_is_build_so_generate_box, lensflare_is_build_so_generate_box);
  834. flayer(lensflare_is_build_so_generate_end, lensflare_is_build_so_generate_end | lensflare_is_build_css);
  835. flayer(lensflare_is_build_so_generate_copy, lensflare_is_build_so_generate_copy | lensflare_is_build_css);
  836. js(show_fl_textfield(get(flare_data_dynamic))); ",
  837. "vonp(lensflare_is_build_so_generate_bg);
  838. vonp(lensflare_is_build_so_generate_box);
  839. vonp(lensflare_is_build_so_generate_end);
  840. vonp(lensflare_is_build_so_generate_copy);
  841. js(remove_textfield()); "
  842. ],
  843. "lensthumb": {
  844. "item": [
  845. {
  846. "@name": "blinkstyle1",
  847. "@x": "0",
  848. "@y": "0"
  849. },
  850. {
  851. "@name": "blinkstyle2",
  852. "@x": "160",
  853. "@y": "0"
  854. },
  855. {
  856. "@name": "blinkstyle3",
  857. "@x": "320",
  858. "@y": "0"
  859. },
  860. {
  861. "@name": "blinkstyle4",
  862. "@x": "0",
  863. "@y": "130"
  864. },
  865. {
  866. "@name": "blinkstyle5",
  867. "@x": "160",
  868. "@y": "130"
  869. },
  870. {
  871. "@name": "blinkstyle6",
  872. "@x": "320",
  873. "@y": "130"
  874. },
  875. {
  876. "@name": "blinkstyle7",
  877. "@x": "0",
  878. "@y": "260"
  879. },
  880. {
  881. "@name": "blinkstyle8",
  882. "@x": "160",
  883. "@y": "260"
  884. },
  885. {
  886. "@name": "blinkstyle9",
  887. "@x": "320",
  888. "@y": "260"
  889. }
  890. ]
  891. },
  892. "@devices": "html5"
  893. },
  894. "style": [
  895. {
  896. "@name": "blink_fl_lt",
  897. "@url": "https://ssl-player2.720static.com/api/lensflare/dust/d1.png",
  898. "@enabled": "false",
  899. "@parent": "STAGE",
  900. "@align": "center",
  901. "@edge": "rightbottom",
  902. "@x": "0",
  903. "@y": "0",
  904. "@width": "prop",
  905. "@height": "70%",
  906. "@keep": "false",
  907. "@alpha": "0",
  908. "@zorder": "100"
  909. },
  910. {
  911. "@name": "blink_fl_rt",
  912. "@url": "https://ssl-player2.720static.com/api/lensflare/dust/d2.png",
  913. "@enabled": "false",
  914. "@parent": "STAGE",
  915. "@align": "center",
  916. "@edge": "leftbottom",
  917. "@x": "0",
  918. "@y": "0",
  919. "@width": "prop",
  920. "@height": "70%",
  921. "@keep": "false",
  922. "@alpha": "0",
  923. "@zorder": "100"
  924. },
  925. {
  926. "@name": "blink_fl_rb",
  927. "@url": "https://ssl-player2.720static.com/api/lensflare/dust/d3.png",
  928. "@enabled": "false",
  929. "@parent": "STAGE",
  930. "@align": "center",
  931. "@edge": "lefttop",
  932. "@x": "0",
  933. "@y": "0",
  934. "@width": "prop",
  935. "@height": "70%",
  936. "@keep": "false",
  937. "@alpha": "0",
  938. "@zorder": "100"
  939. },
  940. {
  941. "@name": "blink_fl_lb",
  942. "@url": "https://ssl-player2.720static.com/api/lensflare/dust/d4.png",
  943. "@enabled": "false",
  944. "@parent": "STAGE",
  945. "@align": "center",
  946. "@edge": "righttop",
  947. "@x": "0",
  948. "@y": "0",
  949. "@width": "prop",
  950. "@height": "70%",
  951. "@keep": "false",
  952. "@alpha": "0",
  953. "@zorder": "100"
  954. },
  955. {
  956. "@name": "blink_fl_ce",
  957. "@url": "https://ssl-player2.720static.com/api/lensflare/dast4.png",
  958. "@enabled": "false",
  959. "@parent": "STAGE",
  960. "@rotate": "180",
  961. "@align": "center",
  962. "@edge": "center",
  963. "@x": "0",
  964. "@y": "0",
  965. "@width": "prop",
  966. "@height": "50%",
  967. "@keep": "false",
  968. "@alpha": "0",
  969. "@zorder": "100"
  970. },
  971. {
  972. "@name": "flare",
  973. "@enabled": "false",
  974. "@distorted": "get:lensflares[obj].webvr_enabled",
  975. "@edge": "center",
  976. "@ox": "0",
  977. "@oy": "0",
  978. "@width": "440",
  979. "@height": "440",
  980. "@keep": "false"
  981. }
  982. ],
  983. "events": {
  984. "@name": "loasflares",
  985. "@keep": "true",
  986. "@onpreviewcomplete": "load_flare_content()"
  987. },
  988. "flare_style": [
  989. {
  990. "item": [
  991. {
  992. "@name": "flare1",
  993. "@url": "https://ssl-player2.720static.com/api/lensflare/flare7.png",
  994. "@move": "0",
  995. "@scale": "1.0",
  996. "@alpha": "1.0",
  997. "@zorder": "-1"
  998. },
  999. {
  1000. "@name": "flare2",
  1001. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1002. "@move": "0",
  1003. "@scale": "6.0",
  1004. "@alpha": "0.0",
  1005. "@zorder": "2"
  1006. },
  1007. {
  1008. "@name": "flare3",
  1009. "@url": "https://ssl-player2.720static.com/api/lensflare/flare2.png",
  1010. "@move": "-6",
  1011. "@scale": "0.2",
  1012. "@alpha": "0.2",
  1013. "@zorder": "-1"
  1014. },
  1015. {
  1016. "@name": "flare4",
  1017. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1018. "@move": "-3",
  1019. "@scale": "0.3",
  1020. "@alpha": "0.4",
  1021. "@zorder": "-1"
  1022. },
  1023. {
  1024. "@name": "flare5",
  1025. "@url": "https://ssl-player2.720static.com/api/lensflare/flare8.png",
  1026. "@move": "-0.8",
  1027. "@scale": "0.3",
  1028. "@alpha": "0.6",
  1029. "@zorder": "-1"
  1030. },
  1031. {
  1032. "@name": "flare6",
  1033. "@url": "https://ssl-player2.720static.com/api/lensflare/flare8.png",
  1034. "@move": "-0.3",
  1035. "@scale": "0.2",
  1036. "@alpha": "0.7",
  1037. "@zorder": "-1"
  1038. },
  1039. {
  1040. "@name": "flare7",
  1041. "@url": "https://ssl-player2.720static.com/api/lensflare/flare4.png",
  1042. "@move": "7",
  1043. "@scale": "0.8",
  1044. "@alpha": "0.2",
  1045. "@zorder": "-1"
  1046. }
  1047. ],
  1048. "@name": "blinkstyle1"
  1049. },
  1050. {
  1051. "item": [
  1052. {
  1053. "@name": "flare1",
  1054. "@url": "https://ssl-player2.720static.com/api/lensflare/flare7.png",
  1055. "@move": "0",
  1056. "@scale": "1.0",
  1057. "@alpha": "1.0",
  1058. "@zorder": "-1"
  1059. },
  1060. {
  1061. "@name": "flare2",
  1062. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1063. "@move": "0",
  1064. "@scale": "6.0",
  1065. "@alpha": "0.0",
  1066. "@zorder": "2"
  1067. },
  1068. {
  1069. "@name": "flare3",
  1070. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1071. "@move": "-5",
  1072. "@scale": "0.2",
  1073. "@alpha": "0.3",
  1074. "@zorder": "-1"
  1075. },
  1076. {
  1077. "@name": "flare4",
  1078. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1079. "@move": "-2",
  1080. "@scale": "0.1",
  1081. "@alpha": "0.6",
  1082. "@zorder": "-1"
  1083. },
  1084. {
  1085. "@name": "flare5",
  1086. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1087. "@move": "-1.5",
  1088. "@scale": "0.1",
  1089. "@alpha": "0.4",
  1090. "@zorder": "-1"
  1091. },
  1092. {
  1093. "@name": "flare6",
  1094. "@url": "https://ssl-player2.720static.com/api/lensflare/flare4.png",
  1095. "@move": "-0.7",
  1096. "@scale": "0.8",
  1097. "@alpha": "0.2",
  1098. "@zorder": "-1"
  1099. }
  1100. ],
  1101. "@name": "blinkstyle2"
  1102. },
  1103. {
  1104. "item": [
  1105. {
  1106. "@name": "flare1",
  1107. "@url": "https://ssl-player2.720static.com/api/lensflare/flare7.png",
  1108. "@move": "0",
  1109. "@scale": "1.0",
  1110. "@alpha": "1.0",
  1111. "@zorder": "-1"
  1112. },
  1113. {
  1114. "@name": "flare2",
  1115. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1116. "@move": "0",
  1117. "@scale": "6.0",
  1118. "@alpha": "0.0",
  1119. "@zorder": "2"
  1120. },
  1121. {
  1122. "@name": "flare3",
  1123. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1124. "@move": "-4",
  1125. "@scale": "0.2",
  1126. "@alpha": "0.3",
  1127. "@zorder": "-1"
  1128. },
  1129. {
  1130. "@name": "flare4",
  1131. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1132. "@move": "-2",
  1133. "@scale": "0.1",
  1134. "@alpha": "0.6",
  1135. "@zorder": "-1"
  1136. },
  1137. {
  1138. "@name": "flare5",
  1139. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1140. "@move": "-1.5",
  1141. "@scale": "0.1",
  1142. "@alpha": "0.4",
  1143. "@zorder": "-1"
  1144. }
  1145. ],
  1146. "@name": "blinkstyle3"
  1147. },
  1148. {
  1149. "item": [
  1150. {
  1151. "@name": "flare1",
  1152. "@url": "https://ssl-player2.720static.com/api/lensflare/flare7.png",
  1153. "@move": "0",
  1154. "@scale": "1.0",
  1155. "@alpha": "1.0",
  1156. "@zorder": "-1"
  1157. },
  1158. {
  1159. "@name": "flare2",
  1160. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1161. "@move": "0",
  1162. "@scale": "6.0",
  1163. "@alpha": "0.0",
  1164. "@zorder": "2"
  1165. },
  1166. {
  1167. "@name": "flare3",
  1168. "@url": "https://ssl-player2.720static.com/api/lensflare/flare4.png",
  1169. "@move": "7",
  1170. "@scale": "0.8",
  1171. "@alpha": "0.3",
  1172. "@zorder": "-1"
  1173. },
  1174. {
  1175. "@name": "flare4",
  1176. "@url": "https://ssl-player2.720static.com/api/lensflare/flare1.png",
  1177. "@move": "0",
  1178. "@scale": "1",
  1179. "@alpha": "1",
  1180. "@zorder": "-1"
  1181. },
  1182. {
  1183. "@name": "flare5",
  1184. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1185. "@move": "-2.5",
  1186. "@scale": "0.1",
  1187. "@alpha": "0.4",
  1188. "@zorder": "-1"
  1189. }
  1190. ],
  1191. "@name": "blinkstyle4"
  1192. },
  1193. {
  1194. "item": [
  1195. {
  1196. "@name": "flare1",
  1197. "@url": "https://ssl-player2.720static.com/api/lensflare/flare1.png",
  1198. "@move": "0",
  1199. "@scale": "1.0",
  1200. "@alpha": "1.0",
  1201. "@zorder": "-1"
  1202. },
  1203. {
  1204. "@name": "flare2",
  1205. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1206. "@move": "0",
  1207. "@scale": "6.0",
  1208. "@alpha": "0.0",
  1209. "@zorder": "2"
  1210. },
  1211. {
  1212. "@name": "flare3",
  1213. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1214. "@move": "-6",
  1215. "@scale": "0.2",
  1216. "@alpha": "0.3",
  1217. "@zorder": "1"
  1218. },
  1219. {
  1220. "@name": "flare4",
  1221. "@url": "https://ssl-player2.720static.com/api/lensflare/flare4.png",
  1222. "@move": "-3",
  1223. "@scale": "0.4",
  1224. "@alpha": "0.5",
  1225. "@zorder": "1"
  1226. },
  1227. {
  1228. "@name": "flare5",
  1229. "@url": "https://ssl-player2.720static.com/api/lensflare/flare8.png",
  1230. "@move": "-2.5",
  1231. "@scale": "0.1",
  1232. "@alpha": "0.4",
  1233. "@zorder": "1"
  1234. }
  1235. ],
  1236. "@name": "blinkstyle5"
  1237. },
  1238. {
  1239. "item": [
  1240. {
  1241. "@name": "flare1",
  1242. "@url": "https://ssl-player2.720static.com/api/lensflare/flare7.png",
  1243. "@move": "0",
  1244. "@scale": "0.5",
  1245. "@alpha": "1.0",
  1246. "@zorder": "-1"
  1247. },
  1248. {
  1249. "@name": "flare2",
  1250. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1251. "@move": "0",
  1252. "@scale": "6.0",
  1253. "@alpha": "0.0",
  1254. "@zorder": "2"
  1255. },
  1256. {
  1257. "@name": "flare3",
  1258. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1259. "@move": "-4",
  1260. "@scale": "0.1",
  1261. "@alpha": "0.4",
  1262. "@zorder": "-1"
  1263. },
  1264. {
  1265. "@name": "flare4",
  1266. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1267. "@move": "-2",
  1268. "@scale": "0.1",
  1269. "@alpha": "0.4",
  1270. "@zorder": "-1"
  1271. },
  1272. {
  1273. "@name": "flare5",
  1274. "@url": "https://ssl-player2.720static.com/api/lensflare/flare2.png",
  1275. "@move": "-1.5",
  1276. "@scale": "0.1",
  1277. "@alpha": "0.4",
  1278. "@zorder": "-1"
  1279. },
  1280. {
  1281. "@name": "flare6",
  1282. "@url": "https://ssl-player2.720static.com/api/lensflare/flare8.png",
  1283. "@move": "-1.0",
  1284. "@scale": "0.08",
  1285. "@alpha": "0.4",
  1286. "@zorder": "-1"
  1287. }
  1288. ],
  1289. "@name": "blinkstyle6"
  1290. },
  1291. {
  1292. "item": [
  1293. {
  1294. "@name": "flare1",
  1295. "@url": "https://ssl-player2.720static.com/api/lensflare/flare1.png",
  1296. "@move": "0",
  1297. "@scale": "1.0",
  1298. "@alpha": "1.0",
  1299. "@zorder": "2"
  1300. },
  1301. {
  1302. "@name": "flare2",
  1303. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1304. "@move": "0",
  1305. "@scale": "6.0",
  1306. "@alpha": "0.0",
  1307. "@zorder": "3"
  1308. },
  1309. {
  1310. "@name": "flare3",
  1311. "@url": "https://ssl-player2.720static.com/api/lensflare/flare8.png",
  1312. "@move": "-6",
  1313. "@scale": "0.2",
  1314. "@alpha": "0.2",
  1315. "@zorder": "2"
  1316. },
  1317. {
  1318. "@name": "flare4",
  1319. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1320. "@move": "-3",
  1321. "@scale": "0.3",
  1322. "@alpha": "0.2",
  1323. "@zorder": "2"
  1324. },
  1325. {
  1326. "@name": "flare5",
  1327. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1328. "@move": "-0.8",
  1329. "@scale": "0.2",
  1330. "@alpha": "0.6",
  1331. "@zorder": "2"
  1332. },
  1333. {
  1334. "@name": "flare6",
  1335. "@url": "https://ssl-player2.720static.com/api/lensflare/flare3.png",
  1336. "@move": "6",
  1337. "@scale": "0.6",
  1338. "@alpha": "0.1",
  1339. "@zorder": "1"
  1340. },
  1341. {
  1342. "@name": "flare7",
  1343. "@url": "https://ssl-player2.720static.com/api/lensflare/flare4.png",
  1344. "@move": "9",
  1345. "@scale": "0.8",
  1346. "@alpha": "0.2",
  1347. "@zorder": "1"
  1348. }
  1349. ],
  1350. "@name": "blinkstyle7"
  1351. },
  1352. {
  1353. "item": [
  1354. {
  1355. "@name": "flare1",
  1356. "@url": "https://ssl-player2.720static.com/api/lensflare/flare7.png",
  1357. "@move": "0",
  1358. "@scale": "0.7",
  1359. "@alpha": "1.0",
  1360. "@zorder": "-1"
  1361. },
  1362. {
  1363. "@name": "flare2",
  1364. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1365. "@move": "0",
  1366. "@scale": "6.0",
  1367. "@alpha": "0.0",
  1368. "@zorder": "2"
  1369. },
  1370. {
  1371. "@name": "flare3",
  1372. "@url": "https://ssl-player2.720static.com/api/lensflare/flare2.png",
  1373. "@move": "-4",
  1374. "@scale": "0.2",
  1375. "@alpha": "0.4",
  1376. "@zorder": "-1"
  1377. },
  1378. {
  1379. "@name": "flare4",
  1380. "@url": "https://ssl-player2.720static.com/api/lensflare/flare3.png",
  1381. "@move": "-3.5",
  1382. "@scale": "0.3",
  1383. "@alpha": "0.2",
  1384. "@zorder": "-1"
  1385. },
  1386. {
  1387. "@name": "flare5",
  1388. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1389. "@move": "-2.8",
  1390. "@scale": "0.2",
  1391. "@alpha": "0.1",
  1392. "@zorder": "-1"
  1393. },
  1394. {
  1395. "@name": "flare6",
  1396. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1397. "@move": "-1.5",
  1398. "@scale": "0.1",
  1399. "@alpha": "0.5",
  1400. "@zorder": "-1"
  1401. },
  1402. {
  1403. "@name": "flare7",
  1404. "@url": "https://ssl-player2.720static.com/api/lensflare/flare4.png",
  1405. "@move": "-1",
  1406. "@scale": "0.8",
  1407. "@alpha": "0.2",
  1408. "@zorder": "-1"
  1409. }
  1410. ],
  1411. "@name": "blinkstyle8"
  1412. },
  1413. {
  1414. "item": [
  1415. {
  1416. "@name": "flare1",
  1417. "@url": "https://ssl-player2.720static.com/api/lensflare/flare1.png",
  1418. "@move": "0",
  1419. "@scale": "0.3",
  1420. "@alpha": "1.0",
  1421. "@zorder": "-1"
  1422. },
  1423. {
  1424. "@name": "flare2",
  1425. "@url": "https://ssl-player2.720static.com/api/lensflare/flare5.png",
  1426. "@move": "0",
  1427. "@scale": "0.1",
  1428. "@alpha": "0.0",
  1429. "@zorder": "2"
  1430. },
  1431. {
  1432. "@name": "flare3",
  1433. "@url": "https://ssl-player2.720static.com/api/lensflare/flare6.png",
  1434. "@move": "-6",
  1435. "@scale": "0.03",
  1436. "@alpha": "0.4",
  1437. "@zorder": "-1"
  1438. }
  1439. ],
  1440. "@name": "blinkstyle9"
  1441. }
  1442. ],
  1443. "action": [
  1444. "if(!first_flare_settings,
  1445. copy(suma_flar, lensflares[obj].item.count);
  1446. set(first_flare_settings, true);
  1447. );
  1448. if (lensflares[obj].item.count GT 0 OR addflaremode == true,
  1449. flayer(blink_fl_lt, blink_fl_lt);
  1450. flayer(blink_fl_rt, blink_fl_rt);
  1451. flayer(blink_fl_rb, blink_fl_rb);
  1452. flayer(blink_fl_lb, blink_fl_lb);
  1453. );
  1454. set(load_gui_flar, false);
  1455. for (set(i, 0), i LT lensflares[obj].item.count, inc(i),
  1456. copy(name_flare, lensflares[obj].item[get(i)].name);
  1457. copy(blink_style, lensflares[obj].item[get(i)].typ);
  1458. if (lensflares[obj].item[get(i)].scene == xml.scene,
  1459. set(load_gui_flar, true);
  1460. for (set(j, 0), j LT flare_style[get(blink_style)].item.count, inc(j),
  1461. txtadd(n, 'f1_', get(lensflares[obj].item[get(i)].name), '_', get(j));
  1462. 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));
  1463. );
  1464. );
  1465. );
  1466. if (addflaremode,
  1467. show_lensfrafe_aktyw_box(get(xml.scene), get(load_gui_flar));
  1468. ) ",
  1469. "fhotspot(%1,flare);
  1470. copy(h.url, flare_style[% 4].item[% 3].url);
  1471. copy(h.ath, lensflares[obj].item[% 5].ath);
  1472. copy(h.atv, lensflares[obj].item[% 5].atv);
  1473. if (lensflares[obj].item[% 5].dust_effect === null, set(lensflares[obj].item[% 5].dust_effect, true));
  1474. copy(h.dust_effect, lensflares[obj].item[% 5].dust_effect);
  1475. set(h.tagmini, % 5);
  1476. copy(h.scale, flare_style[% 4].item[% 3].scale);
  1477. copy(h.alpha, flare_style[% 4].item[% 3].alpha);
  1478. copy(h.zorder, flare_style[% 4].item[% 3].zorder);
  1479. set(h.onloaded,
  1480. asyncloop(loaded,
  1481. spheretoscreen(ath, atv, xposh_ % 1, yposh_ % 1);
  1482. div(xpos_ % 1, stagewidth, 2);
  1483. div(ypos_ % 1, stageheight, 2);
  1484. sub(xposg_ % 1, xposh_ % 1, xpos_ % 1);
  1485. sub(yposg_ % 1, yposh_ % 1, ypos_ % 1);
  1486. div(ox, xposg_ % 1, % 6);
  1487. div(oy, yposg_ % 1, % 6);
  1488. if (% 3 == '1',
  1489. getlooktodistance(result_ % 1, view.hlookat, view.vlookat, ath, atv);
  1490. div(result1_ % 1, result_ % 1, 10);
  1491. clamp(result1_ % 1, 0.0, 1.0);
  1492. mod(result2_ % 1, result1_ % 1, 100);
  1493. sub(result2_ % 1, 1);
  1494. mul(result2_ % 1, -1);
  1495. copy(alpha, result2_ % 1);
  1496. sub(alpha, 0.3);
  1497. if ('%4' != 'blinkstyle9',
  1498. if (result_ % 1 LT 7,
  1499. migaj_kurzem(get(result2_ % 1), get(dust_effect));
  1500. );
  1501. if (result_ % 1 GT 7 AND result_ % 1 LT 20,
  1502. migaj_kurzem(0, true);
  1503. );
  1504. );
  1505. );
  1506. testme(% 1, get(xposh_ % 1), get(yposh_ % 1));
  1507. );
  1508. ); ",
  1509. "if(%2,
  1510. set(layer[blink_fl_lt].alpha, % 1);
  1511. set(layer[blink_fl_rt].alpha, % 1);
  1512. set(layer[blink_fl_rb].alpha, % 1);
  1513. set(layer[blink_fl_lb].alpha, % 1);
  1514. set(layer[blink_fl_ce].alpha, % 1);
  1515. ); ",
  1516. "if(%3 LT 0 OR !%3,
  1517. set(ukryj_gora_ % 1, true);
  1518. ,
  1519. set(ukryj_gora_ % 1, false);
  1520. );
  1521. if (% 3 GT stageheight OR! % 3,
  1522. set(ukryj_dol_ % 1, true);
  1523. ,
  1524. set(ukryj_dol_ % 1, false);
  1525. );
  1526. if (% 2 LT 0 OR! % 2,
  1527. set(ukryj_lewo_ % 1, true);
  1528. ,
  1529. set(ukryj_lewo_ % 1, false);
  1530. );
  1531. if (% 2 GT stagewidth OR! % 2,
  1532. set(ukryj_prawo_ % 1, true);
  1533. ,
  1534. set(ukryj_prawo_ % 1, false);
  1535. );
  1536. if (!ukryj_gora_ % 1 AND!ukryj_dol_ % 1 AND!ukryj_lewo_ % 1 AND!ukryj_prawo_ % 1,
  1537. set(visible, true);
  1538. ,
  1539. set(visible, false);
  1540. ); ",
  1541. {
  1542. "@name": "reset_pano_lensflare"
  1543. },
  1544. "addlayer(%1);
  1545. layer[% 1].loadstyle(% 2);
  1546. copy(p, layer[% 1]); ",
  1547. "addhotspot(%1);
  1548. hotspot[% 1].loadstyle(% 2);
  1549. copy(h, hotspot[% 1]); ",
  1550. "if(layer[%1].loaded, removelayer(%1));",
  1551. "if(hotspot[%1].loaded, removehotspot(%1));",
  1552. "sub(i,hotspot.count,1);
  1553. if (i GE 0, loop_vonh_all(get(i),% 1,% 2)); ",
  1554. "if(%2 == null,
  1555. vonh(% 1);
  1556. ,
  1557. if (hotspot[% 1].% 2 == % 3,
  1558. vonh(% 1);
  1559. );
  1560. );
  1561. dec(i);
  1562. if (i GE 0, loop_vonh_all(get(i),% 2,% 3)); "
  1563. ],
  1564. "@licznik": "0",
  1565. "@webvr_enabled": "false",
  1566. "@x_listflar": "0",
  1567. "@y_listflar": "160"
  1568. },
  1569. {
  1570. "style": [
  1571. {
  1572. "@name": "skin_style",
  1573. "@url": "calc:settings.root_url + '/krp/skin/skin_v10.png'"
  1574. },
  1575. {
  1576. "@name": "vr_cursor_style",
  1577. "@url": "calc:settings.skin_url + 'skin/webvr_cursor_80x80_17f.png'",
  1578. "@visible": "false",
  1579. "@enabled": "false",
  1580. "@distorted": "true",
  1581. "@crop": "0|0|80|80",
  1582. "@scale": "0.3",
  1583. "@depth": "120"
  1584. },
  1585. {
  1586. "@name": "vrcontroller_laser",
  1587. "@url": "calc:settings.skin_url + 'skin/webvr_laser.png'",
  1588. "@distorted": "true",
  1589. "@enabled": "false",
  1590. "@visible": "false",
  1591. "@width": "0.5",
  1592. "@height": "1000",
  1593. "@edge": "bottom",
  1594. "@oref": "1",
  1595. "@oy": "0",
  1596. "@torigin": "world",
  1597. "@tx": "0",
  1598. "@ty": "0",
  1599. "@tz": "0",
  1600. "@depth": "0",
  1601. "@zorder": "99999",
  1602. "@depthbuffer": "true",
  1603. "@onloaded": "asyncloop(loaded, calc(height, (target AND target.hitd GT 0 ? target.hitd : 1000) / display.hotspotworldscale); );"
  1604. },
  1605. {
  1606. "@name": "vrcontroller_light_and_point",
  1607. "@url": "calc:settings.skin_url + 'skin/webvr_light.png'",
  1608. "@distorted": "true",
  1609. "@enabled": "false",
  1610. "@visible": "false",
  1611. "@width": "0.5",
  1612. "@height": "18",
  1613. "@edge": "bottom",
  1614. "@oref": "1",
  1615. "@oy": "0",
  1616. "@torigin": "world",
  1617. "@tx": "0",
  1618. "@ty": "0",
  1619. "@tz": "0",
  1620. "@depth": "0",
  1621. "@zorder": "99999",
  1622. "@depthbuffer": "true",
  1623. "@onloaded": "vrcontroller_target_point();"
  1624. },
  1625. {
  1626. "@name": "vrcontroller_handcursor_and_point",
  1627. "@url": "calc:settings.skin_url + 'skin/webvr_handcursor.png'",
  1628. "@distorted": "true",
  1629. "@enabled": "false",
  1630. "@visible": "false",
  1631. "@width": "10",
  1632. "@height": "10",
  1633. "@edge": "center",
  1634. "@oref": "1",
  1635. "@oy": "-1",
  1636. "@torigin": "world",
  1637. "@tx": "0",
  1638. "@ty": "0",
  1639. "@tz": "0",
  1640. "@depth": "0",
  1641. "@zorder": "99999",
  1642. "@depthbuffer": "true",
  1643. "@onloaded": "vrcontroller_target_point();"
  1644. },
  1645. {
  1646. "@name": "webvr_button_style",
  1647. "@type": "text",
  1648. "@bgcolor": "0x000000",
  1649. "@bgalpha": "0.5",
  1650. "@bgroundedge": "0",
  1651. "@css": "calc:'color:#FFFFFF;font-size:' + 20*webvr_setup_scale*webvr_button_scale + 'px;'",
  1652. "@padding": "calc:6*webvr_setup_scale*webvr_button_scale + ' ' + 10*webvr_setup_scale*webvr_button_scale"
  1653. }
  1654. ],
  1655. "control": {
  1656. "@mouse": "moveto",
  1657. "@keycodesin": "16,65,107",
  1658. "@keycodesout": "17,89,90,109",
  1659. "@bouncinglimits": "true"
  1660. },
  1661. "settings": {
  1662. "@root_url": "https://ssl-player2.720static.com/krp/%$playerDomain%",
  1663. "@base_url": "%HTMLPATH%/%$playerDomain%/krp/1.20.7/",
  1664. "@skin_url": "%HTMLPATH%/%$playerDomain%/krp/1.19-pr16/",
  1665. "@domain": "%HTMLPATH%/%$playerDomain%/",
  1666. "@first_pano_inited": "false",
  1667. "@client": "false",
  1668. "@sound_play_id": "play_sound_id",
  1669. "@sound_playing": "false",
  1670. "@sound_on": "true",
  1671. "@voice_play_id": "play_voice_id",
  1672. "@voice_playing": "false",
  1673. "@voice_on": "true",
  1674. "@bottom_right_btn_width": "55",
  1675. "@menu_btn_width": "70",
  1676. "@pano_thumbs_width": "80",
  1677. "@pano_thumbs_height": "80",
  1678. "@pano_thumbs_padding_v": "10",
  1679. "@pano_thumbs_padding_h": "20",
  1680. "@category_thumbs_width": "100",
  1681. "@category_thumbs_height": "100",
  1682. "@category_thumbs_padding_v": "10",
  1683. "@category_thumbs_padding_h": "30",
  1684. "@category_thumbs_bg_crop": "0|0|218|218",
  1685. "@category_thumbs_bg_crop_selected": "218|241|218|218",
  1686. "@thumb_btn_url": "calc:settings.skin_url + 'system/piclist.png'",
  1687. "@start_image_desktop": "calc:settings.skin_url + 'skin/mouseAlert.png'",
  1688. "@start_image_mobile": "calc:settings.skin_url + 'skin/touchAlert.png'",
  1689. "@circle_mask": "calc:settings.skin_url + 'skin/ground-logo.png'",
  1690. "@rain_image": "calc: settings.skin_url + 'skin/rain.png'",
  1691. "@snow_image": "calc: settings.skin_url + 'skin/snow.png'",
  1692. "@map_zoom_image": "calc:settings.skin_url + 'skin/mapZoom.png'",
  1693. "@close_image": "calc:settings.skin_url + 'skin/close.png'",
  1694. "@embed_txt_image": "calc:settings.skin_url + 'skin/embed_txt_bg.png'",
  1695. "@embed_line_image": "calc:settings.domain + 'krp/embed.png'",
  1696. "@embed_txt_colored_image": "calc:settings.skin_url + 'skin/hotspot_txt_arrow_color.png'",
  1697. "@weather_image_1": "calc:settings.skin_url + 'skin/hongbao.png'",
  1698. "@weather_image_2": "calc:settings.skin_url + 'skin/hongbao1.png'",
  1699. "@weather_image_3": "calc:settings.skin_url + 'skin/hongbao2.png'",
  1700. "@comment_add_head_bg_image": "calc:settings.skin_url + 'skin/comment_add_head_bg.png'",
  1701. "@comment_edit_line_image": "calc:settings.skin_url + 'skin/editLine.png'",
  1702. "@comment_edit_bg_image": "calc:settings.skin_url + 'skin/editBg.png'",
  1703. "@custom_weather_image_4": "calc:settings.skin_url + 'skin/hongbao.png'",
  1704. "@custom_weather_image_5": "calc:settings.skin_url + 'skin/hongbao1.png'",
  1705. "@custom_weather_image_6": "calc:settings.skin_url + 'skin/hongbao2.png'",
  1706. "@feipai_logo_url": "calc:settings.skin_url + 'source/720_feipai.png'",
  1707. "@blank_music_url": "calc:settings.root_url + '/krp/music/blank.mp3'"
  1708. },
  1709. "plugin_url": {
  1710. "@TEXT_SWF": "calc:settings.base_url + 'plugins/textfield.swf'",
  1711. "@GYRO": "calc:settings.base_url + 'plugins/gyro2.js'",
  1712. "@SOUND_SWF": "calc:settings.base_url + 'plugins/soundinterface.swf'",
  1713. "@SOUND_JS": "calc:settings.skin_url + 'plugins/soundinterface.js'",
  1714. "@SCROLL_SWF": "calc:settings.base_url + 'plugins/scrollarea.swf'",
  1715. "@SCROLL_JS": "calc:settings.base_url + 'plugins/scrollarea.js'",
  1716. "@RADAR_SWF": "calc:settings.base_url + 'plugins/radar.swf'",
  1717. "@RADAR_JS": "calc:settings.base_url + 'plugins/radar.js'",
  1718. "@SNOW_SWF": "calc:settings.base_url + 'plugins/snow.swf'",
  1719. "@SNOW_JS": "calc:settings.base_url + 'plugins/snow.js'",
  1720. "@PLUGINS_SUN_IMAGE": "calc:settings.base_url + 'plugins/lensflareset/lensflares.jpg'",
  1721. "@WEBVR_JS": "calc:settings.base_url + 'plugins/webvr.js'",
  1722. "@WEBVR_XML": "calc:settings.base_url + 'plugins/webvr.xml'",
  1723. "@VIDEO_JS": "calc:settings.base_url + 'plugins/krp_video_player_4_pich.js'",
  1724. "@TWEENTYPES_JS": "calc:settings.base_url + 'plugins/moretweentypes.js'"
  1725. },
  1726. "plugin": [
  1727. {
  1728. "@url": "calc:plugin_url.TWEENTYPES_JS",
  1729. "@preload": "true"
  1730. },
  1731. {
  1732. "@name": "gyro_plugin",
  1733. "@keep": "true",
  1734. "@url": "",
  1735. "@devices": "html5",
  1736. "@enabled": "false"
  1737. },
  1738. {
  1739. "@name": "webvr",
  1740. "@devices": "html5",
  1741. "@keep": "true",
  1742. "@url": "",
  1743. "@mobilevr_support": "true",
  1744. "@mobilevr_touch_support": "true",
  1745. "@mobilevr_fake_support": "true",
  1746. "@mobilevr_profile.normal": "90|60|42|0|0|0",
  1747. "@mobilevr_profile.mobile": "80|60|42|35|0.441|0.156",
  1748. "@mobilevr_wakelock": "true",
  1749. "@fullscreen_mirroring": "false",
  1750. "@mouse_pointerlock": "true",
  1751. "@vr_cursor_onover": "if(handcursor, tween(hotspot[vr_cursor].scale,0.4,0.1); vr_auto_click(get(vr_timeout)); );",
  1752. "@vr_cursor_onout": "tween(hotspot[vr_cursor].scale,0.3,0.1);",
  1753. "@onavailable": "webvr_onavailable();",
  1754. "@onunavailable": "",
  1755. "@onunknowndevice": "webvr_onunknowndevice();",
  1756. "@onvrcontrollers": "webvr_onvrcontrollers();",
  1757. "@onentervr": "webvr_onentervr();",
  1758. "@onexitvr": "webvr_onexitvr();",
  1759. "@onloaded": "copy(webvr, plugin[WebVR]);"
  1760. }
  1761. ],
  1762. "blendmodes": [
  1763. {
  1764. "@name": "blend0",
  1765. "@blend": "OPENBLEND(0.5, 0.0, 0.75, 0.05, linear)"
  1766. },
  1767. {
  1768. "@name": "blend1",
  1769. "@blend": "ZOOMBLEND(2.0, 2.0, easeInOutSine)"
  1770. },
  1771. {
  1772. "@name": "blend2",
  1773. "@blend": "COLORBLEND(2.0, 0x000000, easeOutSine)"
  1774. },
  1775. {
  1776. "@name": "blend3",
  1777. "@blend": "LIGHTBLEND(1.0, 0xFFFFFF, 2.0, linear)"
  1778. },
  1779. {
  1780. "@name": "blend4",
  1781. "@blend": "SLIDEBLEND(1.0, 0.0, 0.2, linear)"
  1782. },
  1783. {
  1784. "@name": "blend5",
  1785. "@blend": "SLIDEBLEND(1.0, 135.0, 0.4, linear)"
  1786. },
  1787. {
  1788. "@name": "blend6",
  1789. "@blend": "OPENBLEND(1.0, 0.0, 0.2, 0.0, linear)"
  1790. },
  1791. {
  1792. "@name": "blend7",
  1793. "@blend": "OPENBLEND(1.0, -1.0, 0.3, 0.0, linear)"
  1794. },
  1795. {
  1796. "@name": "blend8",
  1797. "@blend": "OPENBLEND(1.0, -0.5, 0.3, 0.8, linear)"
  1798. }
  1799. ],
  1800. "action": [
  1801. "set(showtext, action(showtext_xml,%%1,%%2) );
  1802. set(showtext_style, DEFAULT);
  1803. set(showtext_prevstyle, null);
  1804. set(showtext_text, '');
  1805. set(showtext_prevtext, '');
  1806. set(showtext_timeout, 0.1);
  1807. set(showtext_fadeout, 0.0);
  1808. set(showtext_clipping, false); ",
  1809. "set(showtext_style, DEFAULT);
  1810. if (% 2 != null, ifnot(textstyle[% 2], trace('textstyle "%2" not found'); , set(showtext_style,% 2)); );
  1811. set(showtext_text, % 1);
  1812. if (showtext_text != showtext_prevtext,
  1813. copy(showtext_prevtext, showtext_text);
  1814. showtext_createnewtext();
  1815. ,
  1816. delayedcall(showtext_timer, get(showtext_timeout), showtext_hide());
  1817. ); ",
  1818. "stopdelayedcall(showtext_mouseupdates);
  1819. stoptween(layer[showtext_tf].alpha);
  1820. if (showtext_style != showtext_prevstyle,
  1821. copy(showtext_prevstyle, showtext_style);
  1822. removelayer(showtext_tf);
  1823. );
  1824. addlayer(showtext_tf);
  1825. copy(tf, layer[showtext_tf]);
  1826. copy(ts, textstyle[get(showtext_style)]);
  1827. if (ts.origin !== null, copy(ts_origin, ts.origin), set(ts_origin, 'cursor'));
  1828. if (ts.edge !== null, copy(ts_edge, ts.edge), set(ts_edge, 'bottom'));
  1829. if (ts.xoffset !== null, copy(ts_xoffset, ts.xoffset), set(ts_xoffset, 0));
  1830. if (ts.yoffset !== null, copy(ts_yoffset, ts.yoffset), set(ts_yoffset, -3));
  1831. if (ts_origin == 'cursor',
  1832. set(tf.align, 'lefttop');
  1833. showtext_movetomouse();
  1834. ,
  1835. copy(tf.align, ts_origin);
  1836. );
  1837. copy(tf.edge, ts_edge);
  1838. copy(tf.ox, ts_xoffset);
  1839. copy(tf.oy, ts_yoffset);
  1840. if (ts.font !== null, copy(ts_font, ts.font), set(ts_font, 'Times'));
  1841. if (ts.fontsize !== null, copy(ts_fontsize, ts.fontsize), set(ts_fontsize, 12.0));
  1842. if (ts.bold !== null, copy(ts_bold, ts.bold), set(ts_bold, true));
  1843. if (ts.italic !== null, copy(ts_italic, ts.italic), set(ts_italic, false));
  1844. if (ts.textcolor !== null, copy(ts_textcolor, ts.textcolor), set(ts_textcolor, 0x000000));
  1845. if (ts.textalign !== null, copy(ts_textalign, ts.textalign), set(ts_textalign, 'left'));
  1846. set(tf_css, '');
  1847. tohex(ts_textcolor, '#', 6);
  1848. txtadd(tf_css, 'font-family:', get(ts_font), '; font-size:', get(ts_fontsize), 'px; color:', get(ts_textcolor), '; ');
  1849. if (ts_textalign != 'none', txtadd(tf_css, get(tf_css), 'text-align:', get(ts_textalign), '; '));
  1850. if (ts_bold, txtadd(tf_css, 'font-weight:bold; '));
  1851. if (ts_italic, txtadd(tf_css, 'font-style:italic; '));
  1852. if (ts.css !== null, txtadd(tf_css, get(ts.css)));
  1853. copy(tf.css, tf_css);
  1854. if (ts.width !== null, copy(tf.width, ts.width));
  1855. if (ts.height !== null, copy(tf.height, ts.height));
  1856. if (ts.vcenter !== null, copy(tf.vcenter, ts.vcenter));
  1857. if (ts.padding !== null, copy(tf.padding, ts.padding), set(tf.padding, 1));
  1858. if (ts.background !== null, copy(tf.background, ts.background));
  1859. if (ts.backgroundcolor !== null, copy(tf.backgroundcolor, ts.backgroundcolor));
  1860. if (ts.backgroundalpha !== null, copy(tf.backgroundalpha, ts.backgroundalpha));
  1861. if (ts.border !== null, copy(tf.border, ts.border), set(tf.border, true));
  1862. if (ts.bordercolor !== null, copy(tf.bordercolor, ts.bordercolor));
  1863. if (ts.borderalpha !== null, copy(tf.borderalpha, ts.borderalpha));
  1864. if (ts.borderwidth !== null, copy(tf.borderwidth, ts.borderwidth));
  1865. if (ts.roundedge !== null, copy(tf.roundedge, ts.roundedge));
  1866. if (ts.shadow !== null, copy(tf.shadow, ts.shadow));
  1867. if (ts.shadowrange !== null, copy(tf.shadowrange, ts.shadowrange));
  1868. if (ts.shadowangle !== null, copy(tf.shadowangle, ts.shadowangle));
  1869. if (ts.shadowcolor !== null, copy(tf.shadowcolor, ts.shadowcolor));
  1870. if (ts.shadowalpha !== null, copy(tf.shadowalpha, ts.shadowalpha));
  1871. if (ts.textshadow !== null, copy(tf.textshadow, ts.textshadow));
  1872. if (ts.textshadowrange !== null, copy(tf.textshadowrange, ts.textshadowrange));
  1873. if (ts.textshadowangle !== null, copy(tf.textshadowangle, ts.textshadowangle));
  1874. if (ts.textshadowcolor !== null, copy(tf.textshadowcolor, ts.textshadowcolor));
  1875. if (ts.textshadowalpha !== null, copy(tf.textshadowalpha, ts.textshadowalpha));
  1876. if (ts.alpha !== null, copy(ts_alpha, ts.alpha), set(ts_alpha, 1.0));
  1877. if (ts.showtime !== null, copy(ts_showtime, ts.showtime), set(ts_showtime, 0.1));
  1878. if (ts.fadetime !== null, copy(ts_fadetime, ts.fadetime), set(ts_fadetime, 0.0));
  1879. if (ts.fadeintime !== null, copy(ts_fadeintime, ts.fadeintime), set(ts_fadeintime, 0.0));
  1880. copy(showtext_timeout, ts_showtime);
  1881. copy(showtext_fadeout, ts_fadetime);
  1882. if (ts_fadeintime GT 0,
  1883. set(tf.alpha, 0.0);
  1884. tween(layer[showtext_tf].alpha, get(ts_alpha), get(ts_fadeintime), linear);
  1885. ,
  1886. copy(tf.alpha, ts_alpha);
  1887. );
  1888. if (ts.noclip !== null, copy(showtext_clipping, ts.noclip), set(showtext_clipping, true));
  1889. if (showtext_clipping,
  1890. set(tf.onloaded, showtext_do_clipping());
  1891. set(tf.onautosized, showtext_do_clipping());
  1892. );
  1893. if (ts.embeddedfonts !== null, copy(tf.embeddedfonts, ts.embeddedfonts));
  1894. if (ts.effect !== null, copy(tf.effect, ts.effect));
  1895. if (ts.blendmode !== null, copy(tf.blendmode, ts.blendmode));
  1896. copy(tf.html, showtext_text);
  1897. set(tf.enabled, false);
  1898. set(tf.zorder, 3000);
  1899. if (ts.parent, copy(tf.parent, ts.parent));
  1900. set(tf.url, get(plugin_url.TEXT_SWF));
  1901. delete (ts);
  1902. delete (tf);
  1903. delayedcall(showtext_timer, get(showtext_timeout), showtext_hide()); ",
  1904. "if(showtext_clipping,
  1905. layer[showtext_tf].updatepos();
  1906. copy(tf_px, layer[showtext_tf].pixelx);
  1907. copy(tf_py, layer[showtext_tf].pixely);
  1908. if (tf_px LT 0,
  1909. sub(layer[showtext_tf].x, tf_px);
  1910. ,
  1911. add(tf_rightedge, tf_px, layer[showtext_tf].pixelwidth);
  1912. if (tf_rightedge GE stagewidth, sub(tf_rightedge, stagewidth); sub(layer[showtext_tf].x, tf_rightedge); );
  1913. );
  1914. if (tf_py LT 0,
  1915. sub(layer[showtext_tf].y, tf_py);
  1916. ,
  1917. add(tf_bottomedge, tf_py, layer[showtext_tf].pixelheight);
  1918. if (tf_bottomedge GE stageheight, sub(tf_bottomedge, stageheight); sub(layer[showtext_tf].y, tf_bottomedge); );
  1919. );
  1920. ); ",
  1921. "copy(layer[showtext_tf].x, mouse.stagex);
  1922. copy(layer[showtext_tf].y, mouse.stagey);
  1923. showtext_do_clipping();
  1924. delayedcall(showtext_mouseupdates, 0, showtext_movetomouse()); ",
  1925. "if(layer[showtext_tf],
  1926. tween(layer[showtext_tf].alpha, 0.0, get(showtext_fadeout), linear,
  1927. stopdelayedcall(showtext_mouseupdates);
  1928. removelayer(showtext_tf);
  1929. set(showtext_text, '');
  1930. set(showtext_prevtext, '');
  1931. );
  1932. ); ",
  1933. "if(useMarkMode == true,
  1934. screentosphere(mouse.x, mouse.y, hclick, vclick);
  1935. clickToAddFlag();
  1936. ); ",
  1937. "js_playerClickCallback();",
  1938. "js_playerDoubleClickCallback();",
  1939. "set(js_command, 'interfaceObject.mouseUpCallback()');
  1940. jscall(get(js_command)); ",
  1941. "js_viewChangedCallback();",
  1942. "krpAddSelfMark(get(hclick), get(vclick));
  1943. set(js_command, '{\"type\":1, \"action\":0, \"to\":\"\", \"payload\":[\"krpAddMark(');
  1944. txtadd(js_command, get(hclick));
  1945. txtadd(js_command, ',');
  1946. txtadd(js_command, get(vclick));
  1947. txtadd(js_command, ',');
  1948. txtadd(js_command, get(daikanAvatar));
  1949. txtadd(js_command, ',');
  1950. txtadd(js_command, get(daikanNickname));
  1951. txtadd(js_command, ');\"]}');
  1952. js_sendCommand(get(js_command));
  1953. js_App('krpFlagClick', get(hclick), get(vclick)); ",
  1954. "set(layer[radar_container].visible,true);
  1955. set(layer[radarBtn].visible, true);
  1956. if (% 1 != 1,
  1957. js_toggleUI(true);
  1958. ); ",
  1959. "if(%1 != 1,
  1960. set(layer[radar_container].visible, false);
  1961. set(layer[radarBtn].visible, false);
  1962. );
  1963. if (% 2 != 1,
  1964. js_toggleUI(false);
  1965. ); ",
  1966. "set(js_command, 'interfaceObject.viewDidChangeCallback()');
  1967. jscall(get(js_command));
  1968. js_App('krpViewChange', get(view.hlookat), get(view.vlookat), get(view.fov)); ",
  1969. "set(js_command, 'interfaceObject.showViewType()');
  1970. jscall(get(js_command)); ",
  1971. "set(js_command, calc('interfaceObject.toggleLoading(' + %1 + ')'));
  1972. jscall(get(js_command)); ",
  1973. "set(js_command, 'interfaceObject.playerDidReadyCallback()');",
  1974. "set(js_command, 'interfaceObject.playerDidClickCallback()');
  1975. jscall(get(js_command)); ",
  1976. "set(js_command, 'interfaceObject.playerDidDoubleClickCallback()');
  1977. jscall(get(js_command)); ",
  1978. "set(js_command, 'interfaceObject.sceneDidChangeCallback()');
  1979. jscall(get(js_command)); ",
  1980. "set(js_command, 'interfaceObject.sceneDidLoadedCallback()');
  1981. jscall(get(js_command)); ",
  1982. "set(jscall_scene_id,%1);
  1983. if (% 2 === null,
  1984. set(js_command, calc('interfaceObject.loadScene("' + jscall_scene_id + '")'));
  1985. ,
  1986. set(jscall_blend_mode,% 2);
  1987. set(js_command, calc('interfaceObject.loadScene("' + jscall_scene_id + '",' + jscall_blend_mode + ')'));
  1988. );
  1989. jscall(get(js_command)); ",
  1990. "set(jscall_pano_id,%1);
  1991. if (% 2 === null,
  1992. set(js_command, calc('interfaceObject.loadSceneByPanoID(' + jscall_pano_id + ')'));
  1993. ,
  1994. set(jscall_blend_mode,% 2);
  1995. set(js_command, calc('interfaceObject.loadSceneByPanoID(' + jscall_pano_id + ',' + jscall_blend_mode + ')'));
  1996. );
  1997. jscall(get(js_command)); ",
  1998. "set(jscall_hotspot_id,%1);
  1999. js_App('krpHotspotClick', get(jscall_hotspot_id));
  2000. set(js_command, calc('interfaceObject.hotspotDidClickCallback("' + jscall_hotspot_id + '")'));
  2001. jscall(get(js_command)); ",
  2002. "set(js_command, calc('interfaceObject.toggleUI(' + %1 + ')'));
  2003. jscall(get(js_command)); ",
  2004. "set(js_command, calc('interfaceObject.radarMapStatusDidChangeCallback(' + %1 + ')'));
  2005. jscall(get(js_command)); ",
  2006. "set(js_command, calc('interfaceObject.radarMapFullscreenStatusDidChangeCallback(' + %1 + ')'));
  2007. jscall(get(js_command)); ",
  2008. "set(jscall_autotour_subtitle_text, %1);
  2009. set(jscall_autotour_subtitle_position, % 2);
  2010. set(jscall_autotour_subtitle_size, % 3);
  2011. set(jscall_autotour_subtitle_background, % 4);
  2012. set(js_command, calc('interfaceObject.showAutoTourSubtitle("' + jscall_autotour_subtitle_text + '","' + jscall_autotour_subtitle_position + '",' + jscall_autotour_subtitle_size + ',"' + jscall_autotour_subtitle_background + '")'));
  2013. jscall(get(js_command)); ",
  2014. "set(js_command, 'interfaceObject.hideAutoTourSubtitle()');
  2015. jscall(get(js_command)); ",
  2016. "set(js_command, calc('interfaceObject.toggleAutoTourUI(' + %1 + ')'));
  2017. jscall(get(js_command)); ",
  2018. "set(js_command, 'interfaceObject.autoTourEndCallback()');
  2019. jscall(get(js_command));
  2020. unmuted_embed_video(); ",
  2021. "set(js_command, 'interfaceObject.unavailableCallback("vr")');
  2022. jscall(get(js_command)); ",
  2023. "set(js_command, 'interfaceObject.vrDidExitCallback()');
  2024. jscall(get(js_command)); ",
  2025. "set(jscall_id,%1);
  2026. set(jscall_url,% 2);
  2027. set(js_command, calc('interfaceObject.playSound("' + jscall_id + '","' + jscall_url + '")'));
  2028. jscall(get(js_command)); ",
  2029. "set(jscall_id,%1);
  2030. set(js_command, calc('interfaceObject.pauseSound("' + jscall_id + '")'));
  2031. jscall(get(js_command)); ",
  2032. "set(jscall_id,%1);
  2033. set(js_command, calc('interfaceObject.resumeSound("' + jscall_id + '")'));
  2034. jscall(get(js_command)); ",
  2035. "set(jscall_id,%1);
  2036. set(js_command, calc('interfaceObject.stopSound("' + jscall_id + '")'));
  2037. jscall(get(js_command)); ",
  2038. "set(js_command, calc('interfaceObject.toggleMusic(' + %1 + ')'));
  2039. jscall(get(js_command)); ",
  2040. "set(js_command, calc('interfaceObject.toggleMusicEmbedVideo(' + %1 + ')'));
  2041. jscall(get(js_command)); ",
  2042. "set(js_command, calc('interfaceObject.toggleVoice(' + %1 + ')'));
  2043. jscall(get(js_command)); ",
  2044. "set(js_command, calc('interfaceObject.toggleVoiceEmbedVideo(' + %1 + ')'));
  2045. jscall(get(js_command)); ",
  2046. "if(fullscreen == true,
  2047. set(js_command, false);
  2048. ,
  2049. set(js_command, true);
  2050. );
  2051. set(js_command, calc('interfaceObject.toggleFullscreen(' + js_command + ')'));
  2052. jscall(get(js_command)); ",
  2053. "set(jscall_state,%1);
  2054. set(js_command, calc('interfaceObject.mouseControlChangedCallback("' + jscall_state + '")'));
  2055. jscall(get(js_command)); ",
  2056. "set(js_command, calc('interfaceObject.openReport()'));
  2057. jscall(get(js_command)); ",
  2058. "set(js_command, 'interfaceObject.sendCommand(" % 1")');
  2059. jscall(get(js_command)); ",
  2060. "set(js_command, 'interfaceObject.toggleInfo(false)');
  2061. jscall(get(js_command)); ",
  2062. "if(device.ios,
  2063. js_iOS(% 1,% 2, % 3, % 4);
  2064. );
  2065. if (device.android,
  2066. js_Android(% 1,% 2, % 3, % 4);
  2067. ); ",
  2068. "set(command_action, %1);
  2069. set(command_arg1, % 2);
  2070. set(js_command, calc('window.androidInterface.' + command_action + '("' + command_arg1));
  2071. if (% 3 !== null,
  2072. set(command_arg2, % 3);
  2073. txtadd(js_command, calc('","' + command_arg2));
  2074. );
  2075. if (% 4 !== null,
  2076. set(command_arg3, % 4);
  2077. txtadd(js_command, calc('","' + command_arg3));
  2078. );
  2079. txtadd(js_command, '")');
  2080. jscall(get(js_command)); ",
  2081. "set(command_action, %1);
  2082. set(command_arg1, % 2);
  2083. set(js_command, calc('window.webkit.messageHandlers.' + command_action + '.postMessage(["' + command_arg1));
  2084. if (% 3 !== null,
  2085. set(command_arg2, % 3);
  2086. txtadd(js_command, calc('","' + command_arg2));
  2087. );
  2088. if (% 4 !== null,
  2089. set(command_arg3, % 4);
  2090. txtadd(js_command, calc('","' + command_arg3));
  2091. );
  2092. txtadd(js_command, '"])');
  2093. jscall(get(js_command)); ",
  2094. {
  2095. "@name": "js_request_gyro_promission"
  2096. },
  2097. "set(sceneChange_id, %1);
  2098. set(sceneChange_effect, % 2);
  2099. set(sceneChange_keepView, % 3);
  2100. if (sceneChange_id != 's_NaN',
  2101. load_pano_by_id(get(sceneChange_id), get(sceneChange_keepView), get(sceneChange_effect));
  2102. js_App('krpSceneChange', get(sceneChange_id));
  2103. ,
  2104. js_toggleLoading(false);
  2105. ); ",
  2106. "set(tmp_h,%1);
  2107. set(tmp_v,% 2);
  2108. spheretoscreen(tmp_h, tmp_v, tmp_x, tmp_y);
  2109. set(js_command, calc('interfaceObject.krpSphereToScreenCb(' + tmp_x + ', ' + tmp_y + ')'));
  2110. jscall(get(js_command)); ",
  2111. "add_text_hotspot(%1,%2,%3,%4,%5,%6,%7,%8);",
  2112. "remove_text_hotspot(%1);",
  2113. "update_text_hotspot_color(%1,%2,%3,%4,%5);",
  2114. "add_hotspot(%1,%2,%3,%4,%5,%6,%7,%8,%9,%10,%11,%12);",
  2115. "add_polygon(%1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14);",
  2116. "addComment(%1,%2,%3,%4,%5);",
  2117. "if(%1 == true,
  2118. showComments();
  2119. ,
  2120. hideComments();
  2121. ); ",
  2122. "enterEditComment(%1);",
  2123. "exitEditComment();",
  2124. "updateInputComment(%1);",
  2125. "removeComments();",
  2126. "autoTourStart();
  2127. muted_embed_video(); ",
  2128. "autoTourPause();",
  2129. "autoTourResume();",
  2130. "autoTourEndAction(true);",
  2131. "if(%1 == true AND radarIsShow != true,
  2132. toggleRadar()
  2133. );
  2134. if (% 1 == false AND radarIsShow == true,
  2135. toggleRadar()
  2136. ); ",
  2137. "if(%1 == true
  2138. show_UI(1);
  2139. ,
  2140. hide_UI(null, 1);
  2141. ); ",
  2142. "js_request_gyro_promission();
  2143. if (% 1 == true,
  2144. turn_on_vr();
  2145. pause_embed_video();
  2146. ,
  2147. turn_off_vr();
  2148. resume_embed_video();
  2149. ); ",
  2150. "change_multi_view(%1);",
  2151. "js_request_gyro_promission();
  2152. if (% 1 == true,
  2153. start_gyro();
  2154. ,
  2155. stop_gyro();
  2156. ); ",
  2157. "if(%1 == true,
  2158. switch_to_multires();
  2159. ,
  2160. switch_to_mobile();
  2161. ); ",
  2162. "set(contextmenu.item["copyright"].visible, %1);",
  2163. "set(contextmenu.item["ccagreement"].visible, true);",
  2164. "if(config.panos.pano[get(scene_name)].autoplay.enabled == 1,
  2165. if (% 1 == true,
  2166. resume_autoplay();
  2167. ,
  2168. pause_autoplay();
  2169. );
  2170. ); ",
  2171. "set(autorotate.enabled, %1);
  2172. set(autorotate.accel, 10);
  2173. set(autorotate.waittime, 0);
  2174. if (% 2 !== null,
  2175. set(temp_speed, 360.0);
  2176. div(temp_speed, % 2);
  2177. copy(autorotate.speed, temp_speed);
  2178. ); ",
  2179. "set(targetHLookAt, %1);
  2180. set(targetVLookAt, % 2);
  2181. set(targetFov, % 3);
  2182. set(lookToType, % 4);
  2183. if (lookToType == 1,
  2184. lookto(get(view.hlookat), get(view.vlookat), 120, smooth(720, -720, 720), true, true,
  2185. lookto(get(targetHLookAt), get(targetVLookAt), 120, smooth(720, -720, 720), true, true,
  2186. lookto(get(targetHLookAt), get(targetVLookAt), get(targetFov));
  2187. );
  2188. );
  2189. ,
  2190. lookto(get(targetHLookAt), get(targetVLookAt), get(targetFov));
  2191. ); ",
  2192. "muted_embed_video();",
  2193. "unmuted_embed_video();",
  2194. "pause_embed_video();",
  2195. "resume_embed_video();",
  2196. "if(%1 == VIDEO_MODAL OR %1 == MIX_MODAL OR %1 == ARTICLE_MODAL,
  2197. if (hotspot[get(embed_video_name)].ispaused == false,
  2198. pause_embed_video();
  2199. );
  2200. ); ",
  2201. "if(%1 == VIDEO_MODAL OR %1 == MIX_MODAL OR %1 == ARTICLE_MODAL,
  2202. if (hotspot[get(embed_video_name)].ispaused == true AND hotspot[get(embed_video_name)].need_resume == true,
  2203. resume_embed_video();
  2204. );
  2205. );
  2206. js_App('krpOverlayDidHide', true); ",
  2207. "unmuted_embed_video();",
  2208. "if(%1 == 'moveto',
  2209. set(control.mouse, 'moveto');
  2210. set(contextmenu.item['controldrag'].visible, false);
  2211. set(contextmenu.item['controlmoveto'].visible, true);
  2212. );
  2213. if (% 1 == 'drag',
  2214. set(control.mouse, 'drag');
  2215. set(contextmenu.item['controldrag'].visible, true);
  2216. set(contextmenu.item['controlmoveto'].visible, false);
  2217. ); ",
  2218. "add_bottom_mask(%1, %2);",
  2219. "if(%1 == 'en',
  2220. set(contextmenu.item['fullscreen'].caption, 'Toggle Fullscreen');
  2221. set(contextmenu.item['viewtype'].caption, 'View type');
  2222. set(contextmenu.item['controlmoveto'].caption, 'Switch to MoveTo');
  2223. set(contextmenu.item['controldrag'].caption, 'Switch to Drag');
  2224. set(contextmenu.item['openReport'].caption, 'Report');
  2225. set(layer[webvr_exitbutton].html, 'Exit VR');
  2226. set(layer[webvr_setupbutton].html, 'VR Setup');
  2227. set(mobilevr_presets.headset["nodt"].caption, 'No Distortion');
  2228. set(webvr_text_noDistortion, 'No Distortion');
  2229. set(webvr_text_webvrSetup, 'WebVR Setup');
  2230. set(webvr_text_mobilevrSetup, 'MobileVR Setup');
  2231. set(webvr_text_screensize, 'Screensize (inch):');
  2232. set(webvr_text_vrheadset, 'VR Headset Preset:');
  2233. set(webvr_text_customizeHeadset, 'Customize Headset');
  2234. set(webvr_text_adjustmentInVR, 'Interactive Adjustment in VR');
  2235. set(webvr_text_close, 'CLOSE');
  2236. set(webvr_text_preset, 'Preset:');
  2237. set(webvr_text_fov, 'Lens-Field-of-View:');
  2238. set(webvr_text_interLensDistance, 'Inter-Lens-Distance(mm):');
  2239. set(webvr_text_screenToLensDistance, 'Screen-toLens-Distance(mm):');
  2240. set(webvr_text_trayToLensCenterDistance, 'Tray-to-Lens-Center-Distance(mm):');
  2241. set(webvr_text_lensDistortion, 'Lens-Distortion Coefficients:');
  2242. set(webvr_text_oversampling, 'Oversampling:');
  2243. );
  2244. if (% 1 == 'cn',
  2245. set(contextmenu.item['fullscreen'].caption, '全屏切换');
  2246. set(contextmenu.item['viewtype'].caption, '视角切换');
  2247. set(contextmenu.item['controlmoveto'].caption, '切换拖拽方式为正向');
  2248. set(contextmenu.item['controldrag'].caption, '切换拖拽方式为反向');
  2249. set(contextmenu.item['openReport'].caption, '举报');
  2250. set(layer[webvr_exitbutton].html, '退出 VR');
  2251. set(layer[webvr_setupbutton].html, 'VR 设置');
  2252. set(mobilevr_presets.headset["nodt"].caption, '无畸变');
  2253. set(webvr_text_noDistortion, '无畸变');
  2254. set(webvr_text_webvrSetup, 'WebVR 设置');
  2255. set(webvr_text_mobilevrSetup, 'MobileVR 设置');
  2256. set(webvr_text_screensize, '屏幕尺寸(英寸):');
  2257. set(webvr_text_vrheadset, 'VR 头显预设');
  2258. set(webvr_text_customizeHeadset, '自定义头显');
  2259. set(webvr_text_adjustmentInVR, '在 VR 中进行调整');
  2260. set(webvr_text_close, '关闭');
  2261. set(webvr_text_preset, '预设:');
  2262. set(webvr_text_fov, 'FOV');
  2263. set(webvr_text_interLensDistance, '内镜距离(mm):');
  2264. set(webvr_text_screenToLensDistance, '屏幕到镜头距离(mm):');
  2265. set(webvr_text_trayToLensCenterDistance, '头显到镜头中央的距离(mm):');
  2266. set(webvr_text_lensDistortion, '镜头畸变系数:');
  2267. set(webvr_text_oversampling, '过采样:');
  2268. ); ",
  2269. "set(useMarkMode, true);",
  2270. "set(useMarkMode, false);",
  2271. "krpAddMark(%1,%2,get(daikanAvatar),get(daikanNickname));",
  2272. "set(flag_name, '_flagImage');
  2273. txtadd(flag_name, get(timertick));
  2274. addhotspot(get(flag_name));
  2275. set(hotspot[get(flag_name)].alpha, 1);
  2276. set(hotspot[get(flag_name)].ath,% 1);
  2277. set(hotspot[get(flag_name)].atv,% 2);
  2278. set(hotspot[get(flag_name)].edge, center);
  2279. set(hotspot[get(flag_name)].width, 40);
  2280. set(hotspot[get(flag_name)].height, 40);
  2281. set(hotspot[get(flag_name)].roundedge, 20);
  2282. set(avatarURL, % 3);
  2283. if (avatarURL === null || avatarURL == '',
  2284. delete (avatarURL);
  2285. );
  2286. set(avatarNickname, % 4);
  2287. if (avatarNickname === null || avatarNickname == '',
  2288. delete (avatarNickname);
  2289. );
  2290. if (avatarURL === null AND avatarNickname !== null,
  2291. set(hotspot[get(flag_name)].url, get(plugin_url.TEXT_SWF));
  2292. copy(hotspot[get(flag_name)].html, avatarNickname);
  2293. set(hotspot[get(flag_name)].backgroundcolor, 0x000000);
  2294. set(hotspot[get(flag_name)].backgroundalpha, 0.6);
  2295. set(hotspot[get(flag_name)].css, 'text-align:center; line-height: 36px; font-size:12px; color:#FFFFFF;');
  2296. );
  2297. if (avatarURL !== null,
  2298. copy(hotspot[get(flag_name)].url, avatarURL);
  2299. );
  2300. set(hotspot[get(flag_name)].onloaded,
  2301. delayedcall(0.5,
  2302. tween(hotspot[get(name)].alpha, 0, 0.5, easeOutQuad,
  2303. removehotspot(get(name));
  2304. );
  2305. );
  2306. ); ",
  2307. "set(flag_name, '_flagImage');
  2308. removehotspot(get(flag_name)); ",
  2309. "set(menuURL, %2);
  2310. if (add_content_menu_count === null,
  2311. set(add_content_menu_count, 1);
  2312. set(contextmenu.item[custom1].visible, true);
  2313. set(contextmenu.item[custom1].caption, % 1);
  2314. if (menuURL != "" AND menuURL !== null,
  2315. set(contextmenu.item[custom1].url, get(menuURL));
  2316. set(contextmenu.item[custom1].enabled, true);
  2317. ,
  2318. set(contextmenu.item[custom1].enabled, true);
  2319. set(contextmenu.item[custom1].onclick,);
  2320. );
  2321. ,
  2322. if (add_content_menu_count == 1,
  2323. inc(add_content_menu_count);
  2324. set(contextmenu.item[custom2].visible, true);
  2325. set(contextmenu.item[custom2].caption, % 1);
  2326. if (menuURL != "" AND menuURL !== null,
  2327. set(contextmenu.item[custom2].url, get(menuURL));
  2328. set(contextmenu.item[custom2].enabled, true);
  2329. ,
  2330. set(contextmenu.item[custom2].enabled, true);
  2331. set(contextmenu.item[custom2].onclick,);
  2332. );
  2333. ,
  2334. if (add_content_menu_count == 2,
  2335. inc(add_content_menu_count);
  2336. set(contextmenu.item[custom3].visible, true);
  2337. set(contextmenu.item[custom3].caption, % 1);
  2338. if (menuURL != "" AND menuURL !== null,
  2339. set(contextmenu.item[custom3].url, get(menuURL));
  2340. set(contextmenu.item[custom3].enabled, true);
  2341. ,
  2342. set(contextmenu.item[custom3].enabled, true);
  2343. set(contextmenu.item[custom3].onclick,);
  2344. );
  2345. );
  2346. );
  2347. ); ",
  2348. "setup_startup_vars();
  2349. js_playerReadyCallback(); ",
  2350. "if(device.mobile,
  2351. set(customScale, 1);
  2352. if (stagewidth LT stageheight,
  2353. div(customScale, stagewidth, 540);
  2354. ,
  2355. div(customScale, stageheight, 360);
  2356. );
  2357. if (customScale LT 0.5,
  2358. set(customScale, 0.7);
  2359. );
  2360. if (customScale GT 0.8,
  2361. set(customScale, 0.75);
  2362. );
  2363. copy(stagescale, customScale);
  2364. );
  2365. set(display.autofullscreen, false);
  2366. 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),
  2367. set(radarEnabled, true);
  2368. );
  2369. set(view_type, 0);
  2370. if (sceneType == 2,
  2371. set(enableLittleplanet, 0);
  2372. hide_UI(0, 1);
  2373. );
  2374. if (sceneType == 3,
  2375. );
  2376. if (sceneType == 4,
  2377. hide_UI(0, 1);
  2378. );
  2379. setup_hotspot();
  2380. set(events.onpreviewcomplete, on_preview_complete());
  2381. set(events.onloadcomplete, on_load_complete()); ",
  2382. "set(view.fovtype, MFOV);
  2383. if (enableLittleplanet != 0,
  2384. setup_littleplanet_view();
  2385. ); ",
  2386. "if(preview_load_inited != true,
  2387. on_preview_complete(true);
  2388. );
  2389. if (webvr.isenabled,
  2390. delayedcall(2,
  2391. set(have_vr_controllers, false);
  2392. webvr_load_vr_controller_hs();
  2393. );
  2394. ); ",
  2395. "if(xml.scene !== null,
  2396. js_toggleLoading(false);
  2397. set(preview_load_inited, true);
  2398. if (enableLittleplanet != 0 AND % 1 === null,
  2399. setup_weather();
  2400. setup_littleplanet();
  2401. delayedcall(0.2,
  2402. setup_bottom_mask();
  2403. );
  2404. ,
  2405. if (xml.scene === null,
  2406. delayedcall(0.2,
  2407. setup_pano_settings();
  2408. if (settings.first_pano_inited == false,
  2409. setup_global_settings();
  2410. );
  2411. js_sceneReadyCallback();
  2412. setup_autoplay();
  2413. );
  2414. ,
  2415. setup_pano_settings();
  2416. if (settings.first_pano_inited == false,
  2417. setup_global_settings();
  2418. );
  2419. js_sceneReadyCallback();
  2420. setup_autoplay();
  2421. );
  2422. );
  2423. if (isAutoTouring AND isAutoTourPause == false,
  2424. pause_autoplay();
  2425. delayedcall(0.5, autoTourPlay(););
  2426. );
  2427. if (webvr.isenabled,
  2428. hide_UI();
  2429. );
  2430. ); ",
  2431. "setup_top_mask();
  2432. setup_contextmenu();
  2433. setup_view();
  2434. if (is_clean != 1,
  2435. setup_embed();
  2436. if (enableLittleplanet == 0,
  2437. setup_bottom_mask();
  2438. setup_weather();
  2439. );
  2440. if (isAutoTouring == true,
  2441. hide_UI();
  2442. );
  2443. ,
  2444. if (enableLittleplanet == 0,
  2445. setup_bottom_mask();
  2446. setup_weather();
  2447. );
  2448. ); ",
  2449. "delayedcall(0.5,
  2450. setup_gyro();
  2451. setup_vr();
  2452. setup_autotour();
  2453. set(settings.first_pano_inited, true);
  2454. set(enableLittleplanet, 0);
  2455. ); ",
  2456. "set(view_type,%1);
  2457. if (view_type_changing != true,
  2458. set(view_type_changing, true);
  2459. if (% 1 == 4,
  2460. skin_view_flat();
  2461. );
  2462. if (% 1 == 3,
  2463. skin_view_ball();
  2464. ,
  2465. if (% 1 == 2,
  2466. skin_view_fisheye();
  2467. ,
  2468. if (% 1 == 1,
  2469. cm_littleplanet_view();
  2470. ,
  2471. cm_normal_view();
  2472. );
  2473. );
  2474. );
  2475. delete (multi_view_type);
  2476. ,
  2477. set(multi_view_type,% 1);
  2478. ); ",
  2479. "set(view.limitview, off);
  2480. set(view.fovmin, 1);
  2481. set(view.fovmax, 179); ",
  2482. "set(control.bouncinglimits, true);
  2483. if (config.panos.pano[get(scene_name)].view.vlookatmin != -90 OR config.panos.pano[get(scene_name)].view.vlookatmax != 90,
  2484. set(view.limitview, lookat);
  2485. copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
  2486. copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
  2487. set(control.bouncinglimits, false);
  2488. );
  2489. 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),
  2490. set(view.limitview, lookat);
  2491. copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
  2492. copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
  2493. set(control.bouncinglimits, false);
  2494. );
  2495. if (config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
  2496. set(config.panos.pano[get(scene_name)].view.fovmin, 70);
  2497. );
  2498. copy(view.fovmin, config.panos.pano[get(scene_name)].view.fovmin);
  2499. if (config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
  2500. set(config.panos.pano[get(scene_name)].view.fovmax, 120);
  2501. );
  2502. copy(view.fovmax, config.panos.pano[get(scene_name)].view.fovmax);
  2503. if (config.panos.pano[get(scene_name)].view.vlookatmin !== null AND config.panos.pano[get(scene_name)].view.vlookatmin != "",
  2504. copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
  2505. );
  2506. if (config.panos.pano[get(scene_name)].view.vlookatmax !== null AND config.panos.pano[get(scene_name)].view.vlookatmax != "",
  2507. copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
  2508. );
  2509. if (config.panos.pano[get(scene_name)].view.hlookatmin !== null AND config.panos.pano[get(scene_name)].view.hlookatmin != "",
  2510. copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
  2511. );
  2512. if (config.panos.pano[get(scene_name)].view.hlookatmax !== null AND config.panos.pano[get(scene_name)].view.hlookatmax != "",
  2513. copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
  2514. );
  2515. copy(view.limitview, viewLimitState); ",
  2516. "if(forceFov !== null,
  2517. copy(view.hlookat, config.panos.pano[get(scene_name)].view.hlookat);
  2518. copy(view.vlookat, config.panos.pano[get(scene_name)].view.vlookat);
  2519. copy(view.fov, forceFov);
  2520. copy(view.fovmin, forceFovmin);
  2521. copy(view.fovmax, forceFovmax);
  2522. ,
  2523. if ((view_type == 0 OR view_type === null) AND webvr.isenabled != true AND isAutoTouring != true,
  2524. copy(view.hlookat, config.panos.pano[get(scene_name)].view.hlookat);
  2525. copy(view.vlookat, config.panos.pano[get(scene_name)].view.vlookat);
  2526. set(control.bouncinglimits, true);
  2527. if (config.panos.pano[get(scene_name)].view.vlookatmin != -90 OR config.panos.pano[get(scene_name)].view.vlookatmax != 90,
  2528. set(view.limitview, lookat);
  2529. copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
  2530. copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
  2531. set(control.bouncinglimits, false);
  2532. );
  2533. 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),
  2534. set(view.limitview, lookat);
  2535. copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
  2536. copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
  2537. set(control.bouncinglimits, false);
  2538. );
  2539. if (config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
  2540. set(config.panos.pano[get(scene_name)].view.fovmin, 70);
  2541. );
  2542. copy(view.fovmin, config.panos.pano[get(scene_name)].view.fovmin);
  2543. if (config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
  2544. set(config.panos.pano[get(scene_name)].view.fovmax, 120);
  2545. );
  2546. copy(view.fovmax, config.panos.pano[get(scene_name)].view.fovmax);
  2547. 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,
  2548. copy(view.fov, config.panos.pano[get(scene_name)].view.fov);
  2549. ,
  2550. set(view.fov, 95);
  2551. );
  2552. if (config.panos.pano[get(scene_name)].view.vlookatmin !== null AND config.panos.pano[get(scene_name)].view.vlookatmin != "",
  2553. copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
  2554. );
  2555. if (config.panos.pano[get(scene_name)].view.vlookatmax !== null AND config.panos.pano[get(scene_name)].view.vlookatmax != "",
  2556. copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
  2557. );
  2558. if (config.panos.pano[get(scene_name)].view.hlookatmin !== null AND config.panos.pano[get(scene_name)].view.hlookatmin != "",
  2559. copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
  2560. );
  2561. if (config.panos.pano[get(scene_name)].view.hlookatmax !== null AND config.panos.pano[get(scene_name)].view.hlookatmax != "",
  2562. copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
  2563. );
  2564. if (needKeepview == true,
  2565. copy(view.hlookat, needKeepviewHlookat);
  2566. copy(view.vlookat, needKeepviewVlookat);
  2567. copy(view.fov, needKeepviewFov);
  2568. );
  2569. );
  2570. ); ",
  2571. "set(control.bouncinglimits, true);
  2572. if (config.panos.pano[get(scene_name)].view.vlookatmin != -90 OR config.panos.pano[get(scene_name)].view.vlookatmax != 90,
  2573. set(view.limitview, lookat);
  2574. copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
  2575. copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
  2576. set(control.bouncinglimits, false);
  2577. );
  2578. 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),
  2579. set(view.limitview, lookat);
  2580. copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
  2581. copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
  2582. set(control.bouncinglimits, false);
  2583. );
  2584. if (config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
  2585. set(config.panos.pano[get(scene_name)].view.fovmin, 70);
  2586. );
  2587. copy(view.fovmin, config.panos.pano[get(scene_name)].view.fovmin);
  2588. if (config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
  2589. set(config.panos.pano[get(scene_name)].view.fovmax, 120);
  2590. );
  2591. copy(view.fovmax, config.panos.pano[get(scene_name)].view.fovmax);
  2592. if (config.panos.pano[get(scene_name)].view.vlookatmin !== null AND config.panos.pano[get(scene_name)].view.vlookatmin != "",
  2593. copy(view.vlookatmin, config.panos.pano[get(scene_name)].view.vlookatmin);
  2594. );
  2595. if (config.panos.pano[get(scene_name)].view.vlookatmax !== null AND config.panos.pano[get(scene_name)].view.vlookatmax != "",
  2596. copy(view.vlookatmax, config.panos.pano[get(scene_name)].view.vlookatmax);
  2597. );
  2598. if (config.panos.pano[get(scene_name)].view.hlookatmin !== null AND config.panos.pano[get(scene_name)].view.hlookatmin != "",
  2599. copy(view.hlookatmin, config.panos.pano[get(scene_name)].view.hlookatmin);
  2600. );
  2601. if (config.panos.pano[get(scene_name)].view.hlookatmax !== null AND config.panos.pano[get(scene_name)].view.hlookatmax != "",
  2602. copy(view.hlookatmax, config.panos.pano[get(scene_name)].view.hlookatmax);
  2603. ); ",
  2604. "set(view.fovmax, get(config.panos.pano[get(scene_name)].view.fovmax));
  2605. set(view.fovmin, get(config.panos.pano[get(scene_name)].view.fovmin));
  2606. set(view.limitview, auto); ",
  2607. "tween(view.architectural, 0.0, 0.5);
  2608. tween(view.pannini, 0.0, 0.5);
  2609. tween(view.fisheye, 0.0, 0.5);
  2610. tween(view.fov, get(config.panos.pano[get(scene_name)].view.fov), 0.5);
  2611. tween(view.vlookat, get(config.panos.pano[get(scene_name)].view.vlookat), 0.5, easeOutQuad,
  2612. skin_view_look_straight();
  2613. set(view_type_changing, false);
  2614. if (multi_view_type !== null,
  2615. delayedcall(0.1, change_multi_view(multi_view_type));
  2616. ,
  2617. setup_view_limit();
  2618. );
  2619. ); ",
  2620. "tween(view.architectural, 0.0, distance(1.0,0.5));
  2621. tween(view.pannini, 0.0, distance(1.0, 0.5));
  2622. tween(view.fisheye, 1.0, distance(1.0, 0.5));
  2623. tween(view.vlookat, get(config.panos.pano[get(scene_name)].view.vlookat), 0.5);
  2624. tween(view.fov, 115, 0.5);
  2625. tween(view.distortion, 1.0, distance(1.0, 0.5), easeOutQuad,
  2626. skin_view_look_straight();
  2627. set(view_type_changing, false);
  2628. if (multi_view_type !== null,
  2629. delayedcall(0.1, change_multi_view(multi_view_type));
  2630. );
  2631. ); ",
  2632. "tween(view.architectural, 0.0, distance(1.0,0.5));
  2633. tween(view.pannini, 0.0, distance(1.0, 0.5));
  2634. tween(view.distortion, 2.8, distance(1.0, 0.5), easeOutQuad,
  2635. skin_view_look_straight();
  2636. set(view_type_changing, false);
  2637. if (multi_view_type !== null,
  2638. delayedcall(0.1, change_multi_view(multi_view_type));
  2639. );
  2640. ); ",
  2641. "skin_view_look_straight();
  2642. tween(view.architectural, 1.0, distance(1.0, 0.5));
  2643. tween(view.pannini, 0.0, distance(1.0, 0.5));
  2644. tween(view.distortion, 0.0, distance(1.0, 0.5)); ",
  2645. "skin_view_look_straight();
  2646. tween(view.architectural, 0.0, distance(1.0, 0.5));
  2647. tween(view.pannini, 0.0, distance(1.0, 0.5));
  2648. tween(view.distortion, 1.0, distance(1.0, 0.8)); ",
  2649. "skin_view_look_straight();
  2650. tween(view.architectural, 0.0, distance(1.0, 0.5));
  2651. tween(view.pannini, 1.0, distance(1.0, 0.8));
  2652. if (view.distortion LT 0.1,
  2653. tween(view.distortion, 1.0, distance(1.0, 0.8));
  2654. ); ",
  2655. "tween(view.architectural, 0.0, 0.25);
  2656. tween(view.vlookat, 90, distance(179, 1.50), easeoutquad);
  2657. set(backtonormalfirst, false);
  2658. if (view.pannini == true, set(backtonormalfirst, true));
  2659. if (view.stereographic == false, set(backtonormalfirst, true));
  2660. if (backtonormalfirst, tween(view.fisheye, 0.0, distance(1.0, 0.25), easeoutquad, WAIT); );
  2661. set(view.pannini, false);
  2662. set(view.stereographic, true);
  2663. set(view.fovmax, 150);
  2664. tween(view.fov, 150, distance(179, 0.75), easeoutquad);
  2665. tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad,
  2666. set(view_type_changing, false);
  2667. if (multi_view_type !== null,
  2668. delayedcall(0.1, change_multi_view(multi_view_type));
  2669. );
  2670. ); ",
  2671. "set(plugin[skin_gyro].enabled, false);
  2672. skin_update_view_menu(1);
  2673. if (videointerface_isflat !== true,
  2674. set(videointerface_isflat, true);
  2675. stoptween(view.fov);
  2676. mod(view.hlookat, 360);
  2677. set(view.limitview, off);
  2678. set(view.maxpixelzoom, 0);
  2679. copy(videointerface_backup_fovmin, view.fovmin);
  2680. set(view.fovmin, 0.01);
  2681. set(control.usercontrol, off);
  2682. copy(videointerface_backup_mouse, control.mouse);
  2683. set(control.mouse, drag);
  2684. copy(current_fov, view.fov);
  2685. copy(videointerface_backup_fovtype, view.fovtype);
  2686. remapfovtype(current_fov, get(view.fovtype), HFOV);
  2687. set(view.fovtype, HFOV);
  2688. copy(view.fov, current_fov);
  2689. copy(startfov, current_fov);
  2690. copy(image_hfov, image.hfov);
  2691. tween(image_hfov, 1.0, 3.0, linear,
  2692. set(control.usercontrol, all);
  2693. set(view.fovmin, 0.25);
  2694. set(view.hlookatmin, -2);
  2695. set(view.hlookatmax, +2);
  2696. set(view.vlookatmin, -1);
  2697. set(view.vlookatmax, +1);
  2698. set(view.limitview, range);
  2699. ,
  2700. if (image_hfov LT 90,
  2701. mul(view.fov, image_hfov, 1.1);
  2702. ,
  2703. sub(hr, image_hfov, 90);
  2704. div(hr, 270);
  2705. sub(hr2, 1, hr);
  2706. mul(a, startfov, hr);
  2707. mul(b, 99, hr2);
  2708. add(view.fov, a, b);
  2709. );
  2710. copy(image.hfov, image_hfov);
  2711. set(image.vfov, 0);
  2712. updateobject(true, true);
  2713. if (multi_view_type !== null,
  2714. delayedcall(0.1, change_multi_view(multi_view_type));
  2715. );
  2716. );
  2717. adjusthlookat(0);
  2718. tween(view.hlookat, 0, 1.5);
  2719. tween(view.vlookat, 0, 1.5);
  2720. ); ",
  2721. "if(config.panos.pano[get(scene_name)].autoplay.enabled == 1 OR forceAutoplay == 1,
  2722. set(autorotate.waittime, 6);
  2723. set(autorotate.accel, 0);
  2724. if (config.panos.pano[get(scene_name)].autoplay.duration !== null,
  2725. set(temp_speed, 360.0);
  2726. div(temp_speed, config.panos.pano[get(scene_name)].autoplay.duration);
  2727. copy(autorotate.speed, temp_speed);
  2728. ,
  2729. set(autorotate.speed, 2);
  2730. );
  2731. set(autorotate.accel, 10);
  2732. set(autorotate.enabled, true);
  2733. if (config.panos.pano[get(scene_name)].view.autorotatekeepview == 1,
  2734. set(autorotate.horizon, 'off');
  2735. ,
  2736. set(autorotate.horizon, 0.0);
  2737. );
  2738. if (config.panos.pano[get(scene_name)].autoplay.keep_originview == 1,
  2739. copy(autorotate.horizon, config.panos.pano[get(scene_name)].view.vlookat);
  2740. ,
  2741. set(autorotate.horizon, 0.0);
  2742. );
  2743. set(hlookatmax, get(config.panos.pano[get(scene_name)].view.hlookatmax));
  2744. set(hlookatmin, get(config.panos.pano[get(scene_name)].view.hlookatmin));
  2745. sub(range, hlookatmax, hlookatmin);
  2746. set(autorotate.oneroundrange, get(range));
  2747. if (autoplayWaitPause,
  2748. delayedcall(0.5,
  2749. pause_autoplay();
  2750. set(autoplayWaitPause, false);
  2751. );
  2752. );
  2753. ); ",
  2754. "set(autoplayWaitPause,false);
  2755. if (isAutoTouring != true AND config.panos.pano[get(scene_name)].autoplay.enabled == 1 OR forceAutoplay == 1,
  2756. set(autorotate.enabled, true);
  2757. autorotate.interrupt();
  2758. ); ",
  2759. "set(autoplayWaitPause,true);
  2760. set(autorotate.enabled, false); ",
  2761. "if(is_looping != true AND config.panos.pano[get(scene_name)].autoplay.enter_next != 0 AND isAutoTouring != true,
  2762. set(loop_flag, false);
  2763. set(js_command, calc('interfaceObject.switchToNextScene("' + config.panos.pano[get(scene_name)].autoplay.hiddenscene_noenter + '")'));
  2764. jscall(get(js_command));
  2765. delayedcall(1,
  2766. set(is_looping, false);
  2767. );
  2768. ); ",
  2769. "if(config.autoTours.tour.point.count GT 0 ,
  2770. set(autoTourPointIndex, 0);
  2771. js_toggleAutoTourUI(true);
  2772. addplugin(soundinterface);
  2773. if (device.html5 == true,
  2774. copy(plugin[soundinterface].url, plugin_url.SOUND_JS);
  2775. if (device.ios,
  2776. if (plugin[soundinterface].loaded,
  2777. set(autoTourSoundName, 'auto_tour_sound_id');
  2778. playsound(get(autoTourSoundName), get(settings.blank_music_url), 1);
  2779. ,
  2780. set(plugin[soundinterface].onloaded,
  2781. set(autoTourSoundName, 'auto_tour_sound_id');
  2782. playsound(get(autoTourSoundName), get(settings.blank_music_url), 1);
  2783. );
  2784. );
  2785. );
  2786. ,
  2787. copy(plugin[soundinterface].url, plugin_url.SOUND_SWF);
  2788. );
  2789. set(plugin[soundinterface].preload, true);
  2790. if (config.autoTours.tour.startImage !== null AND config.autoTours.tour.startImage != "",
  2791. set(autoTourShowButtonDelay, 4);
  2792. ,
  2793. set(autoTourShowButtonDelay, 0);
  2794. );
  2795. ); ",
  2796. "hide_UI();
  2797. cancel_view_limit();
  2798. set(isAutoTourPause, false);
  2799. set(isAutoTouring, true);
  2800. set(autorotateEnabledForAutoTour, get(autorotate.enabled));
  2801. set(usercontrolEnabledForAutoTour, get(control.usercontrol));
  2802. if (config.autoTours.tour.startImage !== null AND config.autoTours.tour.startImage != "",
  2803. addlayer(autoTourStartAlert);
  2804. copy(autoTour_startImage, config.autoTours.tour.startImage);
  2805. txtadd(autoTour_startImage, '?imageView2/0/w/2000/h/2000');
  2806. set(layer[autoTourStartAlert].url, get(autoTour_startImage));
  2807. set(layer[autoTourStartAlert].align, center);
  2808. set(layer[autoTourStartAlert].scale, 0.5);
  2809. set(layer[autoTourStartAlert].background, false);
  2810. set(layer[autoTourStartAlert].autoalpha, true);
  2811. set(layer[autoTourStartAlert].enable, false);
  2812. set(layer[autoTourStartAlert].y, 0);
  2813. set(layer[autoTourStartAlert].keep, true);
  2814. set(layer[autoTourStartAlert].alpha, 0.0);
  2815. tween(layer[autoTourStartAlert].alpha, 1.0, 0.5);
  2816. delayedcall(3, tween(layer[autoTourStartAlert].alpha, 0.0, 0.5););
  2817. set(hasAutoTourStartAlert, true);
  2818. ,
  2819. set(hasAutoTourStartAlert, false);
  2820. );
  2821. pause_autoplay();
  2822. set(control.usercontrol, off);
  2823. if (% 1 != true,
  2824. js_toggleBgVoice(false);
  2825. if (config.autoTours.tour.disableMusic == true,
  2826. js_toggleBgMusic(false);
  2827. );
  2828. );
  2829. if (config.autoTours.tour.hideHotspots == true,
  2830. hide_hotspots();
  2831. copy(auto_tour_comments_state, config.feature.show_comment);
  2832. );
  2833. if (pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetPano || scene[get(pano_id)].pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetPano,
  2834. set(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
  2835. set(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
  2836. set(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
  2837. if (hasAutoTourStartAlert == true,
  2838. delayedcall(autoTourDelayedCallID, 4, autoTourPlay(););
  2839. set(hasAutoTourStartAlert, null);
  2840. ,
  2841. delayedcall(autoTourDelayedCallID, 1, autoTourPlay(););
  2842. );
  2843. ,
  2844. set(waitAutoTourContinue, true);
  2845. stoptween(view.hlookat, view.vlookat, view.fov);
  2846. if (config.autoTours.tour.point[get(autoTourPointIndex)].blendMode !== null,
  2847. copy(blend_mode, blendmodes[get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode)].blend);
  2848. );
  2849. if (config.autoTours.tour.point[get(autoTourPointIndex)].targetScene !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].targetScene != "",
  2850. set(targetScene, get(scene[get(config.autoTours.tour.point[get(autoTourPointIndex)].targetScene)].scene_id));
  2851. js_sceneChangeCallback(get(targetScene), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
  2852. ,
  2853. js_panoChangeCallback(get(config.autoTours.tour.point[get(autoTourPointIndex)].targetPano), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
  2854. );
  2855. set(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
  2856. set(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
  2857. set(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
  2858. ); ",
  2859. "set(isAutoTourPause,false);
  2860. dec(autoTourPointIndex);
  2861. set(control.usercontrol, off);
  2862. cancel_view_limit();
  2863. tween(layer[autoTourResumeBtnContainer].alpha, 0.0, 0.2,default, set(ayer[autoTourResumeBtnContainer].enable.false););
  2864. set(layer[autoTourPauseBtnContainer].enable, false);
  2865. tween(layer[autoTourPauseBtnContainer].alpha, 1.0, 0.2,default, set(ayer[autoTourPauseBtnContainer].enable.true););
  2866. if (pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetScene || scene[get(pano_id)].pano_id == config.autoTours.tour.point[get(autoTourPointIndex)].targetPano,
  2867. set(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
  2868. set(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
  2869. set(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
  2870. delayedcall(autoTourDelayedCallID, 1, autoTourPlay(););
  2871. ,
  2872. stoptween(view.hlookat, view.vlookat, view.fov);
  2873. if (config.autoTours.tour.point[get(autoTourPointIndex)].blendMode !== null,
  2874. copy(blend_mode, blendmodes[get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode)].blend);
  2875. );
  2876. if (config.autoTours.tour.point[get(autoTourPointIndex)].targetScene !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].targetScene != "",
  2877. set(targetScene, get(scene[get(config.autoTours.tour.point[get(autoTourPointIndex)].targetScene)].scene_id));
  2878. js_sceneChangeCallback(get(targetScene), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
  2879. ,
  2880. js_panoChangeCallback(get(config.autoTours.tour.point[get(autoTourPointIndex)].targetPano), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
  2881. );
  2882. set(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
  2883. set(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
  2884. set(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
  2885. ); ",
  2886. "if(waitAutoTourContinue == true,
  2887. set(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startath));
  2888. set(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].startatv));
  2889. set(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].startfov));
  2890. set(waitAutoTourContinue, null);
  2891. if (hasAutoTourStartAlert == true,
  2892. delayedcall(autoTourDelayedCallID, 4, autoTourPlay(););
  2893. set(hasAutoTourStartAlert, null);
  2894. ,
  2895. delayedcall(autoTourDelayedCallID, 1, autoTourPlay(););
  2896. );
  2897. ,
  2898. copy(preAutoTourSoundName, autoTourSoundName);
  2899. set(layer[autoTourPauseBtnContainer].enable, false);
  2900. tween(layer[autoTourPauseBtnContainer].alpha, 1.0, 0.2,default, set(ayer[autoTourPauseBtnContainer].enable.true););
  2901. set(layer[autoTourStopBtnContainer].enable, false);
  2902. tween(layer[autoTourStopBtnContainer].alpha, 1.0, 0.2,default, set(ayer[autoTourStopBtnContainer].enable.true););
  2903. set(autoTourSoundName, 'auto_tour_sound_id');
  2904. set(tempAutoTourIndex, get(config.autoTours.tour.point.count));
  2905. dec(tempAutoTourIndex);
  2906. copy(preAutoTourPointIndex, autoTourPointIndex);
  2907. sub(preAutoTourPointIndex, 1);
  2908. if (config.autoTours.tour.point[get(autoTourPointIndex)].music != config.autoTours.tour.point[get(preAutoTourPointIndex)].music,
  2909. stopsound(get(preAutoTourSoundName));
  2910. ,
  2911. copy(autoTourSoundName, preAutoTourSoundName);
  2912. );
  2913. if (autoTourPointIndex == tempAutoTourIndex,
  2914. autoTourEnd();
  2915. ,
  2916. if (config.autoTours.tour.point[get(autoTourPointIndex)].playMode == 3,
  2917. copy(tempAutoTourPointIndex, autoTourPointIndex);
  2918. inc(tempAutoTourPointIndex);
  2919. stoptween(view.hlookat, view.vlookat, view.fov);
  2920. if (config.autoTours.tour.point[get(autoTourPointIndex)].blendMode !== null,
  2921. copy(blend_mode, blendmodes[get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode)].blend);
  2922. );
  2923. if (config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetScene !== null AND config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetScene != "",
  2924. set(targetScene, get(scene[get(config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetScene)].scene_id));
  2925. js_sceneChangeCallback(get(targetScene), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
  2926. ,
  2927. js_panoChangeCallback(get(config.autoTours.tour.point[get(tempAutoTourPointIndex)].targetPano), get(config.autoTours.tour.point[get(autoTourPointIndex)].blendMode));
  2928. );
  2929. set(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].endath));
  2930. set(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].endatv));
  2931. set(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov));
  2932. inc(autoTourPointIndex);
  2933. ,
  2934. showSubtitle();
  2935. tween(view.hlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].endath), get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime));
  2936. tween(view.vlookat, get(config.autoTours.tour.point[get(autoTourPointIndex)].endatv), get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime));
  2937. if (config.autoTours.tour.point[get(autoTourPointIndex)].music !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].music != '',
  2938. if (config.autoTours.tour.point[get(autoTourPointIndex)].playMode == 0,
  2939. set(plugin[soundinterface].volume, get(config.autoTours.tour.point[get(autoTourPointIndex)].volume));
  2940. playsound(get(autoTourSoundName), get(config.autoTours.tour.point[get(autoTourPointIndex)].music), 1, autoTourPlay(););
  2941. set(autoTourSoundIsPause, false);
  2942. tween(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov), get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime));
  2943. ,
  2944. if (config.autoTours.tour.point[get(autoTourPointIndex)].music != config.autoTours.tour.point[get(preAutoTourPointIndex)].music,
  2945. set(plugin[soundinterface].volume, get(config.autoTours.tour.point[get(autoTourPointIndex)].volume));
  2946. playsound(get(autoTourSoundName), get(config.autoTours.tour.point[get(autoTourPointIndex)].music), 1);
  2947. ,
  2948. copy(autoTourSoundName, preAutoTourSoundName);
  2949. set(plugin[soundinterface].volume, get(config.autoTours.tour.point[get(autoTourPointIndex)].volume));
  2950. if (autoTourSoundIsPause == true,
  2951. playsound(get(autoTourSoundName), get(config.autoTours.tour.point[get(autoTourPointIndex)].music), 1);
  2952. set(autoTourSoundIsPause, false);
  2953. );
  2954. );
  2955. tween(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov), get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime), null, autoTourPlay(););
  2956. );
  2957. ,
  2958. stopsound(get(autoTourSoundName));
  2959. set(sound[get(autoTourSoundName)].oncomplete, null);
  2960. tween(view.fov, get(config.autoTours.tour.point[get(autoTourPointIndex)].endfov), get(config.autoTours.tour.point[get(autoTourPointIndex)].moveTime), null, autoTourPlay(););
  2961. );
  2962. inc(autoTourPointIndex);
  2963. );
  2964. );
  2965. ); ",
  2966. "set(isAutoTourPause,true);
  2967. stopdelayedcall('delayedStopAutoTour');
  2968. if (autoTourPointIndex == 0,
  2969. set(autoTourPointIndex, 1);
  2970. stopdelayedcall(autoTourDelayedCallID);
  2971. );
  2972. set(layer[autoTourResumeBtnContainer].enable, false);
  2973. pausesound(get(autoTourSoundName));
  2974. stoptween(view.hlookat);
  2975. stoptween(view.vlookat);
  2976. stoptween(view.fov);
  2977. set(autoTourSoundIsPause, true);
  2978. set(control.usercontrol, all);
  2979. recover_view_limit(); ",
  2980. "if(config.autoTours.tour.stopImage !== null AND config.autoTours.tour.stopImage != "" ,
  2981. addlayer(autoTourStopAlert);
  2982. copy(autoTour_stopImage, config.autoTours.tour.stopImage);
  2983. txtadd(autoTour_stopImage, '?imageView2/0/w/2000/h/2000');
  2984. set(layer[autoTourStopAlert].url, get(autoTour_stopImage));
  2985. set(layer[autoTourStopAlert].align, center);
  2986. set(layer[autoTourStopAlert].scale, 0.5);
  2987. set(layer[autoTourStopAlert].background, false);
  2988. set(layer[autoTourStopAlert].autoalpha, true);
  2989. set(layer[autoTourStopAlert].enable, false);
  2990. set(layer[autoTourStopAlert].y, 0);
  2991. set(layer[autoTourStopAlert].keep, true);
  2992. set(layer[autoTourStopAlert].alpha, 0.0);
  2993. tween(layer[autoTourStopAlert].alpha, 1.0, 0.5);
  2994. delayedcall(3, tween(layer[autoTourStopAlert].alpha, 0.0, 0.5););
  2995. delayedcall('delayedStopAutoTour', 3, autoTourEndAction(););
  2996. hideSubtitle();
  2997. ,
  2998. autoTourEndAction();
  2999. ); ",
  3000. "set(isAutoTourPause,false);
  3001. set(autoTourPointIndex, 0);
  3002. stopsound(get(autoTourSoundName));
  3003. stoptween(view.hlookat);
  3004. stoptween(view.vlookat);
  3005. stoptween(view.fov);
  3006. set(layer[autoTourPauseBtnContainer].enable, false);
  3007. tween(layer[autoTourPauseBtnContainer].alpha, 0.0, 0.2);
  3008. set(layer[autoTourResumeBtnContainer].enable, false);
  3009. tween(layer[autoTourResumeBtnContainer].alpha, 0.0, 0.2);
  3010. set(layer[autoTourStopBtnContainer].enable, false);
  3011. tween(layer[autoTourStopBtnContainer].alpha, 0.0, 0.2);
  3012. set(isAutoTouring, false);
  3013. set(waitAutoTourContinue, null);
  3014. if (config.autoTours.tour.loop == true AND % 1 != true,
  3015. autoTourStart(true);
  3016. ,
  3017. stopdelayedcall('delayedStopAutoTour');
  3018. set(control.usercontrol, all);
  3019. if (autorotateEnabledForAutoTour == true,
  3020. resume_autoplay();
  3021. );
  3022. if (config.autoTours.tour.disableMusic == true,
  3023. js_toggleBgMusic(true);
  3024. );
  3025. js_toggleBgVoice(true);
  3026. show_UI();
  3027. recover_view_limit();
  3028. stopdelayedcall(autoTourDelayedCallID);
  3029. tween(layer[autoTourStartAlert].alpha, 0.0, 0.01);
  3030. if (config.autoTours.tour.hideHotspots == true,
  3031. show_hotspots();
  3032. if (auto_tour_comments_state == 1,
  3033. );
  3034. );
  3035. hideSubtitle();
  3036. js_autoTourEndCallback();
  3037. js_toggleAutoTourUI(true);
  3038. ); ",
  3039. "if(config.autoTours.tour.point[get(autoTourPointIndex)].subtitle !== null AND config.autoTours.tour.point[get(autoTourPointIndex)].subtitle != '',
  3040. copy(subtitle_txt, config.autoTours.tour.point[get(autoTourPointIndex)].subtitle);
  3041. copy(subtitle_position, config.autoTours.tour.subtitlePosition);
  3042. copy(subtitle_size, config.autoTours.tour.subtitleSize);
  3043. copy(subtitle_background, config.autoTours.tour.subtitleBackground);
  3044. escape(subtitle_txt);
  3045. js_showAutoTourSubtitle(get(subtitle_txt), get(subtitle_position), get(subtitle_size), get(subtitle_background));
  3046. ,
  3047. hideSubtitle();
  3048. ); ",
  3049. "js_hideAutoTourSubtitle();",
  3050. "for(set(i,0),i LT hotspot.count,inc(i),
  3051. if (hotspot[get(i)].isComment,
  3052. set(hotspot[get(i)].visible, true);
  3053. );
  3054. );
  3055. for (set(i, 0), i LT layer.count, inc(i),
  3056. if (layer[get(i)].isComment,
  3057. set(layer[get(i)].visible, true);
  3058. );
  3059. );
  3060. set(commentVisibled, true);
  3061. if (config.feature.enable_comment == 0,
  3062. set(modify_comment_cmd, get(js_modify_comment));
  3063. txtadd(modify_comment_cmd, "('");
  3064. txtadd(modify_comment_cmd, get(config.info.id));
  3065. txtadd(modify_comment_cmd, "','");
  3066. txtadd(modify_comment_cmd, get(pano_id));
  3067. txtadd(modify_comment_cmd, "')");
  3068. jscall(get(modify_comment_cmd));
  3069. set(config.feature.enable_comment, 1);
  3070. set(config.feature.show_comment, 1);
  3071. jscall(get(js_show_comments));
  3072. );
  3073. set(layer[comment_btn].crop, 0 | 734 | 80 | 81);
  3074. set(config.feature.show_comment, 1);
  3075. if (isAutoTouring == true AND config.autoTours.tour.hideHotspots == true,
  3076. hide_hotspots();
  3077. );
  3078. hide_vr_hotspot(); ",
  3079. "for(set(i,0),i LT hotspot.count,inc(i),
  3080. if (hotspot[get(i)].isComment,
  3081. set(hotspot[get(i)].visible, false);
  3082. );
  3083. );
  3084. for (set(i, 0), i LT layer.count, inc(i),
  3085. if (layer[get(i)].isComment,
  3086. set(layer[get(i)].visible, false);
  3087. );
  3088. );
  3089. set(layer[comment_btn].crop, 0 | 814 | 80 | 80);
  3090. jscall(get(js_hide_comments));
  3091. set(config.feature.show_comment, 0); ",
  3092. "set(avatarUrl,%3);
  3093. if (avatarUrl !== null,
  3094. if (plugin[commentsContainer] === null,
  3095. addplugin(commentsContainer);
  3096. set(plugin[commentsContainer].zorder, 50);
  3097. set(plugin[commentsContainer].keep, true);
  3098. );
  3099. set(newCommentContainer, 'new_comment_container');
  3100. txtadd(newCommentContainer,% 1);
  3101. addhotspot(get(newCommentContainer));
  3102. set(hotspot[get(newCommentContainer)].isComment, true);
  3103. set(hotspot[get(newCommentContainer)].keep, true);
  3104. set(hotspot[get(newCommentContainer)].isActiveHotspot, true);
  3105. set(hotspot[get(newCommentContainer)].ath,% 4);
  3106. set(hotspot[get(newCommentContainer)].atv,% 5);
  3107. set(hotspot[get(newCommentContainer)].width, 32);
  3108. set(hotspot[get(newCommentContainer)].height, 48);
  3109. if (device.desktop,
  3110. set(hotspot[get(newCommentContainer)].scale, 1);
  3111. ,
  3112. set(hotspot[get(newCommentContainer)].scale, 1.5);
  3113. );
  3114. hotspot[get(newCommentContainer)].loadstyle(skin_style);
  3115. set(hotspot[get(newCommentContainer)].crop, 200 | 203 | 64 | 96);
  3116. set(hotspot[get(newCommentContainer)].edge, bottom);
  3117. set(hotspot[get(newCommentContainer)].enabled, false);
  3118. set(hotspot[get(newCommentContainer)].zorder, get(hotspot.count));
  3119. set(hotspot[get(newCommentContainer)].handcursor, false);
  3120. set(hotspot[get(newCommentContainer)].visible, get(commentVisibled));
  3121. set(hotspot[get(newCommentContainer)].parent, commentsContainer);
  3122. set(newCommentHeadMask, 'new_comment_mask');
  3123. txtadd(newCommentHeadMask,% 1);
  3124. addlayer(get(newCommentHeadMask));
  3125. set(layer[get(newCommentHeadMask)].isComment, true);
  3126. set(layer[get(newCommentHeadMask)].visible, get(commentVisibled));
  3127. set(layer[get(newCommentHeadMask)].type, container);
  3128. if (device.desktop,
  3129. set(layer[get(newCommentHeadMask)].scale, 1);
  3130. ,
  3131. set(layer[get(newCommentHeadMask)].scale, 1.5);
  3132. );
  3133. set(layer[get(newCommentHeadMask)].keep, true);
  3134. set(layer[get(newCommentHeadMask)].x, 1);
  3135. set(layer[get(newCommentHeadMask)].width, 30);
  3136. set(layer[get(newCommentHeadMask)].height, 30);
  3137. set(layer[get(newCommentHeadMask)].bgcolor, 0xffffff);
  3138. set(layer[get(newCommentHeadMask)].bgalpha, 1);
  3139. set(layer[get(newCommentHeadMask)].maskchildren, true);
  3140. set(addCommentHotspotName, 'hotspot[');
  3141. txtadd(addCommentHotspotName, get(newCommentContainer));
  3142. txtadd(addCommentHotspotName, ']');
  3143. set(layer[get(newCommentHeadMask)].parent, get(addCommentHotspotName));
  3144. set(layer[get(newCommentHeadMask)].handcursor, false);
  3145. set(layer[get(newCommentHeadMask)].enabled, false);
  3146. set(layer[get(newCommentHeadMask)].zorder, get(layer.count));
  3147. set(layer[get(newCommentHeadMask)].bgroundedge, 5);
  3148. set(layer[get(newCommentHeadMask)].capture, false);
  3149. set(layer[get(newCommentHeadMask)].isActiveHotspot, true);
  3150. set(newCommentHead, 'new_comment_avatar');
  3151. txtadd(newCommentHead,% 1);
  3152. addlayer(get(newCommentHead));
  3153. set(layer[get(newCommentHead)].isComment, true);
  3154. set(layer[get(newCommentHead)].isActiveHotspot, true);
  3155. set(layer[get(newCommentHead)].visible, get(commentVisibled));
  3156. set(layer[get(newCommentHead)].keep, true);
  3157. if (device.desktop,
  3158. set(layer[get(newCommentHead)].scale, 1);
  3159. ,
  3160. set(layer[get(newCommentHead)].scale, 1.5);
  3161. );
  3162. set(layer[get(newCommentHead)].width, 30);
  3163. set(layer[get(newCommentHead)].height, "prop");
  3164. set(newCommentHeadUrl,% 3);
  3165. if (newCommentHeadUrl.length GT 0,
  3166. txtadd(newCommentHeadUrl,?imageMogr2 / thumbnail / 60x60!);
  3167. set(layer[get(newCommentHead)].url, get(newCommentHeadUrl));
  3168. );
  3169. set(addCommentMaskName, 'layer[');
  3170. txtadd(addCommentMaskName, get(newCommentHeadMask));
  3171. txtadd(addCommentMaskName, ']');
  3172. set(layer[get(newCommentHead)].parent, get(addCommentMaskName));
  3173. set(layer[get(newCommentHead)].handcursor, false);
  3174. set(layer[get(newCommentHead)].enabled, false);
  3175. set(layer[get(newCommentHead)].zorder, get(layer.count));
  3176. set(layer[get(newCommentHead)].capture, false);
  3177. set(layer[get(newCommentHead)].isActiveHotspot, true);
  3178. set(newCommentPointTextName, 'new_comment_point_text_container');
  3179. txtadd(newCommentPointTextName,% 1);
  3180. addhotspot(get(newCommentPointTextName));
  3181. set(hotspot[get(newCommentPointTextName)].keep, true);
  3182. set(hotspot[get(newCommentPointTextName)].isActiveHotspot, true);
  3183. set(hotspot[get(newCommentPointTextName)].isComment, true);
  3184. set(hotspot[get(newCommentPointTextName)].ath,% 4);
  3185. set(hotspot[get(newCommentPointTextName)].atv,% 5);
  3186. set(hotspot[get(newCommentPointTextName)].visible, get(commentVisibled));
  3187. set(hotspot[get(newCommentPointTextName)].type, container);
  3188. set(hotspot[get(newCommentPointTextName)].url, get(plugin_url.TEXT_SWF));
  3189. set(hotspot[get(newCommentPointTextName)].backgroundcolor, 0x000000);
  3190. set(hotspot[get(newCommentPointTextName)].backgroundalpha, 0.6);
  3191. if (device.flash,
  3192. set(hotspot[get(newCommentPointTextName)].backgroundalpha, 0.0);
  3193. );
  3194. set(hotspot[get(newCommentPointTextName)].enabled, false);
  3195. set(hotspot[get(newCommentPointTextName)].handcursor, false);
  3196. set(hotspot[get(newCommentPointTextName)].edge, topleft);
  3197. set(hotspot[get(newCommentPointTextName)].parent, get(addCommentHotspotName));
  3198. if (device.desktop,
  3199. set(hotspot[get(newCommentPointTextName)].css, font - family: STXihei; font - size: 12px; color: #FFFFFF; letter - spacing: 1px;);
  3200. set(hotspot[get(newCommentPointTextName)].padding, 8);
  3201. set(hotspot[get(newCommentPointTextName)].oy, -48);
  3202. set(hotspot[get(newCommentPointTextName)].ox, 18);
  3203. set(hotspot[get(newCommentPointTextName)].roundedge, 5);
  3204. set(hotspot[get(newCommentPointTextName)].parent, get(addCommentHotspotName));
  3205. ,
  3206. set(hotspot[get(newCommentPointTextName)].css, font - family: STXihei; font - size: 14px; color: #FFFFFF; letter - spacing: 1px;);
  3207. set(hotspot[get(newCommentPointTextName)].padding, 10);
  3208. set(hotspot[get(newCommentPointTextName)].oy, -74);
  3209. set(hotspot[get(newCommentPointTextName)].ox, 26);
  3210. set(hotspot[get(newCommentPointTextName)].roundedge, 5);
  3211. );
  3212. set(hotspot[get(newCommentPointTextName)].zorder, get(hotspot.count));
  3213. set(hotspot[get(newCommentPointTextName)].html, '%2');
  3214. set(hotspot[get(newCommentPointTextName)].renderer, "css3d");
  3215. set(hotspot[get(newCommentPointTextName)].parent, get(addCommentHotspotName));
  3216. ); ",
  3217. "for(set(i,0),i LT hotspot.count,inc(i),
  3218. if (hotspot[get(i)].isComment,
  3219. removehotspot(get(hotspot[get(i)].name));
  3220. dec(i);
  3221. );
  3222. );
  3223. for (set(i, 0), i LT layer.count, inc(i),
  3224. if (layer[get(i)].isComment,
  3225. removelayer(get(layer[get(i)].name));
  3226. dec(i);
  3227. );
  3228. );
  3229. set(config.feature.show_comment, 0); ",
  3230. "set(modify_comment_cmd,get(js_modify_comment));
  3231. txtadd(modify_comment_cmd, "('");
  3232. txtadd(modify_comment_cmd, get(config.info.id));
  3233. txtadd(modify_comment_cmd, "','");
  3234. txtadd(modify_comment_cmd, get(pano_id));
  3235. txtadd(modify_comment_cmd, "')");
  3236. set(config.feature.show_comment, 1);
  3237. jscall(get(modify_comment_cmd));
  3238. pause_autoplay();
  3239. hide_ui();
  3240. copy(commentAddAnimationUrl, settings.comment_add_head_bg_image);
  3241. addhotspot(add_hotspot_comment_bg_container);
  3242. set(hotspot[add_hotspot_comment_bg_container].ath, get(view.hlookat));
  3243. set(hotspot[add_hotspot_comment_bg_container].atv, get(view.vlookat));
  3244. set(hotspot[add_hotspot_comment_bg_container].width, 32);
  3245. set(hotspot[add_hotspot_comment_bg_container].height, 48);
  3246. if (device.desktop,
  3247. set(hotspot[add_hotspot_comment_bg_container].scale, 1.5);
  3248. ,
  3249. set(hotspot[add_hotspot_comment_bg_container].scale, 2);
  3250. );
  3251. copy(hotspot[add_hotspot_comment_bg_container].url, settings.comment_edit_line_image);
  3252. set(hotspot[add_hotspot_comment_bg_container].keep, false);
  3253. set(hotspot[add_hotspot_comment_bg_container].edge, bottom);
  3254. set(hotspot[add_hotspot_comment_bg_container].handcursor, true);
  3255. set(hotspot[add_hotspot_comment_bg_container].enabled, true);
  3256. set(hotspot[add_hotspot_comment_bg_container].zorder, 3600);
  3257. set(hotspot[add_hotspot_comment_bg_container].ondown, dragAddHotspot());
  3258. addlayer(add_hotspot_comment_mask);
  3259. set(layer[add_hotspot_comment_mask].type, "container");
  3260. if (device.desktop,
  3261. set(layer[add_hotspot_comment_mask].scale, 1.5);
  3262. ,
  3263. set(layer[add_hotspot_comment_mask].scale, 2.0);
  3264. );
  3265. set(layer[add_hotspot_comment_mask].keep, false);
  3266. set(layer[add_hotspot_comment_mask].x, 1);
  3267. set(layer[add_hotspot_comment_mask].width, 30);
  3268. set(layer[add_hotspot_comment_mask].height, 30);
  3269. set(layer[add_hotspot_comment_mask].bgcolor, 0xffffff);
  3270. set(layer[add_hotspot_comment_mask].bgalpha, 1);
  3271. set(layer[add_hotspot_comment_mask].maskchildren, true);
  3272. set(addCommentHotspotName, 'hotspot[');
  3273. txtadd(addCommentHotspotName, add_hotspot_comment_bg_container);
  3274. txtadd(addCommentHotspotName, ']');
  3275. set(layer[add_hotspot_comment_mask].parent, get(addCommentHotspotName));
  3276. set(layer[add_hotspot_comment_mask].handcursor, false);
  3277. set(layer[add_hotspot_comment_mask].enabled, false);
  3278. set(layer[add_hotspot_comment_mask].zorder, 3601);
  3279. set(layer[add_hotspot_comment_mask].bgroundedge, 6);
  3280. set(layer[add_hotspot_comment_mask].capture, false);
  3281. addlayer(add_hotspot_comment_avatar);
  3282. if (device.desktop,
  3283. set(layer[add_hotspot_comment_avatar].scale, 1.5);
  3284. ,
  3285. set(layer[add_hotspot_comment_avatar].scale, 2);
  3286. );
  3287. set(layer[add_hotspot_comment_avatar].width, 30);
  3288. set(layer[add_hotspot_comment_avatar].height, "prop");
  3289. set(newEditCommentHeadUrl,% 1);
  3290. if (newEditCommentHeadUrl.length GT 0,
  3291. txtadd(newEditCommentHeadUrl,?imageMogr2 / thumbnail / 60x60!);
  3292. set(layer[add_hotspot_comment_avatar].url, get(newEditCommentHeadUrl));
  3293. );
  3294. set(addCommentMaskName, 'layer[');
  3295. txtadd(addCommentMaskName, add_hotspot_comment_mask);
  3296. txtadd(addCommentMaskName, ']');
  3297. set(layer[add_hotspot_comment_avatar].parent, get(addCommentMaskName));
  3298. set(layer[add_hotspot_comment_avatar].handcursor, false);
  3299. set(layer[add_hotspot_comment_avatar].enabled, false);
  3300. set(layer[add_hotspot_comment_avatar].zorder, 2602);
  3301. set(layer[add_hotspot_comment_avatar].capture, false);
  3302. addhotspot(add_comment_point_text_container);
  3303. set(hotspot[add_comment_point_text_container].ath, get(view.hlookat));
  3304. set(hotspot[add_comment_point_text_container].atv, get(view.vlookat));
  3305. set(hotspot[add_comment_point_text_container].visible, true);
  3306. set(hotspot[add_comment_point_text_container].scale, 1);
  3307. copy(hotspot[add_comment_point_text_container].url, settings.comment_edit_bg_image);
  3308. set(hotspot[add_comment_point_text_container].css, font - family: STXihei; font - size: 14px; color: #FFFFFF; letter - spacing: 1px;);
  3309. set(hotspot[add_comment_point_text_container].backgroundcolor, 0xFF7F00);
  3310. set(hotspot[add_comment_point_text_container].backgroundalpha, 1);
  3311. set(hotspot[add_comment_point_text_container].padding, 10);
  3312. set(hotspot[add_comment_point_text_container].keep, false);
  3313. set(hotspot[add_comment_point_text_container].edge, topleft);
  3314. set(hotspot[add_comment_point_text_container].handcursor, true);
  3315. set(hotspot[add_comment_point_text_container].enabled, true);
  3316. set(hotspot[add_comment_point_text_container].ondown, dragAddHotspot());
  3317. if (device.desktop,
  3318. set(hotspot[add_comment_point_text_container].width, 178);
  3319. set(hotspot[add_comment_point_text_container].height, 52);
  3320. set(hotspot[add_comment_point_text_container].oy, -75);
  3321. set(hotspot[add_comment_point_text_container].ox, -26);
  3322. set(hotspot[add_comment_point_text_container].roundedge, 10);
  3323. ,
  3324. set(hotspot[add_comment_point_text_container].width, 232);
  3325. set(hotspot[add_comment_point_text_container].height, 68);
  3326. if (device.ios,
  3327. set(hotspot[add_comment_point_text_container].oy, -100);
  3328. set(hotspot[add_comment_point_text_container].ox, -35);
  3329. ,
  3330. set(hotspot[add_comment_point_text_container].oy, -100);
  3331. set(hotspot[add_comment_point_text_container].ox, -35);
  3332. );
  3333. set(hotspot[add_comment_point_text_container].roundedge, 18);
  3334. set(hotspot[add_comment_point_text_container].enable, true);
  3335. );
  3336. set(hotspot[add_comment_point_text_container].zorder, 2499);
  3337. addlayer(add_comment_text);
  3338. if (device.desktop,
  3339. set(layer[add_comment_text].x, 45);
  3340. ,
  3341. set(layer[add_comment_text].x, 65);
  3342. );
  3343. set(layer[add_comment_text].y, -15);
  3344. set(layer[add_comment_text].visible, true);
  3345. set(layer[add_comment_text].scale, 1);
  3346. set(layer[add_comment_text].align, left);
  3347. set(layer[add_comment_text].url, get(plugin_url.TEXT_SWF));
  3348. set(layer[add_comment_text].css, font - family: STXihei; font - size: 12px; color: #ffffff; letter - spacing: 1px;);
  3349. set(layer[add_comment_text].backgroundcolor,#000000);
  3350. set(layer[add_comment_text].backgroundalpha, 0);
  3351. set(layer[add_comment_text].padding, 8);
  3352. set(layer[add_comment_text].keep, false);
  3353. set(layer[add_comment_text].enabled, false);
  3354. set(layer[add_comment_text].handcursor, false);
  3355. set(layer[add_comment_text].alpha, 0);
  3356. set(layer[add_comment_text].zorder, 2604);
  3357. set(layer[add_comment_text].ondown, dragAddHotspot());
  3358. set(layer[add_comment_text].parent, get(addCommentHotspotName));
  3359. if (auto_rotate == 1, stopAutoRotate());
  3360. txtadd(addCommentTextContent, '');
  3361. set(newCommentAth, get(view.hlookat));
  3362. set(newCommentAtv, get(view.vlookat)); ",
  3363. "if(%1 != dragging,
  3364. spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery);
  3365. sub(drag_adjustx, mouse.stagex, hotspotcenterx);
  3366. sub(drag_adjusty, mouse.stagey, hotspotcentery);
  3367. dragAddHotspot(dragging);
  3368. ,
  3369. if (pressed,
  3370. sub(dx, mouse.stagex, drag_adjustx);
  3371. sub(dy, mouse.stagey, drag_adjusty);
  3372. screentosphere(dx, dy, ath, atv);
  3373. copy(print_ath, ath);
  3374. copy(print_atv, atv);
  3375. roundval(print_ath, 3);
  3376. roundval(print_atv, 3);
  3377. set(hotspot[add_hotspot_comment_bg_container].ath, get(print_ath));
  3378. set(hotspot[add_hotspot_comment_bg_container].atv, get(print_atv));
  3379. set(hotspot[add_comment_text].ath, get(print_ath));
  3380. set(hotspot[add_comment_text].atv, get(print_atv));
  3381. set(hotspot[add_comment_point_text_container].ath, get(print_ath));
  3382. set(hotspot[add_comment_point_text_container].atv, get(print_atv));
  3383. delayedcall(0, dragAddHotspot(dragging));
  3384. set(newCommentAth, get(print_ath));
  3385. set(newCommentAtv, get(print_atv));
  3386. );
  3387. ); ",
  3388. "set(comment_content, %1);
  3389. if (addCommentTextName != null AND comment_content != null,
  3390. set(layer[add_comment_text].html,% 1);
  3391. txtadd(comment_tooltip_width_search, % 1, '_countend');
  3392. indexoftxt(number_of_characters, get(comment_tooltip_width_search), '_countend', 0);
  3393. if (number_of_characters LT 8,
  3394. set(layer[add_comment_text].width, auto);
  3395. ,
  3396. set(layer[add_comment_text].width, 140);
  3397. );
  3398. set(layer[add_comment_text].height, auto);
  3399. delayedcall(0.2,
  3400. set(layer[add_comment_text].alpha, 1);
  3401. );
  3402. ,
  3403. set(layer[add_comment_text].html, '');
  3404. ); ",
  3405. "removehotspot(add_hotspot_comment_bg_container);
  3406. removelayer(add_hotspot_comment_mask);
  3407. removelayer(add_hotspot_comment_avatar);
  3408. removehotspot(add_comment_point_text_container);
  3409. removelayer(add_comment_text);
  3410. resume_autoplay();
  3411. show_UI(); ",
  3412. "if(sceneType != 3,
  3413. if (device.desktop,
  3414. set(contextmenu.item['fullscreen'].visible, true);
  3415. );
  3416. if (enableReport == true,
  3417. set(contextmenu.item['openReport'].visible, true);
  3418. );
  3419. ); ",
  3420. "if(forceDisableEmbed != 1,
  3421. if (plugin[embed_container] === null,
  3422. addplugin(embed_container);
  3423. set(plugin[embed_container].zorder, 0);
  3424. );
  3425. delete (embed_video_name);
  3426. set(embed_count, get(config.panos.pano[get(xml.scene)].embeds.embed.count));
  3427. for (set(i, 0), i LT embed_count, inc(i),
  3428. set(embed_name, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].name));
  3429. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 2,
  3430. copy(embed_name_bk, embed_name);
  3431. txtadd(embed_name_bk, '_bk');
  3432. addhotspot(get(embed_name_bk));
  3433. set(hotspot[get(embed_name_bk)].keep, false);
  3434. set(hotspot[get(embed_name_bk)].scale, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
  3435. set(hotspot[get(embed_name_bk)].ath, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
  3436. set(hotspot[get(embed_name_bk)].atv, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
  3437. set(hotspot[get(embed_name_bk)].edge, center);
  3438. set(hotspot[get(embed_name_bk)].distorted, true);
  3439. set(hotspot[get(embed_name_bk)].zoom, true);
  3440. set(hotspot[get(embed_name_bk)].renderer, css3d);
  3441. set(hotspot[get(embed_name_bk)].handcursor, false);
  3442. set(hotspot[get(embed_name_bk)].enabled, false);
  3443. set(hotspot[get(embed_name_bk)].visible, false);
  3444. set(hotspot[get(embed_name_bk)].parent, 'embed_container');
  3445. addhotspot(get(embed_name));
  3446. set(hotspot[get(embed_name)].keep, false);
  3447. copy(embed_image_url, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image[0].url);
  3448. txtadd(embed_image_url, '?imageView2/0/w/2000/h/2000');
  3449. copy(hotspot[get(embed_name)].url, embed_image_url);
  3450. set(hotspot[get(embed_name)].scale, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
  3451. set(hotspot[get(embed_name)].ath, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
  3452. set(hotspot[get(embed_name)].atv, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
  3453. set(hotspot[get(embed_name)].rx, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_x));
  3454. set(hotspot[get(embed_name)].ry, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_y));
  3455. set(hotspot[get(embed_name)].rz, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_z));
  3456. set(hotspot[get(embed_name)].edge, center);
  3457. set(hotspot[get(embed_name)].distorted, true);
  3458. set(hotspot[get(embed_name)].zoom, true);
  3459. set(hotspot[get(embed_name)].renderer, css3d);
  3460. set(hotspot[get(embed_name)].image_count, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image.count));
  3461. set(hotspot[get(embed_name)].image_index, 0);
  3462. set(hotspot[get(embed_name)].parent, 'embed_container');
  3463. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].play_type == 0,
  3464. set(hotspot[get(embed_name)].handcursor, false);
  3465. set(hotspot[get(embed_name)].enabled, false);
  3466. set(hotspot[get(embed_name)].playInterval, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].interval));
  3467. set(hotspot[get(embed_name)].onloaded,
  3468. if (image_count GT 1,
  3469. switch_embed_image();
  3470. );
  3471. );
  3472. ,
  3473. set(hotspot[get(embed_name)].handcursor, true);
  3474. set(hotspot[get(embed_name)].enabled, true);
  3475. set(hotspot[get(embed_name)].capture, false);
  3476. set(hotspot[get(embed_name)].playInterval, 0);
  3477. set(hotspot[get(embed_name)].onclick,
  3478. if (image_count GT 1,
  3479. switch_embed_image_click();
  3480. );
  3481. );
  3482. );
  3483. );
  3484. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 3,
  3485. addhotspot(get(embed_name));
  3486. set(hotspot[get(embed_name)].keep, false);
  3487. copy(embed_image_url, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image_url);
  3488. txtadd(embed_image_url, '?imageView2/2/w/2000/');
  3489. copy(hotspot[get(embed_name)].url, embed_image_url);
  3490. set(hotspot[get(embed_name)].scale, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
  3491. set(hotspot[get(embed_name)].ath, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
  3492. set(hotspot[get(embed_name)].atv, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
  3493. set(hotspot[get(embed_name)].rx, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_x));
  3494. set(hotspot[get(embed_name)].ry, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_y));
  3495. set(hotspot[get(embed_name)].rz, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_z));
  3496. set(hotspot[get(embed_name)].looptype, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].loop_type));
  3497. set(hotspot[get(embed_name)].frame, 0);
  3498. set(hotspot[get(embed_name)].framewidth, 1);
  3499. set(hotspot[get(embed_name)].frameheight, 1);
  3500. set(hotspot[get(embed_name)].framespeed, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].frame_speed));
  3501. set(hotspot[get(embed_name)].lastframe, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].frame_number));
  3502. set(hotspot[get(embed_name)].edge, center);
  3503. set(hotspot[get(embed_name)].distorted, true);
  3504. set(hotspot[get(embed_name)].zoom, true);
  3505. set(hotspot[get(embed_name)].renderer, css3d);
  3506. set(hotspot[get(embed_name)].image_count, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].image.count));
  3507. set(hotspot[get(embed_name)].image_index, 0);
  3508. set(hotspot[get(embed_name)].parent, 'embed_container');
  3509. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].play_type == 0,
  3510. set(hotspot[get(embed_name)].handcursor, false);
  3511. set(hotspot[get(embed_name)].enabled, false);
  3512. set(hotspot[get(embed_name)].playing, true);
  3513. set(hotspot[get(embed_name)].onloaded,
  3514. copy(framewidth, width);
  3515. copy(frameheight, height);
  3516. div(frameheight, lastframe);
  3517. txtadd(crop, '0|0|', get(framewidth), '|', get(frameheight));
  3518. embed_animate();
  3519. );
  3520. ,
  3521. set(hotspot[get(embed_name)].handcursor, true);
  3522. set(hotspot[get(embed_name)].enabled, true);
  3523. set(hotspot[get(embed_name)].capture, false);
  3524. set(hotspot[get(embed_name)].playing, false);
  3525. set(hotspot[get(embed_name)].onloaded,
  3526. copy(framewidth, width);
  3527. copy(frameheight, height);
  3528. div(frameheight, lastframe);
  3529. txtadd(crop, '0|0|', get(framewidth), '|', get(frameheight));
  3530. );
  3531. set(hotspot[get(embed_name)].onclick,
  3532. toggle(playing);
  3533. embed_animate();
  3534. );
  3535. );
  3536. );
  3537. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 5,
  3538. add_linear_polygon(
  3539. get(embed_name),
  3540. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_0].ath),
  3541. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_0].atv),
  3542. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_1].ath),
  3543. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].point[image_1].atv),
  3544. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].thickness),
  3545. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].color),
  3546. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].alpha),
  3547. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].title),
  3548. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath),
  3549. get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv)
  3550. );
  3551. );
  3552. jsget(isVip, 'window.interfaceObject.isVip()');
  3553. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].embed_type == 4 AND device.ie != true AND isVip == true,
  3554. set(need_pause_bg_music_sound, true);
  3555. set(embed_video_name, get(embed_name));
  3556. addhotspot(get(embed_name));
  3557. set(hotspot[get(embed_name)].keep, false);
  3558. set(hotspot[get(embed_name)].posterurl, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].cover_url));
  3559. set(hotspot[get(embed_name)].videourl, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].video_url));
  3560. set(hotspot[get(embed_name)].music_pause, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].music_pause));
  3561. set(hotspot[get(embed_name)].sound_pause, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].sound_pause));
  3562. set(hotspot[get(embed_name)].edge, center);
  3563. set(hotspot[get(embed_name)].distorted, true);
  3564. set(hotspot[get(embed_name)].embed_type, 4);
  3565. copy(hotspot[get(embed_name)].url, plugin_url.VIDEO_JS);
  3566. copy(embed_name_play, embed_name);
  3567. txtadd(embed_name_play, '_play');
  3568. addhotspot(get(embed_name_play));
  3569. set(hotspot[get(embed_name_play)].keep, false);
  3570. set(hotspot[get(embed_name_play)].scale, 0.5);
  3571. set(hotspot[get(embed_name_play)].url, calc(settings.skin_url + 'skin/embed_video_play.png'));
  3572. set(hotspot[get(embed_name_play)].edge, center);
  3573. set(hotspot[get(embed_name_play)].distorted, true);
  3574. copy(hotspot[get(embed_name_play)].target_video, embed_name);
  3575. set(hotspot[get(embed_name_play)].handcursor, true);
  3576. set(hotspot[get(embed_name_play)].visible, false);
  3577. set(hotspot[get(embed_name_play)].onclick, toggle_embed_video(););
  3578. set(hotspot[get(embed_name_play)].hotspot_id, get(embed_name));
  3579. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].position_type == 0,
  3580. set(hotspot[get(embed_name)].rotate, 0);
  3581. set(hotspot[get(embed_name)].scale, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].scale));
  3582. set(hotspot[get(embed_name)].ath, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].ath));
  3583. set(hotspot[get(embed_name)].atv, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].atv));
  3584. set(hotspot[get(embed_name)].rx, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_x));
  3585. set(hotspot[get(embed_name)].ry, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_y));
  3586. set(hotspot[get(embed_name)].rz, get(config.panos.pano[get(xml.scene)].embeds.embed[get(i)].rotation_z));
  3587. copy(hotspot[get(embed_name_play)].ath, hotspot[get(embed_name)].ath);
  3588. copy(hotspot[get(embed_name_play)].atv, hotspot[get(embed_name)].atv);
  3589. copy(hotspot[get(embed_name_play)].rx, hotspot[get(embed_name)].rx);
  3590. copy(hotspot[get(embed_name_play)].ry, hotspot[get(embed_name)].ry);
  3591. copy(hotspot[get(embed_name_play)].rz, hotspot[get(embed_name)].rz);
  3592. ,
  3593. set(hotspot[get(embed_name)].scale, 1);
  3594. set(hotspot[get(embed_name)].ath, 0);
  3595. set(hotspot[get(embed_name)].atv, 0);
  3596. set(hotspot[get(embed_name)].rx, 0);
  3597. set(hotspot[get(embed_name)].ry, 0);
  3598. set(hotspot[get(embed_name)].rz, 0);
  3599. set(hotspot[get(embed_name)].ox, 0);
  3600. set(hotspot[get(embed_name)].oy, 0);
  3601. set(hotspot[get(embed_name)].touchworkarounds, true);
  3602. set(hotspot[get(embed_name)].playsinline, true);
  3603. copy(hotspot[get(embed_name)].hfov, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].hfov);
  3604. copy(hotspot[get(embed_name)].yaw, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].yaw);
  3605. copy(hotspot[get(embed_name)].pitch, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].pitch);
  3606. copy(hotspot[get(embed_name)].roll, config.panos.pano[get(xml.scene)].embeds.embed[get(i)].roll);
  3607. set(hotspot[get(embed_name)].onloaded, calc_pos_from_hfov_yaw_pitch_roll());
  3608. );
  3609. set(hotspot[get(embed_name)].capture, false);
  3610. set(hotspot[get(embed_name)].onclick, toggle_embed_video(););
  3611. set(hotspot[get(embed_name)].hotspot_id, get(embed_name));
  3612. set(hotspot[get(embed_name)].handcursor, true);
  3613. set(hotspot[get(embed_name)].pausedonstart, true);
  3614. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].loop_type == 0,
  3615. set(hotspot[get(embed_name)].loop, true);
  3616. ,
  3617. set(hotspot[get(embed_name)].loop, false);
  3618. );
  3619. if (config.panos.pano[get(xml.scene)].embeds.embed[get(i)].muted == 0,
  3620. if (isAutoTouring == true,
  3621. set(hotspot[get(embed_name)].muted, true);
  3622. ,
  3623. set(hotspot[get(embed_name)].muted, false);
  3624. );
  3625. set(hotspot[get(embed_name)].muted_enabled, false);
  3626. ,
  3627. set(hotspot[get(embed_name)].muted, true);
  3628. set(hotspot[get(embed_name)].muted_enabled, true);
  3629. );
  3630. set(hotspot[get(embed_name)].onvideoready,
  3631. set(js_command, calc('interfaceObject.onKrpEmbedVideoReady("' + get(name) + '")'));
  3632. jscall(get(js_command));
  3633. if (webvr.isenabled == true,
  3634. set(hotspot[calc(name + '_play')].visible, false);
  3635. ,
  3636. set(hotspot[calc(name + '_play')].visible, true);
  3637. );
  3638. set(hotspot[get(embed_name)].onclick,);
  3639. set(hotspot[get(embed_name)].handcursor, false);
  3640. );
  3641. set(hotspot[get(embed_name)].onvideoplay,
  3642. set(hotspot[calc(name + '_play')].visible, false);
  3643. set(hotspot[get(name)].handcursor, true);
  3644. if (hotspot[get(name)].music_pause == 1,
  3645. js_toggleBgMusicEmbedVideo(false);
  3646. );
  3647. if (hotspot[get(name)].sound_pause == 1,
  3648. js_toggleBgVoiceEmbedVideo(false);
  3649. );
  3650. set(need_pause_bg_music_sound, false);
  3651. );
  3652. set(hotspot[get(embed_name)].onvideopaused,
  3653. if (need_show_play != false,
  3654. set(hotspot[calc(name + '_play')].visible, true);
  3655. );
  3656. set(hotspot[get(name)].handcursor, false);
  3657. if (hotspot[get(name)].music_pause == 1,
  3658. js_toggleBgMusicEmbedVideo(true);
  3659. );
  3660. if (hotspot[get(name)].sound_pause == 1,
  3661. js_toggleBgVoiceEmbedVideo(true);
  3662. );
  3663. );
  3664. );
  3665. );
  3666. delete (embed_name);
  3667. hide_vr_hotspot();
  3668. ); ",
  3669. "div(hfov,57.295779);
  3670. div(yaw, -57.295779);
  3671. div(pitch, 57.295779);
  3672. div(roll, -57.295779);
  3673. mul(hfov, 0.5); Math.tan(hfov); mul(width, hfov, 1000); set(height, 'prop');
  3674. Math.cos(ch, yaw); Math.sin(sh, yaw);
  3675. Math.cos(ca, pitch); Math.sin(sa, pitch);
  3676. Math.cos(cb, roll); Math.sin(sb, roll);
  3677. mul(m0, ca, ch);
  3678. mul(tmp, cb, sa); mul(tmp, ch); mul(tmp2, sb, sh); add(m3, tmp, tmp2);
  3679. mul(m4, cb, ca);
  3680. mul(tmp, cb, sa); mul(tmp, sh); mul(tmp2, sb, ch); sub(m5n, tmp, tmp2); mul(m5n, -1);
  3681. mul(tmp, sb, sa); mul(tmp, ch); mul(tmp2, cb, sh); sub(m6n, tmp, tmp2); mul(m6n, -1);
  3682. Math.atan2(yaw, m6n, m0);
  3683. Math.atan2(roll, m5n, m4);
  3684. Math.asin(pitch, m3);
  3685. mul(ath, yaw, 57.295779);
  3686. mul(atv, pitch, 57.295779);
  3687. mul(rotate, roll, 57.295779);
  3688. copy(hotspot[calc(name + '_play')].ath, ath);
  3689. copy(hotspot[calc(name + '_play')].atv, atv);
  3690. copy(hotspot[calc(name + '_play')].rotate, rotate); ",
  3691. "if(looptype == 1 AND frame == lastframe,
  3692. set(frame, 0);
  3693. mul(ypos, frame, frameheight);
  3694. txtadd(crop, '0|', get(ypos), '|', get(framewidth), '|', get(frameheight));
  3695. set(playing, false);
  3696. ,
  3697. inc(frame, 1, get(lastframe), 0);
  3698. mul(ypos, frame, frameheight);
  3699. txtadd(crop, '0|', get(ypos), '|', get(framewidth), '|', get(frameheight));
  3700. if (playing == true,
  3701. delayedcall(get(framespeed), embed_animate());
  3702. );
  3703. ); ",
  3704. "if(webvr.isenabled != true,
  3705. set(onloaded,);
  3706. copy(switch_embed_name_bk, name);
  3707. txtadd(switch_embed_name_bk, '_bk');
  3708. set(hotspot[calc(name)].bk, calc(name + '_bk'));
  3709. copy(hotspot[calc(name + '_bk')].target, name);
  3710. copy(hotspot[calc(name + '_bk')].rx, rx);
  3711. copy(hotspot[calc(name + '_bk')].ry, ry);
  3712. copy(hotspot[calc(name + '_bk')].rz, rz);
  3713. delayedcall(get(playInterval),
  3714. set(hotspot[calc(name + '_bk')].onloaded,
  3715. set(alpha, 1);
  3716. set(visible, true);
  3717. add(hotspot[calc(target)].image_index, 1);
  3718. if (hotspot[calc(target)].image_index == hotspot[calc(target)].image_count,
  3719. set(hotspot[calc(target)].image_index, 0);
  3720. );
  3721. set(hotspot[calc(target)].onloaded,
  3722. set(visible, true);
  3723. set(alpha, 0);
  3724. tween(alpha, 1.0, 0.2, linear,
  3725. set(hotspot[calc(bk)].visible, false);
  3726. switch_embed_image();
  3727. );
  3728. delayedcall(0.1,
  3729. tween(hotspot[calc(bk)].alpha, 0.0, 0.2, linear,
  3730. set(hotspot[calc(bk)].visible, false);
  3731. );
  3732. );
  3733. );
  3734. copy(embed_image_url, config.panos.pano[get(xml.scene)].embeds.embed[calc(target)].image[get(hotspot[calc(target)].image_index)].url);
  3735. txtadd(embed_image_url, '?imageView2/0/w/2000/h/2000');
  3736. set(hotspot[calc(target)].url, get(embed_image_url));
  3737. );
  3738. copy(hotspot[calc(name + '_bk')].url, url);
  3739. );
  3740. ); ",
  3741. "set(onloaded,);
  3742. copy(switch_embed_name_bk, name);
  3743. txtadd(switch_embed_name_bk, '_bk');
  3744. set(hotspot[calc(name)].bk, calc(name + '_bk'));
  3745. copy(hotspot[calc(name + '_bk')].target, name);
  3746. copy(hotspot[calc(name + '_bk')].rx, rx);
  3747. copy(hotspot[calc(name + '_bk')].ry, ry);
  3748. copy(hotspot[calc(name + '_bk')].rz, rz);
  3749. set(hotspot[calc(name + '_bk')].onloaded,
  3750. set(alpha, 1);
  3751. set(visible, true);
  3752. add(hotspot[calc(target)].image_index, 1);
  3753. if (hotspot[calc(target)].image_index == hotspot[calc(target)].image_count,
  3754. set(hotspot[calc(target)].image_index, 0);
  3755. );
  3756. set(hotspot[calc(target)].onloaded,
  3757. set(visible, true);
  3758. set(alpha, 0);
  3759. tween(alpha, 1.0, 0.2, linear,
  3760. set(hotspot[calc(bk)].visible, false);
  3761. );
  3762. delayedcall(0.1,
  3763. tween(hotspot[calc(bk)].alpha, 0.0, 0.2, linear,
  3764. set(hotspot[calc(bk)].visible, false);
  3765. );
  3766. );
  3767. );
  3768. copy(embed_image_url, config.panos.pano[get(xml.scene)].embeds.embed[calc(target)].image[get(hotspot[calc(target)].image_index)].url);
  3769. txtadd(embed_image_url, '?imageView2/0/w/2000/h/2000');
  3770. set(hotspot[calc(target)].url, get(embed_image_url));
  3771. );
  3772. copy(hotspot[calc(name + '_bk')].url, url); ",
  3773. "if(embed_video_name !== null AND hotspot[get(embed_video_name)].muted_enabled == false,
  3774. set(hotspot[get(embed_video_name)].muted, true);
  3775. ); ",
  3776. "if(embed_video_name !== null AND hotspot[get(embed_video_name)].muted_enabled == false,
  3777. set(hotspot[get(embed_video_name)].muted, false);
  3778. ); ",
  3779. "if(embed_video_name !== null AND hotspot[get(embed_video_name)].ispaused == true,
  3780. copy(embed_name_play, embed_video_name);
  3781. txtadd(embed_name_play, '_play');
  3782. if (hotspot[get(embed_name_play)] !== null AND hotspot[get(embed_name_play)].visible,
  3783. set(hotspot[get(embed_name_play)].visible, false);
  3784. set(need_resume_play_button, true);
  3785. );
  3786. );
  3787. if (embed_video_name !== null AND hotspot[get(embed_video_name)].ispaused == false,
  3788. hotspot[get(embed_video_name)].pause();
  3789. set(hotspot[get(embed_video_name)].need_resume, true);
  3790. set(hotspot[get(embed_video_name)].need_show_play, false);
  3791. ); ",
  3792. "if(embed_video_name !== null AND hotspot[get(embed_video_name)].ispaused == true,
  3793. copy(embed_name_play, embed_video_name);
  3794. txtadd(embed_name_play, '_play');
  3795. if (hotspot[get(embed_name_play)] !== null AND need_resume_play_button,
  3796. set(hotspot[get(embed_name_play)].visible, true);
  3797. set(need_resume_play_button, false);
  3798. );
  3799. );
  3800. if (embed_video_name !== null AND hotspot[get(embed_video_name)].need_resume == true,
  3801. hotspot[get(embed_video_name)].resume();
  3802. set(hotspot[get(embed_video_name)].need_show_play, true);
  3803. set(hotspot[get(embed_video_name)].need_resume, false);
  3804. ); ",
  3805. "set(js_command, calc('interfaceObject.onKrpEmbedVideoClick("' + get(hotspot_id) + '", ' + hotspot[get(hotspot_id)].ispaused + ')'));
  3806. jscall(get(js_command));
  3807. for (set(i, 0), i LT hotspot.count, inc(i),
  3808. if (hotspot[get(i)].embed_type == '4',
  3809. if (hotspot[get(i)].hotspot_id == get(hotspot_id),
  3810. hotspot[get(hotspot_id)].togglepause();
  3811. ,
  3812. hotspot[get(i)].pause();
  3813. );
  3814. );
  3815. ); ",
  3816. "update_linear_polygon_title(%1,%9,%10,%11);
  3817. addhotspot(% 1);
  3818. set(hotspot[% 1].enabled, fasle);
  3819. set(hotspot[% 1].capture, false);
  3820. set(hotspot[% 1].renderer, 'css3d');
  3821. set(hotspot[% 1].onclick,
  3822. if (editing_linear_polygon_name != name,
  3823. jscall(calc('window.onKrpEmbedClick("' + name + '")'));
  3824. );
  3825. );
  3826. update_linear_polygon_position(% 1,% 2,% 3,% 4,% 5);
  3827. update_linear_polygon_style(% 1,% 6,% 7,% 8);
  3828. updatescreen(); ",
  3829. "end_edit_linear_polygon();
  3830. if (% 1 != null,
  3831. removehotspot(% 1);
  3832. set(linear_polygon_txt_name, % 1);
  3833. txtadd(linear_polygon_txt_name, '_txt');
  3834. removehotspot(get(linear_polygon_txt_name));
  3835. ); ",
  3836. "if(%1 != null AND %2 !== null AND %3 !== null,
  3837. set(hotspot[% 1].point[0].ath, % 2);
  3838. set(hotspot[% 1].point[0].atv, % 3);
  3839. );
  3840. if (% 1 != null AND % 4 !== null AND % 5 !== null,
  3841. set(hotspot[% 1].point[1].ath, % 4);
  3842. set(hotspot[% 1].point[1].atv, % 5);
  3843. ); ",
  3844. "if(%2 !== null,
  3845. set(linear_polygon_default_width, % 2);
  3846. copy(hotspot[% 1].borderwidth, linear_polygon_default_width);
  3847. );
  3848. if (% 3 != null,
  3849. set(linear_polygon_default_color, % 3);
  3850. txtreplace(linear_polygon_default_color, '#', '0x');
  3851. copy(hotspot[% 1].bordercolor, linear_polygon_default_color);
  3852. );
  3853. if (% 4 !== null,
  3854. set(linear_polygon_default_alpha, % 4);
  3855. copy(hotspot[% 1].borderalpha, linear_polygon_default_alpha);
  3856. ); ",
  3857. "if(%1 != null,
  3858. set(linear_polygon_txt_name, % 1);
  3859. txtadd(linear_polygon_txt_name, '_txt');
  3860. if (hotspot[get(linear_polygon_txt_name)] === null,
  3861. addhotspot(get(linear_polygon_txt_name));
  3862. );
  3863. set(hotspot[get(linear_polygon_txt_name)].target_hotspot_name,% 1);
  3864. set(hotspot[get(linear_polygon_txt_name)].scale, 1);
  3865. set(hotspot[get(linear_polygon_txt_name)].capture, false);
  3866. set(hotspot[get(linear_polygon_txt_name)].enabled, false);
  3867. set(hotspot[get(linear_polygon_txt_name)].keep, false);
  3868. set(hotspot[get(linear_polygon_txt_name)].url, 'https://ssl-player2.720static.com/@/krp/1.19-pr8/plugins/textfield.swf');
  3869. set(hotspot[get(linear_polygon_txt_name)].backgroundcolor,#000000);
  3870. set(hotspot[get(linear_polygon_txt_name)].backgroundalpha, 0.5);
  3871. set(hotspot[get(linear_polygon_txt_name)].roundedge, 5);
  3872. set(hotspot[get(linear_polygon_txt_name)].padding, 5);
  3873. set(hotspot[get(linear_polygon_txt_name)].css, font - family: STXihei; font - size: 12px; color: #ffffff; letter - spacing: 1px; textAlign: center;);
  3874. set(hotspot[get(linear_polygon_txt_name)].edge, center);
  3875. set(hotspot[get(linear_polygon_txt_name)].renderer, "css3d");
  3876. set(hotspot[get(linear_polygon_txt_name)].zorder2, 1.0);
  3877. set(hotspot[get(linear_polygon_txt_name)].visible, true);
  3878. set(hotspot[get(linear_polygon_txt_name)].onclick,
  3879. if (editing_linear_polygon_name != target_hotspot_name,
  3880. jscall(calc('window.onKrpEmbedClick("' + target_hotspot_name + '")'));
  3881. );
  3882. );
  3883. if (% 3 != null,
  3884. set(hotspot[get(linear_polygon_txt_name)].ath, % 3);
  3885. );
  3886. if (% 4 != null,
  3887. set(hotspot[get(linear_polygon_txt_name)].atv, % 4);
  3888. );
  3889. set(linear_txt,% 2);
  3890. if (linear_txt != null,
  3891. set(hotspot[get(linear_polygon_txt_name)].html, % 2);
  3892. txtreplace(hotspot[get(linear_polygon_txt_name)].html, '
  3893. ','[br]');
  3894. set(hotspot[get(linear_polygon_txt_name)].visible, true);
  3895. ,
  3896. set(hotspot[get(linear_polygon_txt_name)].html,);
  3897. set(hotspot[get(linear_polygon_txt_name)].visible, false);
  3898. );
  3899. ); ",
  3900. "if(!device.desktop AND device.html5,
  3901. copy(plugin[gyro_plugin].url, plugin_url.GYRO);
  3902. ); ",
  3903. "js_request_gyro_promission();
  3904. switch (plugin[gyro_plugin].enabled);",
  3905. "js_request_gyro_promission();
  3906. if (isAutoTouring != true,
  3907. set(plugin[gyro_plugin].enabled, true);
  3908. ); ",
  3909. "set(plugin[gyro_plugin].enabled, false);",
  3910. "if(plugin[hotspot_container] === null,
  3911. addplugin(hotspot_container);
  3912. set(plugin[hotspot_container].zorder, 90);
  3913. set(plugin[hotspot_container].keep, true);
  3914. set(hotspot[hotspot_container].handcursor, true);
  3915. ); ",
  3916. "set(hotspot_name,%1);
  3917. ifnot(% 3 == 0,
  3918. addhotspot(get(hotspot_name));
  3919. set(hotspot[get(hotspot_name)].isActiveHotspot, true);
  3920. set(hotspot[get(hotspot_name)].hotspot_type,% 6);
  3921. set(hotspot[get(hotspot_name)].hotspot_id,% 1);
  3922. set(hotspot[get(hotspot_name)].ath,% 4);
  3923. set(hotspot[get(hotspot_name)].atv,% 5);
  3924. if (displayMode === null,
  3925. add(hotspot[get(hotspot_name)].atv, 5);
  3926. );
  3927. set(scale,% 12);
  3928. if (scale == null || scale == 'undefined', set(scale, 1));
  3929. if (% 3 == "1",
  3930. mul(scale, 0.5);
  3931. set(hotspot[get(hotspot_name)].scale, get(scale));
  3932. ,
  3933. mul(scale, 0.75);
  3934. set(hotspot[get(hotspot_name)].scale, get(scale));
  3935. );
  3936. if (% 8 == "1",
  3937. set(hotspot[get(hotspot_name)].frame, 0);
  3938. set(hotspot[get(hotspot_name)].framewidth, 100);
  3939. set(hotspot[get(hotspot_name)].frameheight, 100);
  3940. set(hotspot[get(hotspot_name)].isframe,% 8);
  3941. set(hotspot[get(hotspot_name)].framespeed,% 10);
  3942. set(hotspot[get(hotspot_name)].lastframe,% 9);
  3943. dec(hotspot[get(hotspot_name)].lastframe);
  3944. );
  3945. set(hotspot[get(hotspot_name)].capture, false);
  3946. set(hotspot[get(hotspot_name)].keep, false);
  3947. set(hotspot[get(hotspot_name)].handcursor, true);
  3948. set(hotspot[get(hotspot_name)].edge, center);
  3949. set(hotspot[get(hotspot_name)].zorder, 1000);
  3950. set(hotspot[get(hotspot_name)].onclick, hotspot_action(););
  3951. set(hotspot[get(hotspot_name)].parent, plugin[hotspot_container]);
  3952. set(hotspot_name_URL,% 2);
  3953. if (% 3 == "2",
  3954. if (% 8 == "1",
  3955. txtadd(hotspot_name_URL, '?imageView2/2/w/300/');
  3956. ,
  3957. txtadd(hotspot_name_URL, '?imageView2/0/w/300/');
  3958. );
  3959. set(hotspot[get(hotspot_name)].renderer, css3d);
  3960. set(hotspot[get(hotspot_name)].image_type, 2);
  3961. ,
  3962. set(hotspot[get(hotspot_name)].crop, 0 | 0 | 128 | 128);
  3963. indexoftxt(gif_index,% 2, '_gif');
  3964. if (gif_index GT - 1,
  3965. if (device.flash,
  3966. set(hotspot[get(hotspot_name)].framewidth, 64);
  3967. set(hotspot[get(hotspot_name)].frameheight, 64);
  3968. txtadd(hotspot_name_URL, '?imageView2/0/w/1600');
  3969. ,
  3970. set(hotspot[get(hotspot_name)].framewidth, 128);
  3971. set(hotspot[get(hotspot_name)].frameheight, 128);
  3972. );
  3973. set(hotspot[get(hotspot_name)].frame, 0);
  3974. indexoftxt(new_index,% 2, 'new_');
  3975. if (new_index GT - 1,
  3976. set(hotspot[get(hotspot_name)].lastframe, 24);
  3977. ,
  3978. set(hotspot[get(hotspot_name)].lastframe, 9);
  3979. );
  3980. set(hotspot[get(hotspot_name)].onloaded, hotspot_animate(););
  3981. ,
  3982. if (device.flash,
  3983. txtadd(hotspot_name_URL, '?imageView2/0/w/64');
  3984. set(hotspot[get(hotspot_name)].crop, 0 | 0 | 64 | 64);
  3985. );
  3986. );
  3987. );
  3988. set(hotspot[get(hotspot_name)].url, get(hotspot_name_URL));
  3989. );
  3990. if (% 8 == "1",
  3991. set(hotspot[get(hotspot_name)].renderer, css3d);
  3992. set(hotspot[get(hotspot_name)].onloaded,
  3993. copy(framewidth, width);
  3994. copy(frameheight, height);
  3995. copy(framecount, lastframe);
  3996. inc(framecount);
  3997. div(frameheight, framecount);
  3998. txtadd(crop, '0|0|', get(framewidth), '|', get(frameheight));
  3999. custom_hotspot_animate();
  4000. );
  4001. );
  4002. set(hotspot_txt_string, % 7);
  4003. if (hotspot_txt_string !== null AND hotspot_txt_string != undefined AND(hotspot_txt_string != '' OR calc(% 7 == '0')),
  4004. set(hotspot_txt_name, get(hotspot_name));
  4005. txtadd(hotspot_txt_name, "_txt");
  4006. addhotspot(get(hotspot_txt_name));
  4007. set(hotspot[get(hotspot_txt_name)].isActiveHotspot, true);
  4008. set(hotspot[get(hotspot_txt_name)].hotspot_id,% 1);
  4009. set(hotspot[get(hotspot_txt_name)].hotspot_type,% 6);
  4010. set(hotspot[get(hotspot_txt_name)].is_hotspot_txt, true);
  4011. set(hotspot[get(hotspot_txt_name)].image_type, get(hotspot[get(hotspot_name)].image_type));
  4012. set(hotspot[get(hotspot_txt_name)].html, get(hotspot_txt_string));
  4013. set(hotspot[get(hotspot_txt_name)].ath,% 4);
  4014. set(hotspot[get(hotspot_txt_name)].atv, get(hotspot[get(hotspot_name)].atv));
  4015. set(hotspot[get(hotspot_txt_name)].scale, 1);
  4016. set(hotspot[get(hotspot_txt_name)].url, get(plugin_url.TEXT_SWF));
  4017. set(hotspot[get(hotspot_txt_name)].capture, false);
  4018. set(hotspot[get(hotspot_txt_name)].keep, false);
  4019. set(hotspot[get(hotspot_txt_name)].renderer, "css3d");
  4020. if (hotspot[get(hotspot_name)].height === null,
  4021. set(hotspot[get(hotspot_name)].onloaded,
  4022. if (% 8 == "1",
  4023. copy(framewidth, width);
  4024. copy(frameheight, height);
  4025. copy(framecount, lastframe);
  4026. inc(framecount);
  4027. div(frameheight, framecount);
  4028. txtadd(crop, '0|0|', get(framewidth), '|', get(frameheight));
  4029. custom_hotspot_animate();
  4030. );
  4031. adjust_hotspot_position();
  4032. );
  4033. ,
  4034. set(hotspot[get(hotspot_txt_name)].oy, get(hotspot[get(hotspot_name)].height));
  4035. mul(hotspot[get(hotspot_txt_name)].oy, get(hotspot[get(hotspot_name)].scale));
  4036. mul(hotspot[get(hotspot_txt_name)].oy, -0.5);
  4037. sub(hotspot[get(hotspot_txt_name)].oy, 6);
  4038. );
  4039. set(hotspot[get(hotspot_txt_name)].backgroundcolor,#000000);
  4040. set(hotspot[get(hotspot_txt_name)].backgroundalpha, 0.5);
  4041. set(hotspot[get(hotspot_txt_name)].roundedge, 5);
  4042. set(hotspot[get(hotspot_txt_name)].padding, 5);
  4043. if (% 11 === null,
  4044. set(hotspot[get(hotspot_txt_name)].css, font - family: STXihei; font - size: 12px; color: #ffffff; letter - spacing: 1px; text - align: center;);
  4045. ,
  4046. set(hotspot[get(hotspot_txt_name)].css, 'font-family:STXihei; font-size:');
  4047. txtadd(hotspot[get(hotspot_txt_name)].css,% 11);
  4048. txtadd(hotspot[get(hotspot_txt_name)].css, 'px; color:#ffffff;letter-spacing:1px;text-align:center;');
  4049. );
  4050. set(hotspot[get(hotspot_txt_name)].edge, center);
  4051. set(hotspot[get(hotspot_txt_name)].show_txt, get(config.panos.pano[get(xml.scene)].hotspots.hotspot[get(i)].show_txt));
  4052. set(hotspot[get(hotspot_txt_name)].onclick, hotspot_action(););
  4053. set(hotspot[get(hotspot_txt_name)].parent, plugin[hotspot_container]);
  4054. );
  4055. if (webvr.isenabled,
  4056. hide_vr_hotspot();
  4057. );
  4058. if (isAutoTouring == true AND config.autoTours.tour.hideHotspots == true,
  4059. hide_hotspots();
  4060. ); ",
  4061. "addhotspot(%1);
  4062. set(hotspot[% 1].hotspot_id, % 1);
  4063. set(hotspot[% 1].ath,% 3);
  4064. set(hotspot[% 1].atv,% 4);
  4065. set(hotspot[% 1].scale, 1);
  4066. set(hotspot[% 1].keep, false);
  4067. set(hotspot[% 1].url, get(plugin_url.TEXT_SWF));
  4068. set(hotspot[% 1].html,% 2);
  4069. txtreplace(hotspot[% 1].html, '
  4070. ','[br]');
  4071. set(hotspot[% 1].bgshadow, "0 2 4 0x000000 0.3");
  4072. set(hotspot_css, 'font-size:12px; letter-spacing:1px;textAlign:center;');
  4073. if (% 5 != null,
  4074. txtadd(hotspot_css, 'color:');
  4075. txtadd(hotspot_css, % 5);
  4076. txtadd(hotspot_css, ';');
  4077. ,
  4078. txtadd(hotspot_css, 'color:#ffffff;');
  4079. );
  4080. if (% 6 != null,
  4081. txtadd(hotspot_css, '');
  4082. ,
  4083. txtadd(hotspot_css, '');
  4084. );
  4085. if (% 7 !== null,
  4086. set(hotspot[% 1].backgroundcolor,% 7);
  4087. ,
  4088. set(hotspot[% 1].backgroundcolor,#000000);
  4089. set(hotspot[% 1].bgborder, 0);
  4090. );
  4091. if (% 8 !== null,
  4092. set(hotspot[% 1].backgroundalpha,% 8);
  4093. ,
  4094. set(hotspot[% 1].backgroundalpha, 0.5);
  4095. );
  4096. set(hotspot[% 1].roundedge, 2);
  4097. set(hotspot[% 1].padding, '2 6');
  4098. set(hotspot[% 1].multiline, true);
  4099. set(hotspot[% 1].oy, -9);
  4100. set(hotspot[% 1].edge, bottom);
  4101. copy(hotspot[% 1].css, hotspot_css);
  4102. set(hotspot[% 1].handcursor, true);
  4103. set(hotspot[% 1].enabled, true);
  4104. set(hotspot[% 1].renderer, "css3d");
  4105. set(hotspot[% 1].zorder2, 1.0);
  4106. set(hotspot[% 1].parent, plugin[hotspot_container]);
  4107. set(hotspot[% 1].zorder, 1000);
  4108. set(hotspot[% 1].onclick, hotspot_action(););
  4109. set(embed_txt_bg_name,% 1);
  4110. txtadd(embed_txt_bg_name, "_bg");
  4111. addhotspot(get(embed_txt_bg_name));
  4112. if (% 7 !== null,
  4113. set(textbgcolor,% 7);
  4114. txtreplace(textbgcolor, '#', '');
  4115. txtreplace(textbgcolor, '0x', '');
  4116. toupper(textbgcolor);
  4117. copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_colored_image);
  4118. txtreplace(hotspot[get(embed_txt_bg_name)].url, 'color', get(textbgcolor));
  4119. if (textbgcolor == '24A566',
  4120. set(hotspot[% 1].bgborder, '1 0x31c27a 1');
  4121. ,
  4122. if (textbgcolor == 'ADADAD',
  4123. set(hotspot[% 1].bgborder, '1 0xbec0cd 1');
  4124. ,
  4125. if (textbgcolor == 'DB4437',
  4126. set(hotspot[% 1].bgborder, '1 0xF36264 1');
  4127. ,
  4128. if (textbgcolor == 'F5A623',
  4129. set(hotspot[% 1].bgborder, '1 0xffbb0f 1');
  4130. ,
  4131. if (textbgcolor == 'FFFFFF',
  4132. set(hotspot[% 1].bgborder, '1 0xc6c6c6 1');
  4133. );
  4134. );
  4135. );
  4136. );
  4137. );
  4138. ,
  4139. copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_image);
  4140. );
  4141. copy(hotspot[get(embed_txt_bg_name)].ath, hotspot[% 1].ath);
  4142. copy(hotspot[get(embed_txt_bg_name)].atv, hotspot[% 1].atv);
  4143. sub(hotspot[get(embed_txt_bg_name)].atv, 0.02);
  4144. set(hotspot[get(embed_txt_bg_name)].keep, false);
  4145. set(hotspot[get(embed_txt_bg_name)].scale, 0.5);
  4146. set(hotspot[get(embed_txt_bg_name)].edge, top);
  4147. if (device.mobile == true,
  4148. set(hotspot[get(embed_txt_bg_name)].oy, -6);
  4149. ,
  4150. set(hotspot[get(embed_txt_bg_name)].oy, -9);
  4151. );
  4152. set(hotspot[get(embed_txt_bg_name)].handcursor, true);
  4153. set(hotspot[get(embed_txt_bg_name)].enabled, true);
  4154. set(hotspot[get(embed_txt_bg_name)].renderer, 'css3d');
  4155. copy(hotspot[get(embed_txt_bg_name)].zorder, hotspot[% 1].zorder);
  4156. add(hotspot[get(embed_txt_bg_name)].zorder, 1);
  4157. set(hotspot[get(embed_txt_bg_name)].parent, plugin[hotspot_container]);
  4158. if (webvr.isenabled,
  4159. hide_vr_hotspot();
  4160. ); ",
  4161. "removehotspot(%1);
  4162. set(embed_txt_bg_name,% 1);
  4163. txtadd(embed_txt_bg_name, "_bg");
  4164. removehotspot(get(embed_txt_bg_name)); ",
  4165. "if(%2 != null,
  4166. set(hotspot_css, 'font-size:12px; letter-spacing:1px;textAlign:center;');
  4167. txtadd(hotspot_css, 'color:');
  4168. txtadd(hotspot_css, % 2);
  4169. txtadd(hotspot_css, ';');
  4170. copy(hotspot[% 1].css, hotspot_css);
  4171. );
  4172. if (% 3 != null,
  4173. );
  4174. if (% 4 !== null,
  4175. set(embed_txt_bg_name,% 1);
  4176. txtadd(embed_txt_bg_name, "_bg");
  4177. set(hotspot[% 1].backgroundcolor,% 4);
  4178. set(textbgcolor,% 4);
  4179. txtreplace(textbgcolor, '#', '');
  4180. txtreplace(textbgcolor, '0x', '');
  4181. toupper(textbgcolor);
  4182. copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_colored_image);
  4183. txtreplace(hotspot[get(embed_txt_bg_name)].url, 'color', get(textbgcolor));
  4184. if (textbgcolor == '24A566',
  4185. set(hotspot[% 1].bgborder, '1 0x31c27a 1');
  4186. ,
  4187. if (textbgcolor == 'ADADAD',
  4188. set(hotspot[% 1].bgborder, '1 0xbec0cd 1');
  4189. ,
  4190. if (textbgcolor == 'DB4437',
  4191. set(hotspot[% 1].bgborder, '1 0xF36264 1');
  4192. ,
  4193. if (textbgcolor == 'F5A623',
  4194. set(hotspot[% 1].bgborder, '1 0xffbb0f 1');
  4195. ,
  4196. if (textbgcolor == 'FFFFFF',
  4197. set(hotspot[% 1].bgborder, '1 0xc6c6c6 1');
  4198. );
  4199. );
  4200. );
  4201. );
  4202. );
  4203. );
  4204. if (% 5 !== null,
  4205. set(hotspot[% 1].backgroundalpha,% 5);
  4206. ); ",
  4207. {
  4208. "@name": "adjust_frame_hotspot"
  4209. },
  4210. "delayedcall(0.1,
  4211. set(hotspot_loaded_txt_name, get(name));
  4212. txtadd(hotspot_loaded_txt_name, "_txt");
  4213. set(hotspot[get(hotspot_loaded_txt_name)].oy, get(hotspot[get(name)].height));
  4214. mul(hotspot[get(hotspot_loaded_txt_name)].oy, get(hotspot[get(name)].scale));
  4215. mul(hotspot[get(hotspot_loaded_txt_name)].oy, -0.5);
  4216. sub(hotspot[get(hotspot_loaded_txt_name)].oy, 11);
  4217. sub(hotspot[get(hotspot_loaded_txt_name)].oy, 5);
  4218. ); ",
  4219. "js_hotspotClickCallback(get(hotspot_id));
  4220. if (hotspot_type == 5,
  4221. muted_embed_video();
  4222. ); ",
  4223. "inc(frame,1,get(lastframe),0);
  4224. mul(ypos, frame, frameheight);
  4225. txtadd(crop, '0|', get(ypos), '|', get(framewidth), '|', get(frameheight));
  4226. delayedcall(0.03, hotspot_animate()); ",
  4227. "inc(frame,1,get(lastframe),0);
  4228. mul(ypos, frame, frameheight);
  4229. txtadd(crop, '0|', get(ypos), '|', get(framewidth), '|', get(frameheight));
  4230. delayedcall(get(framespeed), custom_hotspot_animate()); ",
  4231. "set(plugin[hotspot_container].visible , true);
  4232. for (set(i, 0), i LT hotspot.count, inc(i),
  4233. if (hotspot[get(i)].hide_action == 'hide_hotspots',
  4234. set(hotspot[get(i)].visible, true);
  4235. set(hotspot[get(i)].hide_action, '');
  4236. );
  4237. ); ",
  4238. "set(plugin[hotspot_container].visible , false);
  4239. for (set(i, 0), i LT hotspot.count, inc(i),
  4240. if (hotspot[get(i)].isActiveHotspot AND hotspot[get(i)].visible,
  4241. set(hotspot[get(i)].visible, false);
  4242. set(hotspot[get(i)].hide_action, 'hide_hotspots');
  4243. );
  4244. ); ",
  4245. "if(%1 != null,
  4246. addhotspot(% 1);
  4247. for (set(i, 0), i LT polygon_swap_data.point.count, inc(i),
  4248. copy(hotspot[% 1].point[get(i)].ath, polygon_swap_data.point[get(i)].ath);
  4249. copy(hotspot[% 1].point[get(i)].atv, polygon_swap_data.point[get(i)].atv);
  4250. );
  4251. set(hotspot[% 1].title, % 13);
  4252. set(hotspot[% 1].isActiveHotspot, true);
  4253. set(hotspot[% 1].hotspot_type,% 12);
  4254. set(hotspot[% 1].hotspot_id, % 1);
  4255. set(hotspot[% 1].capture, false);
  4256. set(hotspot[% 1].zorder, 1000);
  4257. set(hotspot[% 1].onclick, hotspot_action(););
  4258. update_polygon_style(% 1, % 2, % 3, % 4, % 5, % 6, % 7, % 8, % 9, % 10, % 11);
  4259. update_polygon_title(% 1, % 13, % 14);
  4260. ); ",
  4261. "if(%1 != null,
  4262. set(polygon_txt_name, % 1);
  4263. txtadd(polygon_txt_name, '_txt');
  4264. set(hotspot[% 1].title, % 2);
  4265. if (hotspot[get(polygon_txt_name)] === null,
  4266. addhotspot(get(polygon_txt_name));
  4267. );
  4268. if (hotspot[% 1].title !== null AND hotspot[% 1].title != '' AND hotspot[% 1].title != undefined AND hotspot[% 1].point.count GT 0,
  4269. set(hotspot[get(polygon_txt_name)].target_hotspot_name,% 1);
  4270. set(hotspot[get(polygon_txt_name)].scale, 1);
  4271. set(hotspot[get(polygon_txt_name)].capture, false);
  4272. set(hotspot[get(polygon_txt_name)].isActiveHotspot, true);
  4273. set(hotspot[get(polygon_txt_name)].hotspot_id,% 1);
  4274. copy(hotspot[get(polygon_txt_name)].hotspot_type, hotspot[% 1].hotspot_type);
  4275. set(hotspot[get(polygon_txt_name)].keep, false);
  4276. set(hotspot[get(polygon_txt_name)].renderer, "css3d");
  4277. set(hotspot[get(polygon_txt_name)].url, 'https://ssl-player2.720static.com/@/krp/1.19-pr8/plugins/textfield.swf');
  4278. set(hotspot[get(polygon_txt_name)].backgroundcolor,#000000);
  4279. set(hotspot[get(polygon_txt_name)].backgroundalpha, 0.5);
  4280. set(hotspot[get(polygon_txt_name)].roundedge, 5);
  4281. set(hotspot[get(polygon_txt_name)].padding, 5);
  4282. if (% 3 === null,
  4283. set(hotspot[get(polygon_txt_name)].css, font - family: STXihei; font - size: 12px; color: #ffffff; letter - spacing: 1px; text - align: center;);
  4284. ,
  4285. set(hotspot[get(polygon_txt_name)].css, 'font-family:STXihei; font-size:');
  4286. txtadd(hotspot[get(polygon_txt_name)].css,% 3);
  4287. txtadd(hotspot[get(polygon_txt_name)].css, 'px; color:#ffffff;letter-spacing:1px;text-align:center;');
  4288. );
  4289. set(hotspot[get(polygon_txt_name)].edge, center);
  4290. set(hotspot[get(polygon_txt_name)].visible, true);
  4291. copy(hotspot[get(polygon_txt_name)].html, hotspot[% 1].title);
  4292. set(hotspot[get(polygon_txt_name)].onclick,
  4293. if (target_hotspot_name != editing_polygon_name,
  4294. hotspot_action();
  4295. );
  4296. );
  4297. update_polygon_title_postion(% 1);
  4298. ,
  4299. set(hotspot[get(polygon_txt_name)].visible, false);
  4300. );
  4301. );
  4302. if (webvr.isenabled,
  4303. hide_vr_hotspot();
  4304. ); ",
  4305. "copy(toAth,hotspot[%1].point[0].ath);
  4306. copy(toAtv, hotspot[% 1].point[0].atv);
  4307. for (set(i, 1), i LT hotspot[% 1].point.count, inc(i),
  4308. if (hotspot[% 1].point[get(i)].atv LT toAtv,
  4309. copy(toAth, hotspot[% 1].point[get(i)].ath);
  4310. copy(toAtv, hotspot[% 1].point[get(i)].atv);
  4311. );
  4312. );
  4313. copy(hotspot[get(polygon_txt_name)].ath, toAth);
  4314. copy(hotspot[get(polygon_txt_name)].atv, toAtv);
  4315. sub(hotspot[get(polygon_txt_name)].atv, 2); ",
  4316. "if(%1 != null,
  4317. set(polygon_txt_name, % 1);
  4318. txtadd(polygon_txt_name, '_txt');
  4319. removehotspot(% 1);
  4320. removehotspot(get(polygon_txt_name));
  4321. ); ",
  4322. "if(%1 != null,
  4323. if (% 2 !== null,
  4324. set(hotspot[% 1].fillcolor, % 2);
  4325. set(hotspot[% 1].normal_color, % 2);
  4326. );
  4327. if (% 3 !== null,
  4328. set(hotspot[% 1].normal_alpha, % 3);
  4329. set(hotspot[% 1].fillalpha, % 3);
  4330. );
  4331. if (% 4 !== null,
  4332. set(hotspot[% 1].normal_border_width, % 4);
  4333. set(hotspot[% 1].borderwidth, % 4);
  4334. );
  4335. if (% 5 !== null,
  4336. set(hotspot[% 1].normal_border_color, % 5);
  4337. set(hotspot[% 1].bordercolor, % 5);
  4338. );
  4339. if (% 6 !== null,
  4340. set(hotspot[% 1].normal_border_alpha, % 6);
  4341. set(hotspot[% 1].borderalpha, % 6);
  4342. );
  4343. set(hotspot[% 1].over_color, % 7);
  4344. set(hotspot[% 1].over_alpha, % 8);
  4345. set(hotspot[% 1].over_border_width, % 9);
  4346. set(hotspot[% 1].over_border_color, % 10);
  4347. set(hotspot[% 1].over_border_alpha, % 11);
  4348. if (% 7 !== null OR % 8 !== null OR % 9 !== null OR % 10 !== null OR % 11 !== null,
  4349. set(hotspot[% 1].onover,
  4350. if (over_color !== null,
  4351. tween(fillcolor, get(over_color));
  4352. );
  4353. if (over_alpha !== null,
  4354. tween(fillalpha, get(over_alpha));
  4355. );
  4356. if (over_border_width !== null,
  4357. tween(borderwidth, get(over_border_width));
  4358. );
  4359. if (over_border_color !== null,
  4360. tween(bordercolor, get(over_border_color));
  4361. );
  4362. if (over_border_alpha !== null,
  4363. tween(borderalpha, get(over_border_alpha));
  4364. );
  4365. );
  4366. set(hotspot[% 1].onout,
  4367. if (normal_color !== null,
  4368. tween(fillcolor, get(normal_color));
  4369. );
  4370. if (normal_alpha !== null,
  4371. tween(fillalpha, get(normal_alpha));
  4372. );
  4373. if (normal_border_width !== null,
  4374. tween(borderwidth, get(normal_border_width));
  4375. );
  4376. if (normal_border_color !== null,
  4377. tween(bordercolor, get(normal_border_color));
  4378. );
  4379. if (normal_border_alpha !== null,
  4380. tween(borderalpha, get(normal_border_alpha));
  4381. );
  4382. );
  4383. if (device.mouse == false,
  4384. set(hotspot[% 1].ondown,
  4385. if (over_color !== null,
  4386. tween(fillcolor, get(over_color));
  4387. );
  4388. if (over_alpha !== null,
  4389. tween(fillalpha, get(over_alpha));
  4390. );
  4391. if (over_border_width !== null,
  4392. tween(borderwidth, get(over_border_width));
  4393. );
  4394. if (over_border_color !== null,
  4395. tween(bordercolor, get(over_border_color));
  4396. );
  4397. if (over_border_alpha !== null,
  4398. tween(borderalpha, get(over_border_alpha));
  4399. );
  4400. );
  4401. set(hotspot[% 1].onup,
  4402. if (normal_color !== null,
  4403. tween(fillcolor, get(normal_color));
  4404. );
  4405. if (normal_alpha !== null,
  4406. tween(fillalpha, get(normal_alpha));
  4407. );
  4408. if (normal_border_width !== null,
  4409. tween(borderwidth, get(normal_border_width));
  4410. );
  4411. if (normal_border_color !== null,
  4412. tween(bordercolor, get(normal_border_color));
  4413. );
  4414. if (normal_border_alpha !== null,
  4415. tween(borderalpha, get(normal_border_alpha));
  4416. );
  4417. );
  4418. );
  4419. ,
  4420. set(hotspot[% 1].onover, null);
  4421. set(hotspot[% 1].onout, null);
  4422. );
  4423. ); ",
  4424. "if(config.panos.pano[get(scene_name)].view.fovmin == "" OR config.panos.pano[get(scene_name)].view.fovmin === null,
  4425. set(config.panos.pano[get(scene_name)].view.fovmin, 70);
  4426. );
  4427. if (config.panos.pano[get(scene_name)].view.fovmax == "" OR config.panos.pano[get(scene_name)].view.fovmax === null,
  4428. set(config.panos.pano[get(scene_name)].view.fovmax, 120);
  4429. );
  4430. if (forceFov !== null,
  4431. copy(config.panos.pano[get(scene_name)].view.fov, forceFov);
  4432. copy(config.panos.pano[get(scene_name)].view.fovmin, forceFovmin);
  4433. copy(config.panos.pano[get(scene_name)].view.fovmax, forceFovmax);
  4434. );
  4435. if (enableLittleplanet == 1,
  4436. set(view.fovmax, 170);
  4437. set(view.limitview, lookat);
  4438. set(view.vlookatmin, 90);
  4439. set(view.vlookatmax, 90);
  4440. lookat(calc(lp_hlookat + 180), 90, 150, 1, 0, 0);
  4441. ,
  4442. if (enableLittleplanet == 2,
  4443. copy(view.hlookat, config.panos.pano[get(xml.scene)].view.hlookat);
  4444. copy(view.vlookat, config.panos.pano[get(xml.scene)].view.vlookat);
  4445. copy(view.fov, config.panos.pano[get(xml.scene)].view.fov);
  4446. copy(view.fovmax, config.panos.pano[get(xml.scene)].view.fovmax);
  4447. copy(view.limitview, config.panos.pano[get(xml.scene)].view.limitview);
  4448. add(view.hlookat, 360);
  4449. ,
  4450. if (enableLittleplanet == 3,
  4451. set(view.fisheye, 1.0);
  4452. set(view.fov, 150);
  4453. set(view.vlookat, -65);
  4454. set(view.hlookat, get(config.panos.pano[get(xml.scene)].hlookat));
  4455. ,
  4456. if (enableLittleplanet == 4,
  4457. set(view.fov, 110);
  4458. set(view.architectural, 0.0);
  4459. set(view.pannini, 0.0);
  4460. set(view.distortion, 2.8);
  4461. ,
  4462. if (enableLittleplanet == 5,
  4463. set(view.architectural, 0.0);
  4464. set(view.fovmax, 150);
  4465. set(view.fov, 150);
  4466. set(view.fisheye, 1.0);
  4467. );
  4468. );
  4469. );
  4470. );
  4471. ); ",
  4472. "set(control.usercontrol, off);
  4473. copy(lp_scene, xml.scene);
  4474. copy(lp_hlookat, config.panos.pano[get(xml.scene)].view.hlookat);
  4475. copy(lp_vlookat, config.panos.pano[get(xml.scene)].view.vlookat);
  4476. copy(lp_fov, config.panos.pano[get(xml.scene)].view.fov);
  4477. copy(lp_fovmax, config.panos.pano[get(xml.scene)].view.fovmax);
  4478. copy(lp_limitview, config.panos.pano[get(xml.scene)].view.limitview);
  4479. if (enableLittleplanet == 1,
  4480. startViewAnimation1();
  4481. ,
  4482. if (enableLittleplanet == 2,
  4483. startViewAnimation2();
  4484. ,
  4485. if (enableLittleplanet == 3,
  4486. startViewAnimation3();
  4487. ,
  4488. if (enableLittleplanet == 4,
  4489. startViewAnimation4();
  4490. ,
  4491. if (enableLittleplanet == 5,
  4492. startViewAnimation5();
  4493. );
  4494. );
  4495. );
  4496. );
  4497. );
  4498. autorotate.stop(); ",
  4499. "set(view.fovmax, 170);
  4500. set(view.limitview, lookat);
  4501. set(view.vlookatmin, 90);
  4502. set(view.vlookatmax, 90);
  4503. lookat(calc(lp_hlookat + 180), 90, 150, 1, 0, 0);
  4504. set(events[lp_events].onpreviewcomplete,
  4505. delayedcall(2,
  4506. if (lp_scene === xml.scene,
  4507. set(control.usercontrol, off);
  4508. copy(view.limitview, lp_limitview);
  4509. set(view.vlookatmin, null);
  4510. set(view.vlookatmax, null);
  4511. tween(view.hlookat | view.vlookat | view.fov | view.distortion, calc('' + lp_hlookat + '|' + lp_vlookat + '|' + lp_fov + '|' + 0.0),
  4512. 3.0, easeOutQuad,
  4513. animationComplete();
  4514. );
  4515. );
  4516. );
  4517. ); ",
  4518. "copy(view.hlookat, config.panos.pano[get(xml.scene)].view.hlookat);
  4519. sub(view.hlookat, 360);
  4520. set(events[lp_events].onpreviewcomplete,
  4521. delayedcall(1,
  4522. if (lp_scene === xml.scene,
  4523. set(control.usercontrol, off);
  4524. tween(view.hlookat, get(lp_hlookat),
  4525. 12.0, easeInOutSine,
  4526. animationComplete();
  4527. );
  4528. );
  4529. );
  4530. ); ",
  4531. "set(view.fov, 70);
  4532. set(view.vlookat, -40);
  4533. set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
  4534. sub(view.hlookat, 360);
  4535. tween(view.vlookat, 90, 9, easeInOutSine);
  4536. delayedcall(animation2_0, 2,
  4537. tween(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat), 7.5, easeInOutSine);
  4538. tween(view.fov, 150.0, 7.5, easeInOutSine);
  4539. delayedcall(animation2_1, 7.6,
  4540. tween(view.fisheye, 0.0, 3);
  4541. tween(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat), 3, easeInOutSine);
  4542. tween(view.fov, get(config.panos.pano[get(xml.scene)].view.fov), 3, easeInOutSine,
  4543. animationComplete();
  4544. );
  4545. );
  4546. ); ",
  4547. "set(view.fov, 110);
  4548. set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
  4549. sub(view.hlookat, 360);
  4550. tween(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat), 7.5, easeInOutSine);
  4551. tween(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat), 7.5, easeInOutSine);
  4552. delayedcall(3.5, tween(view.distortion, 0, 4, easeInOutSine););
  4553. tween(view.fov, get(config.panos.pano[get(xml.scene)].view.fov), 7.5, easeInOutSine,
  4554. animationComplete();
  4555. ); ",
  4556. "set(view.fov, 150);
  4557. set(view.vlookat, -65);
  4558. set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
  4559. add(view.hlookat, 360);
  4560. tween(view.vlookat, 90.0, 9.5, easeInOutSine);
  4561. tween(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat), 9.5, easeInOutSine);
  4562. delayedcall(animation3_0, 9.6,
  4563. tween(view.fisheye, 0.0, 3);
  4564. tween(view.fov, get(config.panos.pano[get(xml.scene)].view.fov), 3, easeInOutSine,
  4565. animationComplete();
  4566. );
  4567. delayedcall(0.5, tween(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat), 2.5, easeInOutSine););
  4568. ); ",
  4569. "set(control.usercontrol, all);
  4570. setup_pano_settings();
  4571. setup_global_settings();
  4572. js_sceneReadyCallback();
  4573. setup_autoplay();
  4574. autorotate.interrupt(); ",
  4575. "if(config.panos.pano[get(scene_name)].top_circle !== null AND config.panos.pano[get(scene_name)].top_circle.type != 1 AND forceDisableMask != 1,
  4576. addhotspot(top_mask_layer);
  4577. set(hotspot[top_mask_layer].ath, 0);
  4578. set(hotspot[top_mask_layer].isMask, true);
  4579. set(hotspot[top_mask_layer].atv, -90);
  4580. if (config.panos.pano[get(scene_name)].top_circle.scale !== null,
  4581. set(hotspot[top_mask_layer].scale, get(config.panos.pano[get(scene_name)].top_circle.scale));
  4582. );
  4583. set(hotspot[top_mask_layer].rotate, 0.0);
  4584. set(hotspot[top_mask_layer].distorted, true);
  4585. set(hotspot[top_mask_layer].enabled, false);
  4586. set(hotspot[top_mask_layer].handcursor, false);
  4587. set(hotspot[top_mask_layer].visible, true);
  4588. set(hotspot[top_mask_layer].keep, false);
  4589. if (config.panos.pano[get(scene_name)].top_circle.is_float == 1,
  4590. set(hotspot[top_mask_layer].distorted, false);
  4591. set(hotspot[top_mask_layer].zoom, true);
  4592. );
  4593. if (config.panos.pano[get(scene_name)].top_circle.type == 0,
  4594. copy(hotspot[top_mask_layer].url, settings.circle_mask);
  4595. ,
  4596. copy(top_circle_url, config.panos.pano[get(scene_name)].top_circle.url);
  4597. txtadd(top_circle_url, '?imageView2/0/w/1024/h/1024');
  4598. copy(hotspot[top_mask_layer].url, top_circle_url);
  4599. );
  4600. ); ",
  4601. "if(config.panos.pano[get(scene_name)].bottom_circle !== null AND config.panos.pano[get(scene_name)].bottom_circle.type != 1 AND forceDisableMask != 1,
  4602. addhotspot(bottom_mask_layer);
  4603. if (config.panos.pano[get(scene_name)].bottom_circle.scale !== null,
  4604. set(hotspot[bottom_mask_layer].scale, get(config.panos.pano[get(scene_name)].bottom_circle.scale));
  4605. );
  4606. set(hotspot[bottom_mask_layer].ath, 0);
  4607. set(hotspot[bottom_mask_layer].isMask, true);
  4608. set(hotspot[bottom_mask_layer].atv, 90);
  4609. set(hotspot[bottom_mask_layer].rotate, 0.0);
  4610. set(hotspot[bottom_mask_layer].distorted, true);
  4611. set(hotspot[bottom_mask_layer].enabled, false);
  4612. set(hotspot[bottom_mask_layer].handcursor, false);
  4613. set(hotspot[bottom_mask_layer].visible, true);
  4614. set(hotspot[bottom_mask_layer].keep, false);
  4615. set(hotspot[bottom_mask_layer].zorder, 0);
  4616. if (config.panos.pano[get(scene_name)].bottom_circle.is_float == 1,
  4617. set(hotspot[bottom_mask_layer].distorted, false);
  4618. set(hotspot[bottom_mask_layer].zoom, true);
  4619. );
  4620. if (config.panos.pano[get(scene_name)].bottom_circle.type == 0,
  4621. copy(hotspot[bottom_mask_layer].url, settings.circle_mask);
  4622. ,
  4623. copy(bottom_circle_url, config.panos.pano[get(scene_name)].bottom_circle.url);
  4624. txtadd(bottom_circle_url, '?imageView2/0/w/1024/h/1024');
  4625. copy(hotspot[bottom_mask_layer].url, bottom_circle_url);
  4626. );
  4627. ); ",
  4628. "set(radarEnabled, false);
  4629. 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),
  4630. set(radarEnabled, true);
  4631. set(layer[radar_layer].type, container);
  4632. set(layer[radar_layer].align, topright);
  4633. set(layer[radar_layer].width, 200);
  4634. set(layer[radar_layer].height, 200);
  4635. set(layer[radar_layer].bgcapture, true);
  4636. set(layer[radar_layer].handcursor, false);
  4637. set(layer[radar_layer].onclick, toggleRadar(); set(layer[radarImageClose].visible, false); js_radarMapFullscreenStatusDidChangeCallback(false););
  4638. if (device.html5,
  4639. add(layer[radar_layer].width, 4);
  4640. add(layer[radar_layer].height, 4);
  4641. );
  4642. if (device.desktop,
  4643. set(layer[radar_layer].y, 55);
  4644. set(layer[radar_layer].x, -313);
  4645. ,
  4646. set(layer[radar_layer].y, 60);
  4647. set(layer[radar_layer].x, -313);
  4648. );
  4649. set(layer[radar_layer].bgalpha, 0);
  4650. set(layer[radar_layer].zorder, 5);
  4651. set(destpos1, -313);
  4652. set(destpos2, -100);
  4653. addlayer(radarBtn);
  4654. set(layer[radarBtn].parent, feature_container);
  4655. set(layer[radarBtn].align, centerright);
  4656. set(layer[radarBtn].scale, 0.5);
  4657. set(layer[radarBtn].x, 0);
  4658. set(layer[radarBtn].y, 0);
  4659. if (sceneType == 1,
  4660. set(layer[radarBtn].crop, 2 | 107 | 108 | 192);
  4661. layer[radarBtn].loadstyle(skin_style);
  4662. set(layer[radarBtn].title, '沙盘开关');
  4663. set(layer[radarBtn].onclick,
  4664. toggleRadar();
  4665. );
  4666. ,
  4667. set(layer[radarBtn].scale, 0);
  4668. set(layer[radarBtn].width, 0);
  4669. set(layer[radarBtn].height, 0);
  4670. );
  4671. addlayer(mapImage);
  4672. set(layer[mapImage].parent, radar_layer);
  4673. set(layer[mapImage].align, center);
  4674. set(layer[mapImage].x, 0);
  4675. set(layer[mapImage].y, 0);
  4676. set(map_url, get(config.panos.pano[get(scene_name)].radar.map_url));
  4677. txtadd(map_url, '?imageMogr2/thumbnail/480x');
  4678. set(layer[mapImage].url, get(map_url));
  4679. set(layer[mapImage].zorder, 9);
  4680. set(layer[mapImage].handcursor, false);
  4681. set(layer[mapImage].onloaded, set(radarImageWidth, get(width)); set(radarImageHeight, get(height)); set(layer[mapImage].width, 200); set(layer[mapImage].height, 200););
  4682. addlayer(mapImageLoading);
  4683. set(layer[mapImageLoading].parent, radar_layer);
  4684. set(layer[mapImageLoading].align, center);
  4685. set(layer[mapImageLoading].x, 0);
  4686. set(layer[mapImageLoading].y, 0);
  4687. set(layer[mapImageLoading].zorder, 7);
  4688. set(layer[mapImageLoading].handcursor, false);
  4689. addlayer(radarMask);
  4690. set(layer[radarMask].parent, mapImage);
  4691. set(layer[radarMask].type, container);
  4692. set(layer[radarMask].align, lefttop);
  4693. set(layer[radarMask].width, 100 %);
  4694. set(layer[radarMask].height, 100 %);
  4695. set(layer[radarMask].maskchildren, true);
  4696. addlayer(mapZoomBtn);
  4697. set(layer[mapZoomBtn].parent, radar_layer);
  4698. set(layer[mapZoomBtn].align, bottomcenter);
  4699. set(layer[mapZoomBtn].width, 120);
  4700. set(layer[mapZoomBtn].height, 50);
  4701. set(layer[mapZoomBtn].scale, 0.75);
  4702. set(layer[mapZoomBtn].x, 0);
  4703. set(layer[mapZoomBtn].y, -35);
  4704. copy(layer[mapZoomBtn].url, settings.map_zoom_image);
  4705. set(layer[mapZoomBtn].zorder, 10);
  4706. set(layer[mapZoomBtn].handcursor, true);
  4707. set(layer[mapZoomBtn].onclick, zoomRadar(););
  4708. txtadd(radarActiveSpotName, 'radarActiveSpot');
  4709. txtadd(radarSpotTitle, '', get(config.panos.pano[get(scene_name)].info.title));
  4710. addlayer(get(radarActiveSpotName));
  4711. set(layer[get(radarActiveSpotName)].parent, radarMask);
  4712. set(layer[get(radarActiveSpotName)].crop, 279 | 109 | 49 | 49);
  4713. layer[get(radarActiveSpotName)].loadstyle(skin_style);
  4714. set(layer[get(radarActiveSpotName)].align, lefttop);
  4715. set(layer[get(radarActiveSpotName)].edge, center);
  4716. set(layer[get(radarActiveSpotName)].visible, false);
  4717. if (config.panos.pano[get(scene_name)].radar.heading_offset !== null,
  4718. set(layer[get(radarActiveSpotName)].visible, true);
  4719. if (config.panos.pano[get(scene_name)].radar.scale === null,
  4720. set(layer[get(radarActiveSpotName)].scale, 0.5);
  4721. ,
  4722. set(layer[get(radarActiveSpotName)].scale, get(config.panos.pano[get(scene_name)].radar.scale));
  4723. );
  4724. set(radarx, get(config.panos.pano[get(scene_name)].radar.x));
  4725. set(radary, get(config.panos.pano[get(scene_name)].radar.y));
  4726. div(radarx, 2.4);
  4727. set(layer[get(radarActiveSpotName)].x, get(radarx));
  4728. div(radary, 2.4);
  4729. set(layer[get(radarActiveSpotName)].y, get(radary));
  4730. set(layer[get(radarActiveSpotName)].zorder, 10);
  4731. set(layer[get(radarActiveSpotName)].linkedSceneTitle, get(config.panos.pano[get(scene_name)].info.title));
  4732. set(layer[get(radarActiveSpotName)].onhover, showtext(get(linkedSceneTitle), tooltipTextStyle););
  4733. );
  4734. addlayer(radarImageClose);
  4735. copy(layer[radarImageClose].url, settings.close_image);
  4736. set(layer[radarImageClose].align, topright);
  4737. set(layer[radarImageClose].x, 0);
  4738. set(layer[radarImageClose].y, 0);
  4739. if (config.panos.pano[get(scene_name)].inner == "1" AND device.mobile == true,
  4740. set(layer[radarImageClose].y, 61);
  4741. );
  4742. set(layer[radarImageClose].visible, false);
  4743. set(layer[radarImageClose].scale, 0.5);
  4744. set(layer[radarImageClose].autowidth, true);
  4745. set(layer[radarImageClose].autoheight, true);
  4746. set(layer[radarImageClose].background, false);
  4747. set(layer[radarImageClose].zorder, 101);
  4748. set(layer[radarImageClose].border, false);
  4749. set(layer[radarImageClose].onclick, toggleRadar(); set(layer[radarImageClose].visible, false); js_radarMapFullscreenStatusDidChangeCallback(false););
  4750. set(layer[radarImageClose].parent, layer[radar_layer]);
  4751. if (config.panos.pano[get(scene_name)].radar.heading_offset !== null,
  4752. addlayer(radar);
  4753. set(layer[radar].parent, radarMask);
  4754. if (device.flash,
  4755. set(layer[radar].url, get(plugin_url.RADAR_SWF));
  4756. ,
  4757. set(layer[radar].url, get(plugin_url.RADAR_JS));
  4758. );
  4759. set(layer[radar].align, lefttop);
  4760. set(layer[radar].edge, center);
  4761. set(layer[radar].scale, 0.5);
  4762. set(layer[radar].zorder, 9);
  4763. set(layer[radar].fillcolor, 0xFFFFFF);
  4764. set(layer[radar].fillalpha, 0.4);
  4765. set(layer[radar].linecolor, 0xFF0000);
  4766. set(layer[radar].linewidth, 1.0);
  4767. set(layer[radar].linealpha, 0.5);
  4768. set(layer[radar].headingoffset, get(config.panos.pano[get(scene_name)].radar.heading_offset));
  4769. set(layer[radar].x, get(layer[get(radarActiveSpotName)].x));
  4770. set(layer[radar].y, get(layer[get(radarActiveSpotName)].y));
  4771. );
  4772. for (set(i, 0), i LT config.panos.pano[get(scene_name)].radar.radarspot.count, inc(i),
  4773. txtadd(radarSpotName, 'radarSpot', get(i));
  4774. txtadd(radarSpotTitle, '', get(config.panos.pano[get(scene_name)].info.title));
  4775. addlayer(get(radarSpotName));
  4776. set(layer[get(radarSpotName)].parent, radarMask);
  4777. set(layer[get(radarSpotName)].crop, 195 | 109 | 80 | 80);
  4778. layer[get(radarSpotName)].loadstyle(skin_style);
  4779. set(layer[get(radarSpotName)].align, lefttop);
  4780. set(layer[get(radarSpotName)].edge, center);
  4781. if (config.panos.pano[get(scene_name)].radar.scale === null,
  4782. set(layer[get(radarSpotName)].scale, 0.35);
  4783. ,
  4784. set(layer[get(radarSpotName)].scale, get(config.panos.pano[get(scene_name)].radar.scale));
  4785. );
  4786. set(radarx, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].x));
  4787. set(radary, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].y));
  4788. div(radarx, 2.4);
  4789. set(layer[get(radarSpotName)].x, get(radarx));
  4790. div(radary, 2.4);
  4791. set(layer[get(radarSpotName)].y, get(radary));
  4792. set(layer[get(radarSpotName)].zorder, 2);
  4793. set(layer[get(radarSpotName)].linkedScene, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].linkedscene));
  4794. set(layer[get(radarSpotName)].linkedSceneTitle, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].title));
  4795. set(layer[get(radarSpotName)].onhover, showtext(get(linkedSceneTitle), tooltipTextStyle););
  4796. set(layer[get(radarSpotName)].onclick,
  4797. js_sceneChangeCallback(get(scene[get(linkedscene)].scene_id));
  4798. );
  4799. );
  4800. set(radarOldStatus, true);
  4801. );
  4802. if (config.panos.pano[get(scene_name)].radar.opened == "1" AND radarIsShow === null,
  4803. set(radarIsShow, false);
  4804. toggleRadar();
  4805. ,
  4806. if (radarIsShow == true AND vrmode != true,
  4807. set(radarIsShow, false);
  4808. toggleRadar();
  4809. ,
  4810. if (radarEnabled == true,
  4811. js_radarMapStatusDidChangeCallback(false);
  4812. );
  4813. set(layer[radarBtn].crop, 98 | 107 | 108 | 192);
  4814. );
  4815. );
  4816. if (webvr.isenabled == true,
  4817. hide_UI(0, 1);
  4818. ); ",
  4819. "set(layer[radar_layer].bgalpha,0.5);
  4820. set(layer[radarBtn].visible, false);
  4821. set(layer[radarImageClose].visible, true);
  4822. set(radarOldPosX, get(layer[radar_layer].x));
  4823. set(radarOldPosY, get(layer[radar_layer].y));
  4824. set(layer[radar_layer].height, 100 %);
  4825. set(layer[radar_layer].width, 100 %);
  4826. set(layer[radar_layer].x, 0);
  4827. set(layer[radar_layer].y, 0);
  4828. set(radarImageScale, get(radarImageWidth));
  4829. div(radarImageScale, get(radarImageHeight));
  4830. set(radarStageScale, get(stagewidth));
  4831. mul(radarStageScale, 0.8);
  4832. div(radarStageScale, get(stageheight));
  4833. div(radarImageScale, 0.8);
  4834. if (radarImageWidth LT stagewidth AND radarImageHeight LT stageheight,
  4835. set(layer[mapImage].width, get(radarImageWidth));
  4836. set(layer[mapImage].height, get(radarImageHeight));
  4837. ,
  4838. if (radarImageScale GT radarStageScale,
  4839. set(layer[mapImage].width, get(stagewidth));
  4840. mul(layer[mapImage].width, 0.8);
  4841. set(layer[mapImage].height, get(radarImageHeight));
  4842. mul(layer[mapImage].height, get(layer[mapImage].width));
  4843. div(layer[mapImage].height, get(radarImageWidth));
  4844. ,
  4845. set(layer[mapImage].height, get(stageheight));
  4846. mul(layer[mapImage].height, 0.8);
  4847. set(layer[mapImage].width, get(radarImageWidth));
  4848. mul(layer[mapImage].width, get(layer[mapImage].height));
  4849. div(layer[mapImage].width, get(radarImageHeight));
  4850. );
  4851. );
  4852. set(layer[get(radarActiveSpotName)].x, get(config.panos.pano[get(scene_name)].radar.x));
  4853. mul(layer[get(radarActiveSpotName)].x, get(layer[mapImage].width));
  4854. div(layer[get(radarActiveSpotName)].x, 480);
  4855. set(layer[get(radarActiveSpotName)].y, get(config.panos.pano[get(scene_name)].radar.y));
  4856. mul(layer[get(radarActiveSpotName)].y, get(layer[mapImage].height));
  4857. div(layer[get(radarActiveSpotName)].y, 480);
  4858. set(layer[radar].x, get(layer[get(radarActiveSpotName)].x));
  4859. set(layer[radar].y, get(layer[get(radarActiveSpotName)].y));
  4860. for (set(i, 0), i LT config.panos.pano[get(scene_name)].radar.radarspot.count, inc(i),
  4861. txtadd(radarSpotName, 'radarSpot', get(i));
  4862. txtadd(radarSpotTitle, '', get(config.panos.pano[get(scene_name)].info.title));
  4863. set(layer[get(radarSpotName)].x, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].x));
  4864. mul(layer[get(radarSpotName)].x, get(layer[mapImage].width));
  4865. div(layer[get(radarSpotName)].x, 480);
  4866. set(layer[get(radarSpotName)].y, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].y));
  4867. mul(layer[get(radarSpotName)].y, get(layer[mapImage].width));
  4868. div(layer[get(radarSpotName)].y, 480);
  4869. );
  4870. pause_autoplay();
  4871. hide_UI(1);
  4872. js_radarMapFullscreenStatusDidChangeCallback(true); ",
  4873. "set(layer[radar_layer].bgalpha,0);
  4874. set(layer[radarImageClose].visible, false);
  4875. set(layer[radarBtn].visible, true);
  4876. if (layer[radar_layer].height == 100 %,
  4877. set(layer[radar_layer].width, 200);
  4878. set(layer[radar_layer].height, 200);
  4879. set(layer[mapImage].width, 200);
  4880. set(layer[mapImage].height, 200);
  4881. set(layer[radar_layer].x, get(radarOldPosX));
  4882. set(layer[radar_layer].y, get(radarOldPosY));
  4883. set(radarx, get(config.panos.pano[get(scene_name)].radar.x));
  4884. set(radary, get(config.panos.pano[get(scene_name)].radar.y));
  4885. div(radarx, 2.4);
  4886. set(layer[get(radarActiveSpotName)].x, get(radarx));
  4887. div(radary, 2.4);
  4888. set(layer[get(radarActiveSpotName)].y, get(radary));
  4889. set(layer[radar].x, get(layer[get(radarActiveSpotName)].x));
  4890. set(layer[radar].y, get(layer[get(radarActiveSpotName)].y));
  4891. for (set(i, 0), i LT config.panos.pano[get(scene_name)].radar.radarspot.count, inc(i),
  4892. txtadd(radarSpotName, 'radarSpot', get(i));
  4893. txtadd(radarSpotTitle, '', get(config.panos.pano[get(scene_name)].info.title));
  4894. set(radarx, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].x));
  4895. set(radary, get(config.panos.pano[get(scene_name)].radar.radarspot[get(i)].y));
  4896. div(radarx, 2.4);
  4897. set(layer[get(radarSpotName)].x, get(radarx));
  4898. div(radary, 2.4);
  4899. set(layer[get(radarSpotName)].y, get(radary));
  4900. );
  4901. ,
  4902. if (radarIsShow == true,
  4903. if (device.mobile,
  4904. set(destpos1, -313);
  4905. ,
  4906. set(destpos1, -313);
  4907. );
  4908. set(layer[radarBtn].crop, 98 | 107 | 108 | 192);
  4909. set(radarIsShow, false);
  4910. ,
  4911. if (device.mobile,
  4912. set(destpos1, 50);
  4913. ,
  4914. set(destpos1, 66);
  4915. );
  4916. set(layer[radarBtn].crop, 2 | 107 | 108 | 192);
  4917. set(radarIsShow, true);
  4918. );
  4919. tween(layer[radar_layer].x, get(destpos1));
  4920. if (radarEnabled == true,
  4921. js_radarMapStatusDidChangeCallback(get(radarIsShow));
  4922. );
  4923. );
  4924. if (isAutoTouring OR webvr.isenabled,
  4925. hide_UI();
  4926. ,
  4927. show_UI();
  4928. ); ",
  4929. "for(set(i,0), i LT scene.count, inc(i),
  4930. txtreplace(scene[get(i)].content, "webvr.isenabled AND device.desktop", "webvr.isenabled OR device.desktop");
  4931. );
  4932. ifnot(xml.scene === null,
  4933. loadscene(get(xml.scene), null, KEEPVIEW | MERGE, BLEND(0.5, easeInCubic));
  4934. ); ",
  4935. "for(set(i,0), i LT scene.count, inc(i),
  4936. txtreplace(scene[get(i)].content, "webvr.isenabled OR device.desktop", "webvr.isenabled AND device.desktop");
  4937. );
  4938. ifnot(xml.scene === null,
  4939. loadscene(get(xml.scene), null, KEEPVIEW | MERGE, BLEND(0.5, easeInCubic));
  4940. ); ",
  4941. "if(pano_id != %1,
  4942. if (autorotate.enabled == true,
  4943. set(autorotate.enabled, false);
  4944. );
  4945. if (hotspot[get(embed_video_name)].music_pause == 1 AND hotspot[get(embed_video_name)].ispaused == false AND need_pause_bg_music_sound == false,
  4946. js_toggleBgMusic(true);
  4947. );
  4948. if (hotspot[get(embed_video_name)].sound_pause == 1 AND hotspot[get(embed_video_name)].ispaused == false AND need_pause_bg_music_sound == false,
  4949. js_toggleBgVoice(true);
  4950. );
  4951. set(pano_id,% 1);
  4952. copy(scene_name, pano_id);
  4953. set(blend_mode_name, 'blend');
  4954. txtadd(blend_mode_name, % 3);
  4955. set(blend_mode, get(blendmodes[get(blend_mode_name)].blend));
  4956. if (blend_mode === null,
  4957. copy(blend_mode, blendmodes[blend0].blend);
  4958. );
  4959. if (% 2 == 1,
  4960. set(needKeepview, true);
  4961. copy(needKeepviewHlookat, view.hlookat);
  4962. copy(needKeepviewVlookat, view.vlookat);
  4963. copy(needKeepviewFov, view.fov);
  4964. loadscene(get(pano_id), null, KEEPVIEW | MERGE, get(blend_mode));
  4965. ,
  4966. set(needKeepview, false);
  4967. loadscene(get(pano_id), null, MERGE, get(blend_mode));
  4968. set(view.hlookat, get(config.panos.pano[get(xml.scene)].view.hlookat));
  4969. set(view.vlookat, get(config.panos.pano[get(xml.scene)].view.vlookat));
  4970. set(view.fov, get(config.panos.pano[get(xml.scene)].view.fov));
  4971. );
  4972. copy(blend_mode, blendmodes[blend0].blend);
  4973. ,
  4974. 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));
  4975. );
  4976. if (is_setup_start_pano === null,
  4977. setup_start_pano();
  4978. set(is_setup_start_pano, true);
  4979. );
  4980. if (webvr.isenabled,
  4981. webvr_load_vr_cursor_hs();
  4982. ); ",
  4983. "copy(vr_plugin_url,plugin_url.WEBVR_JS);
  4984. copy(plugin[WebVR].url, vr_plugin_url);
  4985. set(webvr_text_noDistortion, '无畸变');
  4986. set(webvr_text_webvrSetup, 'WebVR 设置');
  4987. set(webvr_text_mobilevrSetup, 'MobileVR 设置');
  4988. set(webvr_text_screensize, '屏幕尺寸(英寸):');
  4989. set(webvr_text_vrheadset, 'VR 头显预设');
  4990. set(webvr_text_customizeHeadset, '自定义头显');
  4991. set(webvr_text_adjustmentInVR, '在 VR 中进行调整');
  4992. set(webvr_text_close, '关闭');
  4993. set(webvr_text_preset, '预设:');
  4994. set(webvr_text_fov, 'FOV');
  4995. set(webvr_text_interLensDistance, '内镜距离(mm):');
  4996. set(webvr_text_screenToLensDistance, '屏幕到镜头距离(mm):');
  4997. set(webvr_text_trayToLensCenterDistance, '头显到镜头中央的距离(mm):');
  4998. set(webvr_text_lensDistortion, '镜头畸变系数:');
  4999. set(webvr_text_oversampling, '过采样:'); ",
  5000. "set(layer[vr_layer].visible,false);
  5001. js_vrUnavailableCallback(); ",
  5002. "webvr.entervr();",
  5003. "webvr.exitvr();",
  5004. "if(webvr.isenabled == true,
  5005. pause_embed_video();
  5006. copy(hotspotCount, hotspot.count);
  5007. for (set(i, 0), i LT hotspotCount, inc(i),
  5008. if (hotspot[get(i)].image_type == 2 AND hotspot[get(i)].isActiveHotspot == true,
  5009. set(hotspot[get(i)].renderer, webgl);
  5010. );
  5011. if (hotspot[get(i)].isMask == true,
  5012. ,
  5013. if (hotspot[get(i)].hotspot_type == 0 AND hotspot[get(i)].is_hotspot_txt != true,
  5014. if (device.mobilevr,
  5015. set(hotspot[get(i)].scale, 0.25);
  5016. );
  5017. );
  5018. if (hotspot[get(i)].hotspot_type == 0,
  5019. if (device.mobilevr,
  5020. set(hotspot[get(i)].scale, 0.5);
  5021. );
  5022. );
  5023. if (hotspot[get(i)].hotspot_type != 0 AND hotspot[get(i)].hotspot_type != 4,
  5024. set(hotspot[get(i)].visible, false);
  5025. set(hotspot[get(i)].hide_action, 'hide_vr_hotspot');
  5026. );
  5027. );
  5028. if (hotspot[get(i)].html !== null,
  5029. if (webvr.isenabled == true,
  5030. set(hotspot[get(i)].renderer, 'webgl');
  5031. ,
  5032. set(hotspot[get(i)].renderer, 'css3d');
  5033. );
  5034. copy(texthtml, hotspot[get(i)].html);
  5035. set(hotspot[get(i)].html, '');
  5036. copy(hotspot[get(i)].html, texthtml);
  5037. );
  5038. );
  5039. ); ",
  5040. "copy(hotspotCount,hotspot.count);
  5041. for (set(i, 0), i LT hotspotCount, inc(i),
  5042. if (hotspot[get(i)].image_type == 2 AND hotspot[get(i)].html === null,
  5043. set(hotspot[get(i)].renderer, "css3d");
  5044. );
  5045. if (hotspot[get(i)].isMask,
  5046. ,
  5047. if (hotspot[get(i)].hotspot_type == 0 AND hotspot[get(i)].is_hotspot_txt != true,
  5048. if (device.mobilevr,
  5049. set(hotspot[get(i)].scale, 0.5)
  5050. );
  5051. );
  5052. if (hotspot[get(i)].hotspot_type == 0 AND hotspot[get(i)].is_hotspot_txt == true,
  5053. if (device.mobilevr,
  5054. set(hotspot[get(i)].scale, 1);
  5055. );
  5056. );
  5057. if (hotspot[get(i)].hotspot_type != 0 AND hotspot[get(i)].hide_action == 'hide_vr_hotspot',
  5058. set(hotspot[get(i)].visible, true);
  5059. set(hotspot[get(i)].hide_action, '');
  5060. );
  5061. );
  5062. if (hotspot[get(i)].html !== null,
  5063. if (webvr.isenabled == true,
  5064. set(hotspot[get(i)].renderer, 'webgl');
  5065. ,
  5066. set(hotspot[get(i)].renderer, 'css3d');
  5067. );
  5068. copy(texthtml, hotspot[get(i)].html);
  5069. set(hotspot[get(i)].html, '');
  5070. copy(hotspot[get(i)].html, texthtml);
  5071. );
  5072. ); ",
  5073. "addhotspot('vr_cursor', hs);
  5074. hs.loadstyle(vr_cursor_style);
  5075. set(hs.keep, true);
  5076. set(webvr.vr_cursor, 'hotspot[vr_cursor]'); ",
  5077. "removehotspot('vr_controller_l');
  5078. removehotspot('vr_controller_r');
  5079. addhotspot('vr_controller_l', vr_ctrl_l);
  5080. addhotspot('vr_controller_r', vr_ctrl_r);
  5081. set(vr_ctrl_l.keep, true);
  5082. set(vr_ctrl_r.keep, true);
  5083. vr_ctrl_l.loadstyle(calc(controllerstyle ? controllerstyle : 'vrcontroller_light_and_point'));
  5084. vr_ctrl_r.loadstyle(calc(controllerstyle ? controllerstyle : 'vrcontroller_light_and_point'));
  5085. vr_ctrl_l.addevent('onvrcontrollerbutton', 'if(vrbuttonindex == 3 AND vrbuttonstate == "up", vrsetup_open(); );');
  5086. vr_ctrl_r.addevent('onvrcontrollerbutton', 'if(vrbuttonindex == 3 AND vrbuttonstate == "up", vrsetup_open(); );');
  5087. set(global.webvr.vr_controller, 'vr_controller_l,vr_controller_r');
  5088. set(global.have_vr_controllers, true);
  5089. if (global.webvr.isvrbrowser AND global.webvr.vrcontrollers[0].buttons.length LE 2,
  5090. addhotspot('webvr_vrsetup', vr_setup_hs);
  5091. vr_setup_hs.loadstyle('webvr_button_style');
  5092. 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); );');
  5093. ); ",
  5094. "if(!global.have_vr_controllers, webvr_load_vr_controller_hs(); );",
  5095. "addhotspot(auto, hs);
  5096. set(hs, keep = true, type = text, bgcolor = 0xFFFFFF, bgalpha = 1.0, width = 10, height = 10, bgroundedge = 5, bgborder = '1 0x000000 1.0', oversampling = 2,
  5097. scale = 0.4, torigin = world, depth = 0, distorted = false, zoom = true, zorder = 99998, enabled = false
  5098. );
  5099. renderloop(
  5100. if (!caller.loaded,
  5101. removehotspot(get(hs.name));
  5102. stoprenderloop();
  5103. ,
  5104. if (global.display.havedepthmap,
  5105. removehotspot(get(hs.name));
  5106. stoprenderloop();
  5107. webvr_load_vr_controller_hs('vrcontroller_laser');
  5108. ,
  5109. calc(hs.bgcolor, caller.pressed ? 0x049AFF : (caller.hovering ? 0x00FF00 : 0xFFFFFF));
  5110. calc(distance, (caller.target AND caller.target.hitd GT 0 ? caller.target.hitd : 1000));
  5111. calc(hs.scale, 0.4 * (distance GT 1000 ? distance / 1000 : (distance LT 200 ? 0.25 : (0.25 + (distance - 200) / 800 * 0.75))));
  5112. calc(hs.tx, caller.tx + caller.dx * distance);
  5113. calc(hs.ty, caller.ty + caller.dy * distance);
  5114. calc(hs.tz, caller.tz + caller.dz * distance);
  5115. );
  5116. );
  5117. ); ",
  5118. "if(webvr.isenabled,
  5119. if (vr_aclk_timeout == null, set(vr_aclk_timeout, 2000));
  5120. copy(vr_aclk_t1, timertick);
  5121. set(vr_aclk_waiting, true);
  5122. copy(webvr.vr_aclk_hotspot, caller.name);
  5123. set(hotspot[vr_cursor].crop, '0|0|80|80');
  5124. asyncloop(vr_aclk_waiting AND webvr.vr_aclk_hotspot == caller.name,
  5125. sub(dt, timertick, vr_aclk_t1);
  5126. if (!caller.hovering,
  5127. set(vr_aclk_waiting, false);
  5128. set(hotspot[vr_cursor].crop, '0|0|80|80');
  5129. ,
  5130. div(f, dt, vr_aclk_timeout);
  5131. mul(f, 16);
  5132. roundval(f);
  5133. Math.min(f, 16);
  5134. mul(f, 80);
  5135. txtadd(hotspot[vr_cursor].crop, get(f), '|0|80|80');
  5136. sub(dt, 100);
  5137. if (dt GT vr_aclk_timeout,
  5138. set(vr_aclk_waiting, false);
  5139. set(hotspot[vr_cursor].crop, '0|0|80|80');
  5140. callwith(caller, scope(global, ondown(); onup(); onclick(); ); );
  5141. );
  5142. );
  5143. );
  5144. ); ",
  5145. "webvr.loadsettings();
  5146. jsget(needUpdateVRSettings, 'krpCallbackObject');
  5147. if (needUpdateVRSettings !== null,
  5148. delayedcall(3,
  5149. jscall('krpCallbackObject.krpUpdateVRSettingCallback();');
  5150. );
  5151. ); ",
  5152. "if(webvr.isfake AND device.desktop AND webvr.havesettings == false,
  5153. set(webvr.mobilevr_lens_overlap, 1.0);
  5154. set(webvr.mobilevr_lens_fov, 96.0);
  5155. set(webvr.mobilevr_lens_dist, 0.0);
  5156. set(webvr.mobilevr_lens_dist2, '1|0|0|0');
  5157. set(webvr.mobilevr_lens_ca, 0.0);
  5158. set(webvr.mobilevr_lens_vign, 100);
  5159. ); ",
  5160. "webvr_showbuttons();
  5161. webvr_hide_all_non_vr_layers();
  5162. if (webvr.isfake, webvr_show_fakemode_info(true); );
  5163. webvr_load_vr_cursor_hs();
  5164. hide_UI();
  5165. hide_vr_hotspot(); ",
  5166. "removehotspot('vr_cursor');
  5167. removehotspot('vr_controller_l');
  5168. removehotspot('vr_controller_r');
  5169. set(have_vr_controllers, false);
  5170. stopdelayedcall(vr_button_fadeout);
  5171. tween(layer[webvr_exitbutton].alpha, 0);
  5172. tween(layer[webvr_setupbutton].alpha, 0);
  5173. webvr_show_fakemode_info(false);
  5174. webvr_restore_layers();
  5175. show_vr_hotspot();
  5176. show_UI();
  5177. if (plugin[snow] !== null,
  5178. set(plugin[snow].visible, true);
  5179. );
  5180. resume_embed_video();
  5181. js_exitVRCallback(); ",
  5182. "for(set(i,0), i LT layer.count, inc(i),
  5183. copy(lr, layer[get(i)]);
  5184. if (lr.vr !== true,
  5185. copy(lr.vr_backup_visible, lr.visible);
  5186. set(lr.visible, false);
  5187. );
  5188. ); ",
  5189. "for(set(i,0), i LT layer.count, inc(i),
  5190. copy(lr, layer[get(i)]);
  5191. if (lr.vr_backup_visible,
  5192. copy(lr.visible, lr.vr_backup_visible);
  5193. delete (lr.vr_backup_visible);
  5194. );
  5195. ); ",
  5196. "if(show == true,
  5197. addlayer(webvr_fakemode_info);
  5198. set(layer[webvr_fakemode_info],
  5199. type = 'text',
  5200. keep = true,
  5201. align = 'bottom',
  5202. y = 80,
  5203. bg = false,
  5204. css = 'color:#FFFFFF;text-align:center;',
  5205. 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]'
  5206. );
  5207. ,
  5208. removelayer(webvr_fakemode_info);
  5209. ); ",
  5210. "stopdelayedcall(vr_button_fadeout);
  5211. tween(layer[webvr_exitbutton].alpha | layer[webvr_setupbutton].alpha, 1.0 | 1.0, 0.25);
  5212. delayedcall(vr_button_fadeout, 3.0, tween(layer[webvr_exitbutton].alpha | layer[webvr_setupbutton].alpha, 0.0 | 0.0, 1.0); ); ",
  5213. "if(!vrsetup_open_js, vrsetup_init(); );
  5214. vrsetup_open_js(); ",
  5215. "var webvr = krpano.webvr;
  5216. var padding = 20;
  5217. function vrsetup_dlg_create(type) {
  5218. var dlg = { type: type, bg: null, y: 0, scale: 1, elements: [] };
  5219. if (type == 'layer') {
  5220. dlg.bg = krpano.addlayer();
  5221. dlg.bg.keep = true;
  5222. dlg.bg.type = 'container';
  5223. dlg.bg.align = 'center';
  5224. }
  5225. else // 'hotspot'
  5226. {
  5227. dlg.scale = 0.15;
  5228. dlg.bg = krpano.addhotspot();
  5229. dlg.bg.keep = true;
  5230. dlg.bg.type = 'text';
  5231. dlg.bg.distorted = true;
  5232. dlg.bg.ath = krpano.view.hlookat;
  5233. dlg.bg.atv = 0;
  5234. dlg.bg.depth = 150;
  5235. dlg.bg.torigin = 'world';
  5236. dlg.bg.tx = krpano.view.tx;
  5237. dlg.bg.ty = krpano.view.ty;
  5238. dlg.bg.tz = krpano.view.tz;
  5239. }
  5240. dlg.bg.bgcolor = 0x000000;
  5241. dlg.bg.bgalpha = 0.5;
  5242. dlg.bg.bgcapture = true;
  5243. dlg.bg.handcursor = false;
  5244. dlg.bg.capture = false;
  5245. dlg.bg.zorder = 100;
  5246. dlg.bg.visible = false;
  5247. dlg.y = 0;
  5248. return dlg;
  5249. }
  5250. function vrsetup_dlg_addline(dlg, linetext, customcss, onclick) {
  5251. var txt;
  5252. if (dlg.type == 'layer') {
  5253. txt = krpano.addlayer();
  5254. txt.keep = true;
  5255. txt.type = 'text';
  5256. txt.align = 'center';
  5257. txt.zorder = 101;
  5258. }
  5259. else // 'hotspot'
  5260. {
  5261. txt = krpano.addhotspot();
  5262. txt.keep = true;
  5263. txt.type = 'text';
  5264. txt.distorted = true;
  5265. txt.zorder = 101;
  5266. txt.ath = dlg.bg.ath;
  5267. txt.atv = dlg.bg.atv;
  5268. txt.depth = dlg.bg.depth - 1;
  5269. txt.oversampling = 2;
  5270. txt.scale = dlg.scale;
  5271. txt.torigin = dlg.bg.torigin;
  5272. txt.tx = dlg.bg.tx;
  5273. txt.ty = dlg.bg.ty;
  5274. txt.tz = dlg.bg.tz;
  5275. }
  5276. txt.onautosized = function () {
  5277. txt.havesize = true;
  5278. }
  5279. txt.edge = 'top';
  5280. txt.visible = false;
  5281. txt.bg = false;
  5282. txt.html = "" + linetext;
  5283. txt.css = 'font-size:32px;font-weight:bold;color:#FFFFFF; line-height:90%;' + (customcss || '');
  5284. if (onclick) {
  5285. txt.onclick = onclick;
  5286. }
  5287. else {
  5288. txt.enabled = false;
  5289. }
  5290. dlg.elements.push(txt);
  5291. return txt;
  5292. }
  5293. function vrsetup_dlg_addctrl(dlg, changedelay, callback) {
  5294. var txt = vrsetup_dlg_addline(dlg, callback(0));
  5295. var inc;
  5296. var dec;
  5297. if (dlg.type == 'layer') {
  5298. inc = krpano.addlayer();
  5299. inc.keep = true;
  5300. inc.type = 'text';
  5301. inc.align = 'center';
  5302. inc.zorder = 101;
  5303. dec = krpano.addlayer();
  5304. dec.keep = true;
  5305. dec.type = 'text';
  5306. dec.align = 'center';
  5307. dec.zorder = 101;
  5308. }
  5309. else // 'hotspot'
  5310. {
  5311. inc = krpano.addhotspot();
  5312. inc.keep = true;
  5313. inc.type = 'text';
  5314. inc.distorted = true;
  5315. inc.zorder = 101;
  5316. inc.ath = dlg.bg.ath;
  5317. inc.atv = dlg.bg.atv;
  5318. inc.depth = dlg.bg.depth - 1;
  5319. inc.oversampling = 2;
  5320. inc.scale = dlg.scale;
  5321. inc.torigin = dlg.bg.torigin;
  5322. inc.tx = dlg.bg.tx;
  5323. inc.ty = dlg.bg.ty;
  5324. inc.tz = dlg.bg.tz;
  5325. dec = krpano.addhotspot();
  5326. dec.keep = true;
  5327. dec.type = 'text';
  5328. dec.distorted = true;
  5329. dec.zorder = 101;
  5330. dec.ath = dlg.bg.ath;
  5331. dec.atv = dlg.bg.atv;
  5332. dec.depth = dlg.bg.depth - 1;
  5333. dec.oversampling = 2;
  5334. dec.scale = dlg.scale;
  5335. dec.torigin = dlg.bg.torigin;
  5336. dec.tx = dlg.bg.tx;
  5337. dec.ty = dlg.bg.ty;
  5338. dec.tz = dlg.bg.tz;
  5339. }
  5340. inc.edge = 'top';
  5341. inc.visible = false;
  5342. inc.bg = false;
  5343. inc.html = '>';
  5344. inc.css = 'font-size:32px;font-weight:bold;color:#FFFFFF; line-height:90%;';
  5345. inc.padding = '0 10';
  5346. dec.edge = 'top';
  5347. dec.visible = false;
  5348. dec.bg = false;
  5349. dec.html = '<';
  5350. dec.css = 'font-size:32px;font-weight:bold;color:#FFFFFF; line-height:90%;';
  5351. dec.padding = '0 10';
  5352. inc.vr_timeout = changedelay * 1000;
  5353. dec.vr_timeout = changedelay * 1000;
  5354. inc.ondown = function () { txt.html = "" + callback(+1); inc.enabled = false; setTimeout(function () { inc.enabled = true; }, 0); };
  5355. dec.ondown = function () { txt.html = "" + callback(-1); dec.enabled = false; setTimeout(function () { dec.enabled = true; }, 0); };
  5356. txt.ctrlchilds = [inc, dec];
  5357. txt.updateControl = function () {
  5358. txt.html = callback(0);
  5359. }
  5360. return txt;
  5361. }
  5362. function vrsetup_dlg_addspace(dlg, customspace) {
  5363. dlg.elements.push(customspace || padding);
  5364. }
  5365. function vrsetup_dlg_finish(dlg) {
  5366. var i, w = 0, h = 0;
  5367. var waitforsizes = false;
  5368. for (i = 0; i < dlg.elements.length; i++) {
  5369. var e = dlg.elements[i];
  5370. if (isNaN(e)) {
  5371. if (e.havesize) {
  5372. w = Math.max(w, e.width * 1);
  5373. h += e.height * 1;
  5374. }
  5375. else {
  5376. waitforsizes = true;
  5377. break;
  5378. }
  5379. }
  5380. else {
  5381. h += e;
  5382. }
  5383. }
  5384. if (waitforsizes) {
  5385. setTimeout(function () { vrsetup_dlg_finish(dlg); }, 16);
  5386. }
  5387. else {
  5388. var y = 0;
  5389. dlg.bg.width = Math.ceil((w + padding * 2) * dlg.scale);
  5390. dlg.bg.height = Math.ceil((h + padding * 2) * dlg.scale);
  5391. for (i = 0; i < dlg.elements.length; i++) {
  5392. var e = dlg.elements[i];
  5393. if (isNaN(e)) {
  5394. e.oy = Math.round((-h / 2 + y) * dlg.scale);
  5395. e.visible = true;
  5396. y += e.height * 1;
  5397. if (e.ctrlchilds) {
  5398. for (var j = 0; j < e.ctrlchilds.length; j++) {
  5399. var sube = e.ctrlchilds[j];
  5400. sube.ox = Math.round(((j & 1) - 0.5) * (-w) * dlg.scale);
  5401. sube.oy = e.oy;
  5402. sube.visible = true;
  5403. }
  5404. }
  5405. }
  5406. else {
  5407. y += e;
  5408. }
  5409. }
  5410. dlg.bg.visible = true;
  5411. }
  5412. }
  5413. function vrsetup_dlg_remove(dlg) {
  5414. var removefu = dlg.type == 'layer' ? krpano.removelayer : krpano.removehotspot;
  5415. var i, j;
  5416. for (i = 0; i < dlg.elements.length; i++) {
  5417. var e = dlg.elements[i];
  5418. if (isNaN(e)) {
  5419. if (e.ctrlchilds) {
  5420. for (j = 0; j < e.ctrlchilds.length; j++) {
  5421. var sube = e.ctrlchilds[j];
  5422. removefu(sube.name);
  5423. }
  5424. }
  5425. removefu(e.name);
  5426. }
  5427. }
  5428. removefu(dlg.bg.name);
  5429. }
  5430. function vrsetup_webvr_dialog() {
  5431. // WebVR API rendering
  5432. var dlg = vrsetup_dlg_create('hotspot');
  5433. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_webvrSetup"));
  5434. vrsetup_dlg_addspace(dlg);
  5435. vrsetup_dlg_addline(dlg, 'Oversampling:', 'font-size:16px;')
  5436. var ctrl_ss = vrsetup_dlg_addctrl(dlg, 1.0, function (change) {
  5437. var p = webvr.oversampling;
  5438. if (change < 0) { p = Math.max(0.2, Number(p) - 0.1); webvr.oversampling = p; } else
  5439. if (change > 0) { p = Math.min(4.0, Number(p) + 0.1); webvr.oversampling = p; }
  5440. krpano.actions.delayedcall(0, function () {
  5441. var gl = krpano.webGL.context;
  5442. var gl_width = gl.drawingBufferWidth | 0;
  5443. var gl_height = gl.drawingBufferHeight | 0;
  5444. renderres.html = gl_width + "x" + gl_height;
  5445. });
  5446. return p.toFixed(1);
  5447. });
  5448. vrsetup_dlg_addspace(dlg, 8);
  5449. vrsetup_dlg_addline(dlg, 'Rendering Resolution:', 'font-size:16px;');
  5450. var renderres = vrsetup_dlg_addline(dlg, '');
  5451. vrsetup_dlg_addspace(dlg);
  5452. vrsetup_dlg_addline(dlg, 'CLOSE', '', vrsetup_close);
  5453. vrsetup_dlg_finish(dlg);
  5454. return dlg;
  5455. }
  5456. function vrsetup_mobilevr_dialog() {
  5457. // MobileVR / Cardboard rendering
  5458. var dlg = vrsetup_dlg_create(0 ? 'hotspot' : 'layer');
  5459. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_mobilevrSetup"));
  5460. vrsetup_dlg_addspace(dlg);
  5461. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_screensize"), 'font-size:16px;')
  5462. 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); });
  5463. vrsetup_dlg_addspace(dlg);
  5464. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_vrheadset"), 'font-size:16px;')
  5465. var ctrl_ps = vrsetup_dlg_addctrl(dlg, 1.0, function (change) {
  5466. var preset_index = -1;
  5467. var i;
  5468. var profile = webvr.mobilevr_profile;
  5469. var presets = krpano.get("mobilevr_presets.headset");
  5470. if (presets) {
  5471. presets = presets.getArray();
  5472. for (i = 0; i < presets.length; i++) {
  5473. if (profile == presets[i].profile) {
  5474. preset_index = i;
  5475. break;
  5476. }
  5477. }
  5478. if (change < 0) {
  5479. preset_index--;
  5480. if (preset_index < 0)
  5481. preset_index = presets.length - 1;
  5482. webvr.mobilevr_profile = presets[preset_index].profile;
  5483. }
  5484. else if (change > 0) {
  5485. preset_index++;
  5486. if (preset_index >= presets.length)
  5487. preset_index = 0;
  5488. webvr.mobilevr_profile = presets[preset_index].profile;
  5489. }
  5490. }
  5491. if (preset_index >= 0) {
  5492. return presets[preset_index].caption;
  5493. }
  5494. return 'Custom';
  5495. });
  5496. vrsetup_dlg_addspace(dlg);
  5497. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_customizeHeadset"), 'font-size:25px;', function () {
  5498. vrsetup_dlg_remove(dlg);
  5499. dlg = null;
  5500. vrsetup_dialog = vrsetup_mobilevr_interactive_dialog();
  5501. });
  5502. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_adjustmentInVR"), 'font-size:12px;');
  5503. vrsetup_dlg_addspace(dlg);
  5504. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_close"), '', vrsetup_close);
  5505. vrsetup_dlg_finish(dlg);
  5506. return dlg;
  5507. }
  5508. function vrsetup_mobilevr_interactive_dialog() {
  5509. // MobileVR / Cardboard rendering
  5510. var ctrl_preset, ctrl_fov, ctrl_ild, ctrl_stl, ctrl_ttl, ctrl_k1, ctrl_k2, ctrl_os;
  5511. var dlg = vrsetup_dlg_create('hotspot');
  5512. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_mobilevrSetup"));
  5513. vrsetup_dlg_addspace(dlg);
  5514. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_preset"), 'font-size:16px;')
  5515. ctrl_preset = vrsetup_dlg_addctrl(dlg, 1.0, function (change) {
  5516. var preset_index = -1;
  5517. var i;
  5518. var profile = webvr.mobilevr_profile;
  5519. var presets = krpano.get("mobilevr_presets.headset");
  5520. if (presets) {
  5521. presets = presets.getArray();
  5522. for (i = 0; i < presets.length; i++) {
  5523. if (profile == presets[i].profile) {
  5524. preset_index = i;
  5525. break;
  5526. }
  5527. }
  5528. if (change < 0) {
  5529. preset_index--;
  5530. if (preset_index < 0)
  5531. preset_index = presets.length - 1;
  5532. webvr.mobilevr_profile = presets[preset_index].profile;
  5533. }
  5534. else if (change > 0) {
  5535. preset_index++;
  5536. if (preset_index >= presets.length)
  5537. preset_index = 0;
  5538. webvr.mobilevr_profile = presets[preset_index].profile;
  5539. }
  5540. if (change != 0) {
  5541. ctrl_fov.updateControl();
  5542. ctrl_ild.updateControl();
  5543. ctrl_stl.updateControl();
  5544. if (ctrl_ttl) ctrl_ttl.updateControl();
  5545. ctrl_k1.updateControl();
  5546. ctrl_k2.updateControl();
  5547. }
  5548. }
  5549. if (preset_index >= 0) {
  5550. return presets[preset_index].caption;
  5551. }
  5552. return 'Custom';
  5553. });
  5554. vrsetup_dlg_addspace(dlg);
  5555. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_fov"), 'font-size:16px;');
  5556. 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); });
  5557. vrsetup_dlg_addspace(dlg, 8);
  5558. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_interLensDistance"), 'font-size:16px;');
  5559. 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); });
  5560. vrsetup_dlg_addspace(dlg, 8);
  5561. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_screenToLensDistance"), 'font-size:16px;');
  5562. 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); });
  5563. vrsetup_dlg_addspace(dlg, 8);
  5564. if (!webvr.isfake) {
  5565. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_trayToLensCenterDistance"), 'font-size:16px;');
  5566. 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); });
  5567. vrsetup_dlg_addspace(dlg, 8);
  5568. }
  5569. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_lensDistortion"), 'font-size:16px;');
  5570. 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); });
  5571. 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); });
  5572. vrsetup_dlg_addspace(dlg);
  5573. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_oversampling"), 'font-size:16px;');
  5574. 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); });
  5575. vrsetup_dlg_addspace(dlg);
  5576. vrsetup_dlg_addline(dlg, krpano.get("webvr_text_close"), '', vrsetup_close);
  5577. vrsetup_dlg_finish(dlg);
  5578. return dlg;
  5579. }
  5580. var vrsetup_dialog = null;
  5581. var vrsetup_events = null;
  5582. function vrsetup_close() {
  5583. if (vrsetup_dialog) {
  5584. webvr.savesettings();
  5585. vrsetup_dlg_remove(vrsetup_dialog);
  5586. vrsetup_dialog = null;
  5587. }
  5588. if (vrsetup_events) {
  5589. krpano.events.removeItem(vrsetup_events.name);
  5590. vrsetup_events = null;
  5591. }
  5592. }
  5593. krpano.vrsetup_close = function () {
  5594. vrsetup_close();
  5595. }
  5596. krpano.vrsetup_open_js = function () {
  5597. if (vrsetup_dialog != null) {
  5598. // already open...
  5599. return;
  5600. }
  5601. if (webvr.iswebvr) {
  5602. vrsetup_dialog = vrsetup_webvr_dialog();
  5603. }
  5604. else {
  5605. vrsetup_dialog = vrsetup_mobilevr_dialog();
  5606. }
  5607. vrsetup_events = krpano.events.createItem("auto");
  5608. vrsetup_events.keep = true;
  5609. vrsetup_events.webvr_onexitvr = function () {
  5610. vrsetup_close();
  5611. }
  5612. }",
  5613. "if(config.panos.pano[get(scene_name)].sun.id !== null,
  5614. add_sun(get(config.panos.pano[get(scene_name)].sun.ath), get(config.panos.pano[get(scene_name)].sun.atv));
  5615. );
  5616. if (config.panos.pano[get(scene_name)].weather.id !== null AND config.panos.pano[get(scene_name)].weather.id != -1,
  5617. if (config.panos.pano[get(scene_name)].weather.id == 0,
  5618. add_snow(get(config.panos.pano[get(scene_name)].weather.size));
  5619. ,
  5620. if (config.panos.pano[get(scene_name)].weather.id == 1,
  5621. add_rain(get(config.panos.pano[get(scene_name)].weather.size));
  5622. ,
  5623. if (config.panos.pano[get(scene_name)].weather.id == 2,
  5624. add_sun(get(config.panos.pano[get(scene_name)].weather.ath), get(config.panos.pano[get(scene_name)].weather.atv));
  5625. ,
  5626. if (config.panos.pano[get(scene_name)].weather.id == 3,
  5627. if (config.panos.pano[get(scene_name)].weather.type == 1,
  5628. add_image_rain(get(settings.weather_image_1), get(config.panos.pano[get(scene_name)].weather.size));
  5629. ,
  5630. if (config.panos.pano[get(scene_name)].weather.type == 2,
  5631. add_image_rain(get(settings.weather_image_2), get(config.panos.pano[get(scene_name)].weather.size));
  5632. ,
  5633. add_image_rain(get(settings.weather_image_3), get(config.panos.pano[get(scene_name)].weather.size));
  5634. );
  5635. );
  5636. ,
  5637. copy(custom_weather_url, config.panos.pano[get(scene_name)].weather.url);
  5638. txtadd(custom_weather_url, '?imageView2/0/w/512/h/512');
  5639. add_image_rain(get(custom_weather_url), get(config.panos.pano[get(scene_name)].weather.size));
  5640. );
  5641. );
  5642. );
  5643. );
  5644. );
  5645. if (webvr.isenabled AND plugin[snow] !== null,
  5646. set(plugin[snow].visible, false);
  5647. ); ",
  5648. "addlensflare("obj",true);
  5649. set(lensflares[obj].keep, false);
  5650. set(lensflares[obj].visible, true);
  5651. set(lensflares[obj].device, html5);
  5652. set(lensflares[obj].item[flareobj].ath,% 1);
  5653. set(lensflares[obj].item[flareobj].atv,% 2);
  5654. set(lensflares[obj].item[flareobj].scene, get(xml.scene));
  5655. set(lensflares[obj].item[flareobj].typ, blinkstyle1);
  5656. set(lensflares[obj].item[flareobj].dust_effect, false);
  5657. set(lensflares[obj].item[flareobj].keep, false); ",
  5658. "if(%1 === null,
  5659. set(rain_size, 2);
  5660. ,
  5661. set(rain_size, % 1);
  5662. );
  5663. removeplugin(snow);
  5664. addplugin(snow);
  5665. set(plugin[snow].keep, false);
  5666. set(plugin[snow].onloaded,
  5667. set(plugin[snow].mode, image);
  5668. copy(plugin[snow].imageurl, settings.rain_image);
  5669. set(plugin[snow].blendmode, normal);
  5670. set(plugin[snow].flakes, 1000);
  5671. mul(plugin[snow].flakes, rain_size);
  5672. set(plugin[snow].color, 0xefe3e4);
  5673. set(plugin[snow].speed, 15.5);
  5674. set(plugin[snow].shake, 1.0);
  5675. set(plugin[snow].speedvariance, 1.0);
  5676. set(plugin[snow].spreading, 2.0);
  5677. set(plugin[snow].rainwidth, 0.4);
  5678. mul(plugin[snow].rainwidth, rain_size);
  5679. set(plugin[snow].rainalpha, 0.5);
  5680. set(plugin[snow].wind, 2.0);
  5681. );
  5682. if (device.flash,
  5683. copy(plugin[snow].url, plugin_url.SNOW_SWF);
  5684. ,
  5685. copy(plugin[snow].url, plugin_url.SNOW_JS);
  5686. ); ",
  5687. "removeplugin(snow);",
  5688. "if(%1 === null,
  5689. set(snow_size, 2);
  5690. ,
  5691. set(snow_size, % 1);
  5692. );
  5693. removeplugin(snow);
  5694. addplugin(snow);
  5695. set(plugin[snow].keep, false);
  5696. set(plugin[snow].onloaded,
  5697. set(plugin[snow].mode, image);
  5698. copy(plugin[snow].imageurl, settings.snow_image);
  5699. set(plugin[snow].blendmode, normal);
  5700. set(plugin[snow].flakes, 1500);
  5701. mul(plugin[snow].flakes, snow_size);
  5702. set(plugin[snow].color, 0xdfe3e4);
  5703. set(plugin[snow].speed, get(snow_size));
  5704. mul(plugin[snow].speed, snow_size);
  5705. add(plugin[snow].speed, 1);
  5706. set(plugin[snow].shake, 4.0);
  5707. set(plugin[snow].speedvariance, 2.0);
  5708. set(plugin[snow].spreading, 4.0);
  5709. set(plugin[snow].wind, 1.0);
  5710. sub(plugin[snow].wind, snow_size);
  5711. );
  5712. if (device.flash,
  5713. copy(plugin[snow].url, plugin_url.SNOW_SWF);
  5714. ,
  5715. copy(plugin[snow].url, plugin_url.SNOW_JS);
  5716. ); ",
  5717. "if(%2 == null ,
  5718. set(snow_size, 2);
  5719. ,
  5720. set(snow_size, % 2);
  5721. );
  5722. removeplugin(snow);
  5723. addplugin(snow);
  5724. set(plugin[snow].keep, false);
  5725. set(plugin[snow].onloaded,
  5726. set(plugin[snow].mode, image);
  5727. set(plugin[snow].imageurl, % 1);
  5728. set(plugin[snow].imagescale, 0.5);
  5729. set(plugin[snow].blendmode, normal);
  5730. set(plugin[snow].flakes, 150);
  5731. mul(plugin[snow].flakes, snow_size);
  5732. set(plugin[snow].color, 0xdfe3e4);
  5733. add(plugin[snow].speed, 0.5);
  5734. set(plugin[snow].shake, 1.0);
  5735. set(plugin[snow].speedvariance, 2.0);
  5736. set(plugin[snow].spreading, 1.5);
  5737. set(plugin[snow].wind, 0);
  5738. );
  5739. if (device.flash,
  5740. copy(plugin[snow].url, plugin_url.SNOW_SWF);
  5741. ,
  5742. copy(plugin[snow].url, plugin_url.SNOW_JS);
  5743. ); ",
  5744. "set(hotspot[%1].bgcolor, %2);",
  5745. "set(hotspot[%1].backgroundalpha, %2);",
  5746. "set(css,get(hotspot[%1].css));
  5747. indexoftxt(startIndex, get(css), 'color');
  5748. if (startIndex GE 0,
  5749. indexoftxt(endIndex, get(css), ';', get(startIndex));
  5750. add(endIndex, 1);
  5751. calc(startSrc, substr(get(css), 0, startIndex));
  5752. calc(endSrc, substr(get(css), endIndex));
  5753. set(newcss, get(startSrc));
  5754. txtadd(newcss, get(endSrc));
  5755. ,
  5756. set(newcss, get(css));
  5757. );
  5758. txtadd(newcss, 'color:');
  5759. txtadd(newcss, % 2);
  5760. txtadd(newcss, ';');
  5761. set(hotspot[% 1].css, get(newcss))",
  5762. "set(css,get(hotspot[%1].css));
  5763. indexoftxt(startIndex, get(css), 'font-size');
  5764. if (startIndex GE 0,
  5765. indexoftxt(endIndex, get(css), ';', get(startIndex));
  5766. add(endIndex, 1);
  5767. calc(startSrc, substr(get(css), 0, startIndex));
  5768. calc(endSrc, substr(get(css), endIndex));
  5769. set(newcss, get(startSrc));
  5770. txtadd(newcss, get(endSrc));
  5771. ,
  5772. set(newcss, get(css));
  5773. );
  5774. txtadd(newcss, 'font-size:');
  5775. txtadd(newcss, % 2);
  5776. txtadd(newcss, 'px;');
  5777. set(hotspot[% 1].css, get(newcss))",
  5778. "addhotspot(%1);
  5779. set(hotspot[% 1].embedTxt, true);
  5780. set(hotspot[% 1].ath,% 3);
  5781. set(hotspot[% 1].atv,% 4);
  5782. set(hotspot[% 1].scale, 1);
  5783. set(hotspot[% 1].keep, false);
  5784. set(hotspot[% 1].type, text);
  5785. set(hotspot[% 1].html,% 2);
  5786. txtreplace(hotspot[% 1].html, '
  5787. ','[br]');
  5788. set(hotspot[% 1].bgcolor,#000000);
  5789. set(hotspot[% 1].backgroundalpha, 0.5);
  5790. set(hotspot[% 1].roundedge, 5);
  5791. set(hotspot[% 1].padding, 10);
  5792. set(hotspot[% 1].multiline, true);
  5793. set(hotspot[% 1].oy, -9);
  5794. set(hotspot[% 1].css, font - family: STXihei; font - size: 12px; color: #ffffff; letter - spacing: 1px; textAlign: center; line - height: 20px;);
  5795. set(hotspot[% 1].edge, bottom);
  5796. set(hotspot[% 1].renderer, "css3d");
  5797. set(hotspot[% 1].zorder2, 1.0);
  5798. set(hotspot[% 1].parent, 'embed_container');
  5799. set(embed_txt_bg_name,% 1);
  5800. txtadd(embed_txt_bg_name, "_bg");
  5801. addhotspot(get(embed_txt_bg_name));
  5802. copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_txt_image);
  5803. copy(hotspot[get(embed_txt_bg_name)].ath, hotspot[% 1].ath);
  5804. copy(hotspot[get(embed_txt_bg_name)].atv, hotspot[% 1].atv);
  5805. set(hotspot[get(embed_txt_bg_name)].keep, false);
  5806. set(hotspot[get(embed_txt_bg_name)].scale, 0.5);
  5807. set(hotspot[get(embed_txt_bg_name)].edge, top);
  5808. if (device.mobile == true,
  5809. set(hotspot[get(embed_txt_bg_name)].oy, -6);
  5810. ,
  5811. set(hotspot[get(embed_txt_bg_name)].oy, -9);
  5812. );
  5813. set(hotspot[get(embed_txt_bg_name)].handcursor, false);
  5814. set(hotspot[get(embed_txt_bg_name)].enabled, false);
  5815. set(hotspot[get(embed_txt_bg_name)].renderer, 'css3d');
  5816. set(hotspot[get(embed_txt_bg_name)].parent, get(embed_container));
  5817. set(hotspot[% 1].onclick,
  5818. jscall(calc('window.onKrpEmbedClick("' + name + '")'));
  5819. ); ",
  5820. "addhotspot(%1);
  5821. if (% 3,
  5822. set(hotspot[% 1].ath,% 3);
  5823. ,
  5824. set(hotspot[% 1].ath, get(view.hlookat));
  5825. );
  5826. if (% 4,
  5827. set(hotspot[% 1].atv,% 4);
  5828. ,
  5829. set(hotspot[% 1].atv, get(view.vlookat));
  5830. );
  5831. set(hotspot[% 1].scale, 1);
  5832. set(hotspot[% 1].embedTxt, true);
  5833. set(hotspot[% 1].type, text);
  5834. set(hotspot[% 1].keep, false);
  5835. set(hotspot[% 1].html,% 2);
  5836. set(hotspot[% 1].bgcolor, % 5);
  5837. set(hotspot[% 1].backgroundalpha,% 6);
  5838. set(hotspot_css, 'font-family:STXihei; letter-spacing:1px;textAlign:center;line-height: 20px;');
  5839. set(hotspot[% 1].oy, -36);
  5840. txtadd(hotspot_css, 'color:');
  5841. txtadd(hotspot_css, % 7);
  5842. txtadd(hotspot_css, ';');
  5843. txtadd(hotspot_css, 'font-size:');
  5844. txtadd(hotspot_css, % 8);
  5845. txtadd(hotspot_css, 'px;');
  5846. copy(hotspot[% 1].css, hotspot_css);
  5847. set(hotspot[% 1].borderwidth, 1.0);
  5848. set(hotspot[% 1].bordercolor, 0xfad057);
  5849. set(hotspot[% 1].bgroundedge, 5);
  5850. set(hotspot[% 1].padding, 10);
  5851. set(hotspot[% 1].renderer, "css3d");
  5852. set(hotspot[% 1].edge, bottom);
  5853. set(hotspot[% 1].onup,
  5854. jscall(calc('window.onKrpEmbedMoveEnd("' + name + '",' + ath + ',' + atv + ')'));
  5855. );
  5856. set(hotspot[% 1].ondown, drag_enable_embed_txt(););
  5857. set(hotspot[% 1].onclick,
  5858. jscall(calc('window.onKrpEmbedClick("' + name + '")'));
  5859. );
  5860. set(embed_txt_bg_name,% 1);
  5861. txtadd(embed_txt_bg_name, "_bg");
  5862. addhotspot(get(embed_txt_bg_name));
  5863. copy(hotspot[get(embed_txt_bg_name)].url, settings.embed_line_image);
  5864. copy(hotspot[get(embed_txt_bg_name)].ath, hotspot[% 1].ath);
  5865. copy(hotspot[get(embed_txt_bg_name)].atv, hotspot[% 1].atv);
  5866. set(hotspot[get(embed_txt_bg_name)].keep, false);
  5867. set(hotspot[get(embed_txt_bg_name)].scale, 0.5);
  5868. set(hotspot[get(embed_txt_bg_name)].edge, top);
  5869. set(hotspot[get(embed_txt_bg_name)].oy, -36); ",
  5870. "def(arr,array);
  5871. def(arrIndex, number, 0);
  5872. trace(arr);
  5873. for (set(i, 0), i LT hotspot.count, inc(i),
  5874. if (hotspot[get(i)].embedTxt,
  5875. set(arr[get(arrIndex)], get(hotspot[get(i)].name));
  5876. add(arrIndex, 1)
  5877. );
  5878. );
  5879. for (set(i, 0), i LT arrIndex, inc(i),
  5880. set(id, get(arr[get(i)]));
  5881. removehotspot(get(id));
  5882. txtadd(id, "_bg");
  5883. removehotspot(get(id));
  5884. ); ",
  5885. "hide_vr_hotspot();"
  5886. ],
  5887. "textstyle": {
  5888. "@name": "tooltipTextStyle",
  5889. "@font": "STXihei",
  5890. "@fontsize.no_mobile": "14",
  5891. "@fontsize.mobile": "18",
  5892. "@bold": "false",
  5893. "@background": "true",
  5894. "@backgroundcolor": "0x000000",
  5895. "@backgroundalpha": "0.667",
  5896. "@border": "true",
  5897. "@borderwidth": "2",
  5898. "@bordercolor": "0xFFFFFF",
  5899. "@roundedge": "5",
  5900. "@textcolor": "0xFFFFFF",
  5901. "@padding": "6 10",
  5902. "@textalign": "center",
  5903. "@yoffset.no_touch": "-5",
  5904. "@yoffset.touch": "-40"
  5905. },
  5906. "events": [
  5907. {
  5908. "@onsingleclick": "on_single_click();",
  5909. "@ondoubleclick": "on_double_click();",
  5910. "@onautorotateoneround": "load_pano_loop();",
  5911. "@onloadcomplete": "on_load_complete();",
  5912. "@onviewchange": "on_view_changed();",
  5913. "@onmouseup": "on_mouse_up();",
  5914. "@onclick": "on_click();"
  5915. },
  5916. {
  5917. "@name": "webvr_events",
  5918. "@devices": "html5",
  5919. "@keep": "true",
  5920. "@onmousedown": "if(webvr AND webvr.isenabled, webvr_showbuttons() );"
  5921. }
  5922. ],
  5923. "layer": [
  5924. {
  5925. "layer": {
  5926. "@name": "radar_layer",
  5927. "@keep": "true",
  5928. "@type": "container",
  5929. "@align": "topright",
  5930. "@width": "100%",
  5931. "@height": "100%",
  5932. "@maskchildren": "false",
  5933. "@visible": "true",
  5934. "@bgcapture": "false",
  5935. "@zorder": "10"
  5936. },
  5937. "@name": "radar_container",
  5938. "@keep": "true",
  5939. "@type": "container",
  5940. "@align": "topleft",
  5941. "@width": "100%",
  5942. "@height": "100%",
  5943. "@maskchildren": "fasle",
  5944. "@visible": "true",
  5945. "@bgcapture": "false",
  5946. "@zorder": "10"
  5947. },
  5948. {
  5949. "@name": "webvr_exitbutton",
  5950. "@keep": "true",
  5951. "@vr": "true",
  5952. "@style": "webvr_button_style",
  5953. "@html": "退出 VR",
  5954. "@align": "top",
  5955. "@y": "24",
  5956. "@autoalpha": "true",
  5957. "@alpha": "0.0",
  5958. "@onclick": "webvr.exitVR();"
  5959. },
  5960. {
  5961. "@name": "webvr_setupbutton",
  5962. "@keep": "true",
  5963. "@vr": "true",
  5964. "@style": "webvr_button_style",
  5965. "@html": "VR 设置",
  5966. "@align": "bottom",
  5967. "@y": "110",
  5968. "@autoalpha": "true",
  5969. "@alpha": "0.0",
  5970. "@onclick": "vrsetup_open();"
  5971. }
  5972. ],
  5973. "contextmenu": {
  5974. "item": [
  5975. {
  5976. "@name": "custom1",
  5977. "@caption": "1",
  5978. "@enabled": "false",
  5979. "@visible": "false",
  5980. "@separator": "false",
  5981. "@onclick": "openurl(get(contextmenu.item[custom1].url));"
  5982. },
  5983. {
  5984. "@name": "custom2",
  5985. "@caption": "2",
  5986. "@enabled": "false",
  5987. "@visible": "false",
  5988. "@separator": "false",
  5989. "@onclick": "openurl(get(contextmenu.item[custom2].url));"
  5990. },
  5991. {
  5992. "@name": "custom3",
  5993. "@caption": "3",
  5994. "@enabled": "false",
  5995. "@visible": "false",
  5996. "@separator": "false",
  5997. "@onclick": "openurl(get(contextmenu.item[custom3].url));"
  5998. },
  5999. {
  6000. "@name": "copyright",
  6001. "@caption": "720yun.com",
  6002. "@enabled": "true",
  6003. "@visible": "true",
  6004. "@separator": "true",
  6005. "@onclick": "openurl(https://720yun.com);"
  6006. },
  6007. {
  6008. "@name": "fullscreen",
  6009. "@caption": "全屏切换",
  6010. "@enabled": "true",
  6011. "@visible": "false",
  6012. "@separator": "true",
  6013. "@onclick": "js_toggleFullscreen();"
  6014. },
  6015. {
  6016. "@name": "viewtype",
  6017. "@caption": "视角切换",
  6018. "@enabled": "true",
  6019. "@visible": "true",
  6020. "@separator": "false",
  6021. "@onclick": "js_showViewType();"
  6022. },
  6023. {
  6024. "@name": "controlmoveto",
  6025. "@caption": "切换拖拽方式为正向",
  6026. "@enabled": "true",
  6027. "@visible": "true",
  6028. "@separator": "false",
  6029. "@showif": "device.desktop",
  6030. "@onclick": "krpChangeMouseControl('drag');js_mouseControlChangedCallback('drag');"
  6031. },
  6032. {
  6033. "@name": "controldrag",
  6034. "@caption": "切换拖拽方式为反向",
  6035. "@enabled": "true",
  6036. "@visible": "false",
  6037. "@separator": "true",
  6038. "@showif": "device.desktop",
  6039. "@onclick": "krpChangeMouseControl('moveto');js_mouseControlChangedCallback('moveto');"
  6040. },
  6041. {
  6042. "@name": "openReport",
  6043. "@caption": "举报",
  6044. "@enabled": "true",
  6045. "@visible": "false",
  6046. "@separator": "true",
  6047. "@onclick": "js_openReport();"
  6048. }
  6049. ],
  6050. "@keep": "true",
  6051. "@fullscreen": "false"
  6052. },
  6053. "polygon_swap_data": {
  6054. "point": [
  6055. {
  6056. "@name": "p0",
  6057. "@ath": "0",
  6058. "@atv": "0"
  6059. },
  6060. {
  6061. "@name": "p1",
  6062. "@ath": "5",
  6063. "@atv": "0"
  6064. },
  6065. {
  6066. "@name": "p2",
  6067. "@ath": "0",
  6068. "@atv": "5"
  6069. },
  6070. {
  6071. "@name": "p3",
  6072. "@ath": "5",
  6073. "@atv": "5"
  6074. }
  6075. ]
  6076. },
  6077. "krpano": {
  6078. "@webvr_setup_scale": "calc:(1.0 + 1.0*(device.mobile AND stagescale LT 1.0)) / (1.0 + 1.0*device.mobile)",
  6079. "@webvr_button_scale.normal": "1.0",
  6080. "@webvr_button_scale.mobile": "1.6"
  6081. },
  6082. "mobilevr_presets": {
  6083. "headset": [
  6084. {
  6085. "@name": "cbv1",
  6086. "@caption": "Cardboard V1",
  6087. "@profile": "80|60|42|35|0.441|0.156"
  6088. },
  6089. {
  6090. "@name": "cbv2",
  6091. "@caption": "Cardboard V2",
  6092. "@profile": "120|64|39|35|0.34|0.55"
  6093. },
  6094. {
  6095. "@name": "dydm",
  6096. "@caption": "Daydream",
  6097. "@profile": "104|60|41|35|0.42|0.51"
  6098. },
  6099. {
  6100. "@name": "nodt",
  6101. "@caption": "无畸变",
  6102. "@profile": "90|60|42|0|0|0"
  6103. },
  6104. {
  6105. "@name": "pico",
  6106. "@caption": "Pico",
  6107. "@profile": "92|62.5|42|0|0|0"
  6108. }
  6109. ]
  6110. },
  6111. "mobilevr_device_database": {
  6112. "device": [
  6113. {
  6114. "@name": "iPhone 5/5S/SE",
  6115. "@screen": "320x568x2",
  6116. "@size": "4.0",
  6117. "@bevel": "3"
  6118. },
  6119. {
  6120. "@name": "iPhone 6/6S/7/8",
  6121. "@screen": "375x667x2",
  6122. "@size": "4.7"
  6123. },
  6124. {
  6125. "@name": "iPhone 6/6S/7/8 Plus",
  6126. "@screen": "414x736",
  6127. "@size": "5.5"
  6128. },
  6129. {
  6130. "@name": "iPhone 6/6S/7/8 Plus (zoomed)",
  6131. "@screen": "375x667x3",
  6132. "@size": "5.5"
  6133. },
  6134. {
  6135. "@name": "iPhone X/XS/11Pro",
  6136. "@screen": "375x812x3",
  6137. "@size": "5.85|5.33"
  6138. },
  6139. {
  6140. "@name": "iPhone XS/11Pro Max",
  6141. "@screen": "414x896x3",
  6142. "@size": "6.46|5.95"
  6143. },
  6144. {
  6145. "@name": "iPhone XR/11",
  6146. "@screen": "414x896x2",
  6147. "@size": "6.06|5.58"
  6148. },
  6149. {
  6150. "@name": "Samsung S6",
  6151. "@ua": "sm-g930",
  6152. "@size": "5.1"
  6153. },
  6154. {
  6155. "@name": "Samsung S6 Edge",
  6156. "@ua": "sm-g925",
  6157. "@size": "5.1"
  6158. },
  6159. {
  6160. "@name": "Samsung S6 Edge Plus",
  6161. "@ua": "sm-g928",
  6162. "@size": "5.7"
  6163. },
  6164. {
  6165. "@name": "Samsung S7",
  6166. "@ua": "sm-g930",
  6167. "@size": "5.1"
  6168. },
  6169. {
  6170. "@name": "Samsung S7 Edge",
  6171. "@ua": "sm-g935",
  6172. "@size": "5.5"
  6173. },
  6174. {
  6175. "@name": "Samsung S8",
  6176. "@ua": "sm-g950",
  6177. "@size": "5.8"
  6178. },
  6179. {
  6180. "@name": "Samsung S8+",
  6181. "@ua": "sm-g955",
  6182. "@size": "6.2"
  6183. },
  6184. {
  6185. "@name": "Samsung S9",
  6186. "@ua": "sm-g960",
  6187. "@size": "5.8"
  6188. },
  6189. {
  6190. "@name": "Samsung S9+",
  6191. "@ua": "sm-g965",
  6192. "@size": "6.2"
  6193. },
  6194. {
  6195. "@name": "Samsung S10e",
  6196. "@ua": "sm-g970",
  6197. "@size": "5.8"
  6198. },
  6199. {
  6200. "@name": "Samsung S10",
  6201. "@ua": "sm-g973",
  6202. "@size": "6.1"
  6203. },
  6204. {
  6205. "@name": "Samsung S10+",
  6206. "@ua": "sm-g975",
  6207. "@size": "6.4"
  6208. },
  6209. {
  6210. "@name": "Samsung S10 5G",
  6211. "@ua": "sm-g977",
  6212. "@size": "6.7"
  6213. },
  6214. {
  6215. "@name": "Samsung Note 7",
  6216. "@ua": "sm-n930",
  6217. "@size": "5.7"
  6218. },
  6219. {
  6220. "@name": "Samsung Note 8",
  6221. "@ua": "sm-n950",
  6222. "@size": "6.3"
  6223. },
  6224. {
  6225. "@name": "Samsung Note 9",
  6226. "@ua": "sm-n960",
  6227. "@size": "6.4"
  6228. },
  6229. {
  6230. "@name": "Samsung Note 10",
  6231. "@ua": "sm-n970",
  6232. "@size": "6.3"
  6233. },
  6234. {
  6235. "@name": "Samsung Note 10 5G",
  6236. "@ua": "sm-n971",
  6237. "@size": "6.3"
  6238. },
  6239. {
  6240. "@name": "Samsung Note 10+",
  6241. "@ua": "sm-n975",
  6242. "@size": "6.8"
  6243. },
  6244. {
  6245. "@name": "Samsung Note 10+ 5G",
  6246. "@ua": "sm-n976",
  6247. "@size": "6.8"
  6248. },
  6249. {
  6250. "@name": "Huawei P10 Lite",
  6251. "@ua": "HUAWEIWAS-TL10",
  6252. "@size": "5.2"
  6253. },
  6254. {
  6255. "@name": "Huawei P20 Lite",
  6256. "@ua": "HUAWEIANE-LX1",
  6257. "@size": "5.84"
  6258. }
  6259. ]
  6260. }
  6261. }
  6262. ],
  6263. "scene": [
  6264. {
  6265. "preview": {
  6266. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35249793/imgs/preview.jpg"
  6267. },
  6268. "image": {
  6269. "cube": {
  6270. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35249793/imgs/mobile_%s.jpg"
  6271. },
  6272. "@if": "true"
  6273. },
  6274. "@name": "s_63001578",
  6275. "@pano_id": "35249793",
  6276. "@scene_id": "63001578"
  6277. },
  6278. {
  6279. "preview": {
  6280. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35033441/imgs/preview.jpg"
  6281. },
  6282. "image": {
  6283. "cube": {
  6284. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/35033441/imgs/mobile_%s.jpg"
  6285. },
  6286. "@if": "true"
  6287. },
  6288. "@name": "s_63001579",
  6289. "@pano_id": "35033441",
  6290. "@scene_id": "63001579"
  6291. },
  6292. {
  6293. "preview": {
  6294. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030771/imgs/preview.jpg"
  6295. },
  6296. "image": {
  6297. "cube": {
  6298. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030771/imgs/mobile_%s.jpg"
  6299. },
  6300. "@if": "true"
  6301. },
  6302. "@name": "s_62962605",
  6303. "@pano_id": "36030771",
  6304. "@scene_id": "62962605"
  6305. },
  6306. {
  6307. "preview": {
  6308. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030772/imgs/preview.jpg"
  6309. },
  6310. "image": {
  6311. "cube": {
  6312. "@url": "%$cdnDomain130%/resource/prod/ba83f1fde1t/85bjkdyfvk1/36030772/imgs/mobile_%s.jpg"
  6313. },
  6314. "@if": "true"
  6315. },
  6316. "@name": "s_62962604",
  6317. "@pano_id": "36030772",
  6318. "@scene_id": "62962604"
  6319. }
  6320. ],
  6321. "config": {
  6322. "autoTours": {
  6323. "tour": {
  6324. "point": [
  6325. {
  6326. "@name": "piont_0",
  6327. "@endatv": "-1.3374506172596108",
  6328. "@endath": "-120.19396266728683",
  6329. "@playMode": "1",
  6330. "@startfov": "95",
  6331. "@music": "%$mediaDomain%/85bjkdyfvk1/1/b2ea955f75d02620a29434a4ce63eb4av5.mp3",
  6332. "@musicName": "谢海清 - 清平乐(古琴曲).mp3",
  6333. "@endfov": "95",
  6334. "@startatv": "0.513610111008311",
  6335. "@moveTime": "5",
  6336. "@startath": "43.06368191921319",
  6337. "@targetPano": "35249793",
  6338. "@targetScene": "",
  6339. "@subtitle": "大黄鸭大黄鸭大黄鸭大黄鸭大黄鸭大黄鸭大黄鸭",
  6340. "@blendMode": "0",
  6341. "@volume": "1"
  6342. },
  6343. {
  6344. "@name": "piont_1",
  6345. "@endatv": "-7.5046347877928845",
  6346. "@endath": "66.00453849023253",
  6347. "@playMode": "3",
  6348. "@startfov": "95",
  6349. "@music": "",
  6350. "@musicName": "",
  6351. "@endfov": "95",
  6352. "@startatv": "-1.3374506172596108",
  6353. "@moveTime": "5",
  6354. "@startath": "-120.19396266728683",
  6355. "@targetPano": "35249793",
  6356. "@targetScene": "",
  6357. "@subtitle": "",
  6358. "@blendMode": "0",
  6359. "@volume": "1"
  6360. },
  6361. {
  6362. "@name": "piont_2",
  6363. "@endatv": "-4.557",
  6364. "@endath": "-20.719",
  6365. "@playMode": "1",
  6366. "@startfov": "95",
  6367. "@music": "",
  6368. "@musicName": "",
  6369. "@endfov": "95",
  6370. "@startatv": "-7.5046347877928845",
  6371. "@moveTime": "5",
  6372. "@startath": "66.00453849023253",
  6373. "@targetPano": "36030771",
  6374. "@targetScene": "",
  6375. "@subtitle": "",
  6376. "@blendMode": "0",
  6377. "@volume": "1"
  6378. },
  6379. {
  6380. "@name": "piont_3",
  6381. "@endatv": "13.5571161198236",
  6382. "@endath": "-228.89689867965873",
  6383. "@playMode": "3",
  6384. "@startfov": "95",
  6385. "@music": "",
  6386. "@musicName": "",
  6387. "@endfov": "95",
  6388. "@startatv": "-4.557",
  6389. "@moveTime": "5",
  6390. "@startath": "-20.719",
  6391. "@targetPano": "36030771",
  6392. "@targetScene": "",
  6393. "@subtitle": "",
  6394. "@blendMode": "0",
  6395. "@volume": "1"
  6396. },
  6397. {
  6398. "@name": "piont_4",
  6399. "@endatv": "10.515114591550208",
  6400. "@endath": "-0.2950380275813873",
  6401. "@playMode": "1",
  6402. "@startfov": "95",
  6403. "@music": "",
  6404. "@musicName": "",
  6405. "@endfov": "95",
  6406. "@startatv": "13.5571161198236",
  6407. "@moveTime": "5",
  6408. "@startath": "-228.89689867965873",
  6409. "@targetPano": "36030772",
  6410. "@targetScene": "",
  6411. "@subtitle": "",
  6412. "@blendMode": "0",
  6413. "@volume": "1"
  6414. },
  6415. {
  6416. "@name": "piont_5",
  6417. "@endatv": "",
  6418. "@endath": "",
  6419. "@playMode": "1",
  6420. "@startfov": "95",
  6421. "@music": "",
  6422. "@musicName": "",
  6423. "@endfov": "",
  6424. "@startatv": "10.515114591550208",
  6425. "@moveTime": "5",
  6426. "@startath": "-0.2950380275813873",
  6427. "@targetPano": "36030772",
  6428. "@targetScene": "",
  6429. "@subtitle": "",
  6430. "@blendMode": "0",
  6431. "@volume": "1"
  6432. }
  6433. ],
  6434. "@title": "一键导览",
  6435. "@startImage": "%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png",
  6436. "@stopImage": "%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png",
  6437. "@hideHotspots": "false",
  6438. "@loop": "false",
  6439. "@disableMusic": "false",
  6440. "@subtitlePosition": "bottom",
  6441. "@subtitleSize": "16",
  6442. "@subtitleBackground": "black",
  6443. "@newTitle": "导览",
  6444. "@endBackToStart": "false"
  6445. }
  6446. },
  6447. "panos": {
  6448. "pano": [
  6449. {
  6450. "info": {
  6451. "@title": "水悦喷泉",
  6452. "@pano_id": "35249793"
  6453. },
  6454. "view": {
  6455. "@autorotatekeepview": "0",
  6456. "@maxpixelzoom": "2.0",
  6457. "@fovmin": "70",
  6458. "@loadscenekeepview": "0",
  6459. "@hlookatmax": "180",
  6460. "@fov": "95",
  6461. "@vlookatmax": "90",
  6462. "@vlookat": "-0.19272354352438953",
  6463. "@fovmax": "120",
  6464. "@hlookatmin": "-180",
  6465. "@vlookatmin": "-90",
  6466. "@hlookat": "203.68762226219638",
  6467. "@fovtype": "MFOV"
  6468. },
  6469. "autoplay": {
  6470. "@duration": "30",
  6471. "@hiddenscene_noenter": "0",
  6472. "@keep_originview": "1",
  6473. "@enabled": "1",
  6474. "@enter_next": "1"
  6475. },
  6476. "top_circle": {
  6477. "@scale": "0.5",
  6478. "@is_float": "0",
  6479. "@type": "2",
  6480. "@url": "%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png"
  6481. },
  6482. "bottom_circle": {
  6483. "@scale": "1",
  6484. "@is_float": "0",
  6485. "@type": "2",
  6486. "@url": "%$mediaDomain%/85bjkdyfvk1/2/7e09f89bb50fbcd627250dc5fc2b6920v5.png"
  6487. },
  6488. "weather": {
  6489. "@size": "1",
  6490. "@id": "0"
  6491. },
  6492. "@name": "s_63001578"
  6493. },
  6494. {
  6495. "info": {
  6496. "@title": "免税广场喷泉",
  6497. "@pano_id": "35033441"
  6498. },
  6499. "view": {
  6500. "@autorotatekeepview": "0",
  6501. "@maxpixelzoom": "2.0",
  6502. "@fovmin": "70",
  6503. "@loadscenekeepview": "0",
  6504. "@hlookatmax": "180",
  6505. "@fov": "95",
  6506. "@vlookatmax": "90",
  6507. "@vlookat": "4.400086331986964",
  6508. "@fovmax": "135.2",
  6509. "@hlookatmin": "-180",
  6510. "@vlookatmin": "-90",
  6511. "@hlookat": "69.36782718495546",
  6512. "@fovtype": "MFOV"
  6513. },
  6514. "autoplay": {
  6515. "@duration": "30",
  6516. "@hiddenscene_noenter": "0",
  6517. "@keep_originview": "false",
  6518. "@enabled": "1",
  6519. "@enter_next": "1"
  6520. },
  6521. "top_circle": {
  6522. "@scale": "1",
  6523. "@is_float": "0",
  6524. "@type": "2",
  6525. "@url": "%$mediaDomain%/85bjkdyfvk1/2/4d4f065c7e8b99f5026148f17c683454v5.png"
  6526. },
  6527. "bottom_circle": {
  6528. "@type": "1",
  6529. "@scale": "1",
  6530. "@is_float": "0"
  6531. },
  6532. "@name": "s_63001579"
  6533. },
  6534. {
  6535. "info": {
  6536. "@title": "云戒广场",
  6537. "@pano_id": "36030771"
  6538. },
  6539. "view": {
  6540. "@autorotatekeepview": "0",
  6541. "@maxpixelzoom": "2.0",
  6542. "@fovmin": "70",
  6543. "@loadscenekeepview": "0",
  6544. "@hlookatmax": "180",
  6545. "@fov": "95",
  6546. "@vlookatmax": "90",
  6547. "@vlookat": "0",
  6548. "@fovmax": "120",
  6549. "@hlookatmin": "-180",
  6550. "@vlookatmin": "-90",
  6551. "@hlookat": "0",
  6552. "@fovtype": "MFOV"
  6553. },
  6554. "autoplay": {
  6555. "@duration": "30",
  6556. "@hiddenscene_noenter": "0",
  6557. "@keep_originview": "0",
  6558. "@enabled": "1",
  6559. "@enter_next": "1"
  6560. },
  6561. "@name": "s_62962605"
  6562. },
  6563. {
  6564. "info": {
  6565. "@title": "云戒桥2",
  6566. "@pano_id": "36030772"
  6567. },
  6568. "view": {
  6569. "@autorotatekeepview": "0",
  6570. "@maxpixelzoom": "2.0",
  6571. "@fovmin": "70",
  6572. "@loadscenekeepview": "0",
  6573. "@hlookatmax": "180",
  6574. "@fov": "95",
  6575. "@vlookatmax": "90",
  6576. "@vlookat": "0",
  6577. "@fovmax": "120",
  6578. "@hlookatmin": "-180",
  6579. "@vlookatmin": "-90",
  6580. "@hlookat": "0",
  6581. "@fovtype": "MFOV"
  6582. },
  6583. "autoplay": {
  6584. "@duration": "30",
  6585. "@hiddenscene_noenter": "0",
  6586. "@keep_originview": "0",
  6587. "@enabled": "1",
  6588. "@enter_next": "1"
  6589. },
  6590. "@name": "s_62962604"
  6591. }
  6592. ]
  6593. }
  6594. },
  6595. "@version": "1.19"
  6596. }