Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
92 kB · 3834 lines
JSON
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834{ "name": "Splash", "events": [ { "eventType": "include", "includeSheet": "Buttons" }, { "eventType": "variable", "name": "ForceMobile", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": true, "sid": 556418426776269 }, { "eventType": "variable", "name": "ForceMute", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": true, "sid": 275583833228149 }, { "eventType": "variable", "name": "SkipSplash", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": true, "sid": 410844976361006 }, { "eventType": "variable", "name": "totalStampCount", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 285690050795553 }, { "eventType": "variable", "name": "FirstSplash", "type": "boolean", "initialValue": "true", "comment": "", "isStatic": false, "isConstant": false, "sid": 393527334510189 }, { "eventType": "group", "disabled": false, "title": "Splash", "description": "", "isActiveOnStart": true, "children": [ { "eventType": "variable", "name": "desktopMargin", "type": "number", "initialValue": "48", "comment": "", "isStatic": true, "isConstant": true, "sid": 200903669417699 }, { "eventType": "comment", "text": "Are we using the App or Website?" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 268969012218002 }, { "id": "is-web-export", "objectClass": "PlatformInfo", "sid": 141231181247908 }, { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 718321129367256, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AppButton\"" } }, { "id": "compare-instance-variable", "objectClass": "Button", "sid": 206315135427953, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"App\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 842051995394643, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "AppPressed", "sid": 589626581290179, "parameters": { "visibility": "visible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 563780321953409, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 811796084103516, "disabled": true }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 479495667600071 }, { "id": "pick-by-comparison", "objectClass": "System", "sid": 712184945117830, "parameters": { "object": "Stamp", "expression": "Stamp.LayerName", "comparison": 0, "value": "\"Layer 0\"" } } ], "actions": [ { "type": "comment", "text": "Count all stamps in the [b]Stamp[/b] object." }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 390405854910722, "parameters": { "variable": "totalStampCount", "value": "0" } } ], "sid": 317995520582988, "children": [ { "eventType": "block", "conditions": [ { "id": "repeat", "objectClass": "System", "sid": 949677932548468, "parameters": { "count": "tokencount(users, \"|\")" } } ], "actions": [ { "id": "set-animation", "objectClass": "Stamp", "sid": 319090673283685, "parameters": { "animation": "\"@\" & tokenat(users, loopindex, \"|\")", "from": "beginning" } }, { "id": "add-to-eventvar", "objectClass": "System", "sid": 339223207545625, "parameters": { "variable": "totalStampCount", "value": "Stamp.AnimationFrameCount" } }, { "id": "add-to-eventvar", "objectClass": "System", "sid": 622669956236537, "parameters": { "variable": "totalStampCount", "value": "int(tokenat(usersAnimationCount, loopindex, \"|\"))" } }, { "id": "log", "objectClass": "Browser", "sid": 445816443869855, "disabled": true, "parameters": { "type": "log", "message": "loopindex & \" : \" & totalStampCount & \" : \" & Stamp.AnimationFrameCount" } } ], "sid": 294925558872370 }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 112758565224690, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For", "comparison": 0, "value": "\"Features\"" } } ], "actions": [ { "id": "set-text", "objectClass": "MainSpriteFont", "sid": 800201931200206, "parameters": { "text": "RegexReplace(MainSpriteFont.Text, \"(\\?)\", \"\", str(totalStampCount))" } } ], "sid": 504745142460701 } ] }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 996069407221610 }, { "id": "pick-by-comparison", "objectClass": "System", "sid": 228682398699747, "parameters": { "object": "Stamp", "expression": "Stamp.LayerName", "comparison": 0, "value": "\"Emoji Sprinkles\"" } } ], "actions": [ { "type": "comment", "text": "Pre-fill stamp instance variables for their shaking." }, { "id": "set-instvar-value", "objectClass": "Stamp", "sid": 427702279346601, "parameters": { "instance-variable": "startX", "value": "Stamp.X" } }, { "id": "set-instvar-value", "objectClass": "Stamp", "sid": 423915848896372, "parameters": { "instance-variable": "startY", "value": "Stamp.Y" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 155451231209899 } ], "sid": 647175402213919, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 421534925426478, "parameters": { "variable": "DesktopMode" } } ], "actions": [ { "id": "set-cursor-style", "objectClass": "Mouse", "sid": 538230997097627, "parameters": { "cursor-style": "none" } } ], "sid": 521641208296881 }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 324890581008077, "parameters": { "variable": "DesktopMode" }, "isInverted": true } ], "actions": [], "sid": 734287909321843 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 585365581615330 } ], "actions": [ { "type": "comment", "text": "Resize painting to be the size of desktop mode." }, { "id": "set-size", "objectClass": "Painting", "sid": 965066756747767, "parameters": { "width": "256", "height": "256 + (16 * 3)" } } ], "sid": 878460155655659 }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 706236786356843, "parameters": { "variable": "ForceMute" } } ], "actions": [ { "type": "comment", "text": "Mute" }, { "id": "set-silent", "objectClass": "Audio", "sid": 370014443516177, "disabled": true, "parameters": { "mode": "silent" } }, { "id": "set-master-volume", "objectClass": "Audio", "sid": 401457584080055, "parameters": { "db": "-100" } } ], "sid": 617895090200269 } ] }, { "eventType": "comment", "text": "[h3]Adjust the layout to fit [b]DesktopMode[/b][/h3]", "background-color": [ 0.5803921568627451, 0.9921568627450981, 1, 1 ] }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 983689483485674 }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 355032453633640, "parameters": { "variable": "DesktopMode" } } ], "actions": [ { "type": "comment", "text": "Move \"No\" and \"Paint\"" }, { "id": "set-position", "objectClass": "PAINT_Splash", "sid": 647928916014452, "parameters": { "x": "16", "y": "227" } }, { "id": "set-position", "objectClass": "NO_Splash", "sid": 312139913824080, "parameters": { "x": "18", "y": "30" } }, { "id": "set-scale", "objectClass": "PAINT_Splash", "sid": 624232766324700, "parameters": { "scale": "1" } }, { "id": "set-scale", "objectClass": "NO_Splash", "sid": 327193922659858, "parameters": { "scale": "1" } }, { "id": "set-position", "objectClass": "WhistlegraphButterfly", "sid": 132738917942264, "parameters": { "x": "192 - 8", "y": "216" } }, { "id": "request-fullscreen", "objectClass": "Browser", "sid": 684458628956493, "disabled": true, "parameters": { "mode": "stretch-integer-letterbox-scale", "navigation-ui": "hide" } }, { "type": "comment", "text": "Move \"Camera\"" }, { "id": "set-position", "objectClass": "CameraSplash", "sid": 808009057100285, "parameters": { "x": "200 + 14", "y": "235" } }, { "id": "set-position", "objectClass": "CameraSplashLabel", "sid": 919437050690643, "parameters": { "x": "CameraSplash.X", "y": "CameraSplash.Y + CameraSplash.ImageHeight" } }, { "type": "comment", "text": "Switch LightSwitchCover" }, { "id": "set-animation-frame", "objectClass": "LightSwitch", "sid": 256073643703406, "parameters": { "frame-number": "0" } }, { "id": "set-animation-frame", "objectClass": "LightSwitchDecolor", "sid": 707777215963071, "parameters": { "frame-number": "0" } }, { "type": "comment", "text": "Enable Focus Mode by default if the game starts in Desktop." }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 383207645318316, "disabled": true, "parameters": { "variable": "Focused", "value": "true" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 434025864297782, "disabled": true, "parameters": { "variable": "OpenWithEmptyPrompt", "value": "true" } } ], "sid": 738180057423400, "children": [ { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 707426312976030, "parameters": { "object": "Button", "expression": "Button.For", "comparison": 0, "value": "\"Camera\"" } } ], "actions": [ { "type": "comment", "text": "Move \"Painter Stories\" & Legacy Emoji" }, { "id": "set-position", "objectClass": "Button", "sid": 261291491918892, "parameters": { "x": "CameraSplash.X - 1", "y": "CameraSplash.Y - 1" } } ], "sid": 607943637108700 }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 453499625028536, "parameters": { "object": "Button", "expression": "Button.For", "comparison": 0, "value": "\"PainterStories\"" } } ], "actions": [ { "type": "comment", "text": "Move \"Painter Stories\" & Legacy Emoji" }, { "id": "set-y", "objectClass": "Button", "sid": 665747707271762, "parameters": { "y": "Self.Y - desktopMargin/2" } }, { "id": "set-y", "objectClass": "PainterStories", "sid": 760249033650792, "parameters": { "y": "Self.Y - desktopMargin/2" } }, { "id": "set-y", "objectClass": "Stamp", "sid": 814707476591052, "parameters": { "y": "Self.Y - desktopMargin/2" } }, { "id": "set-instvar-value", "objectClass": "Stamp", "sid": 747967178724366, "parameters": { "instance-variable": "startY", "value": "Stamp.Y" } } ], "sid": 568280483011604 }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 141690310547465, "parameters": { "object": "Button", "expression": "Button.For", "comparison": 0, "value": "\"Enter\"" } }, { "id": "pick-by-comparison", "objectClass": "System", "sid": 372098448809574, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For", "comparison": 0, "value": "\"Features\"" } } ], "actions": [ { "type": "comment", "text": "Move Game Portal" }, { "id": "set-y", "objectClass": "Button", "sid": 266460799951840, "parameters": { "y": "Self.Y - desktopMargin/2" } }, { "id": "set-y", "objectClass": "Instructions", "sid": 333003763464841, "parameters": { "y": "Self.Y - desktopMargin/2" } }, { "id": "set-y", "objectClass": "InstructionsPressed", "sid": 354681129561918, "parameters": { "y": "Self.Y - desktopMargin/2" } }, { "id": "set-y", "objectClass": "MainSpriteFont", "sid": 937311769715287, "parameters": { "y": "Self.Y - desktopMargin/2" } } ], "sid": 686435020395475 }, { "eventType": "comment", "text": "Move [i]Version[/i] Up" }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 541716961884286, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For", "comparison": 0, "value": "\"Version\"" } } ], "actions": [ { "id": "set-y", "objectClass": "MainSpriteFont", "sid": 432455665148646, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 341030782593133 }, { "eventType": "comment", "text": "Move [i]About[/i] Button Up" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "set-y", "objectClass": "AboutPressed", "sid": 603284292161247, "parameters": { "y": "Self.Y - desktopMargin" } }, { "id": "set-y", "objectClass": "AboutBackdrop", "sid": 840584197141519, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 815950512788651 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 677829348238362, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"AboutButton\" | MainSpriteFont.For = \"AboutText\"" } } ], "actions": [ { "id": "set-y", "objectClass": "MainSpriteFont", "sid": 314114420962034, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 362094452553098 }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 980251232425535, "parameters": { "object": "Button", "expression": "Button.For", "comparison": 0, "value": "\"About\"" } } ], "actions": [ { "id": "set-y", "objectClass": "Button", "sid": 155667275941191, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 840899196145732 }, { "eventType": "comment", "text": "Move [i]Community[/i] Button Up" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "set-y", "objectClass": "ChatPressed", "sid": 288429875479260, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 563095010441972 }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 512143248078410, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For", "comparison": 0, "value": "\"ChatButton\"" } } ], "actions": [ { "id": "set-y", "objectClass": "MainSpriteFont", "sid": 635881132236144, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 987732638245151 }, { "eventType": "block", "conditions": [ { "id": "pick-by-comparison", "objectClass": "System", "sid": 251655060190047, "parameters": { "object": "Button", "expression": "Button.For", "comparison": 0, "value": "\"Community\"" } } ], "actions": [ { "id": "set-y", "objectClass": "Button", "sid": 843380523848971, "parameters": { "y": "Self.Y - desktopMargin" } } ], "sid": 916164582230554 } ] }, { "eventType": "comment", "text": "Do we need to switch to [b]DesktopMode[/b] and restart the layout?" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 890615289081166 }, { "id": "is-on-mobile", "objectClass": "PlatformInfo", "sid": 284958836828513, "isInverted": true }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 777178290561833, "parameters": { "variable": "DesktopMode" }, "isInverted": true }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 140055346769926, "parameters": { "variable": "ForceMobile" }, "isInverted": true } ], "actions": [ { "callFunction": "ToggleDesktopMode", "sid": 740259066994620, "parameters": [ true ] } ], "sid": 808468036551691 }, { "eventType": "comment", "text": "Maybe add our own Ad" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 393649410588636 }, { "id": "is-cordova-export", "objectClass": "PlatformInfo", "sid": 796833707582610, "isInverted": true }, { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 839024482771865, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AppButton\"" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 181686961842521, "parameters": { "first-value": "choose(0, 1)", "comparison": 0, "second-value": "0" } } ], "actions": [ { "id": "set-text", "objectClass": "MainSpriteFont", "sid": 724687654426538, "parameters": { "text": "\"Download App\"" } } ], "sid": 589426234603272 }, { "eventType": "comment", "text": "Initialize Layout Elements & Interactivity" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 468147168058545 } ], "actions": [ { "type": "comment", "text": "Enable the GlobalClock that runs even if the timescale is 0" }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 580861593870227, "parameters": { "object": "GlobalClock", "time-scale": "1.0" } }, { "type": "comment", "text": "Set Background Color" }, { "id": "set-layer-background-color", "objectClass": "System", "sid": 626186743056838, "disabled": true, "parameters": { "layer": "\"Butterfly\"", "color": "Functions.hslaToRgba(random(0, 1), 0.25, 0.835, 1.0)" } }, { "type": "comment", "text": "" }, { "id": "set-group-active", "objectClass": "System", "sid": 594899704929649, "parameters": { "group-name": "\"Buttons\"", "state": "deactivated" } }, { "type": "comment", "text": "Retrieve the painting." }, { "callFunction": "RetrievePainting", "sid": 790831603244509 }, { "id": "wait-for-signal", "objectClass": "System", "sid": 365033203290332, "parameters": { "tag": "\"paintingRetrievalComplete\"" } }, { "type": "comment", "text": "Map buttons." }, { "id": "map-function", "objectClass": "Functions", "sid": 327603648349956, "parameters": { "name": "\"Buttons\"", "string": "\"Enter\"", "function": "Enter" } }, { "id": "map-function", "objectClass": "Functions", "sid": 896004108612902, "parameters": { "name": "\"Buttons\"", "string": "\"Community\"", "function": "Chat" } }, { "id": "map-function", "objectClass": "Functions", "sid": 127678787157677, "parameters": { "name": "\"Buttons\"", "string": "\"App\"", "function": "App" } }, { "id": "map-function", "objectClass": "Functions", "sid": 384365268269294, "parameters": { "name": "\"Buttons\"", "string": "\"Whistlegraph\"", "function": "Whistlegraph" } }, { "id": "map-function", "objectClass": "Functions", "sid": 256091273433740, "parameters": { "name": "\"Buttons\"", "string": "\"Camera\"", "function": "Camera" } }, { "id": "map-function", "objectClass": "Functions", "sid": 682959701915509, "parameters": { "name": "\"Buttons\"", "string": "\"PainterStories\"", "function": "ProfileIndex" } }, { "id": "map-function", "objectClass": "Functions", "sid": 507586639318101, "parameters": { "name": "\"Buttons\"", "string": "\"LightSwitch\"", "function": "LightSwitch" } }, { "id": "map-function", "objectClass": "Functions", "sid": 749089482024991, "parameters": { "name": "\"Buttons\"", "string": "\"CheckButtons\"", "function": "CheckButtonsSplash" } }, { "type": "comment", "text": "Mute" }, { "id": "set-silent", "objectClass": "Audio", "sid": 488831008013899, "disabled": true, "parameters": { "mode": "silent" } }, { "type": "comment", "text": "Set volume to a quarter as loud as normal." }, { "id": "set-master-volume", "objectClass": "Audio", "sid": 982548301059024, "parameters": { "db": "-15" } }, { "id": "log", "objectClass": "Browser", "sid": 795318938338001, "parameters": { "type": "log", "message": "\"👋 Welcome to No Paint\"" } }, { "id": "set-group-active", "objectClass": "System", "sid": 280838934082564, "parameters": { "group-name": "\"Buttons\"", "state": "activated" } }, { "type": "comment", "text": "Show cursor and update it's position." }, { "id": "move-to-layer", "objectClass": "Cursor", "sid": 509276004462971, "parameters": { "layer": "\"Cursor\"" } }, { "id": "set-visible", "objectClass": "Cursor", "sid": 671081448722669, "parameters": { "visibility": "invisible" } }, { "id": "set-position", "objectClass": "Cursor", "sid": 397855218228324, "disabled": true, "parameters": { "x": "Mouse.X", "y": "Mouse.Y" } }, { "id": "log", "objectClass": "Browser", "sid": 374385476664461, "disabled": true, "parameters": { "type": "log", "message": "Mouse.X &\" \"& Mouse.Y" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 781297095762420, "parameters": { "variable": "MouseLastX", "value": "Mouse.X" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 404613939660990, "parameters": { "variable": "MouseLastY", "value": "Mouse.Y" } }, { "type": "comment", "text": "Try and set the volume from a saved value." }, { "id": "check-item-exists", "objectClass": "LocalStorage", "sid": 811466320313709, "parameters": { "key": "\"VolumeSetting\"" } }, { "id": "check-item-exists", "objectClass": "LocalStorage", "sid": 945566181285084, "parameters": { "key": "\"MusicSetting\"" } } ], "sid": 978533952786173, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 404880594801658, "parameters": { "variable": "SkipSplash" } } ], "actions": [ { "id": "go-to-layout", "objectClass": "System", "sid": 773852961263685, "parameters": { "layout": "Index" } } ], "sid": 819017157241963 }, { "eventType": "comment", "text": "Only on the first run of Splash." }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 893907758647450, "parameters": { "variable": "FirstSplash" } } ], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 532691087548629, "parameters": { "variable": "Paused", "value": "true" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 625984944801556, "parameters": { "variable": "FirstSplash", "value": "false" } }, { "type": "comment", "text": "Stop everything and enable LightSwitch." }, { "id": "set-time-scale", "objectClass": "System", "sid": 630633193302962, "parameters": { "time-scale": "0.25" } }, { "id": "set-layer-visible", "objectClass": "System", "sid": 199367474143961, "parameters": { "layer": "\"Light Switch\"", "visibility": "visible" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 788491359199932, "parameters": { "object": "LightSwitch", "time-scale": "1.0" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 449410393895874, "parameters": { "object": "EarlyAccessBackground", "time-scale": "1.0" } }, { "type": "comment", "text": "Disable all buttons." }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 970193628239378, "parameters": { "instance-variable": "Disabled", "value": "true" } } ], "sid": 129085306044867, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "Button", "sid": 807406167380681, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"LightSwitch\"" } } ], "actions": [ { "type": "comment", "text": "Re-enable LightSwitch button." }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 806921754245287, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 475001957590923 }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 421957364039044, "parameters": { "variable": "DesktopMode" } }, { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 825685796011460, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"EarlyAccess\"" } } ], "actions": [ { "id": "set-y", "objectClass": "EarlyAccessBackground", "sid": 556896220927928, "parameters": { "y": "Self.Y - 48" } }, { "id": "set-y", "objectClass": "MainSpriteFont", "sid": 153016712149561, "parameters": { "y": "Self.Y - 48" } } ], "sid": 636972045632925 } ] }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 437074023774152 } ], "actions": [ { "id": "set-layer-visible", "objectClass": "System", "sid": 293995052109960, "parameters": { "layer": "\"Light Switch\"", "visibility": "invisible" } } ], "sid": 279202136397136 } ] }, { "eventType": "comment", "text": "Check to load any saved volume setting." }, { "eventType": "block", "conditions": [ { "id": "on-item-exists", "objectClass": "LocalStorage", "sid": 107810425312919, "parameters": { "key": "\"VolumeSetting\"" } }, { "id": "is-number-nan", "objectClass": "System", "sid": 123623698497684, "parameters": { "number": "LocalStorage.ItemValue" }, "isInverted": true } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 734027003536984, "parameters": { "variable": "VolumeSetting", "value": "LocalStorage.ItemValue" } }, { "callFunction": "SetVolume", "sid": 549476809832720 } ], "sid": 578214497500260 }, { "eventType": "block", "conditions": [ { "id": "on-item-exists", "objectClass": "LocalStorage", "sid": 354049381827912, "parameters": { "key": "\"MusicSetting\"" } }, { "id": "is-number-nan", "objectClass": "System", "sid": 627104531978894, "parameters": { "number": "LocalStorage.ItemValue" }, "isInverted": true } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 173783015553088, "parameters": { "variable": "MusicSetting", "value": "LocalStorage.ItemValue" } } ], "sid": 576079052656614 }, { "eventType": "comment", "text": "[h3]👻 Legacy Stamp Ghosts [/h3]" }, { "eventType": "block", "conditions": [ { "id": "every-x-seconds", "objectClass": "System", "sid": 741200131418108, "parameters": { "interval-seconds": "0.5" } } ], "actions": [ { "id": "move-at-angle", "objectClass": "Stamp", "sid": 277018619545397, "parameters": { "angle": "random(360)", "distance": "choose(-1, 0, 1)" } } ], "sid": 293240578335011, "children": [ { "eventType": "block", "conditions": [ { "id": "for-each", "objectClass": "System", "sid": 200354908722618, "parameters": { "object": "Stamp" } }, { "id": "compare-two-values", "objectClass": "System", "sid": 410515944078667, "parameters": { "first-value": "distance(Stamp.X, Stamp.Y, Stamp.startX, Stamp.startY)", "comparison": 4, "second-value": "2" } } ], "actions": [ { "id": "set-position", "objectClass": "Stamp", "sid": 391954554052157, "parameters": { "x": "Stamp.startX", "y": "Stamp.startY" } } ], "sid": 341646316304271 } ] }, { "eventType": "comment", "text": "[h3]Color Changing[/h3]" }, { "eventType": "block", "conditions": [ { "id": "every-x-seconds", "objectClass": "System", "sid": 429609120633136, "parameters": { "interval-seconds": "1" } } ], "actions": [ { "id": "set-default-color", "objectClass": "WhistlegraphButterfly", "sid": 989294171291806, "parameters": { "color": "Functions.hslaToRgba(random(0, 1), 0.35, 0.435, 1.0)" } } ], "sid": 730823121333139 }, { "eventType": "variable", "name": "LightSwitchDecolorGlow", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 669620699184652 }, { "eventType": "block", "conditions": [ { "id": "every-x-seconds", "objectClass": "System", "sid": 401235571126567, "parameters": { "interval-seconds": "0.05" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 740699465450894, "parameters": { "variable": "LightSwitchDecolorGlow", "value": "choose(20, 25, 30)" } }, { "id": "set-effect-parameter", "objectClass": "LightSwitchDecolor", "sid": 853250205518644, "parameters": { "effect": "\"GlowHorizontal\"", "parameter-index": "0", "value": "LightSwitchDecolorGlow" } }, { "id": "set-effect-parameter", "objectClass": "LightSwitchDecolor", "sid": 970324608548228, "parameters": { "effect": "\"GlowVertical\"", "parameter-index": "0", "value": "LightSwitchDecolorGlow" } } ], "sid": 509774546186551 }, { "eventType": "comment", "text": "[h3]Flip the Switch[/h3]" }, { "functionName": "LightSwitch", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "set-layer-visible", "objectClass": "System", "sid": 961543173048639, "parameters": { "layer": "\"Light Switch\"", "visibility": "invisible" } }, { "id": "set-time-scale", "objectClass": "System", "sid": 631035850951227, "parameters": { "time-scale": "1" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 819853099818741, "parameters": { "variable": "Paused", "value": "false" } }, { "id": "play", "objectClass": "Audio", "sid": 276251553621973, "parameters": { "audio-file": { "path": "Light Switch/Light Switch - Released" }, "loop": "not-looping", "volume": "-15", "stereo-pan": "0", "tag-optional": "\"LightSwitchReleased\"" } } ], "sid": 637887469891057, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 804196269491412, "parameters": { "variable": "MusicSetting", "comparison": 0, "value": "0" } } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 459197851013968, "parameters": { "audio-file": { "path": "No Paint - Theme" }, "loop": "looping", "volume": "-0.5", "stereo-pan": "0", "tag-optional": "\"Theme\"" } } ], "sid": 578423772576092 }, { "eventType": "variable", "name": "EffectedLayers", "type": "string", "initialValue": "Profile|Emoji Sprinkles|Layer 0|Particles|Butterfly", "comment": "", "isStatic": false, "isConstant": false, "sid": 592190171531549 }, { "eventType": "block", "conditions": [ { "id": "repeat", "objectClass": "System", "sid": 181126368063559, "parameters": { "count": "tokencount(EffectedLayers, \"|\")" } } ], "actions": [ { "id": "set-layer-effect-enabled", "objectClass": "System", "sid": 141598763301764, "parameters": { "layer": "tokenat(EffectedLayers, loopindex, \"|\")", "mode": "disable", "effect": "\"BlurHorizontal\"" } }, { "id": "set-layer-effect-enabled", "objectClass": "System", "sid": 514665429629461, "parameters": { "layer": "tokenat(EffectedLayers, loopindex, \"|\")", "mode": "disable", "effect": "\"BlurVertical\"" } }, { "id": "set-layer-effect-enabled", "objectClass": "System", "sid": 411702827876685, "parameters": { "layer": "tokenat(EffectedLayers, loopindex, \"|\")", "mode": "disable", "effect": "\"Water\"" } } ], "sid": 110682209575571 }, { "eventType": "block", "conditions": [], "actions": [ { "type": "comment", "text": "Re-enable all buttons." }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 460062554509225, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 799109000123164 }, { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "Button", "sid": 678952080928003, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"LightSwitch\"" } } ], "actions": [ { "type": "comment", "text": "Disable LightSwitch button." }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 808742260231262, "parameters": { "instance-variable": "Disabled", "value": "true" } } ], "sid": 395145098331156 } ] }, { "eventType": "comment", "text": "[h3]Start Painting[/h3]" }, { "functionName": "Enter", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "go-to-layout", "objectClass": "System", "sid": 305241844591063, "parameters": { "layout": "Index" } }, { "id": "stop", "objectClass": "Audio", "sid": 406267512897919, "parameters": { "tag": "\"LightSwitchReleased\"" } } ], "sid": 158052912988671 }, { "eventType": "comment", "text": "[h3]Go to Discord[/h3]" }, { "functionName": "Chat", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "open-url-in-new-window", "objectClass": "Browser", "sid": 825124143239383, "parameters": { "url": "\"https://discord.gg/4BdxKC5gd9\"", "tag": "\"NewWindow\"" } } ], "sid": 794147383810134 }, { "eventType": "comment", "text": "[h3]Go to Whistlegraph's Home[/h3]" }, { "functionName": "Whistlegraph", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "open-url-in-new-window", "objectClass": "Browser", "sid": 686023268944144, "parameters": { "url": "\"https://whistlegraph.com\"", "tag": "\"NewWindow\"" } } ], "sid": 237900443544177 }, { "eventType": "comment", "text": "[h3]Make a Portrait[/h3]" }, { "functionName": "Camera", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 144439422422625, "parameters": { "variable": "FirstBrush", "value": "\"Camera\"" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 145618540967234, "parameters": { "variable": "Repeat", "value": "true" } }, { "id": "go-to-layout", "objectClass": "System", "sid": 133887411244353, "parameters": { "layout": "Index" } } ], "sid": 458505581027287, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 967132369441486, "parameters": { "variable": "DesktopMode" }, "isInverted": true }, { "id": "compare-two-values", "objectClass": "System", "sid": 438808322867715, "parameters": { "first-value": "choose(0, 1)", "comparison": 0, "second-value": "0" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 329879231591762, "parameters": { "variable": "FirstParams", "value": "\"Front\"" } } ], "sid": 344197544737471 } ] }, { "eventType": "comment", "text": "[h3]Go to App[/h3]" }, { "functionName": "App", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [], "sid": 113215975777879, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 666873650170386, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AppButton\"" } }, { "id": "compare-text", "objectClass": "MainSpriteFont", "sid": 234747215777904, "parameters": { "text-to-compare": "\"Your Ad Here\"", "case-sensitivity": "ignore-case" } } ], "actions": [ { "id": "go-to-url", "objectClass": "Browser", "sid": 763343453606888, "parameters": { "url": "\"https://tally.so/r/3EQbo3\"", "target": "self" } } ], "sid": 438669289909868 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 196351362683319 } ], "actions": [ { "id": "go-to-url", "objectClass": "Browser", "sid": 943721778358272, "parameters": { "url": "\"https://apps.apple.com/us/app/no-paint/id1107427275\"", "target": "self" } } ], "sid": 984230401235321 } ] }, { "eventType": "comment", "text": "[h3]Buttons[/h3]" }, { "functionName": "CheckButtonsSplash", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [ { "name": "For", "type": "string", "initialValue": "", "comment": "", "sid": 382538023913126 }, { "name": "Event", "type": "string", "initialValue": "", "comment": "", "sid": 589197049838907 } ], "eventType": "function-block", "conditions": [], "actions": [], "sid": 743364471822249, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 747289427626326, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"Enter\"" } } ], "actions": [], "sid": 465355185876789, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 451745865352330, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 776374374819725 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 269382723009591, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "InstructionsPressed", "sid": 954998105750341, "parameters": { "frame-number": "1" } }, { "id": "set-default-color", "objectClass": "Instructions", "sid": 591661335319533, "parameters": { "color": "rgbEx255(128, 128, 0)" } } ], "sid": 301758757260178 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 218245838028939, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 393491420987974 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 645629631031344, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "InstructionsPressed", "sid": 633838037484924, "parameters": { "frame-number": "0" } }, { "id": "set-default-color", "objectClass": "Instructions", "sid": 788741318813626, "parameters": { "color": "rgbEx255(145, 145, 145)" } } ], "sid": 109763163241730 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 352763956461096, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"Community\"" } }, { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 255868717015614, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"ChatButton\"" } } ], "actions": [], "sid": 389177154957255, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 242982106811361, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 625206601692798 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 708750894537153, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "ChatPressed", "sid": 424187326752536, "parameters": { "frame-number": "1" } }, { "id": "set-default-color", "objectClass": "MainSpriteFont", "sid": 534672707737000, "parameters": { "color": "rgbEx255(100, 0, 100)" } } ], "sid": 986816953960837 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 887370269221318, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 666403694177719 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 201641598669636, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "ChatPressed", "sid": 295331290290497, "parameters": { "frame-number": "0" } }, { "id": "set-default-color", "objectClass": "MainSpriteFont", "sid": 184848784518970, "parameters": { "color": "rgbEx255(145, 145, 200)" } } ], "sid": 586924899654449 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 497126463294981, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"Whistlegraph\"" } } ], "actions": [], "sid": 268670808929957, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 170456630994964, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 209425444788210 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 542706933577037, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "WhistlegraphPressed", "sid": 140392648385107, "parameters": { "frame-number": "1" } } ], "sid": 113109923120861 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 857546441117692, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 842142673840038 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 248434722396953, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "WhistlegraphPressed", "sid": 112803736661934, "parameters": { "frame-number": "0" } } ], "sid": 852923354758527 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 893384720537738, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"App\"" } }, { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 160521830818662, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AppButton\"" } } ], "actions": [], "sid": 871165579553115, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 692130952602189, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 847432250847416 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 973949388784618, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "AppPressed", "sid": 979449429014176, "parameters": { "frame-number": "1" } }, { "id": "set-default-color", "objectClass": "MainSpriteFont", "sid": 808302620239421, "parameters": { "color": "rgbEx255(0, 100, 0)" } } ], "sid": 534461644260276 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 586542219879782, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 467967614075273 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 308647128384951, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "AppPressed", "sid": 294531653185308, "parameters": { "frame-number": "0" } }, { "id": "set-default-color", "objectClass": "MainSpriteFont", "sid": 298669385543652, "parameters": { "color": "rgbEx255(125, 175, 125)" } } ], "sid": 225881056876173 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 245263020542405, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"About\"" } }, { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 799368316643093, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AboutButton\"" } } ], "actions": [], "sid": 106196757279710, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 577621555656165, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 197181917081230 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 337667874941508, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "AboutPressed", "sid": 786202526136895, "parameters": { "frame-number": "1" } }, { "id": "set-default-color", "objectClass": "MainSpriteFont", "sid": 728959622013209, "parameters": { "color": "rgbEx255(0, 100, 100)" } }, { "callFunction": "ToggleAboutScreen", "sid": 364023117423506, "parameters": [ true ] } ], "sid": 311982807011233 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 757886884521743, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 296953926248282 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 951851690976383, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-animation-frame", "objectClass": "AboutPressed", "sid": 831593814097790, "parameters": { "frame-number": "0" } }, { "id": "set-default-color", "objectClass": "MainSpriteFont", "sid": 305340699051488, "parameters": { "color": "rgbEx255(145, 145, 145)" } }, { "callFunction": "ToggleAboutScreen", "sid": 260368093072126, "parameters": [ false ] } ], "sid": 633882801334026 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 363988150898924, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"PainterStories\"" } } ], "actions": [], "sid": 280405292313129, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 452674029534913, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 167893716127432 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 178638350201949, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-default-color", "objectClass": "PainterStories", "sid": 362052351470053, "parameters": { "color": "rgbEx255(255, 200, 0)" } } ], "sid": 858856647011234 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 381738976507565, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 895420627536961 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 505536845742345, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-default-color", "objectClass": "PainterStories", "sid": 234051552769415, "parameters": { "color": "rgbEx255(255, 90, 90)" } } ], "sid": 706821798947794 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 537818599728348, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"Camera\"" } } ], "actions": [], "sid": 719183296073242, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 944913932178196, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 450740728884312 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 751517174626364, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-default-color", "objectClass": "CameraSplash", "sid": 596976453192874, "parameters": { "color": "rgbEx255(100, 100, 100)" } } ], "sid": 880394165834226 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 278371345032833, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 820442626313372 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 535669922821374, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-default-color", "objectClass": "CameraSplash", "sid": 455791098515980, "parameters": { "color": "rgbEx255(255, 255, 255)" } } ], "sid": 845727381130826 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 602983120068608, "parameters": { "first-value": "For", "comparison": 0, "second-value": "\"LightSwitch\"" } } ], "actions": [], "sid": 835850127997816, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 590877887911373, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Pressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 523479477182553 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 486226971049547, "parameters": { "audio-file": { "path": "Generic/Generic - Button Press" }, "loop": "not-looping", "volume": "GenericButtonPressedDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-opacity", "objectClass": "LightSwitch", "sid": 126284891192019, "parameters": { "opacity": "70" } } ], "sid": 160966623006970 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 807461680545220, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Depressed\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 283046521315071 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 514861330999764, "parameters": { "audio-file": { "path": "Generic/Generic - Button Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-opacity", "objectClass": "LightSwitch", "sid": 186699106690140, "parameters": { "opacity": "100" } } ], "sid": 285167298959299 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 471398319491627, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Hover\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 577149054651164 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 257042405612092, "parameters": { "audio-file": { "path": "Generic/Generic - Button Rollover" }, "loop": "not-looping", "volume": "ButtonRolloverDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 640288689803400, "parameters": { "tag": "\"\"", "playback-rate": "0.75" } }, { "id": "set-opacity", "objectClass": "LightSwitch", "sid": 261098206462581, "parameters": { "opacity": "85" } } ], "sid": 740405060073678 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 778974241866162, "parameters": { "first-value": "Event", "comparison": 0, "second-value": "\"Unhover\"" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 126495801608014 } ], "actions": [ { "id": "set-opacity", "objectClass": "LightSwitch", "sid": 364154481222183, "parameters": { "opacity": "100" } }, { "id": "play", "objectClass": "Audio", "sid": 747025978272224, "parameters": { "audio-file": { "path": "Generic/Generic - Button Rollover" }, "loop": "not-looping", "volume": "ButtonRolloverDecibels", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-playback-rate", "objectClass": "Audio", "sid": 546231919023899, "parameters": { "tag": "\"\"", "playback-rate": "0.9" } } ], "sid": 998544888303664 } ] } ] }, { "eventType": "comment", "text": "[h3]Functions[/h3]" }, { "functionName": "ProfileIndex", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 565131241376519, "parameters": { "variable": "ProfileTransitionIn", "value": "true" } }, { "id": "go-to-layout", "objectClass": "System", "sid": 297445801248770, "parameters": { "layout": "PainterStoriesTransition" } } ], "sid": 758553446557937 }, { "functionName": "ToggleAboutScreen", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [ { "name": "On", "type": "boolean", "initialValue": "false", "comment": "", "sid": 284336985666815 } ], "eventType": "function-block", "conditions": [], "actions": [], "sid": 322892680958669, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 710385695203124, "parameters": { "variable": "On" } } ], "actions": [ { "id": "set-visible", "objectClass": "AboutBackdrop", "sid": 869909726693936, "parameters": { "visibility": "visible" } } ], "sid": 836077984115828, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 595910180025877, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AboutText\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 972603662702757, "parameters": { "visibility": "visible" } } ], "sid": 566798085798184 }, { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 595467789697563, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"Features\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 663701576027114, "disabled": true, "parameters": { "visibility": "invisible" } } ], "sid": 760255201350652 } ] }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 921333557338757 } ], "actions": [ { "id": "set-visible", "objectClass": "AboutBackdrop", "sid": 200738091521182, "parameters": { "visibility": "invisible" } } ], "sid": 451951195524284, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 989231848510319, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"AboutText\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 811510720366810, "parameters": { "visibility": "invisible" } } ], "sid": 262397214768101 }, { "eventType": "block", "conditions": [ { "id": "compare-instance-variable", "objectClass": "MainSpriteFont", "sid": 216319893880027, "parameters": { "instance-variable": "For", "comparison": 0, "value": "\"Features\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 711482145970508, "disabled": true, "parameters": { "visibility": "visible" } } ], "sid": 955749843276839 } ] } ] }, { "functionName": "RetrievePainting", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "log", "objectClass": "Browser", "sid": 786513742294611, "parameters": { "type": "log", "message": "\"👀 Looking for a previously stored painting.\"" } }, { "id": "check-item-exists", "objectClass": "LocalStorage", "sid": 237795767789471, "parameters": { "key": "\"StoredPainting\"" } } ], "sid": 393087418968836 }, { "eventType": "block", "conditions": [ { "id": "on-item-exists", "objectClass": "LocalStorage", "sid": 797992143064355, "parameters": { "key": "\"StoredPainting\"" } } ], "actions": [ { "id": "log", "objectClass": "Browser", "sid": 774139685472241, "parameters": { "type": "log", "message": "\"👍 Painting found!\"" } }, { "id": "get-binary-item", "objectClass": "LocalStorage", "sid": 695928211312746, "parameters": { "key": "\"StoredPainting\"", "destination": "PaintingStorage" } } ], "sid": 946985359304606 }, { "eventType": "block", "conditions": [ { "id": "on-item-missing", "objectClass": "LocalStorage", "sid": 226321652780579, "parameters": { "key": "\"StoredPainting\"" } } ], "actions": [ { "id": "log", "objectClass": "Browser", "sid": 510421997680790, "parameters": { "type": "log", "message": "\"👎 Painting not found!\"" } }, { "id": "signal", "objectClass": "System", "sid": 193915610927721, "parameters": { "tag": "\"paintingRetrievalComplete\"" } } ], "sid": 326756549244402 }, { "eventType": "block", "conditions": [ { "id": "on-item-get", "objectClass": "LocalStorage", "sid": 894123588974995, "parameters": { "key": "\"StoredPainting\"" } } ], "actions": [ { "id": "load-image-from-url", "objectClass": "StoredPaintingLoader", "sid": 809369046048017, "parameters": { "uri": "PaintingStorage.GetURL", "size": "resize-to-image-size", "cross-origin": "anonymous" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 747796461638943 }, { "id": "paste-object", "objectClass": "Painting", "sid": 944828892487808, "parameters": { "object": "StoredPaintingLoader", "effects": "without-effects" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 484171146282046, "parameters": { "variable": "NewPainting", "value": "false" } }, { "id": "log", "objectClass": "Browser", "sid": 761314391693299, "parameters": { "type": "log", "message": "\"✅ Loaded the stored painting.\"" } }, { "id": "signal", "objectClass": "System", "sid": 988236739296052, "parameters": { "tag": "\"paintingRetrievalComplete\"" } } ], "sid": 535596189536697 }, { "eventType": "comment", "text": "[h3]DesktopMode Toggle[/h3]" }, { "functionName": "ToggleDesktopMode", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [ { "name": "mode", "type": "boolean", "initialValue": "false", "comment": "", "sid": 324415439179314 } ], "eventType": "function-block", "conditions": [], "actions": [ { "id": "log", "objectClass": "Browser", "sid": 985076683803123, "disabled": true, "parameters": { "type": "log", "message": "\"Toggle Desktop\"" } } ], "sid": 844565361598937, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 589695696340745, "parameters": { "variable": "mode" } } ], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 506698063368494, "parameters": { "variable": "DesktopMode", "value": "true" } }, { "id": "set-canvas-size", "objectClass": "System", "sid": 958932448426429, "parameters": { "width": "256", "height": "256 + (16 * 3)" } }, { "type": "comment", "text": "304" }, { "id": "restart-layout", "objectClass": "System", "sid": 448108922286277 } ], "sid": 800592826513367 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 450624076357291 } ], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 745575545541234, "parameters": { "variable": "DesktopMode", "value": "false" } }, { "id": "set-canvas-size", "objectClass": "System", "sid": 718920823796375, "parameters": { "width": "OriginalViewportWidth", "height": "352" } } ], "sid": 620757718164354 } ] }, { "eventType": "block", "conditions": [ { "id": "on-end-of-layout", "objectClass": "System", "sid": 150252396056528 } ], "actions": [ { "id": "stop", "objectClass": "Audio", "sid": 488922964252344, "disabled": true, "parameters": { "tag": "\"Theme\"" } } ], "sid": 306182445450525 } ], "sid": 292972561831992 }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 409859014513148, "parameters": { "variable": "SkipSplash" } } ], "actions": [ { "id": "go-to-layout", "objectClass": "System", "sid": 529200356155050, "parameters": { "layout": "Index" } } ], "sid": 478555438635167 } ], "sid": 663919581635965}