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