diff --git a/examples/rectangular-movement/rectangular-movement.json b/examples/rectangular-movement/rectangular-movement.json index b905fc20e..61006bcc6 100644 --- a/examples/rectangular-movement/rectangular-movement.json +++ b/examples/rectangular-movement/rectangular-movement.json @@ -1,5 +1,5 @@ { - "firstLayout": "", + "firstLayout": "Rectangle Movement", "gdVersion": { "build": 99, "major": 4, @@ -18,8 +18,8 @@ "templateSlug": "", "useExternalSourceFiles": false, "version": "1.0.0", - "name": "Rectangular movement example", - "description": "Show how to use the \"Rectangular movement\" extension.", + "name": "Rectangle movement example", + "description": "Show how to use the \"Rectangle movement\" extension.", "author": "", "windowWidth": 854, "windowHeight": 480, @@ -44,10 +44,15 @@ "showGDevelopSplash": true, "showProgressBar": true }, + "watermark": { + "placement": "bottom-left", + "showWatermark": true + }, "authorIds": [ "IWykYNRvhCZBN3vEgKEbBPOR3Oc2", "gqDaZjCfevOOxBYkK6zlhtZnXCg1" ], + "authorUsernames": [], "categories": [], "playableDevices": [], "extensionProperties": [], @@ -238,8 +243,8 @@ { "b": 31, "disableInputWhenNotFocused": true, - "mangledName": "Rectangular_32Movement", - "name": "Rectangular Movement", + "mangledName": "Rectangle_32Movement", + "name": "Rectangle Movement", "r": 31, "standardSortMethod": true, "stopSoundsOnStartup": true, @@ -255,7 +260,7 @@ "gridColor": 10401023, "gridAlpha": 0.8, "snap": false, - "zoomFactor": 1.1333333183288583, + "zoomFactor": 1.026002653128652, "windowMask": false }, "objectsGroups": [ @@ -284,11 +289,11 @@ "customSize": false, "height": 0, "layer": "", - "name": "RedPlayerShip1", + "name": "Ship", "persistentUuid": "dd4c94fd-46c2-4295-a91f-dd5bd83adcdc", "width": 0, - "x": 135, - "y": 191, + "x": 264, + "y": 245, "zOrder": 3, "numberProperties": [], "stringProperties": [], @@ -317,7 +322,7 @@ "name": "BottomArrowRoundButton", "persistentUuid": "df762352-5127-472c-93a3-0afcdde4d15e", "width": 32, - "x": 777, + "x": 770, "y": 70, "zOrder": 4, "numberProperties": [], @@ -332,7 +337,7 @@ "name": "LeftArrowRoundButton", "persistentUuid": "82b9d847-0e61-44ff-9347-fc1e56a83474", "width": 32, - "x": 750, + "x": 743, "y": 43, "zOrder": 5, "numberProperties": [], @@ -347,7 +352,7 @@ "name": "RightArrowRoundButton", "persistentUuid": "92a19aae-673d-4369-93a5-75c5f2a646a6", "width": 32, - "x": 804, + "x": 797, "y": 43, "zOrder": 6, "numberProperties": [], @@ -362,7 +367,7 @@ "name": "TopArrowRoundButton", "persistentUuid": "c61738a6-47b5-4043-a440-c74dfd737dcd", "width": 32, - "x": 777, + "x": 770, "y": 16, "zOrder": 7, "numberProperties": [], @@ -387,13 +392,13 @@ { "angle": 0, "customSize": true, - "height": 32, + "height": 53, "layer": "", "name": "LaunchRoundButton", "persistentUuid": "dbb9127d-4786-4677-8bbd-7d82ac5ffe6c", - "width": 32, - "x": 117, - "y": 46, + "width": 53, + "x": 160, + "y": 38, "zOrder": 8, "numberProperties": [], "stringProperties": [], @@ -407,8 +412,8 @@ "name": "HorizontalDurationSlider", "persistentUuid": "4fc8c105-82d3-4ac0-bd31-ed0b22e65bcf", "width": 0, - "x": 284, - "y": 32, + "x": 323, + "y": 30, "zOrder": 9, "numberProperties": [], "stringProperties": [], @@ -482,8 +487,8 @@ "name": "VerticalDurationText", "persistentUuid": "c9d9f889-f23a-4d32-8052-5ba2fd810116", "width": 0, - "x": 512, - "y": 78, + "x": 554, + "y": 102, "zOrder": 14, "numberProperties": [], "stringProperties": [], @@ -497,8 +502,8 @@ "name": "HorizontalDurationText", "persistentUuid": "fd3d01e7-ecaf-4235-a687-7512106f5a39", "width": 0, - "x": 512, - "y": 18, + "x": 551, + "y": 16, "zOrder": 15, "numberProperties": [], "stringProperties": [], @@ -512,8 +517,8 @@ "name": "VerticalDurationSlider", "persistentUuid": "cf4d24ec-5bfb-49ba-91f9-854d4e576372", "width": 0, - "x": 284, - "y": 92, + "x": 326, + "y": 116, "zOrder": 16, "numberProperties": [], "stringProperties": [], @@ -527,8 +532,8 @@ "name": "VerticalEdgeIcon", "persistentUuid": "85025344-06bd-4f92-b80f-e90d74bb8941", "width": 0, - "x": 228, - "y": 76, + "x": 270, + "y": 100, "zOrder": 17, "numberProperties": [], "stringProperties": [], @@ -542,18 +547,108 @@ "name": "HorizontalEdgeIcon", "persistentUuid": "4eed9e50-163a-47c9-86ed-29d24ee93c4b", "width": 0, - "x": 228, - "y": 16, + "x": 267, + "y": 14, "zOrder": 18, "numberProperties": [], "stringProperties": [], "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "Reverse_Text", + "persistentUuid": "17525b1c-04eb-4ee7-b613-7ce09cad0bb7", + "width": 0, + "x": 143, + "y": 112, + "zOrder": 21, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "MoveToCorner_Text", + "persistentUuid": "bcb0d6b4-0a06-435d-9e56-e8db4ab3d5b7", + "width": 0, + "x": 18, + "y": 113, + "zOrder": 22, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "MovementDirection_Text", + "persistentUuid": "56979510-ddf5-478a-bb63-9b4f03c84f9e", + "width": 0, + "x": 743, + "y": 111, + "zOrder": 23, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "HorizontalDuration_Text", + "persistentUuid": "43e10301-cb97-4f29-aa58-79f4b80ba31d", + "width": 0, + "x": 336, + "y": 50, + "zOrder": 24, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "VerticalDuration_Text", + "persistentUuid": "5c85ceea-1fdb-471e-876f-38618854fda2", + "width": 0, + "x": 345, + "y": 133, + "zOrder": 25, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] + }, + { + "angle": 0, + "customSize": false, + "height": 0, + "layer": "", + "name": "InstructionsShip_Text", + "persistentUuid": "299a4b99-214b-4dd4-a260-68c567e329d1", + "width": 0, + "x": 260, + "y": 426, + "zOrder": 26, + "numberProperties": [], + "stringProperties": [], + "initialVariables": [] } ], "objects": [ { "assetStoreId": "2b2dfbbe01d820384d341ecfa1cf553b2700019a4f78c1d6fc4c55cb4b373bf5", - "name": "RedPlayerShip1", + "name": "Ship", "tags": "", "type": "Sprite", "updateIfNotVisible": false, @@ -561,20 +656,21 @@ "effects": [], "behaviors": [ { - "name": "RectangularMovement", + "name": "RectangleMovement", "type": "RectangleMovement::RectangleMovement", - "Width": 500, - "Height": 200, - "CounterClockwise": false, - "LoopDuration": 4, - "Left": 4, - "Top": 4, - "Progress": 4, - "Easing": "easeInOutBack", - "InitialPosition": "Top-left corner", + "Width": 300, + "Height": 100, "Clockwise": true, "HorizontalEdgeDuration": 2, - "VerticalEdgeDuration": 1.25 + "VerticalEdgeDuration": 1.25, + "Left": 1, + "Top": 1, + "Progress": 1, + "OldX": 1, + "OldY": 1, + "Easing": "easeInOutBack", + "InitialPosition": "Top-left corner", + "ToogleClockwise": false } ], "animations": [ @@ -650,7 +746,8 @@ "r": 111 }, "absoluteCoordinates": true, - "clearBetweenFrames": true + "clearBetweenFrames": true, + "antialiasing": "none" }, { "assetStoreId": "", @@ -674,7 +771,8 @@ "r": 208 }, "absoluteCoordinates": true, - "clearBetweenFrames": true + "clearBetweenFrames": true, + "antialiasing": "none" }, { "assetStoreId": "e8d619ef35124fd6ba96fafde6790bdd7f80b9c65b4bccfbcbdb4e5025bc2788", @@ -1125,7 +1223,8 @@ "r": 0 }, "absoluteCoordinates": false, - "clearBetweenFrames": true + "clearBetweenFrames": true, + "antialiasing": "none" }, { "assetStoreId": "", @@ -1183,7 +1282,8 @@ "r": 0 }, "absoluteCoordinates": false, - "clearBetweenFrames": true + "clearBetweenFrames": true, + "antialiasing": "none" }, { "assetStoreId": "14d7be205d64a5719d7d63a4cc681d984a67948efe4caa888fd054e268dad255", @@ -1363,6 +1463,7 @@ "behaviors": [], "string": "1.25 seconds", "font": "", + "textAlignment": "", "characterSize": 20, "color": { "b": 233, @@ -1384,6 +1485,7 @@ "behaviors": [], "string": "2 seconds", "font": "", + "textAlignment": "", "characterSize": 20, "color": { "b": 233, @@ -1472,6 +1574,138 @@ ] } ] + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "Reverse_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Reverse\nDirection", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "MoveToCorner_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Move to \nCorner", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "MovementDirection_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Movement\nDirection", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "HorizontalDuration_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Horizontal Duration", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "VerticalDuration_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Vertical Duration", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + } + }, + { + "assetStoreId": "", + "bold": true, + "italic": false, + "name": "InstructionsShip_Text", + "smoothed": true, + "tags": "", + "type": "TextObject::Text", + "underlined": false, + "variables": [], + "effects": [], + "behaviors": [], + "string": "Drag corners to change ship path", + "font": "", + "textAlignment": "center", + "characterSize": 20, + "color": { + "b": 255, + "g": 255, + "r": 255 + } } ], "events": [ @@ -1480,7 +1714,7 @@ "colorG": 176, "colorR": 74, "creationTime": 0, - "name": "Drag", + "name": "Speed", "source": "", "type": "BuiltinCommonInstructions::Group", "events": [ @@ -1499,336 +1733,568 @@ "actions": [ { "type": { - "value": "Create" + "value": "DraggableSliderControl::DraggableSliderControl::SetValue" }, "parameters": [ - "", - "TopLeftCorner", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Top()", + "HorizontalDurationSlider", + "DraggableSliderControl", + "Ship.RectangleMovement::HorizontalEdgeDuration()", "" ] }, { "type": { - "value": "Create" + "value": "DraggableSliderControl::DraggableSliderControl::SetValue" }, "parameters": [ - "", - "TopRightCorner", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Top()", + "VerticalDurationSlider", + "DraggableSliderControl", + "Ship.RectangleMovement::VerticalEdgeDuration()", "" ] }, { "type": { - "value": "Create" + "value": "TextObject::String" }, "parameters": [ - "", - "BottomRightCorner", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Bottom()", - "" + "HorizontalDurationText", + "=", + "ToString(roundTo(Ship.RectangleMovement::HorizontalEdgeDuration(),2)) + \" seconds\"" ] }, { "type": { - "value": "Create" + "value": "TextObject::String" }, "parameters": [ - "", - "BottomLeftCorner", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Bottom()", - "" + "VerticalDurationText", + "=", + "ToString(roundTo(Ship.RectangleMovement::VerticalEdgeDuration(),2)) + \" seconds\"" + ] + } + ], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetHorizontalEdgeDuration" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "HorizontalDurationSlider.DraggableSliderControl::Value()", + "" + ] + }, + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "HorizontalDurationText", + "=", + "ToString(roundTo(Ship.RectangleMovement::HorizontalEdgeDuration(),2)) + \" seconds\"" + ] + } ] }, { - "type": { - "value": "ChangePlan" - }, - "parameters": [ - "Corner", - "=", - "3" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetVerticalEdgeDuration" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "VerticalDurationSlider.DraggableSliderControl::Value()", + "" + ] + }, + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "VerticalDurationText", + "=", + "ToString(roundTo(Ship.RectangleMovement::VerticalEdgeDuration(),2)) + \" seconds\"" + ] + } ] } ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Change duration", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ { - "type": { - "value": "DraggableBehavior::Dragged" - }, - "parameters": [ - "TopLeftCorner", - "Draggable" - ] - } - ], - "actions": [ - { - "type": { - "value": "RectangleMovement::RectangleMovement::SetLeft" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "TopLeftCorner.X()", - "" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DraggableSliderControl::DraggableSliderControl::IsBeingDragged" + }, + "parameters": [ + "HorizontalDurationSlider", + "DraggableSliderControl", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetHorizontalEdgeDuration" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "HorizontalDurationSlider.DraggableSliderControl::Value()", + "" + ] + }, + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "HorizontalDurationText", + "=", + "ToString(roundTo(Ship.RectangleMovement::HorizontalEdgeDuration(),2)) + \" seconds\"" + ] + } ] }, { - "type": { - "value": "RectangleMovement::RectangleMovement::SetTop" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "TopLeftCorner.Y()", - "" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "DraggableSliderControl::DraggableSliderControl::IsBeingDragged" + }, + "parameters": [ + "VerticalDurationSlider", + "DraggableSliderControl", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetVerticalEdgeDuration" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "VerticalDurationSlider.DraggableSliderControl::Value()", + "" + ] + }, + { + "type": { + "value": "TextObject::String" + }, + "parameters": [ + "VerticalDurationText", + "=", + "ToString(roundTo(Ship.RectangleMovement::VerticalEdgeDuration(),2)) + \" seconds\"" + ] + } ] } - ] + ], + "parameters": [] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Change direction", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ { - "type": { - "value": "DraggableBehavior::Dragged" - }, - "parameters": [ - "TopRightCorner", - "Draggable" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "MouseButtonReleased" + }, + "parameters": [ + "", + "Left" + ] + }, + { + "type": { + "value": "SourisSurObjet" + }, + "parameters": [ + "LaunchRoundButton", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::ToogleClockwise" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "yes" + ] + }, + { + "type": { + "value": "FlipX" + }, + "parameters": [ + "LaunchRoundButton", + "yes" + ] + } ] - } - ], - "actions": [ + }, { - "type": { - "value": "RectangleMovement::RectangleMovement::SetRight" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "TopRightCorner.X()", - "" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::IsMovingClockwise" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "FlipX" + }, + "parameters": [ + "LaunchRoundButton", + "no" + ] + } ] }, { - "type": { - "value": "RectangleMovement::RectangleMovement::SetTop" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "TopRightCorner.Y()", - "" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "inverted": true, + "value": "RectangleMovement::RectangleMovement::IsMovingClockwise" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "FlipX" + }, + "parameters": [ + "LaunchRoundButton", + "yes" + ] + } ] } - ] - }, + ], + "parameters": [] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Teleport", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "DraggableBehavior::Dragged" + "value": "MouseButtonReleased" }, "parameters": [ - "BottomRightCorner", - "Draggable" + "", + "Left" ] } ], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "RectangleMovement::RectangleMovement::SetRight" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "BottomRightCorner.X()", - "" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SourisSurObjet" + }, + "parameters": [ + "TopLeftButton", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::TeleportToCorner" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "\"Top-left corner\"", + "" + ] + } ] }, { - "type": { - "value": "RectangleMovement::RectangleMovement::SetBottom" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "BottomRightCorner.Y()", - "" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SourisSurObjet" + }, + "parameters": [ + "TopRightButton", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::TeleportToCorner" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "\"Top-right corner\"", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SourisSurObjet" + }, + "parameters": [ + "BottomRightButton", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::TeleportToCorner" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "\"Bottom-right corner\"", + "" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "SourisSurObjet" + }, + "parameters": [ + "BottomLeftButton", + "", + "", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::TeleportToCorner" + }, + "parameters": [ + "Ship", + "RectangleMovement", + "\"Bottom-left corner\"", + "" + ] + } ] } ] - }, + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Drag", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "DraggableBehavior::Dragged" + "value": "DepartScene" }, "parameters": [ - "BottomLeftCorner", - "Draggable" + "" ] } ], "actions": [ { "type": { - "value": "RectangleMovement::RectangleMovement::SetLeft" + "value": "Create" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "BottomLeftCorner.X()", + "", + "TopLeftCorner", + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Top()", "" ] }, { "type": { - "value": "RectangleMovement::RectangleMovement::SetBottom" + "value": "Create" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "BottomLeftCorner.Y()", + "", + "TopRightCorner", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Top()", "" ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "MettreXY" - }, - "parameters": [ - "TopLeftCorner", - "=", - "RedPlayerShip1.RectangularMovement::Left()", - "=", - "RedPlayerShip1.RectangularMovement::Top()" - ] }, { "type": { - "value": "MettreXY" + "value": "Create" }, "parameters": [ - "TopRightCorner", - "=", - "RedPlayerShip1.RectangularMovement::Right()", - "=", - "RedPlayerShip1.RectangularMovement::Top()" + "", + "BottomRightCorner", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Bottom()", + "" ] }, { "type": { - "value": "MettreXY" + "value": "Create" }, "parameters": [ - "BottomRightCorner", - "=", - "RedPlayerShip1.RectangularMovement::Right()", - "=", - "RedPlayerShip1.RectangularMovement::Bottom()" + "", + "BottomLeftCorner", + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Bottom()", + "" ] }, { "type": { - "value": "MettreXY" + "value": "ChangePlan" }, "parameters": [ - "BottomLeftCorner", - "=", - "RedPlayerShip1.RectangularMovement::Left()", + "Corner", "=", - "RedPlayerShip1.RectangularMovement::Bottom()" + "3" ] } ] - } - ], - "parameters": [] - }, - { - "colorB": 228, - "colorG": 176, - "colorR": 74, - "creationTime": 0, - "name": "Speed", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "DepartScene" + "value": "DraggableBehavior::Dragged" }, "parameters": [ - "" + "TopLeftCorner", + "Draggable" ] } ], "actions": [ { "type": { - "value": "DraggableSliderControl::DraggableSliderControl::SetValue" + "value": "RectangleMovement::RectangleMovement::SetLeft" }, "parameters": [ - "HorizontalDurationSlider", - "DraggableSliderControl", - "RedPlayerShip1.RectangularMovement::HorizontalEdgeDuration()", + "Ship", + "RectangleMovement", + "TopLeftCorner.X()", "" ] }, { "type": { - "value": "DraggableSliderControl::DraggableSliderControl::SetValue" + "value": "RectangleMovement::RectangleMovement::SetTop" }, "parameters": [ - "VerticalDurationSlider", - "DraggableSliderControl", - "RedPlayerShip1.RectangularMovement::VerticalEdgeDuration()", + "Ship", + "RectangleMovement", + "TopLeftCorner.Y()", "" ] - }, - { - "type": { - "value": "TextObject::String" - }, - "parameters": [ - "HorizontalDurationText", - "=", - "ToString(RedPlayerShip1.RectangularMovement::HorizontalEdgeDuration()) + \" seconds\"" - ] - }, - { - "type": { - "value": "TextObject::String" - }, - "parameters": [ - "VerticalDurationText", - "=", - "ToString(RedPlayerShip1.RectangularMovement::VerticalEdgeDuration()) + \" seconds\"" - ] } ] }, @@ -1837,34 +2303,35 @@ "conditions": [ { "type": { - "value": "MouseButtonReleased" + "value": "DraggableBehavior::Dragged" }, "parameters": [ - "", - "Left" + "TopRightCorner", + "Draggable" ] - }, + } + ], + "actions": [ { "type": { - "value": "SourisSurObjet" + "value": "RectangleMovement::RectangleMovement::SetRight" }, "parameters": [ - "LaunchRoundButton", - "", - "", + "Ship", + "RectangleMovement", + "TopRightCorner.X()", "" ] - } - ], - "actions": [ + }, { "type": { - "value": "RectangleMovement::RectangleMovement::ToogleClockwise" + "value": "RectangleMovement::RectangleMovement::SetTop" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "yes" + "Ship", + "RectangleMovement", + "TopRightCorner.Y()", + "" ] } ] @@ -1874,35 +2341,35 @@ "conditions": [ { "type": { - "value": "DraggableSliderControl::DraggableSliderControl::IsBeingDragged" + "value": "DraggableBehavior::Dragged" }, "parameters": [ - "HorizontalDurationSlider", - "DraggableSliderControl", - "" + "BottomRightCorner", + "Draggable" ] } ], "actions": [ { "type": { - "value": "RectangleMovement::RectangleMovement::SetHorizontalEdgeDuration" + "value": "RectangleMovement::RectangleMovement::SetRight" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "HorizontalDurationSlider.DraggableSliderControl::Value()", + "Ship", + "RectangleMovement", + "BottomRightCorner.X()", "" ] }, { "type": { - "value": "TextObject::String" + "value": "RectangleMovement::RectangleMovement::SetBottom" }, "parameters": [ - "HorizontalDurationText", - "=", - "ToString(RedPlayerShip1.RectangularMovement::HorizontalEdgeDuration()) + \" seconds\"" + "Ship", + "RectangleMovement", + "BottomRightCorner.Y()", + "" ] } ] @@ -1912,180 +2379,89 @@ "conditions": [ { "type": { - "value": "DraggableSliderControl::DraggableSliderControl::IsBeingDragged" + "value": "DraggableBehavior::Dragged" }, "parameters": [ - "VerticalDurationSlider", - "DraggableSliderControl", - "" + "BottomLeftCorner", + "Draggable" ] } ], "actions": [ { "type": { - "value": "RectangleMovement::RectangleMovement::SetVerticalEdgeDuration" + "value": "RectangleMovement::RectangleMovement::SetLeft" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "VerticalDurationSlider.DraggableSliderControl::Value()", + "Ship", + "RectangleMovement", + "BottomLeftCorner.X()", "" ] }, { "type": { - "value": "TextObject::String" + "value": "RectangleMovement::RectangleMovement::SetBottom" }, "parameters": [ - "VerticalDurationText", - "=", - "ToString(RedPlayerShip1.RectangularMovement::VerticalEdgeDuration()) + \" seconds\"" + "Ship", + "RectangleMovement", + "BottomLeftCorner.Y()", + "" ] } ] - } - ], - "parameters": [] - }, - { - "colorB": 228, - "colorG": 176, - "colorR": 74, - "creationTime": 0, - "name": "Teleport", - "source": "", - "type": "BuiltinCommonInstructions::Group", - "events": [ + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [ + "conditions": [], + "actions": [ { "type": { - "value": "MouseButtonReleased" + "value": "MettreXY" }, "parameters": [ - "", - "Left" - ] - } - ], - "actions": [], - "events": [ - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "SourisSurObjet" - }, - "parameters": [ - "TopLeftButton", - "", - "", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "RectangleMovement::RectangleMovement::TeleportToCorner" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "\"Top-left corner\"", - "" - ] - } + "TopLeftCorner", + "=", + "Ship.RectangleMovement::Left()", + "=", + "Ship.RectangleMovement::Top()" ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "SourisSurObjet" - }, - "parameters": [ - "TopRightButton", - "", - "", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "RectangleMovement::RectangleMovement::TeleportToCorner" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "\"Top-right corner\"", - "" - ] - } + "type": { + "value": "MettreXY" + }, + "parameters": [ + "TopRightCorner", + "=", + "Ship.RectangleMovement::Right()", + "=", + "Ship.RectangleMovement::Top()" ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "SourisSurObjet" - }, - "parameters": [ - "BottomRightButton", - "", - "", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "RectangleMovement::RectangleMovement::TeleportToCorner" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "\"Bottom-right corner\"", - "" - ] - } + "type": { + "value": "MettreXY" + }, + "parameters": [ + "BottomRightCorner", + "=", + "Ship.RectangleMovement::Right()", + "=", + "Ship.RectangleMovement::Bottom()" ] }, { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "SourisSurObjet" - }, - "parameters": [ - "BottomLeftButton", - "", - "", - "" - ] - } - ], - "actions": [ - { - "type": { - "value": "RectangleMovement::RectangleMovement::TeleportToCorner" - }, - "parameters": [ - "RedPlayerShip1", - "RectangularMovement", - "\"Bottom-left corner\"", - "" - ] - } + "type": { + "value": "MettreXY" + }, + "parameters": [ + "BottomLeftCorner", + "=", + "Ship.RectangleMovement::Left()", + "=", + "Ship.RectangleMovement::Bottom()" ] } ] @@ -2098,7 +2474,7 @@ "colorG": 176, "colorR": 74, "creationTime": 0, - "name": "Draw", + "name": "Draw border", "source": "", "type": "BuiltinCommonInstructions::Group", "events": [ @@ -2112,10 +2488,10 @@ }, "parameters": [ "Trajectory", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Top()", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Bottom()" + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Top()", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Bottom()" ] } ] @@ -2128,8 +2504,8 @@ "value": "RectangleMovement::RectangleMovement::IsOnTop" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2141,10 +2517,10 @@ }, "parameters": [ "CurrentEdge", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Top()", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Top()", + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Top()", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Top()", "2" ] } @@ -2158,8 +2534,8 @@ "value": "RectangleMovement::RectangleMovement::IsOnBottom" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2171,10 +2547,10 @@ }, "parameters": [ "CurrentEdge", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Bottom()", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Bottom()", + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Bottom()", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Bottom()", "2" ] } @@ -2188,8 +2564,8 @@ "value": "RectangleMovement::RectangleMovement::IsOnLeft" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2201,10 +2577,10 @@ }, "parameters": [ "CurrentEdge", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Top()", - "RedPlayerShip1.RectangularMovement::Left()", - "RedPlayerShip1.RectangularMovement::Bottom()", + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Top()", + "Ship.RectangleMovement::Left()", + "Ship.RectangleMovement::Bottom()", "2" ] } @@ -2218,8 +2594,8 @@ "value": "RectangleMovement::RectangleMovement::IsOnRight" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2231,10 +2607,10 @@ }, "parameters": [ "CurrentEdge", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Top()", - "RedPlayerShip1.RectangularMovement::Right()", - "RedPlayerShip1.RectangularMovement::Bottom()", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Top()", + "Ship.RectangleMovement::Right()", + "Ship.RectangleMovement::Bottom()", "2" ] } @@ -2290,8 +2666,8 @@ "value": "RectangleMovement::RectangleMovement::IsMovingUp" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2316,8 +2692,8 @@ "value": "RectangleMovement::RectangleMovement::IsMovingDown" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2342,8 +2718,8 @@ "value": "RectangleMovement::RectangleMovement::IsMovingLeft" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2368,8 +2744,8 @@ "value": "RectangleMovement::RectangleMovement::IsMovingRight" }, "parameters": [ - "RedPlayerShip1", - "RectangularMovement", + "Ship", + "RectangleMovement", "" ] } @@ -2395,9 +2771,14 @@ "ambientLightColorB": 0, "ambientLightColorG": 7893896, "ambientLightColorR": 16, + "camera3DFarPlaneDistance": 10000, + "camera3DFieldOfView": 45, + "camera3DNearPlaneDistance": 0.1, "followBaseLayerCamera": false, "isLightingLayer": false, + "isLocked": false, "name": "", + "renderingType": "", "visibility": true, "cameras": [ { @@ -2420,7 +2801,7 @@ "type": "DraggableSliderControl::DraggableSliderControl" }, { - "name": "RectangularMovement", + "name": "RectangleMovement", "type": "RectangleMovement::RectangleMovement" } ] @@ -2431,7 +2812,6 @@ { "author": "Tristan Rhodes (https://victrisgames.itch.io/), D8H", "category": "Input", - "description": "Draws a draggable slider that users can move to select a numerical value.\nThe value range, tick spacing, and the appearance of the slider can be defined with properties.\n\nHow to use:\n- Add this behavior a **Shape Painter** object\n- Place an instance of that shape painter on the screen where you want the slider to appear\n- Use the \"Value\" expression to find the Value based on the position of the slider\n\nTips:\n- You can disable the slider to prevent a user from interacting with it\n- You can set the Value of the slider and the slider will move to the correct position\n\nFurther details can be found in [this tutorial video](https://youtu.be/iiTUwdAT_hs).\n\nBreaking changes (1.0.0)\n- Track thickness and length properties replaced track width and height. These 2 properties must be set again if they were different from the default size.\n- Hidden sliders can be dragged. The \"enable\" action must be used to disable them.\n", "extensionNamespace": "", "fullName": "Draggable slider", "helpPath": "", @@ -2440,6 +2820,26 @@ "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/UI Essentials/UI Essentials_sliders_options.svg", "shortDescription": "A draggable slider that users can move to select a numerical value.", "version": "1.0.5", + "description": [ + "Draws a draggable slider that users can move to select a numerical value.", + "The value range, tick spacing, and the appearance of the slider can be defined with properties.", + "", + "How to use:", + "- Add this behavior a **Shape Painter** object", + "- Place an instance of that shape painter on the screen where you want the slider to appear", + "- Use the \"Value\" expression to find the Value based on the position of the slider", + "", + "Tips:", + "- You can disable the slider to prevent a user from interacting with it", + "- You can set the Value of the slider and the slider will move to the correct position", + "", + "Further details can be found in [this tutorial video](https://youtu.be/iiTUwdAT_hs).", + "", + "Breaking changes (1.0.0)", + "- Track thickness and length properties replaced track width and height. These 2 properties must be set again if they were different from the default size.", + "- Hidden sliders can be dragged. The \"enable\" action must be used to disable them.", + "" + ], "origin": { "identifier": "DraggableSliderControl", "name": "gdevelop-extension-store" @@ -2465,12 +2865,9 @@ "objectType": "PrimitiveDrawing::Drawer", "eventsFunctions": [ { - "description": "", "fullName": "", "functionType": "Action", - "group": "", "name": "onCreated", - "private": false, "sentence": "", "events": [ { @@ -2483,8 +2880,7 @@ "textG": 0, "textR": 0 }, - "comment": "Make sure object doesn't get re-drawn every frame", - "comment2": "" + "comment": "Make sure object doesn't get re-drawn every frame" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2511,8 +2907,7 @@ "textG": 0, "textR": 0 }, - "comment": "Use correct min value (instead of always starting at 0)", - "comment2": "" + "comment": "Use correct min value (instead of always starting at 0)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2541,8 +2936,7 @@ "textG": 0, "textR": 0 }, - "comment": "Set track height function (which enforces valid thumb sizes)", - "comment2": "" + "comment": "Set track height function (which enforces valid thumb sizes)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2571,8 +2965,7 @@ "textG": 0, "textR": 0 }, - "comment": "Start halo at same size as thumb", - "comment2": "" + "comment": "Start halo at same size as thumb" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2610,22 +3003,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -2633,12 +3018,9 @@ "objectGroups": [] }, { - "description": "", "fullName": "", "functionType": "Action", - "group": "", "name": "doStepPreEvents", - "private": false, "sentence": "", "events": [ { @@ -2676,8 +3058,7 @@ "textG": 0, "textR": 0 }, - "comment": "Track where the mouse is (in relation to object)", - "comment2": "" + "comment": "Track where the mouse is (in relation to object)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2717,8 +3098,7 @@ "textG": 0, "textR": 0 }, - "comment": "Move slider when being dragged", - "comment2": "" + "comment": "Move slider when being dragged" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2767,8 +3147,7 @@ "textG": 0, "textR": 0 }, - "comment": "End sliding and update variables", - "comment2": "" + "comment": "End sliding and update variables" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2806,8 +3185,7 @@ "textG": 0, "textR": 0 }, - "comment": "Update \"Value\" based on the location of the thumb", - "comment2": "" + "comment": "Update \"Value\" based on the location of the thumb" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2836,8 +3214,7 @@ "textG": 0, "textR": 0 }, - "comment": "Grow halo even more when pressed", - "comment2": "" + "comment": "Grow halo even more when pressed" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2868,8 +3245,7 @@ "textG": 0, "textR": 0 }, - "comment": "Detect hover/touch/click (but only if the layer and object is visible, and the object is not already being dragged)", - "comment2": "" + "comment": "Detect hover/touch/click (but only if the layer and object is visible, and the object is not already being dragged)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -2897,8 +3273,7 @@ "textG": 0, "textR": 0 }, - "comment": "Detect mouse clicks near track, start dragging", - "comment2": "" + "comment": "Detect mouse clicks near track, start dragging" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3000,8 +3375,7 @@ "textG": 0, "textR": 0 }, - "comment": "Reset hover detection ", - "comment2": "" + "comment": "Reset hover detection " }, { "type": "BuiltinCommonInstructions::Standard", @@ -3029,8 +3403,7 @@ "textG": 0, "textR": 0 }, - "comment": "Grow halo when hovered", - "comment2": "" + "comment": "Grow halo when hovered" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3120,8 +3493,7 @@ "textG": 0, "textR": 0 }, - "comment": "Shrink halo to zero when not hovered", - "comment2": "" + "comment": "Shrink halo to zero when not hovered" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3182,8 +3554,7 @@ "textG": 0, "textR": 0 }, - "comment": "Redraw slider only when halo is not at final size", - "comment2": "" + "comment": "Redraw slider only when halo is not at final size" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3270,22 +3641,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -3293,12 +3656,9 @@ "objectGroups": [] }, { - "description": "", "fullName": "", "functionType": "Action", - "group": "", "name": "doStepPostEvents", - "private": false, "sentence": "", "events": [ { @@ -3380,8 +3740,7 @@ "textG": 0, "textR": 0 }, - "comment": "Set inactive track parameters (by default, use thumb color)", - "comment2": "" + "comment": "Set inactive track parameters (by default, use thumb color)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3473,8 +3832,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw inactive track", - "comment2": "" + "comment": "Draw inactive track" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3504,8 +3862,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw half circle at end of track (inactive side)", - "comment2": "" + "comment": "Draw half circle at end of track (inactive side)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3560,8 +3917,7 @@ "textG": 0, "textR": 0 }, - "comment": "Set active track parameters (by default, use thumb color)", - "comment2": "" + "comment": "Set active track parameters (by default, use thumb color)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3643,8 +3999,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw active track (2 pixels bigger than property) ", - "comment2": "" + "comment": "Draw active track (2 pixels bigger than property) " }, { "type": "BuiltinCommonInstructions::Standard", @@ -3674,8 +4029,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw half circle at end of track (active side)", - "comment2": "" + "comment": "Draw half circle at end of track (active side)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3747,8 +4101,7 @@ "textG": 0, "textR": 0 }, - "comment": "Prepare halo", - "comment2": "" + "comment": "Prepare halo" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3785,8 +4138,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw halo (it will grow or shrink as needed)", - "comment2": "" + "comment": "Draw halo (it will grow or shrink as needed)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3836,8 +4188,7 @@ "textG": 0, "textR": 0 }, - "comment": "Use a more opaque halo while being dragged (it will grow or shrink as needed)", - "comment2": "" + "comment": "Use a more opaque halo while being dragged (it will grow or shrink as needed)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3900,8 +4251,7 @@ "textG": 0, "textR": 0 }, - "comment": "Prepare thumb settings", - "comment2": "" + "comment": "Prepare thumb settings" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3938,8 +4288,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw Circle thumb", - "comment2": "" + "comment": "Draw Circle thumb" }, { "type": "BuiltinCommonInstructions::Standard", @@ -3980,8 +4329,7 @@ "textG": 0, "textR": 0 }, - "comment": "Draw Rectangle thumb", - "comment2": "" + "comment": "Draw Rectangle thumb" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4024,22 +4372,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4052,7 +4392,6 @@ "functionType": "Condition", "group": "Slider", "name": "IsBeingDragged", - "private": false, "sentence": "_PARAM0_ is being dragged", "events": [ { @@ -4082,22 +4421,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4110,7 +4441,6 @@ "functionType": "Condition", "group": "Slider", "name": "IsEnabled", - "private": false, "sentence": "Interactions of _PARAM0_ are enabled", "events": [ { @@ -4140,22 +4470,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4168,7 +4490,6 @@ "functionType": "Action", "group": "Slider", "name": "SetEnabled", - "private": false, "sentence": "Enable interactions of _PARAM0_: _PARAM2_", "events": [ { @@ -4207,8 +4528,7 @@ "textG": 0, "textR": 0 }, - "comment": "Stop dragging (so the slider won't be dragging when it gets enabled)", - "comment2": "" + "comment": "Stop dragging (so the slider won't be dragging when it gets enabled)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4236,8 +4556,7 @@ "textG": 0, "textR": 0 }, - "comment": "Reset halo size (so halo won't appear when slider gets enabled)", - "comment2": "" + "comment": "Reset halo size (so halo won't appear when slider gets enabled)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4302,33 +4621,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Enable", - "longDescription": "", "name": "Enable", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" } ], @@ -4340,7 +4646,6 @@ "functionType": "Expression", "group": "Slider", "name": "Value", - "private": false, "sentence": "", "events": [ { @@ -4358,24 +4663,19 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4388,7 +4688,6 @@ "functionType": "Action", "group": "Slider", "name": "SetValue", - "private": false, "sentence": "Change the value of _PARAM0_: _PARAM2_", "events": [ { @@ -4517,8 +4816,7 @@ "textG": 0, "textR": 0 }, - "comment": "Set the proper offset (it moves the slider)", - "comment2": "" + "comment": "Set the proper offset (it moves the slider)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -4550,33 +4848,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Slider value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -4588,7 +4873,6 @@ "functionType": "Expression", "group": "Slider value configuration", "name": "ValueMin", - "private": false, "sentence": "Change the maximum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4606,24 +4890,19 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4636,7 +4915,6 @@ "functionType": "Action", "group": "Slider value configuration", "name": "SetValueMin", - "private": false, "sentence": "Change the minimum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4670,33 +4948,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Minimum value", - "longDescription": "", "name": "ValueMin", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -4708,7 +4973,6 @@ "functionType": "Expression", "group": "Slider value configuration", "name": "ValueMax", - "private": false, "sentence": "Change the maximum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4726,24 +4990,19 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4756,7 +5015,6 @@ "functionType": "Expression", "group": "Slider track configuration", "name": "TrackThickness", - "private": false, "sentence": "Change the maximum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4774,24 +5032,19 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4804,7 +5057,6 @@ "functionType": "Expression", "group": "Slider track configuration", "name": "TrackLength", - "private": false, "sentence": "Change the maximum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4822,24 +5074,19 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4852,7 +5099,6 @@ "functionType": "Expression", "group": "Slider thumb configuration", "name": "ThumbHeight", - "private": false, "sentence": "Change the maximum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4870,24 +5116,19 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -4900,7 +5141,6 @@ "functionType": "Action", "group": "Slider value configuration", "name": "SetValueMax", - "private": false, "sentence": "Change the maximum value of _PARAM0_: _PARAM2_", "events": [ { @@ -4934,33 +5174,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Maximum value", - "longDescription": "", "name": "ValueMax", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -4972,7 +5199,6 @@ "functionType": "Expression", "group": "Slider value configuration", "name": "TickSpacing", - "private": false, "sentence": "Change the tick spacing of _PARAM0_: _PARAM2_", "events": [ { @@ -4990,35 +5216,25 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Tick spacing", - "longDescription": "", "name": "TickSpacing", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5030,7 +5246,6 @@ "functionType": "Action", "group": "Slider value configuration", "name": "SetTickSpacing", - "private": false, "sentence": "Change the tick spacing of _PARAM0_: _PARAM2_", "events": [ { @@ -5064,33 +5279,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Tick spacing", - "longDescription": "", "name": "TickSpacing", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5102,7 +5304,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetTrackLength", - "private": false, "sentence": "Change track length of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5152,8 +5353,7 @@ "textG": 0, "textR": 0 }, - "comment": "Move thumb to correct place (based on new track size)", - "comment2": "" + "comment": "Move thumb to correct place (based on new track size)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -5175,33 +5375,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Track width", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5213,7 +5400,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetTrackThickness", - "private": false, "sentence": "Change track thickness of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5253,8 +5439,7 @@ "textG": 0, "textR": 0 }, - "comment": "Make sure thumb width is not smaller than track height + 2 pixels (to prevent track ends from showing)", - "comment2": "" + "comment": "Make sure thumb width is not smaller than track height + 2 pixels (to prevent track ends from showing)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -5317,33 +5502,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Track thickness", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5355,7 +5527,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetThumbWidth", - "private": false, "sentence": "Change thumb width of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5368,8 +5539,7 @@ "textG": 0, "textR": 0 }, - "comment": "Thumb cannot be less than track thickness (plus 2 pixels)", - "comment2": "" + "comment": "Thumb cannot be less than track thickness (plus 2 pixels)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -5417,33 +5587,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Thumb width", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5455,7 +5612,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetThumbHeight", - "private": false, "sentence": "Change thumb height of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5468,8 +5624,7 @@ "textG": 0, "textR": 0 }, - "comment": "Thumb cannot be less than track thickness (plus 2 pixels)", - "comment2": "" + "comment": "Thumb cannot be less than track thickness (plus 2 pixels)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -5517,33 +5672,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Thumb height", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5555,7 +5697,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetHaloRadius", - "private": false, "sentence": "Change halo radius of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5588,33 +5729,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Halo radius", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5626,7 +5754,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetHaloOpacityHover", - "private": false, "sentence": "Change the halo opacity when hovered of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5659,33 +5786,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Halo opacity (hover)", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5697,7 +5811,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetHaloOpacityPressed", - "private": false, "sentence": "Change halo opacity when pressed of _PARAM0_ to _PARAM2_ px", "events": [ { @@ -5730,33 +5843,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Halo opacity (pressed)", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -5768,7 +5868,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetThumbShape", - "private": false, "sentence": "Change shape of _PARAM0_ to _PARAM2_", "events": [ { @@ -5808,8 +5907,7 @@ "textG": 0, "textR": 0 }, - "comment": "Make sure thumb width is not smaller than track height (to prevent track ends from showing)", - "comment2": "" + "comment": "Make sure thumb width is not smaller than track height (to prevent track ends from showing)" }, { "type": "BuiltinCommonInstructions::Standard", @@ -5854,32 +5952,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "New thumb shape", - "longDescription": "", "name": "Shape", - "optional": false, "supplementaryInformation": "[\"circle\",\"rectangle\"]", "type": "stringWithSelector" } @@ -5892,7 +5978,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetRoundedTrack", - "private": false, "sentence": "Draw _PARAM0_ with a rounded track: _PARAM2_", "events": [ { @@ -5968,33 +6053,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Rounded track", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" } ], @@ -6006,7 +6078,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetThumbOpacity", - "private": false, "sentence": "Change thumb opacity of _PARAM0_ to _PARAM2_", "events": [ { @@ -6039,33 +6110,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Thumb opacity", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -6077,7 +6135,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetInactiveTrackOpacity", - "private": false, "sentence": "Change inactive track opacity of _PARAM0_ to _PARAM2_", "events": [ { @@ -6110,33 +6167,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Inactive track opacity", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -6148,7 +6192,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetActiveTrackOpacity", - "private": false, "sentence": "Change active track opacity of _PARAM0_ to _PARAM2_", "events": [ { @@ -6181,33 +6224,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Active track opacity", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -6219,7 +6249,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetActiveTrackColor", - "private": false, "sentence": "Change active track color of _PARAM0_ to _PARAM2_", "events": [ { @@ -6252,33 +6281,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Active track color", - "longDescription": "", "name": "Color", - "optional": false, - "supplementaryInformation": "", "type": "color" } ], @@ -6290,7 +6306,6 @@ "functionType": "Action", "group": "Slider track configuration", "name": "SetInactiveTrackColor", - "private": false, "sentence": "Change inactive track color of _PARAM0_ to _PARAM2_", "events": [ { @@ -6323,33 +6338,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Inactive track color", - "longDescription": "", "name": "Color", - "optional": false, - "supplementaryInformation": "", "type": "color" } ], @@ -6361,7 +6363,6 @@ "functionType": "Action", "group": "Slider thumb configuration", "name": "SetThumbColor", - "private": false, "sentence": "Change thumb color of _PARAM0_ to _PARAM2_", "events": [ { @@ -6393,33 +6394,20 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Thumb color", - "longDescription": "", "name": "Color", - "optional": false, - "supplementaryInformation": "", "type": "color" } ], @@ -6465,22 +6453,14 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, "supplementaryInformation": "PrimitiveDrawing::Drawer", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "DraggableSliderControl::DraggableSliderControl", "type": "behavior" } @@ -6743,81 +6723,554 @@ "name": "MouseX" }, { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "MouseY" - }, + "value": "", + "type": "Number", + "label": "", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "MouseY" + }, + { + "value": "", + "type": "Number", + "label": "", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "CurrentHaloRadius" + }, + { + "value": "0.2", + "type": "Number", + "label": "", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "HaloGrowSpeed" + }, + { + "value": "", + "type": "Number", + "label": "", + "description": "", + "group": "", + "extraInformation": [], + "hidden": true, + "name": "TargetHaloRadius" + } + ], + "sharedPropertyDescriptors": [] + } + ], + "eventsBasedObjects": [] + }, + { + "author": "@4ian, Tristan Rhodes (https://victrisgames.itch.io/)", + "category": "Movement", + "extensionNamespace": "", + "fullName": "Rectangular movement", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNoYXBlLXJlY3RhbmdsZS1wbHVzIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5LDZIMjJWOEgxOVYxMUgxN1Y4SDE0VjZIMTdWM0gxOVY2TTE3LDE3VjE0SDE5VjE5SDNWNkgxMVY4SDVWMTdIMTdaIiAvPjwvc3ZnPg==", + "name": "RectangleMovement", + "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/shape-rectangle-plus.svg", + "shortDescription": "Move objects in a rectangular pattern.", + "version": "1.1.0", + "description": [ + "Move objects in a rectangular pattern with easing functions from the Tween extension.", + "", + "It can be used for:", + "- Moveable platforms", + "- Enemy movement patterns", + "- Moving along the border of another object", + "", + "The platformer example uses this extension ([open the project online](https://editor.gdevelop.io/?project=example://platformer)).", + "", + "This example can be used to check some settings ([open the project online](https://editor.gdevelop.io/?project=example://rectangular-movement))." + ], + "origin": { + "identifier": "RectangleMovement", + "name": "gdevelop-extension-store" + }, + "tags": [ + "rectangular", + "movement", + "rectangle", + "patrol", + "platform", + "enemy" + ], + "authorIds": [ + "wWP8BSlAW0UP4NeaHa2LcmmDzmH2", + "gqDaZjCfevOOxBYkK6zlhtZnXCg1", + "IWykYNRvhCZBN3vEgKEbBPOR3Oc2" + ], + "dependencies": [], + "eventsFunctions": [ + { + "description": "Distance from object to the closest edge of second object", + "fullName": "Distance from object to the closest edge of second object", + "functionType": "Expression", + "name": "DistanceToClosestEdge", + "sentence": "Distance from _PARAM1_ to the closest edge of _PARAM2_ ", + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "If point is inside rectangle, just use min distance" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "CenterX" + }, + "parameters": [ + "MovingObject", + ">=", + "CenterObject.BoundingBoxLeft()" + ] + }, + { + "type": { + "value": "CenterX" + }, + "parameters": [ + "MovingObject", + "<=", + "CenterObject.BoundingBoxRight()" + ] + }, + { + "type": { + "value": "CenterY" + }, + "parameters": [ + "MovingObject", + ">=", + "CenterObject.BoundingBoxTop()" + ] + }, + { + "type": { + "value": "CenterY" + }, + "parameters": [ + "MovingObject", + "<=", + "CenterObject.BoundingBoxBottom()" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "min(\nmin(\nMovingObject.BoundingBoxCenterY() - CenterObject.BoundingBoxTop(), \nCenterObject.BoundingBoxBottom() - MovingObject.BoundingBoxCenterY()),\nmin(\nMovingObject.BoundingBoxCenterX() - CenterObject.BoundingBoxLeft(), \nCenterObject.BoundingBoxRight() - MovingObject.BoundingBoxCenterX())\n)" + ] + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "If point is outside rectangle, find distance to clamped position on rectangle" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "BuiltinCommonInstructions::Or" + }, + "parameters": [], + "subInstructions": [ + { + "type": { + "value": "CenterX" + }, + "parameters": [ + "MovingObject", + "<", + "CenterObject.BoundingBoxLeft()" + ] + }, + { + "type": { + "value": "CenterX" + }, + "parameters": [ + "MovingObject", + ">", + "CenterObject.BoundingBoxRight()" + ] + }, + { + "type": { + "value": "CenterY" + }, + "parameters": [ + "MovingObject", + "<", + "CenterObject.BoundingBoxTop()" + ] + }, + { + "type": { + "value": "CenterY" + }, + "parameters": [ + "MovingObject", + ">", + "CenterObject.BoundingBoxBottom()" + ] + } + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "DistanceBetweenPositions(\nMovingObject.BoundingBoxCenterX(),\nMovingObject.BoundingBoxCenterY(),\nclamp(MovingObject.BoundingBoxCenterX(), CenterObject.BoundingBoxLeft(), CenterObject.BoundingBoxRight()),\nclamp(MovingObject.BoundingBoxCenterY(), CenterObject.BoundingBoxTop(), CenterObject.BoundingBoxBottom())\n)" + ] + } + ] + } + ], + "expressionType": { + "type": "expression" + }, + "parameters": [ + { + "description": "Center object", + "name": "CenterObject", + "type": "objectList" + }, + { + "description": "Moving object", + "name": "MovingObject", + "type": "objectList" + } + ], + "objectGroups": [] + }, + { + "description": "Update rectangular movement to follow the border of an object. Run once, or every time the center object moves.", + "fullName": "Update rectangular movement to follow the border of an object", + "functionType": "Action", + "name": "MoveAlongBorderOfObject", + "sentence": "Update rectangular movement of _PARAM1_ to follow the border of _PARAM3_", + "events": [ + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Create object link (if one has not been created)", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "ObjectVariableAsBoolean" + }, + "parameters": [ + "MovingObject", + "__RectangleMovement.Linked", + "False" + ] + } + ], + "actions": [], + "events": [ + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Set a valid initial value by picking any Center object", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "MovingObject", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ModVarObjet" + }, + "parameters": [ + "MovingObject", + "__RectangleMovement.DistanceToClosestEdge", + "=", + "RectangleMovement::DistanceToClosestEdge(CenterObject, MovingObject)" + ] + } + ] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Update value if distance is lower than existing minimum", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "CenterObject", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "ModVarObjet" + }, + "parameters": [ + "MovingObject", + "__RectangleMovement.DistanceToClosestEdge", + "=", + "min(MovingObject.Variable(__RectangleMovement.DistanceToClosestEdge), RectangleMovement::DistanceToClosestEdge(CenterObject, MovingObject))" + ] + } + ] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Link objects that have the closest distance", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "CenterObject", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Link the MovingObject that has the shortest distance (and don't create more links even if another object has the same distance)" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "ObjectVariableAsBoolean" + }, + "parameters": [ + "MovingObject", + "__RectangleMovement.Linked", + "False" + ] + }, + { + "type": { + "value": "BuiltinCommonInstructions::CompareNumbers" + }, + "parameters": [ + "RectangleMovement::DistanceToClosestEdge(CenterObject, MovingObject)", + "=", + "MovingObject.Variable(__RectangleMovement.DistanceToClosestEdge)" + ] + } + ], + "actions": [ + { + "type": { + "value": "LinkedObjects::LinkObjects" + }, + "parameters": [ + "", + "MovingObject", + "CenterObject" + ] + }, + { + "type": { + "value": "SetObjectVariableAsBoolean" + }, + "parameters": [ + "MovingObject", + "__RectangleMovement.Linked", + "True" + ] + } + ] + } + ] + } + ], + "parameters": [] + } + ] + } + ], + "parameters": [] + } + ] + } + ], + "parameters": [] + }, + { + "colorB": 228, + "colorG": 176, + "colorR": 74, + "creationTime": 0, + "name": "Update rectangular movement to follow the border of object", + "source": "", + "type": "BuiltinCommonInstructions::Group", + "events": [ + { + "type": "BuiltinCommonInstructions::ForEach", + "object": "CenterObject", + "conditions": [], + "actions": [], + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "LinkedObjects::PickObjectsLinkedTo" + }, + "parameters": [ + "", + "MovingObject", + "CenterObject", + "" + ] + } + ], + "actions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetTop" + }, + "parameters": [ + "MovingObject", + "RectangleMovement", + "CenterObject.BoundingBoxTop()", + "" + ] + }, + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetBottom" + }, + "parameters": [ + "MovingObject", + "RectangleMovement", + "CenterObject.BoundingBoxBottom()", + "" + ] + }, + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetLeft" + }, + "parameters": [ + "MovingObject", + "RectangleMovement", + "CenterObject.BoundingBoxLeft()", + "" + ] + }, + { + "type": { + "value": "RectangleMovement::RectangleMovement::SetRight" + }, + "parameters": [ + "MovingObject", + "RectangleMovement", + "CenterObject.BoundingBoxRight()", + "" + ] + } + ] + } + ] + } + ], + "parameters": [] + } + ], + "parameters": [ { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "CurrentHaloRadius" + "description": "Moving object", + "name": "MovingObject", + "type": "objectList" }, { - "value": "0.2", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "HaloGrowSpeed" + "description": "Rectangle Movement (required)", + "name": "RectangleMovement", + "supplementaryInformation": "RectangleMovement::RectangleMovement", + "type": "behavior" }, { - "value": "", - "type": "Number", - "label": "", - "description": "", - "group": "", - "extraInformation": [], - "hidden": true, - "name": "TargetHaloRadius" + "description": "Center object", + "name": "CenterObject", + "type": "objectList" } - ] + ], + "objectGroups": [] } ], - "eventsBasedObjects": [] - }, - { - "author": "@4ian, Tristan Rhodes (https://victrisgames.itch.io/)", - "category": "Movement", - "description": "Move objects in a rectangular pattern with easing functions from the Tween extension.\n\nIt can be used for:\n- Moveable platforms\n- Enemy movement patterns", - "extensionNamespace": "", - "fullName": "Rectangular movement", - "helpPath": "", - "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNoYXBlLXJlY3RhbmdsZS1wbHVzIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTE5LDZIMjJWOEgxOVYxMUgxN1Y4SDE0VjZIMTdWM0gxOVY2TTE3LDE3VjE0SDE5VjE5SDNWNkgxMVY4SDVWMTdIMTdaIiAvPjwvc3ZnPg==", - "name": "RectangleMovement", - "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/shape-rectangle-plus.svg", - "shortDescription": "Move objects in a rectangular pattern.", - "version": "1.0.0", - "origin": { - "identifier": "RectangleMovement", - "name": "gdevelop-extension-store" - }, - "tags": [ - "rectangular", - "movement", - "rectangle", - "patrol", - "platform", - "enemy" - ], - "authorIds": [ - "wWP8BSlAW0UP4NeaHa2LcmmDzmH2", - "gqDaZjCfevOOxBYkK6zlhtZnXCg1", - "IWykYNRvhCZBN3vEgKEbBPOR3Oc2" - ], - "dependencies": [], - "eventsFunctions": [], "eventsBasedBehaviors": [ { "description": "Move objects in a rectangular pattern.", @@ -6826,12 +7279,9 @@ "objectType": "", "eventsFunctions": [ { - "description": "", "fullName": "", "functionType": "Action", - "group": "", "name": "onCreated", - "private": false, "sentence": "", "events": [ { @@ -6872,8 +7322,7 @@ "textG": 0, "textR": 0 }, - "comment": "Set the initial state according to the configuration.", - "comment2": "" + "comment": "Set the initial state according to the configuration." }, { "type": "BuiltinCommonInstructions::Standard", @@ -6899,7 +7348,7 @@ "Object", "Behavior", "=", - "Object.Behavior::TopRightDuration() / Object.Behavior::Perimeter()" + "Object.Behavior::TopRightDuration() / Object.Behavior::LoopDuration()" ] } ] @@ -6928,7 +7377,7 @@ "Object", "Behavior", "=", - "Object.Behavior::BottomRightDuration() / Object.Behavior::Perimeter()" + "Object.Behavior::BottomRightDuration() / Object.Behavior::LoopDuration()" ] } ] @@ -6957,7 +7406,7 @@ "Object", "Behavior", "=", - "Object.Behavior::BottomLeftDuration() / Object.Behavior::Perimeter()" + "Object.Behavior::BottomLeftDuration() / Object.Behavior::LoopDuration()" ] } ] @@ -6993,22 +7442,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7016,12 +7456,9 @@ "objectGroups": [] }, { - "description": "", "fullName": "", "functionType": "Action", - "group": "", "name": "doStepPreEvents", - "private": false, "sentence": "", "events": [ { @@ -7034,8 +7471,7 @@ "textG": 0, "textR": 0 }, - "comment": "Update the rectangle when the object is moved outside of the behavior.", - "comment2": "" + "comment": "Update the rectangle when the object is moved outside of the behavior." }, { "type": "BuiltinCommonInstructions::Standard", @@ -7075,8 +7511,7 @@ "textG": 0, "textR": 0 }, - "comment": "Move the object on the rectangular path.", - "comment2": "" + "comment": "Move the object on the rectangular path." }, { "type": "BuiltinCommonInstructions::Standard", @@ -7106,8 +7541,7 @@ "textG": 0, "textR": 0 }, - "comment": "Save the position to detect when the object is moved outside of the behavior.", - "comment2": "" + "comment": "Save the position to detect when the object is moved outside of the behavior." }, { "type": "BuiltinCommonInstructions::Standard", @@ -7140,22 +7574,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7163,12 +7588,9 @@ "objectGroups": [] }, { - "description": "", "fullName": "", "functionType": "Action", - "group": "", "name": "doStepPostEvents", - "private": false, "sentence": "", "events": [ { @@ -7181,8 +7603,7 @@ "textG": 0, "textR": 0 }, - "comment": "Step on the path.", - "comment2": "" + "comment": "Step on the path." }, { "type": "BuiltinCommonInstructions::Standard", @@ -7242,22 +7663,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7268,9 +7680,7 @@ "description": "Teleport the object to a corner of the movement rectangle.", "fullName": "Teleport at a corner", "functionType": "Action", - "group": "", "name": "TeleportToCorner", - "private": false, "sentence": "Set the position of _PARAM0_ at the _PARAM2_ of the rectangle loop", "events": [ { @@ -7388,32 +7798,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Corner", - "longDescription": "", "name": "Corner", - "optional": false, "supplementaryInformation": "[\"Top-left corner\",\"Top-right corner\",\"Bottom-left corner\",\"Bottom-right corner\"]", "type": "stringWithSelector" } @@ -7426,7 +7823,6 @@ "functionType": "Expression", "group": "Rectangular movement shape", "name": "Perimeter", - "private": false, "sentence": "", "events": [ { @@ -7444,24 +7840,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7472,9 +7862,7 @@ "description": "Return the time the object takes to go through the whole rectangle (in seconds).", "fullName": "Loop duration", "functionType": "Expression", - "group": "", "name": "LoopDuration", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7492,24 +7880,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7520,9 +7902,7 @@ "description": "Return the time the object takes to go through a horizontal edge (in seconds).", "fullName": "Horizontal edge duration", "functionType": "Expression", - "group": "", "name": "HorizontalEdgeDuration", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7540,24 +7920,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7568,9 +7942,7 @@ "description": "Return the time the object takes to go through a vertical edge (in seconds).", "fullName": "Vertical edge duration", "functionType": "Expression", - "group": "", "name": "VerticalEdgeDuration", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7588,24 +7960,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7618,7 +7984,6 @@ "functionType": "Expression", "group": "Rectangular movement/Shape", "name": "Width", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7636,24 +8001,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7666,7 +8025,6 @@ "functionType": "Expression", "group": "Rectangular movement/Shape", "name": "Height", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7684,24 +8042,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7714,7 +8066,6 @@ "functionType": "Expression", "group": "Rectangular movement/Shape", "name": "Left", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7732,24 +8083,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7762,7 +8107,6 @@ "functionType": "Expression", "group": "Rectangular movement/Shape", "name": "Top", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7780,24 +8124,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7810,7 +8148,6 @@ "functionType": "Expression", "group": "Rectangular movement/Shape", "name": "Right", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7828,24 +8165,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7858,7 +8189,6 @@ "functionType": "Expression", "group": "Rectangular movement/Shape", "name": "Bottom", - "private": false, "sentence": "Set initial Y of _PARAM0_ to _PARAM2_", "events": [ { @@ -7876,24 +8206,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -7906,7 +8230,6 @@ "functionType": "Action", "group": "Rectangular movement shape", "name": "SetLeft", - "private": false, "sentence": "Change the movement left bound of _PARAM0_ to _PARAM2_", "events": [ { @@ -7940,33 +8263,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -7978,7 +8287,6 @@ "functionType": "Action", "group": "Rectangular movement shape", "name": "SetTop", - "private": false, "sentence": "Change the movement top bound of _PARAM0_ to _PARAM2_", "events": [ { @@ -8012,33 +8320,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -8050,7 +8344,6 @@ "functionType": "Action", "group": "Rectangular movement shape", "name": "SetRight", - "private": false, "sentence": "Change the movement right bound of _PARAM0_ to _PARAM2_", "events": [ { @@ -8073,33 +8366,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -8111,7 +8390,6 @@ "functionType": "Action", "group": "Rectangular movement shape", "name": "SetBottom", - "private": false, "sentence": "Change the movement bottom bound of _PARAM0_ to _PARAM2_", "events": [ { @@ -8134,33 +8412,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -8172,7 +8436,6 @@ "functionType": "Action", "group": "Rectangular movement speed", "name": "SetHorizontalEdgeDuration", - "private": false, "sentence": "Change the time _PARAM0_ takes to go through a horizontal edge to _PARAM2_", "events": [ { @@ -8195,33 +8458,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -8233,7 +8482,6 @@ "functionType": "Action", "group": "Rectangular movement speed", "name": "SetVerticalEdgeDuration", - "private": false, "sentence": "Change the time _PARAM0_ takes to go through a vertical edge to _PARAM2_", "events": [ { @@ -8256,33 +8504,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Value", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "expression" } ], @@ -8294,7 +8528,6 @@ "functionType": "Action", "group": "Rectangular movement speed", "name": "SetClockwise", - "private": false, "sentence": "Use clockwise direction for _PARAM0_: _PARAM2_", "events": [ { @@ -8351,33 +8584,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Clockwise", - "longDescription": "", "name": "Value", - "optional": false, - "supplementaryInformation": "", "type": "yesorno" } ], @@ -8389,7 +8608,6 @@ "functionType": "Action", "group": "Rectangular movement speed", "name": "SetEasing", - "private": false, "sentence": "Change the easing of _PARAM0_ to _PARAM2_", "events": [ { @@ -8412,32 +8630,19 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" }, { - "codeOnly": false, - "defaultValue": "", "description": "Easing", - "longDescription": "", "name": "Easing", - "optional": false, "supplementaryInformation": "[\"linear\",\"easeInQuad\",\"easeOutQuad\",\"easeInOutQuad\",\"easeInCubic\",\"easeOutCubic\",\"easeInOutCubic\",\"easeInQuart\",\"easeOutQuart\",\"easeInOutQuart\",\"easeInQuint\",\"easeOutQuint\",\"easeInOutQuint\",\"easeInOutSine\",\"easeInExpo\",\"easeOutExpo\",\"easeInOutExpo\",\"easeInCirc\",\"easeOutCirc\",\"easeInOutCirc\",\"easeOutBounce\",\"easeInBack\",\"easeOutBack\",\"easeInOutBack\",\"elastic\",\"swingFromTo\",\"swingFrom\",\"swingTo\",\"bounce\",\"bouncePast\",\"easeFromTo\",\"easeFrom\",\"easeTo\"]", "type": "stringWithSelector" } @@ -8448,9 +8653,7 @@ "description": "Toggle the direction to clockwise or counter-clockwise.", "fullName": "Toggle direction", "functionType": "Action", - "group": "", "name": "ToogleClockwise", - "private": false, "sentence": "Toogle the direction of _PARAM0_", "events": [ { @@ -8562,22 +8765,60 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, + "supplementaryInformation": "RectangleMovement::RectangleMovement", + "type": "behavior" + } + ], + "objectGroups": [] + }, + { + "description": "Check if the object is moving clockwise.", + "fullName": "Is moving clockwise", + "functionType": "Condition", + "name": "IsMovingClockwise", + "sentence": "_PARAM0_ is moving clockwise", + "events": [ + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ + { + "type": { + "value": "RectangleMovement::RectangleMovement::PropertyClockwise" + }, + "parameters": [ + "Object", + "Behavior" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnBoolean" + }, + "parameters": [ + "True" + ] + } + ] + } + ], + "parameters": [ + { + "description": "Object", + "name": "Object", + "type": "object" + }, + { + "description": "Behavior", + "name": "Behavior", "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -8588,9 +8829,7 @@ "description": "Check if the object is moving to the left.", "fullName": "Is moving left", "functionType": "Condition", - "group": "", "name": "IsMovingLeft", - "private": false, "sentence": "_PARAM0_ is moving to the left", "events": [ { @@ -8665,22 +8904,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -8691,9 +8921,7 @@ "description": "Check if the object is moving up.", "fullName": "Is moving up", "functionType": "Condition", - "group": "", "name": "IsMovingUp", - "private": false, "sentence": "_PARAM0_ is moving up", "events": [ { @@ -8768,22 +8996,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -8794,9 +9013,7 @@ "description": "Object is moving to the right.", "fullName": "Is moving right", "functionType": "Condition", - "group": "", "name": "IsMovingRight", - "private": false, "sentence": "_PARAM0_ is moving to the right", "events": [ { @@ -8871,22 +9088,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -8897,9 +9105,7 @@ "description": "Check if the object is moving down.", "fullName": "Is moving down", "functionType": "Condition", - "group": "", "name": "IsMovingDown", - "private": false, "sentence": "_PARAM0_ is moving down", "events": [ { @@ -8974,22 +9180,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9000,9 +9197,7 @@ "description": "Object is on the left side of the rectangle.", "fullName": "Is on left", "functionType": "Condition", - "group": "", "name": "IsOnLeft", - "private": false, "sentence": "_PARAM0_ is on the left side", "events": [ { @@ -9033,22 +9228,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9059,9 +9245,7 @@ "description": "Object is on the top side of the rectangle.", "fullName": "Is on top", "functionType": "Condition", - "group": "", "name": "IsOnTop", - "private": false, "sentence": "_PARAM0_ is on the top side", "events": [ { @@ -9092,22 +9276,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9118,9 +9293,7 @@ "description": "Object is on the right side of the rectangle.", "fullName": "Is on right", "functionType": "Condition", - "group": "", "name": "IsOnRight", - "private": false, "sentence": "_PARAM0_ is on the right side", "events": [ { @@ -9161,22 +9334,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9187,9 +9351,7 @@ "description": "Object is on the bottom side of the rectangle.", "fullName": "Is on bottom", "functionType": "Condition", - "group": "", "name": "IsOnBottom", - "private": false, "sentence": "_PARAM0_ is on the bottom side", "events": [ { @@ -9230,22 +9392,13 @@ ], "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9256,7 +9409,6 @@ "description": "Return the duration between the top-left vertex and the top-right one.", "fullName": "Duration to top right", "functionType": "Expression", - "group": "", "name": "TopRightDuration", "private": true, "sentence": "", @@ -9276,24 +9428,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9304,7 +9450,6 @@ "description": "Return the duration between the top-left vertex and the bottom-right one.", "fullName": "Duration to bottom right", "functionType": "Expression", - "group": "", "name": "BottomRightDuration", "private": true, "sentence": "", @@ -9324,24 +9469,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9352,7 +9491,6 @@ "description": "Return the duration between the top-left vertex and the bottom-left one.", "fullName": "Duration to bottom left", "functionType": "Expression", - "group": "", "name": "BottomLeftDuration", "private": true, "sentence": "", @@ -9372,24 +9510,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9400,7 +9532,6 @@ "description": "Return the ratio between the covered distance from the last vertex and the edge length (between 0 and 1).", "fullName": "Progress on edge", "functionType": "Expression", - "group": "", "name": "EdgeProgress", "private": true, "sentence": "", @@ -9445,24 +9576,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9473,7 +9598,6 @@ "description": "Return the X position of the current edge origin.", "fullName": "Edge origin X", "functionType": "Expression", - "group": "", "name": "EdgeOriginX", "private": true, "sentence": "", @@ -9514,24 +9638,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9542,7 +9660,6 @@ "description": "Return the Y position of the current edge origin.", "fullName": "Edge origin Y", "functionType": "Expression", - "group": "", "name": "EdgeOriginY", "private": true, "sentence": "", @@ -9583,24 +9700,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9611,7 +9722,6 @@ "description": "Return the X position of the current edge target.", "fullName": "Edge target X", "functionType": "Expression", - "group": "", "name": "EdgeTargetY", "private": true, "sentence": "", @@ -9652,24 +9762,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9680,7 +9784,6 @@ "description": "Return the Y position of the current edge target.", "fullName": "Edge target Y", "functionType": "Expression", - "group": "", "name": "EdgeTargetX", "private": true, "sentence": "", @@ -9711,24 +9814,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9739,7 +9836,6 @@ "description": "Return the time from the top-left vertex.", "fullName": "Current time", "functionType": "Expression", - "group": "", "name": "CurrentTime", "private": true, "sentence": "", @@ -9759,24 +9855,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9787,7 +9877,6 @@ "description": "Return the covered length from the top-left vertex or the bottom-right one.", "fullName": "Half Current length", "functionType": "Expression", - "group": "", "name": "HalfCurrentTime", "private": true, "sentence": "", @@ -9807,24 +9896,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9835,7 +9918,6 @@ "description": "Return the displacement on the X axis from the top-left vertex.", "fullName": "Delta X", "functionType": "Expression", - "group": "", "name": "DeltaX", "private": true, "sentence": "", @@ -9855,24 +9937,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9883,7 +9959,6 @@ "description": "Return the displacement on the Y axis from the top-left vertex.", "fullName": "Delta Y", "functionType": "Expression", - "group": "", "name": "DeltaY", "private": true, "sentence": "", @@ -9903,24 +9978,18 @@ ] } ], + "expressionType": { + "type": "expression" + }, "parameters": [ { - "codeOnly": false, - "defaultValue": "", "description": "Object", - "longDescription": "", "name": "Object", - "optional": false, - "supplementaryInformation": "", "type": "object" }, { - "codeOnly": false, - "defaultValue": "", "description": "Behavior", - "longDescription": "", "name": "Behavior", - "optional": false, "supplementaryInformation": "RectangleMovement::RectangleMovement", "type": "behavior" } @@ -9932,6 +10001,7 @@ { "value": "100", "type": "Number", + "unit": "Pixel", "label": "Width", "description": "", "group": "Dimension", @@ -9942,6 +10012,7 @@ { "value": "100", "type": "Number", + "unit": "Pixel", "label": "Height", "description": "", "group": "Dimension", @@ -9962,7 +10033,8 @@ { "value": "4", "type": "Number", - "label": "Horizontal edge duration (in seconds)", + "unit": "Second", + "label": "Horizontal edge duration", "description": "", "group": "Speed", "extraInformation": [], @@ -9972,7 +10044,8 @@ { "value": "1", "type": "Number", - "label": "Vertical edge duration (in seconds)", + "unit": "Second", + "label": "Vertical edge duration", "description": "", "group": "Speed", "extraInformation": [], @@ -10098,7 +10171,8 @@ "hidden": true, "name": "ToogleClockwise" } - ] + ], + "sharedPropertyDescriptors": [] } ], "eventsBasedObjects": []