{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4},"_ClipMode":"hidden","derivationIds":["9EDF5CAE-9EF7-4D32-8D5A-717398E3CDB5","3E56BA56-3F73-4C57-9CCF-2BD8F96FB79C","F1108D91-EA71-418D-87F2-DD70EF463AAB"],"id":"B2FD0433-4787-41DA-950A-B0758B41CA94","grabbingEnabled":false,"droppingEnabled":true,"halosEnabled":true,"draggingEnabled":true,"icon":{"__isSmartRef__":true,"id":1},"attributeConnections":[{"__isSmartRef__":true,"id":5},{"__isSmartRef__":true,"id":7},{"__isSmartRef__":true,"id":9}],"eventHandler":{"__isSmartRef__":true,"id":11},"_traitConfig_":[{"__isSmartRef__":true,"id":12}],"_FixedPosition":true,"showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":14},"name":"ColorPaletteButton","_Rotation":0,"_Scale":1,"showsColors":true,"__serializedExpressions__":["_Position"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20},"__LivelyClassName__":"lively.morphic.ColorPaletteButton","__SourceModuleName__":"Global.lively.morphic.MobileInterface","_Position":"lively.pt(0.0,0.0)"},"1":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2},"_ClipMode":"visible","derivationIds":["C8E41B99-52B6-426B-8DBA-2E554A969689","508CB3B8-3FE3-445D-9D8B-C1E9E5275769","48E72B40-0F9C-48EA-A01B-D52B9861BD26"],"id":"77C211ED-B1CC-4453-9E80-983D54DC0BE0","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":0},"_Scale":0.45,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","eventHandler":{"__isSmartRef__":true,"id":3},"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-45.0,-45.0)"},"2":{"_ImageURL":"http://lively-web.org/core/media/bertbuttons/palette.svg","_BorderWidth":0,"_BorderColor":null,"_Fill":null,"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(200.0,200.0)","_Padding":"lively.rect(0,0,0,0)"},"3":{"morph":{"__isSmartRef__":true,"id":1},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4":{"_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Ellipse","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(-45.0,-45.0)","_Extent":"lively.pt(90.0,90.0)","_Padding":"lively.rect(0,0,0,0)","_Fill":"Color.rgba(102,102,102,0.3)"},"5":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"onDragStart","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"pressStart","varMapping":{"__isSmartRef__":true,"id":6},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"6":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"7":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"onDragEnd","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"pressEnd","varMapping":{"__isSmartRef__":true,"id":8},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"8":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"9":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"onDrag","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"stayInWorld","varMapping":{"__isSmartRef__":true,"id":10},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"10":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"11":{"morph":{"__isSmartRef__":true,"id":0},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"12":{"traitName":"lively.morphic.FixedPositioning.MorphTrait","options":{"__isSmartRef__":true,"id":13}},"13":{"override":["addEventHandlerForFixedPositioning","enableFixedPositioning","disableFixedPositioning","setFixedPosition","setFixedPositionHTML","getFixedPositionTransform","getPosition","setPosition","getExtent","innerBounds","remove"]},"14":{"partName":"ColorPaletteButton","requiredModules":[],"partsSpaceName":"PartsBin/Astrid/","comment":"when pressed, this bertbutton shows many colors to use.","changes":[{"__isSmartRef__":true,"id":15},{"__isSmartRef__":true,"id":16},{"__isSmartRef__":true,"id":17},{"__isSmartRef__":true,"id":18},{"__isSmartRef__":true,"id":19}],"migrationLevel":8,"__serializedExpressions__":["lastModifiedDate"],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin","lastModifiedDate":"new Date(\"Thu Nov 13 2014 13:37:44 GMT-0800 (PST)\")"},"15":{"author":"athomschke","message":"resetted","id":"A2FB0677-FD8D-45B0-ACBC-768230DCD7F6","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 13 2014 13:37:42 GMT-0800 (PST)\")"},"16":{"author":"athomschke","message":"adapted toggle on laptop class behavior","id":"3B1FDF8A-CB59-4689-8DDE-AE44F1C627E6","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 13 2014 13:37:22 GMT-0800 (PST)\")"},"17":{"author":"athomschke","message":"initial","id":"8AF75A83-A756-4F5C-9D17-89CDA3D1BCDD","__serializedExpressions__":["date"],"date":"new Date(\"Wed Nov 12 2014 17:34:16 GMT-0800 (PST)\")"},"18":{"author":"athomschke","message":"implemented usage on laptops","id":"D5DBDB5A-2A1C-44E5-8BE0-F7C33E59F8C4","__serializedExpressions__":["date"],"date":"new Date(\"Thu Nov 13 2014 10:48:15 GMT-0800 (PST)\")"},"19":{"__serializedExpressions__":["date"],"author":"athomschke","message":"had to reset","id":"1DB165E2-9312-493E-9AC5-5E50DCADD801","date":"new Date(\"Fri Nov 14 2014 13:34:54 GMT-0800 (PST)\")"},"20":{"reset":{"__isSmartRef__":true,"id":21},"onToggleState":{"__isSmartRef__":true,"id":24}},"21":{"varMapping":{"__isSmartRef__":true,"id":22},"source":"function reset() {\n    delete this.colorButtons;\n}","funcProperties":{"__isSmartRef__":true,"id":23},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"22":{"this":{"__isSmartRef__":true,"id":0}},"23":{"user":"athomschke","tags":[],"__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Wed Nov 12 2014 17:33:38 GMT-0800 (PST)\")"},"24":{"varMapping":{"__isSmartRef__":true,"id":25},"source":"function onToggleState(bool) {\n    if (bool) {\n        if (this.colorButtons && this.colorButtons.length > 0) {\n            this.colorButtons.invoke('showInWorld')\n        } else {\n            this.showDefaultColorPalette();\n        }\n    } else {\n        this.colorButtons = $world.submorphs.select(function(ea) {\n            return ea.isBertButton && ea.isColorButton;\n        })\n        this.colorButtons.invoke('hideFromWorld');\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":30},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"25":{"this":{"__isSmartRef__":true,"id":0},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26}},"26":{"$super":{"__isSmartRef__":true,"id":27}},"27":{"varMapping":{"__isSmartRef__":true,"id":28},"source":"function () {\n                try {\n                    // FIXME super is supposed to be static\n                    return Object.getPrototypeOf(obj)[name].apply(obj, arguments);\n                } catch (e) {\n                    if ($world)\n                        $world.logError(e, 'Error in $super call')\n                    else\n                        alert('Error in $super call: ' + e + '\\n' + e.stack);\n                    return null;\n                }\n            }","funcProperties":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"28":{"obj":{"__isSmartRef__":true,"id":0},"name":"onToggleState"},"29":{},"30":{"user":"athomschke","__serializedExpressions__":["timestamp"],"timestamp":"new Date(\"Thu Nov 13 2014 13:36:48 GMT-0800 (PST)\")"},"isSimplifiedRegistry":true}}