{ "name": "Core", "events": [ { "eventType": "variable", "name": "DesktopMode", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 817667698670587 }, { "eventType": "variable", "name": "CurrentTool", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 827340893115811 }, { "eventType": "variable", "name": "AutocompleteList", "type": "string", "initialValue": "Aura|Banner|Blur|Breathe|Bubbles|Build|Box|Camera|Caterpillar|Contrast|Dark Window|Ellipse|Flip|Grid Worm|Invert|Light Bump|Line|Load|Mirror|Noise|Quicksand|Rainbow|Recurse|Saturate|Scroll|Sharpen|Softy|Spin|Stamp|Turn|Triangle|Vignette|Wafer|Walker|Wipe|Zoom|Frame|Playlist", "comment": "", "isStatic": true, "isConstant": false, "sid": 222632089345474 }, { "eventType": "variable", "name": "Paused", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 590252422058711 }, { "eventType": "variable", "name": "Painting", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": false, "isConstant": false, "sid": 930998789359500 }, { "eventType": "variable", "name": "Focused", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": false, "isConstant": false, "sid": 483668125637264 }, { "eventType": "variable", "name": "PaintingResolution", "type": "number", "initialValue": "256", "comment": "Square", "isStatic": true, "isConstant": true, "sid": 635665860640307 }, { "eventType": "variable", "name": "ReceiptMargin", "type": "number", "initialValue": "32", "comment": "", "isStatic": false, "isConstant": true, "sid": 924035132279905 }, { "eventType": "variable", "name": "NewPainting", "type": "boolean", "initialValue": "true", "comment": "", "isStatic": true, "isConstant": false, "sid": 257405596592309 }, { "eventType": "variable", "name": "FilterCount", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 633291197590585 }, { "eventType": "variable", "name": "IndexHangTime", "type": "number", "initialValue": "0.2", "comment": "", "isStatic": false, "isConstant": false, "sid": 635115374915280 }, { "eventType": "variable", "name": "SaveWaited", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": false, "isConstant": false, "sid": 880950019692122 }, { "eventType": "variable", "name": "KeyboardEnabled", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": false, "isConstant": false, "sid": 884125715022748 }, { "eventType": "variable", "name": "KeyboardAutocompletion", "type": "string", "initialValue": "", "comment": "", "isStatic": false, "isConstant": false, "sid": 989437014619640 }, { "eventType": "variable", "name": "KeyboardAutoDeleting", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 364851768692976 }, { "eventType": "variable", "name": "KeyboardCapSym", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 833449201188964 }, { "eventType": "variable", "name": "deleteOnFirstBack", "type": "boolean", "initialValue": "true", "comment": "Delete the text in the prompt on the first \"back\" key entry.", "isStatic": true, "isConstant": false, "sid": 396063703357378 }, { "eventType": "variable", "name": "Peeking", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 600397920550012 }, { "eventType": "variable", "name": "TextPromptFor", "type": "string", "initialValue": "Prompt", "comment": "", "isStatic": false, "isConstant": false, "sid": 824879811817765 }, { "eventType": "variable", "name": "OpenWithEmptyPrompt", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 583967872171677 }, { "eventType": "variable", "name": "Name", "type": "string", "initialValue": "", "comment": "", "isStatic": false, "isConstant": false, "sid": 214514027023718 }, { "eventType": "variable", "name": "DefaultName", "type": "string", "initialValue": "Untitled", "comment": "", "isStatic": false, "isConstant": true, "sid": 560007186620823 }, { "eventType": "variable", "name": "promptText", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 459116161312144 }, { "eventType": "variable", "name": "MonthStrings", "type": "string", "initialValue": "Jan.|Feb.|Mar.|Apr.| May|June|July|Aug.|Sep.|Oct.|Nov.|Dec.", "comment": "Abbreviated months", "isStatic": false, "isConstant": true, "sid": 754306958811734 }, { "eventType": "variable", "name": "promptCommand", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 905272303846090 }, { "eventType": "variable", "name": "layoutExists", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 373260828885155 }, { "eventType": "variable", "name": "Params", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 473906114677313 }, { "eventType": "variable", "name": "LinkedFrom", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 449488180413174 }, { "eventType": "variable", "name": "parameterHint", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 411781965611695 }, { "eventType": "variable", "name": "TextCursorIndex", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 695371510967568 }, { "eventType": "variable", "name": "PaintDate", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 192714319328322 }, { "eventType": "variable", "name": "parameterHintGeneratedAlpha", "type": "string", "initialValue": "20", "comment": "", "isStatic": true, "isConstant": true, "sid": 262563183046716 }, { "eventType": "variable", "name": "VolumeSetting", "type": "number", "initialValue": "2", "comment": "0, 1, 2, 3", "isStatic": false, "isConstant": false, "sid": 691591323174890 }, { "eventType": "variable", "name": "MusicSetting", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 757815666105398 }, { "eventType": "variable", "name": "PaintingMusicDecibels", "type": "number", "initialValue": "0", "comment": "", "isStatic": false, "isConstant": false, "sid": 526151725961583 }, { "eventType": "variable", "name": "GenericCancelDecibels", "type": "number", "initialValue": "-5", "comment": "", "isStatic": false, "isConstant": false, "sid": 158423437299637 }, { "eventType": "variable", "name": "GenericButtonPressedDecibels", "type": "number", "initialValue": "-8", "comment": "", "isStatic": false, "isConstant": false, "sid": 934746680057383 }, { "eventType": "variable", "name": "KeyboardClickDecibels", "type": "number", "initialValue": "-2.5", "comment": "", "isStatic": false, "isConstant": false, "sid": 505354030231597 }, { "eventType": "variable", "name": "BeepPressDecibels", "type": "number", "initialValue": "-5", "comment": "", "isStatic": false, "isConstant": false, "sid": 506745836431025 }, { "eventType": "variable", "name": "KeyboardToothFlickDecibels", "type": "number", "initialValue": "-2.5", "comment": "", "isStatic": false, "isConstant": false, "sid": 755480218083294 }, { "eventType": "variable", "name": "ButtonRolloverDecibels", "type": "number", "initialValue": "-16", "comment": "", "isStatic": false, "isConstant": false, "sid": 187929520288223 }, { "eventType": "variable", "name": "LoadCode", "type": "string", "initialValue": "", "comment": "", "isStatic": true, "isConstant": false, "sid": 192829173402567 }, { "eventType": "comment", "text": "[b]Runs at the start of every Index or Brush[/b]" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 511490776466648 } ], "actions": [ { "callFunction": "CheckPlayMode", "sid": 296790322560259 }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 379127726216662, "parameters": { "variable": "TextPromptFor", "value": "\"Prompt\"" } }, { "type": "comment", "text": "Set up default colors for [b]No[/b] & [b]Paint[/b] buttons." }, { "id": "set-instvar-value", "objectClass": "No", "sid": 939568263693679, "parameters": { "instance-variable": "Color", "value": "rgbEx(0, 0, 0)" } }, { "id": "set-instvar-value", "objectClass": "No", "sid": 397799399965086, "parameters": { "instance-variable": "ColorPressed", "value": "rgbEx(100, 80, 80)" } }, { "id": "set-instvar-value", "objectClass": "No", "sid": 833182813298655, "disabled": true, "parameters": { "instance-variable": "DesktopColor", "value": "rgbEx255(204, 106, 106)" } }, { "id": "set-instvar-value", "objectClass": "No", "sid": 168118587745888, "parameters": { "instance-variable": "DesktopColor", "value": "rgbEx(15, 10, 10)" } }, { "id": "set-instvar-value", "objectClass": "No", "sid": 532230561026809, "parameters": { "instance-variable": "DesktopColorPressed", "value": "rgbEx(80, 20, 20)" } }, { "id": "set-instvar-value", "objectClass": "Paint", "sid": 383722018876470, "parameters": { "instance-variable": "Color", "value": "rgbEx(0, 0, 0)" } }, { "id": "set-instvar-value", "objectClass": "Paint", "sid": 622856877660768, "parameters": { "instance-variable": "ColorPressed", "value": "rgbEx(0, 80, 0)" } }, { "id": "set-instvar-value", "objectClass": "Paint", "sid": 799513235884795, "disabled": true, "parameters": { "instance-variable": "DesktopColor", "value": "rgbEx255(81, 150, 92)" } }, { "id": "set-instvar-value", "objectClass": "Paint", "sid": 633007631831410, "parameters": { "instance-variable": "DesktopColor", "value": "rgbEx(10, 15, 10)" } }, { "id": "set-instvar-value", "objectClass": "Paint", "sid": 154422142775281, "parameters": { "instance-variable": "DesktopColorPressed", "value": "rgbEx(0, 80, 0)" } }, { "type": "comment", "text": "Set the last used [b]LoadCode[/b]" }, { "callFunction": "RetrieveLoadCode", "sid": 707521354301260 } ], "sid": 367809734261471, "children": [ { "eventType": "comment", "text": "Hide NudgeParticles" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "set-spraying", "objectClass": "NudgeParticles", "sid": 748759983912750, "parameters": { "state": "not-spraying" } } ], "sid": 974412412126196 }, { "eventType": "comment", "text": "Update the DesktopMode UI" }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 158015461727574, "parameters": { "variable": "DesktopMode" } } ], "actions": [], "sid": 909457242544571, "children": [ { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 716201991661354, "parameters": { "object": "Button", "expression": "Button.For = \"Prompt\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 743006609507793, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Prompt\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 984605380064886, "parameters": { "object": "PlayModeIcon", "expression": "PlayModeIcon.For = \"Status\"" } } ], "actions": [ { "id": "set-position", "objectClass": "Button", "sid": 331921400745063, "parameters": { "x": "Self.X", "y": "Self.Y - 64" } }, { "id": "set-position", "objectClass": "PlayModeIcon", "sid": 826305849181674, "parameters": { "x": "Self.X", "y": "Self.Y - 64" } }, { "id": "set-position", "objectClass": "PromptBackground", "sid": 748036118276257, "parameters": { "x": "Self.X", "y": "Self.Y - 64" } }, { "id": "set-position", "objectClass": "PromptBrushProgress", "sid": 131996001618219, "parameters": { "x": "Self.X", "y": "Self.Y - 64" } }, { "id": "set-position", "objectClass": "PromptTotalProgress", "sid": 679396692398121, "parameters": { "x": "Self.X", "y": "Self.Y - 64" } }, { "id": "set-animation-frame", "objectClass": "PromptBackground", "sid": 194135151536652, "parameters": { "frame-number": "1" } }, { "id": "set-position", "objectClass": "MainSpriteFont", "sid": 644592903592267, "parameters": { "x": "Self.X", "y": "Self.Y - 64" } }, { "id": "set-visible", "objectClass": "DesktopNoPaintBackdrop", "sid": 929137137326395, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "DesktopNoPaintZipper", "sid": 649286327314340, "parameters": { "visibility": "visible" } } ], "sid": 363294968995209 }, { "eventType": "comment", "text": "Move [b]PlayMode[/b] button down." }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 855121761978210, "parameters": { "object": "Button", "expression": "Button.For = \"PlayMode\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 695066168760345, "parameters": { "object": "PlayModeIcon", "expression": "PlayModeIcon.For = \"Button\"" } } ], "actions": [ { "id": "set-position", "objectClass": "Button", "sid": 379555455101254, "parameters": { "x": "Self.X", "y": "Self.Y + 96 + 16" } }, { "id": "set-position", "objectClass": "PlayModeIcon", "sid": 906749349150471, "parameters": { "x": "Self.X", "y": "Self.Y + 96 + 16" } }, { "id": "set-position", "objectClass": "PlayModePressed", "sid": 488112726158661, "parameters": { "x": "Self.X", "y": "Self.Y + 96 + 16" } } ], "sid": 725162222834494 }, { "eventType": "comment", "text": "Resize [b]No[/b] Button for Desktop" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 293532827520340, "parameters": { "object": "Button", "expression": "Button.For = \"No\"" } } ], "actions": [ { "id": "set-position", "objectClass": "Button", "sid": 715822245517558, "parameters": { "x": "256 - 64 - 64", "y": "256 + 16 + 16" } }, { "id": "set-size", "objectClass": "Button", "sid": 731256450356634, "parameters": { "width": "64", "height": "16" } }, { "id": "set-animation", "objectClass": "NoPressed", "sid": 865567733054344, "parameters": { "animation": "\"Desktop\"", "from": "beginning" } }, { "id": "set-position", "objectClass": "NoPressed", "sid": 536887591097406, "parameters": { "x": "Button.X", "y": "Button.Y" } }, { "id": "set-size", "objectClass": "NoPressed", "sid": 531848822719426, "parameters": { "width": "Button.Width", "height": "Button.Height" } }, { "id": "set-visible", "objectClass": "NoPressed", "sid": 659807243357535, "disabled": true, "parameters": { "visibility": "invisible" } }, { "id": "set-animation-frame", "objectClass": "No", "sid": 622676227411936, "parameters": { "frame-number": "1" } }, { "id": "set-position", "objectClass": "No", "sid": 264847307145723, "parameters": { "x": "Button.X + 1", "y": "Button.Y" } }, { "id": "set-size", "objectClass": "No", "sid": 801925647515063, "parameters": { "width": "Button.Width", "height": "Button.Height" } }, { "id": "set-default-color", "objectClass": "No", "sid": 564422381142888, "disabled": true, "parameters": { "color": "rgbEx255(255, 0, 0)" } }, { "id": "set-default-color", "objectClass": "No", "sid": 536382958151520, "parameters": { "color": "Self.DesktopColor" } } ], "sid": 558849905890889 }, { "eventType": "comment", "text": "Resize [b]Paint[/b] Button for Desktop" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 319798574952114, "parameters": { "object": "Button", "expression": "Button.For = \"Paint\"" } } ], "actions": [ { "id": "set-position", "objectClass": "Button", "sid": 492477623954850, "parameters": { "x": "256 - 64", "y": "256 + 16 + 16" } }, { "id": "set-size", "objectClass": "Button", "sid": 648629873440972, "parameters": { "width": "64", "height": "16" } }, { "id": "set-animation", "objectClass": "PaintPressed", "sid": 151392255808547, "parameters": { "animation": "\"Desktop\"", "from": "beginning" } }, { "id": "set-position", "objectClass": "PaintPressed", "sid": 456215580100535, "parameters": { "x": "Button.X", "y": "Button.Y" } }, { "id": "set-size", "objectClass": "PaintPressed", "sid": 917199757106331, "parameters": { "width": "Button.Width", "height": "Button.Height" } }, { "id": "set-visible", "objectClass": "PaintPressed", "sid": 610368461468228, "disabled": true, "parameters": { "visibility": "invisible" } }, { "id": "set-animation-frame", "objectClass": "Paint", "sid": 814090324930632, "parameters": { "frame-number": "1" } }, { "id": "set-position", "objectClass": "Paint", "sid": 849378479502069, "parameters": { "x": "Button.X", "y": "Button.Y" } }, { "id": "set-size", "objectClass": "Paint", "sid": 664338512902721, "parameters": { "width": "Button.Width", "height": "Button.Height" } }, { "id": "set-default-color", "objectClass": "Paint", "sid": 796801507984441, "disabled": true, "parameters": { "color": "rgbEx255(0, 255, 0)" } }, { "id": "set-default-color", "objectClass": "Paint", "sid": 922938060526772, "parameters": { "color": "Self.DesktopColor" } } ], "sid": 407491914153588 } ] }, { "eventType": "comment", "text": "Update the PlayMode UI." }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 120192298204671, "parameters": { "variable": "Playlist" } } ], "actions": [ { "callFunction": "PlaylistPromptEnable", "sid": 827707991365341 } ], "sid": 771752091746713 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 897504283928657 }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 320249128750505, "parameters": { "variable": "Repeat" } } ], "actions": [ { "id": "set-animation-frame", "objectClass": "PlayModeIcon", "sid": 354215564799805, "parameters": { "frame-number": "1" } } ], "sid": 441545187491329 }, { "eventType": "comment", "text": "Update the Prompt" }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 607903518300082, "parameters": { "first-value": "LayoutName", "comparison": 1, "second-value": "\"Index\"" } } ], "actions": [], "sid": 111900530960723, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 965365373334591, "parameters": { "first-value": "len(Params)", "comparison": 4, "second-value": "0" } } ], "actions": [ { "callFunction": "PrintToPrompt", "sid": 209270786606226, "parameters": [ "CurrentTool & \": \" & Params", true ] } ], "sid": 203314513310579 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 159442976109396 } ], "actions": [ { "callFunction": "PrintToPrompt", "sid": 394898878259286, "parameters": [ "CurrentTool", true ] } ], "sid": 397766668592787 } ] } ] }, { "eventType": "group", "disabled": false, "title": "Start", "description": "", "isActiveOnStart": true, "children": [ { "eventType": "comment", "text": "This function only runs once, when the [b]Index[/b] layout first loads." }, { "functionName": "Start", "functionDescription": "Only runs once when the project starts.", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": true, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "type": "comment", "text": "Map the button instances to functions." }, { "id": "map-function", "objectClass": "Functions", "sid": 527680052423177, "parameters": { "name": "\"Buttons\"", "string": "\"No\"", "function": "No" } }, { "id": "map-function", "objectClass": "Functions", "sid": 686494344960561, "parameters": { "name": "\"Buttons\"", "string": "\"Paint\"", "function": "Paint" } }, { "id": "map-function", "objectClass": "Functions", "sid": 120881904961377, "parameters": { "name": "\"Buttons\"", "string": "\"Pause\"", "function": "Pause" } }, { "id": "map-function", "objectClass": "Functions", "sid": 942371364529460, "parameters": { "name": "\"Buttons\"", "string": "\"Save\"", "function": "Save" } }, { "id": "map-function", "objectClass": "Functions", "sid": 481272608776314, "parameters": { "name": "\"Buttons\"", "string": "\"Back\"", "function": "Back" } }, { "id": "map-function", "objectClass": "Functions", "sid": 352689832517467, "parameters": { "name": "\"Buttons\"", "string": "\"Focus\"", "function": "Focus" } }, { "id": "map-function", "objectClass": "Functions", "sid": 174998883380076, "parameters": { "name": "\"Buttons\"", "string": "\"Camera\"", "function": "CameraButton" } }, { "id": "map-function", "objectClass": "Functions", "sid": 255624171031315, "parameters": { "name": "\"Buttons\"", "string": "\"Fill\"", "function": "FillButton" } }, { "id": "map-function", "objectClass": "Functions", "sid": 957373516771099, "parameters": { "name": "\"Buttons\"", "string": "\"Reset\"", "function": "Reset" } }, { "id": "map-function", "objectClass": "Functions", "sid": 539640737493279, "parameters": { "name": "\"Buttons\"", "string": "\"Clear\"", "function": "Clear" } }, { "id": "map-function", "objectClass": "Functions", "sid": 509516548854051, "parameters": { "name": "\"Buttons\"", "string": "\"Load\"", "function": "Load" } }, { "id": "map-function", "objectClass": "Functions", "sid": 804438034021041, "parameters": { "name": "\"Buttons\"", "string": "\"NameEntry\"", "function": "NameEntry" } }, { "id": "map-function", "objectClass": "Functions", "sid": 482617803928025, "parameters": { "name": "\"Buttons\"", "string": "\"Prompt\"", "function": "PromptEntry" } }, { "id": "map-function", "objectClass": "Functions", "sid": 727670927663594, "parameters": { "name": "\"Buttons\"", "string": "\"PlayMode\"", "function": "TogglePlayMode" } }, { "id": "map-function", "objectClass": "Functions", "sid": 403223739140776, "parameters": { "name": "\"Buttons\"", "string": "\"Peek\"", "function": "TogglePeek" } }, { "id": "map-function", "objectClass": "Functions", "sid": 291435032585633, "parameters": { "name": "\"Buttons\"", "string": "\"Home\"", "function": "GoHome" } }, { "id": "map-function", "objectClass": "Functions", "sid": 161257985922263, "parameters": { "name": "\"Buttons\"", "string": "\"Volume\"", "function": "ToggleVolume" } }, { "id": "map-function", "objectClass": "Functions", "sid": 547483451891971, "parameters": { "name": "\"Buttons\"", "string": "\"Music\"", "function": "ToggleMusic" } }, { "id": "map-function", "objectClass": "Functions", "sid": 753567485813404, "parameters": { "name": "\"Buttons\"", "string": "\"Manual\"", "function": "GoToManual" } }, { "id": "map-function", "objectClass": "Functions", "sid": 644009950019589, "parameters": { "name": "\"Buttons\"", "string": "\"GoBack\"", "function": "GoBack" } }, { "id": "map-function", "objectClass": "Functions", "sid": 490808117575747, "parameters": { "name": "\"Buttons\"", "string": "\"MoreLess\"", "function": "MoreLess" } }, { "id": "map-function", "objectClass": "Functions", "sid": 467183297203883, "parameters": { "name": "\"Buttons\"", "string": "\"Keyboard\"", "function": "GraphicKeyboardEntry" } }, { "id": "map-function", "objectClass": "Functions", "sid": 163875801720830, "parameters": { "name": "\"Buttons\"", "string": "\"Link\"", "function": "InputLink" } }, { "id": "map-function", "objectClass": "Functions", "sid": 459833863048952, "parameters": { "name": "\"Buttons\"", "string": "\"Emoji\"", "function": "InputEmoji" } }, { "id": "map-function", "objectClass": "Functions", "sid": 766000763977492, "parameters": { "name": "\"Buttons\"", "string": "\"CheckButtons\"", "function": "CheckButtonsCore" } }, { "id": "map-function", "objectClass": "Functions", "sid": 414324725149094, "parameters": { "name": "\"Buttons\"", "string": "\"FlipCamera\"", "function": "CycleCamera" } }, { "id": "map-function", "objectClass": "Functions", "sid": 231409555666560, "parameters": { "name": "\"Buttons\"", "string": "\"CameraFX\"", "function": "CameraFXCycle" } }, { "type": "comment", "text": "(Specific to [b]Camera[/b] Brush)" }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 125054893794110, "parameters": { "object": "Painting", "time-scale": "1.0" } } ], "sid": 968346040571930, "children": [ { "eventType": "comment", "text": "Specific to [b]Stamp[/b] Brush: Add all users to autocomplete." }, { "eventType": "block", "conditions": [ { "id": "repeat", "objectClass": "System", "sid": 424027102278007, "parameters": { "count": "tokencount(users, \"|\")" } } ], "actions": [ { "id": "add-to-eventvar", "objectClass": "System", "sid": 881796152945934, "parameters": { "variable": "AutocompleteList", "value": "\"|Stamp: @\" & tokenat(users, loopindex, \"|\")\n" } } ], "sid": 667412588661576 }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 438718172202927, "parameters": { "variable": "NewPainting" } } ], "actions": [ { "type": "comment", "text": "Generate a new painting if necessary by iterating and slightly varying every pixel within the [b]Painting[/b]." }, { "id": "log", "objectClass": "Browser", "sid": 651969034055652, "parameters": { "type": "log", "message": "\"🧮 Generating a new painting.\"" } }, { "id": "fill-rect", "objectClass": "Painting", "sid": 437752187232009, "parameters": { "left": "0", "top": "0", "right": "Self.Width", "bottom": "Self.Height", "color": "Functions.hslaToRgba(random(1), random(0.3, 0.6), random(0.3, 0.5), 1)" } }, { "type": "script", "language": "javascript", "script": [ "const imageData = await runtime.objects.Painting.getFirstInstance().getImagePixelData()", "", "const data = imageData.data", "for (let i = 0, len = data.length; i < len; i += 4)", "{", "\tdata[i] = (data[i] + (-15 + Math.floor(runtime.random() * 16))) % 255 // R", "\tdata[i + 1] = (data[i + 1] + (-15 + Math.floor(runtime.random() * 16))) % 255 // G", "\tdata[i + 2] = (data[i + 2] + (-15 + Math.floor(runtime.random() * 16))) % 255 // B", "}", "", "runtime.objects.Painting.getFirstInstance().loadImagePixelData(imageData)" ] }, { "callFunction": "WorkAroundPixelAccessFlip", "sid": 395950535728028 }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 173307207470187 } ], "sid": 967373202592124 } ] } ], "sid": 273450906492690, "background-color": [ 0.984313725490196, 1, 0.0784313725490196, 1 ] }, { "eventType": "group", "disabled": false, "title": "No & Paint", "description": "", "isActiveOnStart": true, "children": [ { "functionName": "No", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 655234109502395, "parameters": { "variable": "Painting" }, "isInverted": true } ], "actions": [ { "callFunction": "KillPlaylistTimers", "sid": 387957717237751, "parameters": [ false ] }, { "type": "comment", "text": "" }, { "id": "set-time-scale", "objectClass": "System", "sid": 763026806270003, "parameters": { "time-scale": "1" } }, { "id": "log", "objectClass": "Browser", "sid": 580428836191109, "parameters": { "type": "log", "message": "\"❌ No\"" } }, { "id": "play", "objectClass": "Audio", "sid": 955774384877871, "parameters": { "audio-file": { "path": "Generic/Generic - No Button Released (middle)" }, "loop": "not-looping", "volume": "2.5", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "go-to-layout", "objectClass": "System", "sid": 253475254968377, "parameters": { "layout": "Index" } } ], "sid": 386757573919648 }, { "functionName": "Paint", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 467819189126825, "parameters": { "object": "Button", "expression": "Button.For = \"Paint\"" } }, { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 438575153578317, "parameters": { "variable": "Painting" }, "isInverted": true } ], "actions": [ { "callFunction": "KillPlaylistTimers", "sid": 646088390033640, "parameters": [ false ] }, { "id": "set-time-scale", "objectClass": "System", "sid": 541386589620660, "parameters": { "time-scale": "0" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 694912841338789, "parameters": { "variable": "PaintDate", "value": "Date.Now" } }, { "id": "set-item", "objectClass": "LocalStorage", "sid": 529585791791692, "parameters": { "key": "\"PaintDate\"", "value": "PaintDate" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 948208531696898 }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 832642662416334, "parameters": { "variable": "LoadCode", "value": "\"\"" } }, { "id": "remove-item", "objectClass": "LocalStorage", "sid": 255026397474166, "parameters": { "key": "\"LoadCode\"" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 186529198322788 }, { "id": "set-group-active", "objectClass": "System", "sid": 913205237135377, "disabled": true, "parameters": { "group-name": "\"Keyboard Controls\"", "state": "deactivated" } }, { "id": "log", "objectClass": "Browser", "sid": 962366954490434, "parameters": { "type": "log", "message": "\"🎨 Painting...\"" } }, { "id": "play", "objectClass": "Audio", "sid": 116804818256665, "parameters": { "audio-file": { "path": "Generic/Generic - Paint Button Released (Cha)" }, "loop": "not-looping", "volume": "-7.5", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-layer-opacity", "objectClass": "System", "sid": 477266690959214, "parameters": { "layer": "\"Layer 0\"", "opacity": "0" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 758620047374020, "parameters": { "variable": "Painting", "value": "true" } }, { "type": "comment", "text": "This needs to be synchronous..." }, { "id": "wait-for-signal", "objectClass": "System", "sid": 215148009739817, "parameters": { "tag": "\"painted\"" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 443863717861700, "parameters": { "variable": "Painting", "value": "false" } }, { "id": "set-layer-opacity", "objectClass": "System", "sid": 193365035289148, "parameters": { "layer": "\"Layer 0\"", "opacity": "100" } }, { "id": "log", "objectClass": "Browser", "sid": 583184068235359, "parameters": { "type": "log", "message": "\"🖼 Painted!\"" } }, { "callFunction": "StorePainting", "sid": 377634208694009 }, { "id": "clear-rect", "objectClass": "Painting", "sid": 891675876382617, "parameters": { "left": "0", "top": "PaintingResolution", "right": "PaintingResolution", "bottom": "Painting.Height", "color": "rgba(0, 0, 0, 0)" } }, { "id": "set-time-scale", "objectClass": "System", "sid": 469462216415847, "parameters": { "time-scale": "1" } }, { "id": "set-group-active", "objectClass": "System", "sid": 291848272464413, "disabled": true, "parameters": { "group-name": "\"Keyboard Controls\"", "state": "activated" } }, { "id": "go-to-layout", "objectClass": "System", "sid": 202011049869782, "parameters": { "layout": "Index" } } ], "sid": 304165379036266 } ], "sid": 850137721662081, "background-color": [ 0.7215686274509804, 1, 0.7372549019607844, 1 ] }, { "eventType": "group", "disabled": false, "title": "Pause", "description": "", "isActiveOnStart": true, "children": [ { "eventType": "comment", "text": "TODO: This can be removed?" }, { "eventType": "variable", "name": "pauseTime", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 666202294225609 }, { "functionName": "Pause", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "log", "objectClass": "Browser", "sid": 475016424424782, "parameters": { "type": "log", "message": "\"🛑 Pause\"" } } ], "sid": 185302632537370, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 684350332076759, "parameters": { "variable": "Paused" }, "isInverted": true } ], "actions": [ { "callFunction": "KillPlaylistTimers", "sid": 589293914318840, "parameters": [ true ] }, { "id": "play", "objectClass": "Audio", "sid": 198799567605913, "parameters": { "audio-file": { "path": "Generic/Generic - Entering Pause" }, "loop": "not-looping", "volume": "-1", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 191563304005431, "parameters": { "variable": "Paused", "value": "true" } }, { "id": "set-time-scale", "objectClass": "System", "sid": 342206392032335, "parameters": { "time-scale": "0" } }, { "id": "set-group-active", "objectClass": "System", "sid": 532527171758076, "parameters": { "group-name": "\"No & Paint\"", "state": "deactivated" } }, { "id": "set-group-active", "objectClass": "System", "sid": 852535943027050, "parameters": { "group-name": "\"Save\"", "state": "activated" } }, { "id": "set-visible", "objectClass": "WatermarkBackground", "sid": 230626999012766, "parameters": { "visibility": "visible" } }, { "id": "set-layer-visible", "objectClass": "System", "sid": 216205770570738, "parameters": { "layer": "\"Layer 0\"", "visibility": "invisible" } }, { "callFunction": "PaintingMusicDampen", "sid": 611859989164633, "parameters": [ true ] }, { "callFunction": "PaintingMusicMute", "sid": 690142998827274, "parameters": [ false ] }, { "type": "comment", "text": "" }, { "type": "comment", "text": "Load the PaintDate" }, { "id": "check-item-exists", "objectClass": "LocalStorage", "sid": 135723075905711, "parameters": { "key": "\"PaintDate\"" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 170268194763759 }, { "type": "comment", "text": "Load the Title (Name)" }, { "id": "check-item-exists", "objectClass": "LocalStorage", "sid": 375084767353231, "parameters": { "key": "\"PaintingTitle\"" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 210919214604563 }, { "type": "comment", "text": "" } ], "sid": 356076397315189, "children": [ { "eventType": "comment", "text": "[b]Reset LoadCode[/b] if the time (minute) is different." }, { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 800615301175383, "parameters": { "variable": "pauseTime", "comparison": 1, "value": "0" } }, { "id": "compare-timestamps", "objectClass": "Date", "sid": 646726194843600, "parameters": { "first": "pauseTime", "comparison": 2, "second": "Date.Now" } }, { "id": "compare-timestamp-parts", "objectClass": "Date", "sid": 951682841220353, "parameters": { "first": "pauseTime", "comparison": 2, "second": "Date.Now", "part": "minutes" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 188392119461571, "parameters": { "variable": "LoadCode", "value": "\"\"" } }, { "id": "remove-item", "objectClass": "LocalStorage", "sid": 407930376598499, "parameters": { "key": "\"LoadCode\"" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 162778056767799 } ], "sid": 666661779451152, "disabled": true }, { "eventType": "block", "conditions": [], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 206450655652994, "disabled": true, "parameters": { "variable": "pauseTime", "value": "Date.Now" } } ], "sid": 215613255543340, "disabled": true }, { "eventType": "comment", "text": "[b]Hide & Disable Prompt[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 120879041638728, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Prompt\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 293799055109505, "parameters": { "object": "Button", "expression": "Button.For = \"Prompt\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 934447437142270, "parameters": { "object": "PlayModeIcon", "expression": "PlayModeIcon.For = \"Status\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 478679114534624, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "PromptBackground", "sid": 383995701364974, "parameters": { "visibility": "invisible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 838073769292980, "parameters": { "instance-variable": "Disabled", "value": "true" } }, { "id": "set-visible", "objectClass": "PlayModeIcon", "sid": 187040488719229, "parameters": { "visibility": "invisible" } } ], "sid": 591901167605735 }, { "eventType": "comment", "text": "[b]Display Watermark[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 342744172652789, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Name\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 131393489942871, "parameters": { "object": "Button", "expression": "Button.For = \"NameEntry\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 458169757713387, "parameters": { "visibility": "visible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 697691720183779, "parameters": { "instance-variable": "Disabled", "value": "false" } }, { "type": "comment", "text": "Name Blink Indicator" }, { "id": "stop-animation", "objectClass": "NameBlink", "sid": 938029180117382 }, { "id": "start-animation", "objectClass": "NameBlink", "sid": 401738116539612, "parameters": { "from": "beginning" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 541027768282694, "parameters": { "object": "NameBlink", "time-scale": "1.0" } } ], "sid": 133458921752198, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 366709440039959, "parameters": { "first-value": "Name", "comparison": 0, "second-value": "\"\"" } } ], "actions": [ { "id": "set-text", "objectClass": "MainSpriteFont", "sid": 252685961514985, "parameters": { "text": "DefaultName" } }, { "id": "set-visible", "objectClass": "NameBlink", "sid": 466661585998708, "parameters": { "visibility": "visible" } } ], "sid": 408360577016085 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 219469733835229 } ], "actions": [ { "id": "set-text", "objectClass": "MainSpriteFont", "sid": 463823594753391, "parameters": { "text": "Name" } } ], "sid": 657208922520315 } ] }, { "eventType": "comment", "text": "[b]Render Date[/b]" }, { "eventType": "block", "conditions": [], "actions": [ { "callFunction": "RenderDate", "sid": 423029450508251 } ], "sid": 614858014403699 }, { "eventType": "comment", "text": "Show the LoadCode" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 511411944603157, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Code\" | MainSpriteFont.For = \"NameEntryCode\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 433619730246655, "parameters": { "visibility": "visible" } }, { "callFunction": "RainbowLoadCode", "sid": 121095101425044 } ], "sid": 225377502668104 }, { "eventType": "comment", "text": "[b]Disable No & Paint Buttons[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 232664354794502, "parameters": { "object": "Button", "expression": "Button.For = \"Paint\" | Button.For = \"No\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "No", "sid": 765344897201241, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "NoPressed", "sid": 176438084054798, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "Paint", "sid": 561013217436180, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "PaintPressed", "sid": 986900375800691, "parameters": { "visibility": "invisible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 420255984276311, "parameters": { "instance-variable": "Disabled", "value": "true" } }, { "type": "comment", "text": "Hide extra UI if we are in DesktopMode" }, { "id": "set-visible", "objectClass": "DesktopNoPaintBackdrop", "sid": 935571497269603, "disabled": true, "parameters": { "visibility": "invisible" } }, { "id": "set-animation-frame", "objectClass": "DesktopNoPaintBackdrop", "sid": 669933796725930, "parameters": { "frame-number": "1" } }, { "id": "set-visible", "objectClass": "DesktopNoPaintZipper", "sid": 940371790338499, "parameters": { "visibility": "invisible" } } ], "sid": 403157541511531 }, { "eventType": "comment", "text": "[b]Enable Save Button[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 316071224067401, "parameters": { "object": "Button", "expression": "Button.For = \"Save\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "Save", "sid": 724118176890203, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "SavePressed", "sid": 494837979187788, "parameters": { "visibility": "visible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 862594364214933, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 796593845215777, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 325669399223239, "parameters": { "variable": "DesktopMode" } } ], "actions": [ { "id": "set-animation-frame", "objectClass": "Save", "sid": 886225024750626, "parameters": { "frame-number": "1" } }, { "id": "set-x", "objectClass": "Save", "sid": 854957140577151, "parameters": { "x": "256 / 2" } }, { "id": "set-default-color", "objectClass": "Save", "sid": 661986899767121, "parameters": { "color": "rgbEx255(255, 255, 255)" } }, { "id": "set-size", "objectClass": "Button", "sid": 151200101600334, "parameters": { "width": "256 / 2", "height": "16" } }, { "id": "set-x", "objectClass": "Button", "sid": 678259801422086, "parameters": { "x": "256 / 2" } }, { "id": "set-size", "objectClass": "SavePressed", "sid": 885258601992362, "parameters": { "width": "256 / 2", "height": "16" } }, { "id": "set-x", "objectClass": "SavePressed", "sid": 317634377048277, "parameters": { "x": "256 / 2" } }, { "id": "set-animation", "objectClass": "SavePressed", "sid": 795697650732512, "parameters": { "animation": "\"Desktop\"", "from": "beginning" } } ], "sid": 141289672580239 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 571745586202341 } ], "actions": [ { "id": "set-animation", "objectClass": "SavePressed", "sid": 860629625050249, "parameters": { "animation": "\"Animation 1\"", "from": "beginning" } } ], "sid": 807675469762456 } ] }, { "eventType": "comment", "text": "[b]Stop Playlist Timer[/b]" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "stop-timer", "objectClass": "GlobalClock", "sid": 199766452498381, "behaviorType": "Timer", "parameters": { "tag": "\"PlaylistDelay\"" } } ], "sid": 720149566907951 }, { "eventType": "comment", "text": "[b]Cancel Index Timer[/b]" }, { "eventType": "block", "conditions": [], "actions": [ { "id": "stop-timer", "objectClass": "Painting", "sid": 736117439554886, "behaviorType": "Timer", "parameters": { "tag": "\"Next\"" } } ], "sid": 138279849625163 } ] }, { "eventType": "comment", "text": "[h3]Resume[/h3]" }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 296298568143816 } ], "actions": [ { "id": "play", "objectClass": "Audio", "sid": 357824929844440, "parameters": { "audio-file": { "path": "Generic/Generic - Pause Release" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 731800358539123, "parameters": { "variable": "Paused", "value": "false" } }, { "id": "set-time-scale", "objectClass": "System", "sid": 937260189262355, "parameters": { "time-scale": "1" } }, { "id": "set-group-active", "objectClass": "System", "sid": 115498492861396, "parameters": { "group-name": "\"No & Paint\"", "state": "activated" } }, { "id": "set-group-active", "objectClass": "System", "sid": 394071359899859, "parameters": { "group-name": "\"Save\"", "state": "deactivated" } }, { "id": "set-layer-visible", "objectClass": "System", "sid": 288364478538144, "parameters": { "layer": "\"Layer 0\"", "visibility": "visible" } }, { "callFunction": "PaintingMusicDampen", "sid": 575217664803665, "parameters": [ false ] }, { "callFunction": "PlaylistTimersResume", "sid": 756812927385080 } ], "sid": 971715467036175, "children": [ { "eventType": "comment", "text": "[b]Hide Watermark[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 623816901421900, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Date\" | MainSpriteFont.For = \"Name\" | MainSpriteFont.For = \"Time\" | MainSpriteFont.For = \"Code\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 763398409489155, "parameters": { "object": "Button", "expression": "Button.For = \"NameEntry\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 972437281483445, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "WatermarkBackground", "sid": 124030988675644, "parameters": { "visibility": "invisible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 845008652447993, "parameters": { "instance-variable": "Disabled", "value": "true" } }, { "type": "comment", "text": "Name Blink Indicator" }, { "id": "restore-object-time-scale", "objectClass": "System", "sid": 413159239393483, "parameters": { "object": "NameBlink" } }, { "id": "set-visible", "objectClass": "NameBlink", "sid": 903987201980650, "parameters": { "visibility": "invisible" } }, { "type": "comment", "text": "Code & AMPM" }, { "id": "set-visible", "objectClass": "AMPM", "sid": 529625250419838, "parameters": { "visibility": "invisible" } } ], "sid": 262583767656521 }, { "eventType": "comment", "text": "[b]Display & Enable Prompt[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 919135773395370, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Prompt\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 473953122115859, "parameters": { "object": "Button", "expression": "Button.For = \"Prompt\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "PromptBackground", "sid": 944303326130164, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 382447781276263, "parameters": { "visibility": "visible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 856203948597789, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 134333843742082 }, { "eventType": "comment", "text": "[b]Display & Enable PlayMode Icon[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 562255921792995, "parameters": { "object": "Button", "expression": "Button.For = \"PlayMode\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 396072932208666, "parameters": { "object": "PlayModeIcon", "expression": "PlayModeIcon.For = \"Status\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "PlayModePressed", "sid": 374379596007543, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "PlayModeIcon", "sid": 346560532467414, "parameters": { "visibility": "visible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 292490232111252, "disabled": true, "parameters": { "instance-variable": "Disabled", "value": "true" } } ], "sid": 922906336365184 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 925137420586494, "parameters": { "first-value": "LayoutName", "comparison": 0, "second-value": "\"Index\"" } } ], "actions": [ { "type": "comment", "text": "In case we are in the \"Index\" Layout:" }, { "id": "start-timer", "objectClass": "Painting", "sid": 193142507000033, "behaviorType": "Timer", "parameters": { "duration": "IndexHangTime", "type": "once", "tag": "\"Next\"" } } ], "sid": 442411934380617 }, { "eventType": "comment", "text": "[b]Enable No & Paint Buttons[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 101418523367341, "parameters": { "object": "Button", "expression": "Button.For = \"Paint\" | Button.For = \"No\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "No", "sid": 121191646870646, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "Paint", "sid": 502594766973514, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "NoPressed", "sid": 757333464712669, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "PaintPressed", "sid": 198642647797240, "parameters": { "visibility": "visible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 240111667729488, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 786985233907506, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 123029760996815, "parameters": { "variable": "DesktopMode" } } ], "actions": [ { "type": "comment", "text": "Show extra UI if we are in DesktopMode" }, { "id": "set-visible", "objectClass": "DesktopNoPaintBackdrop", "sid": 435021498257833, "parameters": { "visibility": "visible" } }, { "id": "set-visible", "objectClass": "DesktopNoPaintZipper", "sid": 475919796253591, "parameters": { "visibility": "visible" } }, { "id": "set-animation-frame", "objectClass": "DesktopNoPaintBackdrop", "sid": 283544778641453, "parameters": { "frame-number": "0" } } ], "sid": 683513742813600 } ] }, { "eventType": "comment", "text": "[b]Disable Save Button[/b]" }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 682268192060443, "parameters": { "object": "Button", "expression": "Button.For = \"Save\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "Save", "sid": 108952076424002, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "SavePressed", "sid": 576848339657841, "parameters": { "visibility": "invisible" } }, { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 884170315422572, "parameters": { "instance-variable": "Disabled", "value": "true" } } ], "sid": 618524674530589 } ] } ] }, { "eventType": "block", "conditions": [ { "id": "on-item-exists", "objectClass": "LocalStorage", "sid": 169097692506363, "parameters": { "key": "\"PaintDate\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 385479172754019, "parameters": { "variable": "PaintDate", "value": "LocalStorage.ItemValue" } } ], "sid": 966597237054754 }, { "eventType": "block", "conditions": [ { "id": "on-item-missing", "objectClass": "LocalStorage", "sid": 768267163848420, "parameters": { "key": "\"PaintDate\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 374277457913297, "parameters": { "variable": "PaintDate", "value": "Date.Now" } }, { "id": "set-item", "objectClass": "LocalStorage", "sid": 546475023699253, "parameters": { "key": "\"PaintDate\"", "value": "PaintDate" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 962279722296094 } ], "sid": 397596470396331 }, { "eventType": "block", "conditions": [ { "id": "on-item-exists", "objectClass": "LocalStorage", "sid": 924360960566554, "parameters": { "key": "\"PaintingTitle\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 898683099611760, "parameters": { "variable": "Name", "value": "LocalStorage.ItemValue" } } ], "sid": 702564059428176 }, { "eventType": "block", "conditions": [ { "id": "on-item-missing", "objectClass": "LocalStorage", "sid": 332572609431398, "parameters": { "key": "\"PaintingTitle\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 162035850094308, "disabled": true, "parameters": { "variable": "Name", "value": "\"\"" } }, { "id": "set-item", "objectClass": "LocalStorage", "sid": 920695816402461, "disabled": true, "parameters": { "key": "\"PaintDate\"", "value": "PaintDate" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 152951988259609, "disabled": true } ], "sid": 350999251300515 } ], "sid": 754844216460565, "background-color": [ 0.36470588235294116, 0.6509803921568628, 0.9725490196078431, 1 ] }, { "eventType": "group", "disabled": false, "title": "Save", "description": "", "isActiveOnStart": true, "children": [ { "eventType": "variable", "name": "filename", "type": "string", "initialValue": "", "comment": "", "isStatic": false, "isConstant": false, "sid": 611230369998117 }, { "eventType": "variable", "name": "noUpload", "type": "boolean", "initialValue": "false", "comment": "", "isStatic": true, "isConstant": false, "sid": 645678681827524 }, { "functionName": "Save", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 577042708342804, "parameters": { "variable": "noUpload", "value": "false" } }, { "id": "set-timeout", "objectClass": "AJAX", "sid": 562832660327043, "parameters": { "timeout": "15" } }, { "type": "comment", "text": "Store a snapshot of the current Painting, render any provisional strokes, then restore after saving." }, { "id": "play", "objectClass": "Audio", "sid": 768159741905850, "parameters": { "audio-file": { "path": "Generic/Generic - Save Button Released" }, "loop": "not-looping", "volume": "-5", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "play", "objectClass": "Audio", "sid": 422251186928603, "parameters": { "audio-file": { "path": "Generic/Generic - Processing Save" }, "loop": "looping", "volume": "-5", "stereo-pan": "0", "tag-optional": "\"PINWHEEL LOOP\"" } }, { "id": "set-group-active", "objectClass": "System", "sid": 731033161269610, "parameters": { "group-name": "\"Buttons\"", "state": "deactivated" } }, { "id": "set-group-active", "objectClass": "System", "sid": 970657022302497, "parameters": { "group-name": "\"Keyboard Controls\"", "state": "deactivated" } }, { "id": "set-group-active", "objectClass": "System", "sid": 346691574499622, "parameters": { "group-name": "\"Pause\"", "state": "deactivated" } }, { "id": "set-layer-visible", "objectClass": "System", "sid": 541191367448975, "parameters": { "layer": "\"Cursor\"", "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "SaveOverlay", "sid": 414669954700290, "parameters": { "visibility": "visible" } }, { "type": "comment", "text": "Enable the [b]Spinner[/b]." }, { "id": "set-visible", "objectClass": "Spinner", "sid": 103649588455180, "parameters": { "visibility": "visible" } }, { "id": "start-animation", "objectClass": "Spinner", "sid": 237001885487675, "parameters": { "from": "beginning" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 453189558504414, "parameters": { "object": "Spinner", "time-scale": "1.0" } }, { "id": "set-visible", "objectClass": "NameBlink", "sid": 982105874888104, "parameters": { "visibility": "invisible" } }, { "callFunction": "PaintingMusicDuck", "sid": 773342538442925, "parameters": [ true ] } ], "sid": 707059065939341, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 600723553122619, "parameters": { "variable": "LoadCode", "comparison": 0, "value": "\"\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "WiFi", "sid": 537926729112939, "parameters": { "visibility": "visible" } }, { "id": "start-animation", "objectClass": "WiFi", "sid": 204372178704628, "parameters": { "from": "beginning" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 116327562021536, "parameters": { "object": "WiFi", "time-scale": "1.0" } } ], "sid": 864858899704804 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 970564887496551, "parameters": { "object": "Button", "expression": "Button.For = \"Save\" | Button.For = \"Pause\"" } } ], "actions": [ { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 557275695509384, "parameters": { "instance-variable": "Disabled", "value": "true" } } ], "sid": 676817233620306 }, { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 741738574059716, "parameters": { "variable": "LoadCode", "comparison": 0, "value": "\"\"" } } ], "actions": [ { "id": "start-timer", "objectClass": "GlobalClock", "sid": 778007437913488, "behaviorType": "Timer", "parameters": { "duration": "0.05", "type": "once", "tag": "\"WaitASec\"" } } ], "sid": 535105115375017 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 598935290569233 } ], "actions": [ { "id": "start-timer", "objectClass": "GlobalClock", "sid": 780761551247343, "behaviorType": "Timer", "parameters": { "duration": "1", "type": "once", "tag": "\"WaitASec\"" } } ], "sid": 921494427295273 }, { "eventType": "block", "conditions": [], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 661117816408194, "parameters": { "variable": "SaveWaited", "value": "false" } } ], "sid": 114962033492469 } ] }, { "eventType": "block", "conditions": [ { "id": "on-timer", "objectClass": "GlobalClock", "sid": 776319309467638, "behaviorType": "Timer", "parameters": { "tag": "\"WaitASec\"" } } ], "actions": [ { "id": "set-boolean-eventvar", "objectClass": "System", "sid": 433111451841598, "parameters": { "variable": "SaveWaited", "value": "true" } }, { "id": "clear-canvas", "objectClass": "PaintingSnapshotCrop", "sid": 654675257107485, "parameters": { "color": "rgba(0, 0, 0, 0)" } }, { "id": "save-snapshot", "objectClass": "Painting", "sid": 900735874977367 }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 571174935733700 } ], "sid": 864825616354363, "children": [ { "eventType": "comment", "text": "Prevent [b]LoadCode[/b] from showing up while Spinner is open." }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 445640179173203, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Code\"" } }, { "id": "compare-eventvar", "objectClass": "System", "sid": 555409309159655, "parameters": { "variable": "LoadCode", "comparison": 0, "value": "\"\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 571764912038833, "parameters": { "visibility": "invisible" } } ], "sid": 664994076514912 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 445403636078772, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Name\" | MainSpriteFont.For = \"Date\" | MainSpriteFont.For = \"Time\" | MainSpriteFont.For = \"Code\"" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 958375043668482, "parameters": { "object": "AMPM", "expression": "AMPM.For = \"Paused\"" } } ], "actions": [ { "id": "wait-for-signal", "objectClass": "System", "sid": 104022634935972, "parameters": { "tag": "\"capture\"" } }, { "type": "comment", "text": "Attempt to retrieve a code from the server if one doesn't already exist." }, { "callFunction": "MaybeGetCode", "sid": 817287190427121 }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 620080762778844 }, { "callFunction": "RetrieveLoadCode", "sid": 860054170406450 }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 392559364710549 }, { "type": "comment", "text": "Crop the Painting to a square." }, { "id": "paste-object", "objectClass": "PaintingSnapshotCrop", "sid": 192331186861371, "parameters": { "object": "Painting", "effects": "with-effects" } }, { "type": "comment", "text": "Insert a watermark." }, { "id": "fill-rect", "objectClass": "PaintingSnapshotCrop", "sid": 260527146297933, "parameters": { "left": "0", "top": "256", "right": "256", "bottom": "256 + ReceiptMargin", "color": "rgbEx255(0, 0, 0)" } }, { "id": "paste-object", "objectClass": "PaintingSnapshotCrop", "sid": 694500739625182, "parameters": { "object": "MainSpriteFont", "effects": "with-effects" } }, { "id": "paste-object", "objectClass": "PaintingSnapshotCrop", "sid": 729243649187568, "parameters": { "object": "AMPM", "effects": "with-effects" } }, { "id": "save-image", "objectClass": "PaintingSnapshotCrop", "sid": 671324570904349, "parameters": { "format": "png", "jpeg-quality": "100", "x": "0", "y": "0", "width": "0", "height": "0" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 901894054278506 }, { "type": "comment", "text": "Upload a painting (if the load code was retrieved)" }, { "callFunction": "UploadPainting", "sid": 675771810229307 }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 478005468271868 }, { "type": "comment", "text": "Save the painting to disk." }, { "id": "log", "objectClass": "Browser", "sid": 104716180700342, "parameters": { "type": "log", "message": "\"💾 Saving to disk...\"" } }, { "type": "comment", "text": "Reload the Painting as a sprite." }, { "id": "load-image-from-url", "objectClass": "ScaledPainting", "sid": 539494266505378, "parameters": { "uri": "PaintingSnapshotCrop.SavedImageURL", "size": "resize-to-image-size", "cross-origin": "anonymous" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 309548668359665 }, { "type": "comment", "text": "Scale the picture." }, { "id": "set-size", "objectClass": "ScaledPainting", "sid": 100427342965362, "parameters": { "width": "SavedPainting.Width", "height": "SavedPainting.Height" } }, { "type": "comment", "text": "Render the downloadable picture." }, { "id": "paste-object", "objectClass": "SavedPainting", "sid": 634244579514962, "parameters": { "object": "ScaledPainting", "effects": "with-effects" } }, { "id": "save-image", "objectClass": "SavedPainting", "sid": 471405807069534, "parameters": { "format": "png", "jpeg-quality": "100", "x": "0", "y": "0", "width": "0", "height": "0" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 837926795829390 }, { "type": "comment", "text": "Restore the original picture." }, { "id": "load-snapshot", "objectClass": "Painting", "sid": 815935163177305 }, { "type": "comment", "text": "Fade out the loading music." }, { "id": "set-looping", "objectClass": "Audio", "sid": 479896341499652, "parameters": { "tag": "\"PINWHEEL LOOP\"", "state": "not-looping" } }, { "id": "fade-volume", "objectClass": "Audio", "sid": 425209843955444, "disabled": true, "parameters": { "tag": "\"\"", "db": "-100", "duration": "0.25", "ending": "stop" } }, { "type": "comment", "text": "Disable the [b]Spinner[/b]." }, { "id": "set-visible", "objectClass": "Spinner", "sid": 346208454013858, "parameters": { "visibility": "invisible" } }, { "id": "set-visible", "objectClass": "WiFi", "sid": 567571910842245, "parameters": { "visibility": "invisible" } }, { "id": "stop-animation", "objectClass": "Spinner", "sid": 580315110544076 }, { "id": "stop-animation", "objectClass": "WiFi", "sid": 435708067350081 }, { "id": "restore-object-time-scale", "objectClass": "System", "sid": 674384655688662, "parameters": { "object": "Spinner" } }, { "id": "restore-object-time-scale", "objectClass": "System", "sid": 143042289303539, "parameters": { "object": "WiFi" } }, { "id": "set-visible", "objectClass": "SaveOverlay", "sid": 273010810053651, "parameters": { "visibility": "invisible" } }, { "id": "set-layer-opacity", "objectClass": "System", "sid": 351771611028042, "parameters": { "layer": "\"Layer 0\"", "opacity": "100" } }, { "callFunction": "PaintingMusicDuck", "sid": 888032206150180, "parameters": [ false ] } ], "sid": 799368117238777, "children": [ { "eventType": "comment", "text": "Make all [b]LoadCode[/b] texts visible." }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 135779825473049, "parameters": { "object": "MainSpriteFont", "expression": "MainSpriteFont.For = \"Code\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "MainSpriteFont", "sid": 752512234777703, "parameters": { "visibility": "visible" } } ], "sid": 565427499010492 }, { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 635401759282692, "parameters": { "variable": "LoadCode", "comparison": 1, "value": "\"\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 871806894126681, "parameters": { "variable": "filename", "value": "\"No Paint - \" & LoadCode & \" - \" & Date.GetYear(PaintDate) & \".\" & Date.GetMonth(PaintDate) & \".\" & Date.GetDate(PaintDate) & \".\" & Date.GetHours(PaintDate) & \".\" & Date.GetMinutes(PaintDate) & \".\" & Date.GetSeconds(PaintDate) & \".\" & Date.GetMilliseconds(PaintDate) & \".png\"" } } ], "sid": 320834259827712 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 823848407109815 } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 802912275481706, "parameters": { "variable": "filename", "value": "\"No Paint - \" & Date.GetYear(PaintDate) & \".\" & Date.GetMonth(PaintDate) & \".\" & Date.GetDate(PaintDate) & \".\" & Date.GetHours(PaintDate) & \".\" & Date.GetMinutes(PaintDate) & \".\" & Date.GetSeconds(PaintDate) & \".\" & Date.GetMilliseconds(PaintDate) & \".png\"" } } ], "sid": 498854145621930 }, { "eventType": "block", "conditions": [ { "id": "is-cordova-export", "objectClass": "PlatformInfo", "sid": 812011658532751 } ], "actions": [], "sid": 706402871874817, "children": [ { "eventType": "block", "conditions": [], "actions": [ { "id": "set-response-binary", "objectClass": "AJAX", "sid": 985202469375721, "parameters": { "destination": "PaintingShare" } }, { "id": "request-url", "objectClass": "AJAX", "sid": 313399228276726, "parameters": { "tag": "\"painting-share\"", "url": "SavedPainting.SavedImageURL" } }, { "id": "wait-for-previous-actions", "objectClass": "System", "sid": 572949524323996 }, { "id": "add-file", "objectClass": "Share", "sid": 627970742953387, "parameters": { "filename": "\"painting.png\"", "type": "\"image/png\"", "data": "PaintingShare" } }, { "id": "share-text", "objectClass": "Share", "sid": 835006800749582, "parameters": { "text": "\"\"", "title": "\"\"", "url": "\"\"" } }, { "id": "set-group-active", "objectClass": "System", "sid": 270808786049357, "parameters": { "group-name": "\"Buttons\"", "state": "activated" } }, { "id": "set-group-active", "objectClass": "System", "sid": 216981251444498, "parameters": { "group-name": "\"Keyboard Controls\"", "state": "activated" } }, { "id": "set-group-active", "objectClass": "System", "sid": 882862857138846, "parameters": { "group-name": "\"Pause\"", "state": "activated" } }, { "id": "set-layer-visible", "objectClass": "System", "sid": 851835269316400, "parameters": { "layer": "\"Cursor\"", "visibility": "visible" } } ], "sid": 898433716684217 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 294342241845962, "parameters": { "object": "Button", "expression": "Button.For = \"Save\" | Button.For = \"Pause\"" } } ], "actions": [ { "id": "set-boolean-instvar", "objectClass": "Button", "sid": 438909038583816, "parameters": { "instance-variable": "Disabled", "value": "false" } } ], "sid": 979050846901370 }, { "eventType": "block", "conditions": [ { "id": "compare-two-values", "objectClass": "System", "sid": 726429447706054, "parameters": { "first-value": "Name", "comparison": 0, "second-value": "\"\"" } } ], "actions": [ { "id": "set-visible", "objectClass": "NameBlink", "sid": 956456418733221, "parameters": { "visibility": "visible" } } ], "sid": 288830430271326 } ] }, { "eventType": "block", "conditions": [ { "id": "is-web-export", "objectClass": "PlatformInfo", "sid": 545371716779088 } ], "actions": [], "sid": 341941465899417, "children": [ { "eventType": "comment", "text": "Saving UI for [b]Mobile[/b] browsers." }, { "eventType": "block", "conditions": [ { "id": "is-on-ios", "objectClass": "PlatformInfo", "sid": 880534049547861 }, { "id": "is-on-android", "objectClass": "PlatformInfo", "sid": 329042485201229 } ], "actions": [ { "id": "display-html-string", "objectClass": "iframe", "sid": 206967258430268, "parameters": { "html": "\"