diff --git a/examples/3d-road-crosser/3d-road-crosser.json b/examples/3d-road-crosser/3d-road-crosser.json index 134c42c7e..99e270fc8 100644 --- a/examples/3d-road-crosser/3d-road-crosser.json +++ b/examples/3d-road-crosser/3d-road-crosser.json @@ -86,6 +86,7 @@ ], "categories": [], "playableDevices": [ + "mobile", "mobile" ], "extensionProperties": [], @@ -23200,275 +23201,6 @@ "initialVariables": [] } ] - }, - { - "areaMaxX": 256, - "areaMaxY": 128, - "areaMaxZ": 64, - "areaMinX": 0, - "areaMinY": 0, - "areaMinZ": 0, - "assetStoreAssetId": "055eaaaceaa6fa09820aff95e0291764fbd98d84a9c2fb8cb3c4e059010a477b", - "assetStoreOriginalName": "Yellow Jelly Button", - "name": "Yellow Jelly Button", - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ], - "string": "Button", - "font": "Rubik-Regular.ttf", - "textAlignment": "center", - "characterSize": 60, - "color": { - "b": 0, - "g": 42, - "r": 117 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Button", - "font": "Rubik-Regular.ttf", - "textAlignment": "center", - "verticalTextAlignment": "center", - "characterSize": 60, - "color": "117;42;0" - } - }, - { - "assetStoreId": "", - "bottomMargin": 50, - "height": 128, - "leftMargin": 37, - "name": "Idle", - "rightMargin": 32, - "texture": "Yellow Jelly Button_Idle.png", - "tiled": false, - "topMargin": 50, - "type": "PanelSpriteObject::PanelSprite", - "width": 256, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "serializedBehavior": { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 50, - "height": 128, - "leftMargin": 37, - "name": "Hovered", - "rightMargin": 32, - "texture": "Yellow Jelly Button_Hovered.png", - "tiled": false, - "topMargin": 50, - "type": "PanelSpriteObject::PanelSprite", - "width": 256, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior", - "serializedBehavior": { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 50, - "height": 128, - "leftMargin": 37, - "name": "Pressed", - "rightMargin": 32, - "texture": "Yellow Jelly Button_Pressed.png", - "tiled": false, - "topMargin": 50, - "type": "PanelSpriteObject::PanelSprite", - "width": 256, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "depth": 1, - "height": 64, - "layer": "", - "name": "Idle", - "persistentUuid": "24882334-eec8-403e-8bf1-70fc928a46e6", - "width": 64, - "x": 0, - "y": 0, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 113, - "keepRatio": true, - "layer": "", - "name": "Label", - "persistentUuid": "33a12e08-30a5-4a5a-8681-5ebb2d713ec9", - "width": 246, - "x": 5, - "y": 57, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ] } ] } diff --git a/examples/multiplayer-platformer-arrow-fight/multiplayer-platformer-arrow-fight.json b/examples/multiplayer-platformer-arrow-fight/multiplayer-platformer-arrow-fight.json index 811b8a2bf..52c94b76e 100644 --- a/examples/multiplayer-platformer-arrow-fight/multiplayer-platformer-arrow-fight.json +++ b/examples/multiplayer-platformer-arrow-fight/multiplayer-platformer-arrow-fight.json @@ -1134,24 +1134,6 @@ ] } ] - }, - { - "assetStoreId": "d00645a899e762e085fa6fdf2625701baea9cc10ee903a64ca7d371e5bbb8dca", - "name": "FloatingOutButtonDarkBlue", - "type": "PanelSpriteButton::PanelSpriteButton", - "variant": "Floating Out Button Dark Blue", - "variables": [], - "effects": [], - "behaviors": [], - "content": { - "LeftPadding": 0, - "RightPadding": 0, - "PressedLabelOffsetY": 2, - "BottomPadding": 4, - "TopPadding": 0, - "HoveredFadeOutDuration": 0, - "LabelText": "Button" - } } ], "objectsFolderStructure": { @@ -1160,9 +1142,6 @@ { "objectName": "LobbyButton" }, - { - "objectName": "FloatingOutButtonDarkBlue" - }, { "objectName": "Instructions_Text" }, @@ -37946,544 +37925,6 @@ "initialVariables": [] } ] - }, - { - "areaMaxX": 192, - "areaMaxY": 64, - "areaMaxZ": 64, - "areaMinX": 0, - "areaMinY": 0, - "areaMinZ": 0, - "assetStoreAssetId": "d00645a899e762e085fa6fdf2625701baea9cc10ee903a64ca7d371e5bbb8dca", - "assetStoreOriginalName": "Floating Out Button Dark Blue", - "name": "Floating Out Button Dark Blue", - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ], - "string": "Button", - "font": "CarterOne-Regular.ttf", - "textAlignment": "center", - "characterSize": 40, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Button", - "font": "CarterOne-Regular.ttf", - "textAlignment": "center", - "verticalTextAlignment": "center", - "characterSize": 40, - "color": "255;255;255" - } - }, - { - "assetStoreId": "", - "bottomMargin": 10, - "height": 64, - "leftMargin": 6, - "name": "Idle", - "rightMargin": 6, - "texture": "Floating Out Button Dark Blue_Idle.png", - "tiled": false, - "topMargin": 10, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "serializedBehavior": { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 10, - "height": 64, - "leftMargin": 6, - "name": "Hovered", - "rightMargin": 6, - "texture": "Floating Out Button Dark Blue_Hovered.png", - "tiled": false, - "topMargin": 10, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior", - "serializedBehavior": { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 10, - "height": 64, - "leftMargin": 6, - "name": "Pressed", - "rightMargin": 6, - "texture": "Floating Out Button Dark Blue_Pressed.png", - "tiled": false, - "topMargin": 10, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "depth": 1, - "height": 64, - "layer": "", - "name": "Idle", - "persistentUuid": "24882334-eec8-403e-8bf1-70fc928a46e6", - "width": 64, - "x": 0, - "y": 0, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 57, - "keepRatio": true, - "layer": "", - "name": "Label", - "persistentUuid": "dfb1b714-aad7-4c68-9234-531c340769cd", - "width": 186, - "x": 3, - "y": 31, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ] - }, - { - "areaMaxX": 192, - "areaMaxY": 64, - "areaMaxZ": 64, - "areaMinX": 0, - "areaMinY": 0, - "areaMinZ": 0, - "assetStoreAssetId": "1cacfe2713f10642e8079542f28282d52f1bf46ae2dc27dc6c291a2970c90971", - "assetStoreOriginalName": "Medieval Button Beige", - "name": "Medieval Button Beige", - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ], - "string": "Button", - "font": "CaesarDressing-Regular.ttf", - "textAlignment": "center", - "characterSize": 40, - "color": { - "b": 64, - "g": 99, - "r": 133 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Button", - "font": "CaesarDressing-Regular.ttf", - "textAlignment": "center", - "verticalTextAlignment": "center", - "characterSize": 40, - "color": "133;99;64" - } - }, - { - "assetStoreId": "", - "bottomMargin": 11, - "height": 64, - "leftMargin": 7, - "name": "Idle", - "rightMargin": 7, - "texture": "Medieval Button Beige_Idle.png", - "tiled": false, - "topMargin": 7, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "serializedBehavior": { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 11, - "height": 64, - "leftMargin": 7, - "name": "Hovered", - "rightMargin": 7, - "texture": "Medieval Button Beige_Hovered.png", - "tiled": false, - "topMargin": 7, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior", - "serializedBehavior": { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 7, - "height": 64, - "leftMargin": 7, - "name": "Pressed", - "rightMargin": 7, - "texture": "Medieval Button Beige_Pressed.png", - "tiled": false, - "topMargin": 11, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "depth": 1, - "height": 64, - "layer": "", - "name": "Idle", - "persistentUuid": "24882334-eec8-403e-8bf1-70fc928a46e6", - "width": 64, - "x": 0, - "y": 0, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 52, - "keepRatio": true, - "layer": "", - "name": "Label", - "persistentUuid": "d6340d76-d9e1-41b2-bc4f-1a39e5098dd3", - "width": 184, - "x": 4, - "y": 30, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ] } ] } diff --git a/examples/multiplayer-platformer-pickup/multiplayer-platformer-pickup.json b/examples/multiplayer-platformer-pickup/multiplayer-platformer-pickup.json index 9ef17e327..429b712a3 100644 --- a/examples/multiplayer-platformer-pickup/multiplayer-platformer-pickup.json +++ b/examples/multiplayer-platformer-pickup/multiplayer-platformer-pickup.json @@ -6526,7 +6526,7 @@ "gridColor": 10401023, "gridAlpha": 0.8, "snap": true, - "zoomFactor": 0.47893418845353664, + "zoomFactor": 0.5843784410741076, "windowMask": false }, "objectsGroups": [ @@ -8596,7 +8596,7 @@ "assetStoreId": "1cacfe2713f10642e8079542f28282d52f1bf46ae2dc27dc6c291a2970c90971", "name": "LeaveGameButton", "type": "PanelSpriteButton::PanelSpriteButton", - "variant": "", + "variant": "Medieval Button Beige 2", "variables": [], "effects": [], "behaviors": [ @@ -8617,7 +8617,8 @@ "PressedLabelOffsetY": 4, "BottomPadding": 10, "TopPadding": 0, - "HoveredFadeOutDuration": 0.2 + "HoveredFadeOutDuration": 0.2, + "LabelText": "Leave Game" }, "childrenContent": { "Hovered": { @@ -35457,275 +35458,6 @@ "initialVariables": [] } ] - }, - { - "areaMaxX": 192, - "areaMaxY": 64, - "areaMaxZ": 64, - "areaMinX": 0, - "areaMinY": 0, - "areaMinZ": 0, - "assetStoreAssetId": "1cacfe2713f10642e8079542f28282d52f1bf46ae2dc27dc6c291a2970c90971", - "assetStoreOriginalName": "Medieval Button Beige", - "name": "Medieval Button Beige", - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ], - "string": "Button", - "font": "CaesarDressing-Regular.ttf", - "textAlignment": "center", - "characterSize": 40, - "color": { - "b": 64, - "g": 99, - "r": 133 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "Button", - "font": "CaesarDressing-Regular.ttf", - "textAlignment": "center", - "verticalTextAlignment": "center", - "characterSize": 40, - "color": "133;99;64" - } - }, - { - "assetStoreId": "", - "bottomMargin": 11, - "height": 64, - "leftMargin": 7, - "name": "Idle", - "rightMargin": 7, - "texture": "Medieval Button Beige_Idle.png", - "tiled": false, - "topMargin": 7, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "serializedBehavior": { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 11, - "height": 64, - "leftMargin": 7, - "name": "Hovered", - "rightMargin": 7, - "texture": "Medieval Button Beige_Hovered.png", - "tiled": false, - "topMargin": 7, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior", - "serializedBehavior": { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 7, - "height": 64, - "leftMargin": 7, - "name": "Pressed", - "rightMargin": 7, - "texture": "Medieval Button Beige_Pressed.png", - "tiled": false, - "topMargin": 11, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "depth": 1, - "height": 64, - "layer": "", - "name": "Idle", - "persistentUuid": "24882334-eec8-403e-8bf1-70fc928a46e6", - "width": 64, - "x": 0, - "y": 0, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 52, - "keepRatio": true, - "layer": "", - "name": "Label", - "persistentUuid": "d6340d76-d9e1-41b2-bc4f-1a39e5098dd3", - "width": 184, - "x": 4, - "y": 30, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ] } ] } diff --git a/examples/pairs/pairs.json b/examples/pairs/pairs.json index fcaa53a01..58f7a9a4f 100644 --- a/examples/pairs/pairs.json +++ b/examples/pairs/pairs.json @@ -55,6 +55,7 @@ "authorUsernames": [], "categories": [], "playableDevices": [ + "mobile", "mobile" ], "extensionProperties": [], @@ -1003,7 +1004,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1138,7 +1142,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1273,7 +1280,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1408,7 +1418,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1543,7 +1556,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1678,7 +1694,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1813,7 +1832,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -1948,7 +1970,10 @@ "IsFlipped": false, "Width": 0, "ElapsedTime": 0, - "Toggle": false + "Toggle": false, + "Animation": "Animation", + "Flippable": "Flippable", + "Resizable": "Resizable" }, { "name": "Tween", @@ -6238,13 +6263,13 @@ "category": "Visual effect", "extensionNamespace": "", "fullName": "3D Flip", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWZsaXAtaG9yaXpvbnRhbCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNSAyMUgxN1YxOUgxNU0xOSA5SDIxVjdIMTlNMyA1VjE5QzMgMjAuMSAzLjkgMjEgNSAyMUg5VjE5SDVWNUg5VjNINUMzLjkgMyAzIDMuOSAzIDVNMTkgM1Y1SDIxQzIxIDMuOSAyMC4xIDMgMTkgM00xMSAyM0gxM1YxSDExTTE5IDE3SDIxVjE1SDE5TTE1IDVIMTdWM0gxNU0xOSAxM0gyMVYxMUgxOU0xOSAyMUMyMC4xIDIxIDIxIDIwLjEgMjEgMTlIMTlaIiAvPjwvc3ZnPg==", "name": "ThreeDFlip", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/flip-horizontal.svg", "shortDescription": "Flip sprites with a 3D rotation effect.", - "version": "1.1.1", + "version": "1.2.0", "description": "It can be used to flip cards or characters.", "origin": { "identifier": "ThreeDFlip", @@ -6297,11 +6322,10 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyElapsedTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ElapsedTime", "+", "TimeDelta()" ] @@ -6324,11 +6348,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyElapsedTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ElapsedTime", ">=", "Duration / 2" ] @@ -6341,11 +6364,12 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyIsFlipped" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsFlipped", + "True", + "" ] } ], @@ -6369,11 +6393,12 @@ { "type": { "inverted": true, - "value": "ThreeDFlip::ThreeDFlip::PropertyIsFlipped" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsFlipped", + "True", + "" ] } ], @@ -6398,11 +6423,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyElapsedTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ElapsedTime", ">=", "Duration" ] @@ -6522,11 +6546,10 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyElapsedTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ElapsedTime", "=", "Duration - ElapsedTime * NewDuration / Duration" ] @@ -6563,22 +6586,20 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyWidth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Width", "=", "Object.Width()" ] }, { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyElapsedTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ElapsedTime", "=", "0" ] @@ -6603,12 +6624,12 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyIsFlipped" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsFlipped", + "False", + "" ] } ] @@ -6630,12 +6651,12 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyIsFlipped" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsFlipped", + "True", + "" ] } ] @@ -6648,11 +6669,10 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Duration", "=", "NewDuration" ] @@ -6674,12 +6694,12 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyToggle" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "Toggle", + "False", + "" ] } ] @@ -6702,22 +6722,22 @@ "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyIsFlipped" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsFlipped", + "True", + "" ] }, { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyToggle" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "Toggle", + "True", + "" ] } ] @@ -6738,23 +6758,24 @@ { "type": { "inverted": true, - "value": "ThreeDFlip::ThreeDFlip::PropertyToggle" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Toggle", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::SetPropertyIsFlipped" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsFlipped", + "False", + "" ] } ] @@ -6824,11 +6845,12 @@ { "type": { "inverted": true, - "value": "ThreeDFlip::ThreeDFlip::PropertyIsFlipped" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsFlipped", + "True", + "" ] } ], @@ -6851,11 +6873,12 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyIsFlipped" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsFlipped", + "True", + "" ] } ], @@ -6903,11 +6926,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyElapsedTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ElapsedTime", "<", "Duration" ] @@ -6962,11 +6984,12 @@ }, { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyIsFlipped" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsFlipped", + "True", + "" ] } ], @@ -7059,10 +7082,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Flip\"" + "Flip", + "True", + "" ] } ], @@ -7086,10 +7111,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Flip\"" + "Flip", + "True", + "" ] } ], @@ -7261,11 +7288,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyFlippingMethod" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "FlippingMethod", "=", "\"Animation\"" ] @@ -7310,11 +7336,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyFlippingMethod" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "FlippingMethod", "!=", "\"Animation\"" ] @@ -7368,11 +7393,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyFlippingMethod" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "FlippingMethod", "=", "\"Animation\"" ] @@ -7386,10 +7410,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Flipped\"" + "Flipped", + "True", + "" ] } ], @@ -7412,10 +7438,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Flipped\"" + "Flipped", + "True", + "" ] } ], @@ -7452,11 +7480,10 @@ "conditions": [ { "type": { - "value": "ThreeDFlip::ThreeDFlip::PropertyFlippingMethod" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "FlippingMethod", "!=", "\"Animation\"" ] @@ -7470,10 +7497,12 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Flipped\"" + "Flipped", + "True", + "" ] } ], @@ -7495,10 +7524,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Flipped\"" + "Flipped", + "True", + "" ] } ], @@ -7637,13 +7668,13 @@ "category": "User interface", "extensionNamespace": "", "fullName": "Button states and effects", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "/objects/button", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWdlc3R1cmUtdGFwLWJ1dHRvbiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMyA1QzE1LjIxIDUgMTcgNi43OSAxNyA5QzE3IDEwLjUgMTYuMiAxMS43NyAxNSAxMi40NlYxMS4yNEMxNS42MSAxMC42OSAxNiA5Ljg5IDE2IDlDMTYgNy4zNCAxNC42NiA2IDEzIDZTMTAgNy4zNCAxMCA5QzEwIDkuODkgMTAuMzkgMTAuNjkgMTEgMTEuMjRWMTIuNDZDOS44IDExLjc3IDkgMTAuNSA5IDlDOSA2Ljc5IDEwLjc5IDUgMTMgNU0yMCAyMC41QzE5Ljk3IDIxLjMyIDE5LjMyIDIxLjk3IDE4LjUgMjJIMTNDMTIuNjIgMjIgMTIuMjYgMjEuODUgMTIgMjEuNTdMOCAxNy4zN0w4Ljc0IDE2LjZDOC45MyAxNi4zOSA5LjIgMTYuMjggOS41IDE2LjI4SDkuN0wxMiAxOFY5QzEyIDguNDUgMTIuNDUgOCAxMyA4UzE0IDguNDUgMTQgOVYxMy40N0wxNS4yMSAxMy42TDE5LjE1IDE1Ljc5QzE5LjY4IDE2LjAzIDIwIDE2LjU2IDIwIDE3LjE0VjIwLjVNMjAgMkg0QzIuOSAyIDIgMi45IDIgNFYxMkMyIDEzLjExIDIuOSAxNCA0IDE0SDhWMTJMNCAxMkw0IDRIMjBMMjAgMTJIMThWMTRIMjBWMTMuOTZMMjAuMDQgMTRDMjEuMTMgMTQgMjIgMTMuMDkgMjIgMTJWNEMyMiAyLjkgMjEuMTEgMiAyMCAyWiIgLz48L3N2Zz4=", "name": "ButtonStates", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/753a9a794bd885058159b7509f06f5a8f67f72decfccb9a1b0efee26f41c3c4c_gesture-tap-button.svg", "shortDescription": "Use any object as a button and change appearance according to user interactions.", - "version": "1.1.1", + "version": "1.3.1", "description": [ "Use the \"Button states\" behavior to track user interactions with an object, including:", "", @@ -7685,7 +7716,7 @@ { "fullName": "", "functionType": "Action", - "name": "doStepPostEvents", + "name": "doStepPreEvents", "sentence": "", "events": [ { @@ -7714,11 +7745,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -7727,11 +7757,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -7765,12 +7794,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "MouseIsInside", + "False", + "" ] } ] @@ -7780,11 +7809,12 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyShouldCheckHovering" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "ShouldCheckHovering", + "True", + "" ] }, { @@ -7801,12 +7831,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "MouseIsInside", + "True", + "" ] } ] @@ -7829,12 +7859,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "TouchIsInside", + "False", + "" ] } ] @@ -7844,11 +7874,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -7867,12 +7896,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ] @@ -7904,11 +7933,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -7938,23 +7966,22 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "StartedTouchOrMouseId(Index)" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ], @@ -7970,22 +7997,20 @@ "subInstructions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -7996,11 +8021,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -8015,11 +8039,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -8048,20 +8071,20 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -8070,11 +8093,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -8086,20 +8108,20 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -8108,11 +8130,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -8125,20 +8146,20 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -8147,11 +8168,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -8163,20 +8183,20 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -8185,11 +8205,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -8224,11 +8243,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -8240,11 +8258,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -8253,11 +8270,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -8270,11 +8286,10 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -8282,11 +8297,10 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -8295,11 +8309,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -8382,22 +8395,20 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -8432,11 +8443,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -8481,11 +8491,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -8530,11 +8539,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -8579,11 +8587,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -8605,11 +8612,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -8654,11 +8660,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -8703,11 +8708,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -8961,11 +8965,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::PropertyIdleEffect" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleEffect", "!=", "\"\"" ] @@ -9000,11 +9003,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::PropertyFocusedEffect" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedEffect", "!=", "\"\"" ] @@ -9039,11 +9041,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::PropertyPressedEffect" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedEffect", "!=", "\"\"" ] @@ -9146,11 +9147,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::SetPropertyIdleEffect" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleEffect", "=", "Value" ] @@ -9227,11 +9227,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::SetPropertyFocusedEffect" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedEffect", "=", "Value" ] @@ -9308,11 +9307,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::SetPropertyPressedEffect" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedEffect", "=", "Value" ] @@ -9597,11 +9595,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonAnimationName::SetPropertyIdleAnimationName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleAnimationName", "=", "Value" ] @@ -9678,11 +9675,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonAnimationName::SetPropertyFocusedAnimationName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedAnimationName", "=", "Value" ] @@ -9759,11 +9755,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonAnimationName::SetPropertyPressedAnimationName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedAnimationName", "=", "Value" ] @@ -9849,11 +9844,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectValue", "=", "IdleValue" ] @@ -9906,11 +9900,10 @@ }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Idle\"" ] @@ -9919,11 +9912,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -9962,11 +9954,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -9975,11 +9966,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -10002,11 +9992,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -10015,11 +10004,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -10054,11 +10042,10 @@ }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Pressed\"" ] @@ -10067,11 +10054,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -10106,11 +10092,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeIn\"" ] @@ -10136,11 +10121,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeOut\"" ] @@ -10233,44 +10217,40 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "=", "0" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeIn\"" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenInitialValue", "=", "EffectValue" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTargetedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTargetedValue", "=", "Value" ] @@ -10311,44 +10291,40 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "=", "0" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeOut\"" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenInitialValue", "=", "EffectValue" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTargetedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTargetedValue", "=", "Value" ] @@ -10388,11 +10364,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "<", "Duration" ] @@ -10401,22 +10376,20 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "+", "Object.Behavior::TimeDelta()" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectValue", "=", "Tween::Ease(Easing, TweenInitialValue, TweenTargetedValue, TweenTime / Duration)" ] @@ -10428,11 +10401,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", ">=", "Duration" ] @@ -10441,22 +10413,20 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"NoTween\"" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectValue", "=", "TweenTargetedValue" ] @@ -10605,24 +10575,22 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectName", "=", - "Value" + "NewEffectName" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectProperty" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectProperty", "=", - "Value" + "NewPropertyName" ] } ] @@ -10642,12 +10610,12 @@ }, { "description": "Effect name", - "name": "EffectName", + "name": "NewEffectName", "type": "string" }, { "description": "Parameter name", - "name": "PropertyName", + "name": "NewPropertyName", "type": "string" } ], @@ -10707,11 +10675,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyIdleValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleValue", "=", "Value" ] @@ -10788,11 +10755,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFocusedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedValue", "=", "Value" ] @@ -10869,11 +10835,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPressedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedValue", "=", "Value" ] @@ -10951,11 +10916,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeInEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInEasing", "=", "Value" ] @@ -11033,11 +10997,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeOutEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutEasing", "=", "Value" ] @@ -11114,11 +11077,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeInDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInDuration", "=", "Value" ] @@ -11195,11 +11157,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeOutDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutDuration", "=", "Value" ] @@ -11509,11 +11470,10 @@ }, { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Idle\"" ] @@ -11522,11 +11482,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -11565,11 +11524,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -11578,11 +11536,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -11605,11 +11562,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -11618,11 +11574,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -11657,11 +11612,10 @@ }, { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Pressed\"" ] @@ -11670,11 +11624,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -11865,11 +11818,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyIdleScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleScale", "=", "Value" ] @@ -11946,11 +11898,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFocusedScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedScale", "=", "Value" ] @@ -12027,11 +11978,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPressedScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedScale", "=", "Value" ] @@ -12108,11 +12058,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeInDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInDuration", "=", "Value" ] @@ -12189,11 +12138,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeOutDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutDuration", "=", "Value" ] @@ -12271,11 +12219,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeInEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInEasing", "=", "Value" ] @@ -12353,11 +12300,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeOutEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutEasing", "=", "Value" ] @@ -12623,11 +12569,10 @@ }, { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Idle\"" ] @@ -12636,11 +12581,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -12679,11 +12623,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -12692,11 +12635,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -12719,11 +12661,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -12732,11 +12673,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -12771,11 +12711,10 @@ }, { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Pressed\"" ] @@ -12784,11 +12723,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -12981,11 +12919,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyIdleColorTint" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleColorTint", "=", "Value" ] @@ -13064,11 +13001,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFocusedColorTint" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedColorTint", "=", "Value" ] @@ -13147,11 +13083,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPressedColorTint" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedColorTint", "=", "Value" ] @@ -13230,11 +13165,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeInDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInDuration", "=", "Value" ] @@ -13313,11 +13247,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeOutDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutDuration", "=", "Value" ] @@ -13397,11 +13330,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeInEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInEasing", "=", "Value" ] @@ -13481,11 +13413,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeOutEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutEasing", "=", "Value" ] @@ -13674,13 +13605,13 @@ "category": "Game mechanic", "extensionNamespace": "", "fullName": "Object Stack", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTE4LDI5SDhjLTIuMiwwLTQtMS44LTQtNFY3YzAtMi4yLDEuOC00LDQtNGgxMGMyLjIsMCw0LDEuOCw0LDR2MThDMjIsMjcuMiwyMC4yLDI5LDE4LDI5eiIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTIyLDYuNGw1LDNjMS45LDEuMSwyLjUsMy42LDEuMyw1LjVMMjIsMjUuNSIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI4LDE2bDAuNSwwLjdjMS4zLDEuOCwwLjgsNC4zLTEsNS42bC01LjcsNCIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjgiIHkxPSI3IiB4Mj0iOCIgeTI9IjkiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjIzIiB4Mj0iMTgiIHkyPSIyNSIvPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTEwLjQsMTYuNmMwLjUsMC41LDEuMywwLjUsMS44LDBsMC44LTAuOGwwLjgsMC44YzAuNSwwLjUsMS4zLDAuNSwxLjgsMGMwLjUtMC41LDAuNS0xLjQsMC0xLjlsLTAuOC0wLjhMMTMsMTINCglsLTEuOCwxLjlsLTAuOCwwLjhDOS45LDE1LjIsOS45LDE2LjEsMTAuNCwxNi42eiIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjEyIiB5MT0iMjAiIHgyPSIxNCIgeTI9IjIwIi8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMTMiIHkxPSIxNyIgeDI9IjEzIiB5Mj0iMTkiLz4NCjwvc3ZnPg0K", "name": "ObjectStack", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Videogames/Videogames_cards_game_solitaire_poker_blackjack_casino.svg", "shortDescription": "An ordered list of objects and a shuffle action.", - "version": "0.2.0", + "version": "0.2.1", "description": [ "It provides:", "* Actions to modify a stack of objects", @@ -14516,7 +14447,7 @@ "parameters": [ "Object", "Behavior", - "GetArgumentAsNumber(\"Height\")", + "Height", "Stack", "StackBehavior", "0", diff --git a/examples/parking-jam/parking-jam.json b/examples/parking-jam/parking-jam.json index 428ae2c3f..af68f0f9d 100644 --- a/examples/parking-jam/parking-jam.json +++ b/examples/parking-jam/parking-jam.json @@ -988,7 +988,8 @@ }, { "name": "ShakeObject_PositionAngleScale", - "type": "ShakeObject::ShakeObject_PositionAngleScale" + "type": "ShakeObject::ShakeObject_PositionAngleScale", + "Scale": "Scale" } ], "animations": [ @@ -9343,13 +9344,13 @@ "category": "User interface", "extensionNamespace": "", "fullName": "Button states and effects", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "/objects/button", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWdlc3R1cmUtdGFwLWJ1dHRvbiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMyA1QzE1LjIxIDUgMTcgNi43OSAxNyA5QzE3IDEwLjUgMTYuMiAxMS43NyAxNSAxMi40NlYxMS4yNEMxNS42MSAxMC42OSAxNiA5Ljg5IDE2IDlDMTYgNy4zNCAxNC42NiA2IDEzIDZTMTAgNy4zNCAxMCA5QzEwIDkuODkgMTAuMzkgMTAuNjkgMTEgMTEuMjRWMTIuNDZDOS44IDExLjc3IDkgMTAuNSA5IDlDOSA2Ljc5IDEwLjc5IDUgMTMgNU0yMCAyMC41QzE5Ljk3IDIxLjMyIDE5LjMyIDIxLjk3IDE4LjUgMjJIMTNDMTIuNjIgMjIgMTIuMjYgMjEuODUgMTIgMjEuNTdMOCAxNy4zN0w4Ljc0IDE2LjZDOC45MyAxNi4zOSA5LjIgMTYuMjggOS41IDE2LjI4SDkuN0wxMiAxOFY5QzEyIDguNDUgMTIuNDUgOCAxMyA4UzE0IDguNDUgMTQgOVYxMy40N0wxNS4yMSAxMy42TDE5LjE1IDE1Ljc5QzE5LjY4IDE2LjAzIDIwIDE2LjU2IDIwIDE3LjE0VjIwLjVNMjAgMkg0QzIuOSAyIDIgMi45IDIgNFYxMkMyIDEzLjExIDIuOSAxNCA0IDE0SDhWMTJMNCAxMkw0IDRIMjBMMjAgMTJIMThWMTRIMjBWMTMuOTZMMjAuMDQgMTRDMjEuMTMgMTQgMjIgMTMuMDkgMjIgMTJWNEMyMiAyLjkgMjEuMTEgMiAyMCAyWiIgLz48L3N2Zz4=", "name": "ButtonStates", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/753a9a794bd885058159b7509f06f5a8f67f72decfccb9a1b0efee26f41c3c4c_gesture-tap-button.svg", "shortDescription": "Use any object as a button and change appearance according to user interactions.", - "version": "1.1.0", + "version": "1.3.1", "description": [ "Use the \"Button states\" behavior to track user interactions with an object, including:", "", @@ -9391,7 +9392,7 @@ { "fullName": "", "functionType": "Action", - "name": "doStepPostEvents", + "name": "doStepPreEvents", "sentence": "", "events": [ { @@ -9420,11 +9421,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -9433,11 +9433,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -9471,12 +9470,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "MouseIsInside", + "False", + "" ] } ] @@ -9486,11 +9485,12 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyShouldCheckHovering" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "ShouldCheckHovering", + "True", + "" ] }, { @@ -9507,12 +9507,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyMouseIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "MouseIsInside", + "True", + "" ] } ] @@ -9535,12 +9535,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "TouchIsInside", + "False", + "" ] } ] @@ -9550,11 +9550,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyTouchId" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "!=", "0" ] @@ -9565,20 +9564,20 @@ }, "parameters": [ "Object", - "TouchX(Object.Behavior::PropertyTouchId(), Object.Layer(), 0)", - "TouchY(Object.Behavior::PropertyTouchId(), Object.Layer(), 0)" + "TouchX(TouchId, Object.Layer(), 0)", + "TouchY(TouchId, Object.Layer(), 0)" ] } ], "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ] @@ -9610,11 +9609,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "=", "0" ] @@ -9636,31 +9634,30 @@ }, "parameters": [ "Object", - "TouchX(StartedTouchOrMouseId(Object.Behavior::PropertyIndex()), Object.Layer(), 0)", - "TouchY(StartedTouchOrMouseId(Object.Behavior::PropertyIndex()), Object.Layer(), 0)" + "TouchX(StartedTouchOrMouseId(Index), Object.Layer(), 0)", + "TouchY(StartedTouchOrMouseId(Index), Object.Layer(), 0)" ] } ], "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", - "StartedTouchOrMouseId(Object.Behavior::PropertyIndex())" + "StartedTouchOrMouseId(Index)" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchIsInside" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "TouchIsInside", + "True", + "" ] } ], @@ -9676,22 +9673,20 @@ "subInstructions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -9702,11 +9697,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -9721,11 +9715,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyIndex" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Index", "+", "1" ] @@ -9754,20 +9747,20 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -9776,11 +9769,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -9792,20 +9784,20 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyMouseIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "MouseIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -9814,11 +9806,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -9831,20 +9822,20 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -9853,11 +9844,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -9869,20 +9859,20 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyTouchIsInside" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "TouchIsInside", + "True", + "" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -9891,11 +9881,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -9923,18 +9912,17 @@ }, "parameters": [ "", - "Object.Behavior::PropertyTouchId()" + "TouchId" ] } ], "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -9946,11 +9934,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -9959,11 +9946,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -9976,11 +9962,10 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -9988,11 +9973,10 @@ { "type": { "inverted": true, - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -10001,11 +9985,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -10088,22 +10071,20 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] }, { "type": { - "value": "ButtonStates::ButtonFSM::SetPropertyTouchId" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TouchId", "=", "0" ] @@ -10138,11 +10119,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Idle\"" ] @@ -10187,11 +10167,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Validated\"" ] @@ -10236,11 +10215,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -10285,11 +10263,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"Hovered\"" ] @@ -10311,11 +10288,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -10360,11 +10336,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedInside\"" ] @@ -10409,11 +10384,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonFSM::PropertyState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "State", "=", "\"PressedOutside\"" ] @@ -10462,7 +10436,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyTouchId()" + "TouchId" ] } ] @@ -10564,7 +10538,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyIdleEffect()", + "IdleEffect", "yes" ] }, @@ -10575,7 +10549,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyFocusedEffect()", + "FocusedEffect", "no" ] }, @@ -10586,7 +10560,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyPressedEffect()", + "PressedEffect", "no" ] } @@ -10634,7 +10608,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyIdleEffect()", + "IdleEffect", "no" ] }, @@ -10645,7 +10619,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyFocusedEffect()", + "FocusedEffect", "no" ] }, @@ -10656,7 +10630,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyPressedEffect()", + "PressedEffect", "no" ] } @@ -10667,11 +10641,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::PropertyIdleEffect" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleEffect", "!=", "\"\"" ] @@ -10695,7 +10668,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyIdleEffect()", + "IdleEffect", "yes" ] } @@ -10706,11 +10679,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::PropertyFocusedEffect" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedEffect", "!=", "\"\"" ] @@ -10734,7 +10706,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyFocusedEffect()", + "FocusedEffect", "yes" ] } @@ -10745,11 +10717,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::PropertyPressedEffect" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedEffect", "!=", "\"\"" ] @@ -10773,7 +10744,7 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyPressedEffect()", + "PressedEffect", "yes" ] } @@ -10815,7 +10786,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyIdleEffect()" + "IdleEffect" ] } ] @@ -10852,13 +10823,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::SetPropertyIdleEffect" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleEffect", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -10896,7 +10866,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFocusedEffect()" + "FocusedEffect" ] } ] @@ -10933,13 +10903,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::SetPropertyFocusedEffect" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedEffect", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -10977,7 +10946,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyPressedEffect()" + "PressedEffect" ] } ] @@ -11014,13 +10983,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffects::SetPropertyPressedEffect" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedEffect", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -11090,7 +11058,7 @@ "description": "Change the animation of buttons according to their state.", "fullName": "Button animation", "name": "ButtonAnimationName", - "objectType": "Sprite", + "objectType": "", "eventsFunctions": [ { "fullName": "", @@ -11110,7 +11078,7 @@ "Object", "Animation", "=", - "Object.Behavior::PropertyIdleAnimationName()" + "IdleAnimationName" ] } ] @@ -11120,7 +11088,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11170,7 +11137,7 @@ "Object", "Animation", "=", - "Object.Behavior::PropertyIdleAnimationName()" + "IdleAnimationName" ] } ] @@ -11198,7 +11165,7 @@ "Object", "Animation", "=", - "Object.Behavior::PropertyFocusedAnimationName()" + "FocusedAnimationName" ] } ] @@ -11226,7 +11193,7 @@ "Object", "Animation", "=", - "Object.Behavior::PropertyPressedAnimationName()" + "PressedAnimationName" ] } ] @@ -11239,7 +11206,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11268,7 +11234,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyIdleAnimationName()" + "IdleAnimationName" ] } ] @@ -11281,7 +11247,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11306,13 +11271,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonAnimationName::SetPropertyIdleAnimationName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleAnimationName", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -11322,7 +11286,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11351,7 +11314,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFocusedAnimationName()" + "FocusedAnimationName" ] } ] @@ -11364,7 +11327,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11389,13 +11351,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonAnimationName::SetPropertyFocusedAnimationName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedAnimationName", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -11405,7 +11366,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11434,7 +11394,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyPressedAnimationName()" + "PressedAnimationName" ] } ] @@ -11447,7 +11407,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11472,13 +11431,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonAnimationName::SetPropertyPressedAnimationName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedAnimationName", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -11488,7 +11446,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -11502,6 +11459,15 @@ } ], "propertyDescriptors": [ + { + "value": "", + "type": "Behavior", + "label": "Animatable capability", + "extraInformation": [ + "AnimatableCapability::AnimatableBehavior" + ], + "name": "Animation" + }, { "value": "", "type": "Behavior", @@ -11554,13 +11520,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectValue", "=", - "Object.Behavior::PropertyIdleValue()" + "IdleValue" ] } ] @@ -11611,11 +11576,10 @@ }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Idle\"" ] @@ -11624,11 +11588,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -11640,7 +11603,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyIdleValue()", + "IdleValue", "" ] } @@ -11667,11 +11630,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -11680,11 +11642,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -11696,7 +11657,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFocusedValue()", + "FocusedValue", "" ] } @@ -11707,11 +11668,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -11720,11 +11680,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -11736,7 +11695,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFocusedValue()", + "FocusedValue", "" ] } @@ -11759,11 +11718,10 @@ }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Pressed\"" ] @@ -11772,11 +11730,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -11788,7 +11745,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyPressedValue()", + "PressedValue", "" ] } @@ -11811,11 +11768,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeIn\"" ] @@ -11829,8 +11785,8 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFadeInDuration()", - "Object.Behavior::PropertyFadeInEasing()", + "FadeInDuration", + "FadeInEasing", "" ] } @@ -11841,11 +11797,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeOut\"" ] @@ -11859,8 +11814,8 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFadeOutDuration()", - "Object.Behavior::PropertyFadeOutEasing()", + "FadeOutDuration", + "FadeOutEasing", "" ] } @@ -11938,46 +11893,42 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "=", "0" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeIn\"" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenInitialValue", "=", - "Object.Behavior::PropertyEffectValue()" + "EffectValue" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTargetedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTargetedValue", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -12016,46 +11967,42 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "=", "0" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"FadeOut\"" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenInitialValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenInitialValue", "=", - "Object.Behavior::PropertyEffectValue()" + "EffectValue" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTargetedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTargetedValue", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -12093,37 +12040,34 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "<", - "GetArgumentAsNumber(\"Duration\")" + "Duration" ] } ], "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenTime" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", "+", "Object.Behavior::TimeDelta()" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectValue", "=", - "Tween::Ease(GetArgumentAsString(\"Easing\"), Object.Behavior::PropertyTweenInitialValue(), Object.Behavior::PropertyTweenTargetedValue(), Object.Behavior::PropertyTweenTime() / GetArgumentAsNumber(\"Duration\"))" + "Tween::Ease(Easing, TweenInitialValue, TweenTargetedValue, TweenTime / Duration)" ] } ] @@ -12133,37 +12077,34 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::PropertyTweenTime" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenTime", ">=", - "GetArgumentAsNumber(\"Duration\")" + "Duration" ] } ], "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyTweenState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "TweenState", "=", "\"NoTween\"" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectValue", "=", - "Object.Behavior::PropertyTweenTargetedValue()" + "TweenTargetedValue" ] } ] @@ -12179,9 +12120,9 @@ "parameters": [ "Object", "Effect", - "Object.Behavior::PropertyEffectName()", - "Object.Behavior::PropertyEffectProperty()", - "Object.Behavior::PropertyEffectValue()" + "EffectName", + "EffectProperty", + "EffectValue" ] } ] @@ -12230,7 +12171,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyEffectName()" + "EffectName" ] } ] @@ -12271,7 +12212,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyEffectProperty()" + "EffectProperty" ] } ] @@ -12310,24 +12251,22 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectName" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectName", "=", - "GetArgumentAsString(\"Value\")" + "NewEffectName" ] }, { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyEffectProperty" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "EffectProperty", "=", - "GetArgumentAsString(\"Value\")" + "NewPropertyName" ] } ] @@ -12347,12 +12286,12 @@ }, { "description": "Effect name", - "name": "EffectName", + "name": "NewEffectName", "type": "string" }, { "description": "Parameter name", - "name": "PropertyName", + "name": "NewPropertyName", "type": "string" } ], @@ -12375,7 +12314,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyIdleValue()" + "IdleValue" ] } ] @@ -12412,13 +12351,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyIdleValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleValue", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -12456,7 +12394,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFocusedValue()" + "FocusedValue" ] } ] @@ -12493,13 +12431,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFocusedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedValue", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -12537,7 +12474,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyPressedValue()" + "PressedValue" ] } ] @@ -12574,13 +12511,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyPressedValue" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedValue", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -12618,7 +12554,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFadeInEasing()" + "FadeInEasing" ] } ] @@ -12656,13 +12592,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeInEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInEasing", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -12700,7 +12635,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFadeOutEasing()" + "FadeOutEasing" ] } ] @@ -12738,13 +12673,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeOutEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutEasing", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -12782,7 +12716,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFadeInDuration()" + "FadeInDuration" ] } ] @@ -12819,13 +12753,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeInDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInDuration", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -12863,7 +12796,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFadeOutDuration()" + "FadeOutDuration" ] } ] @@ -12900,13 +12833,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonObjectEffectTween::SetPropertyFadeOutDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutDuration", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -13143,7 +13075,7 @@ "description": "Smoothly resize buttons according to their state.", "fullName": "Button scale tween", "name": "ButtonScaleTween", - "objectType": "Sprite", + "objectType": "", "eventsFunctions": [ { "fullName": "", @@ -13163,7 +13095,7 @@ "Object", "Scale", "=", - "Object.Behavior::PropertyIdleScale()" + "IdleScale" ] } ] @@ -13173,7 +13105,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13215,11 +13146,10 @@ }, { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Idle\"" ] @@ -13228,11 +13158,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -13244,7 +13173,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyIdleScale()", + "IdleScale", "" ] } @@ -13271,11 +13200,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -13284,11 +13212,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -13300,7 +13227,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFocusedScale()", + "FocusedScale", "" ] } @@ -13311,11 +13238,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -13324,11 +13250,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -13340,7 +13265,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFocusedScale()", + "FocusedScale", "" ] } @@ -13363,11 +13288,10 @@ }, { "type": { - "value": "ButtonStates::ButtonScaleTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Pressed\"" ] @@ -13376,11 +13300,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -13392,7 +13315,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyPressedScale()", + "PressedScale", "" ] } @@ -13406,7 +13329,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13437,10 +13359,10 @@ "Object", "Tween", "\"__ButtonScaleTween.Fade\"", - "GetArgumentAsNumber(\"Value\")", - "GetArgumentAsNumber(\"Value\")", - "Object.Behavior::PropertyFadeInEasing()", - "1000 * Object.Behavior::PropertyFadeInDuration()", + "Value", + "Value", + "FadeInEasing", + "1000 * FadeInDuration", "no", "yes" ] @@ -13452,7 +13374,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13488,10 +13409,10 @@ "Object", "Tween", "\"__ButtonScaleTween.Fade\"", - "GetArgumentAsNumber(\"Value\")", - "GetArgumentAsNumber(\"Value\")", - "Object.Behavior::PropertyFadeOutEasing()", - "1000 * Object.Behavior::PropertyFadeOutDuration()", + "Value", + "Value", + "FadeOutEasing", + "1000 * FadeOutDuration", "no", "yes" ] @@ -13503,7 +13424,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13537,7 +13457,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyIdleScale()" + "IdleScale" ] } ] @@ -13550,7 +13470,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13575,13 +13494,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyIdleScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleScale", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -13591,7 +13509,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13620,7 +13537,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFocusedScale()" + "FocusedScale" ] } ] @@ -13633,7 +13550,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13658,13 +13574,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFocusedScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedScale", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -13674,7 +13589,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13703,7 +13617,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyPressedScale()" + "PressedScale" ] } ] @@ -13716,7 +13630,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13741,13 +13654,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyPressedScale" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedScale", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -13757,7 +13669,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13786,7 +13697,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFadeInDuration()" + "FadeInDuration" ] } ] @@ -13799,7 +13710,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13824,13 +13734,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeInDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInDuration", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -13840,7 +13749,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13869,7 +13777,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFadeOutDuration()" + "FadeOutDuration" ] } ] @@ -13882,7 +13790,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13907,13 +13814,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeOutDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutDuration", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -13923,7 +13829,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13952,7 +13857,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFadeInEasing()" + "FadeInEasing" ] } ] @@ -13966,7 +13871,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -13991,13 +13895,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeInEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInEasing", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -14007,7 +13910,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -14036,7 +13938,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFadeOutEasing()" + "FadeOutEasing" ] } ] @@ -14050,7 +13952,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -14075,13 +13976,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonScaleTween::SetPropertyFadeOutEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutEasing", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -14091,7 +13991,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -14105,6 +14004,15 @@ } ], "propertyDescriptors": [ + { + "value": "", + "type": "Behavior", + "label": "Scalable capability", + "extraInformation": [ + "ScalableCapability::ScalableBehavior" + ], + "name": "Scale" + }, { "value": "", "type": "Behavior", @@ -14285,7 +14193,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyIdleColorTint()" + "IdleColorTint" ] } ] @@ -14337,11 +14245,10 @@ }, { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Idle\"" ] @@ -14350,11 +14257,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -14366,7 +14272,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyIdleColorTint()", + "IdleColorTint", "" ] } @@ -14393,11 +14299,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Idle\"" ] @@ -14406,11 +14311,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -14422,7 +14326,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFocusedColorTint()", + "FocusedColorTint", "" ] } @@ -14433,11 +14337,10 @@ "conditions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -14446,11 +14349,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Focused\"" ] @@ -14462,7 +14364,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyFocusedColorTint()", + "FocusedColorTint", "" ] } @@ -14485,11 +14387,10 @@ }, { "type": { - "value": "ButtonStates::ButtonColorTintTween::PropertyPreviousState" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "!=", "\"Pressed\"" ] @@ -14498,11 +14399,10 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPreviousState" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PreviousState", "=", "\"Pressed\"" ] @@ -14514,7 +14414,7 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyPressedColorTint()", + "PressedColorTint", "" ] } @@ -14559,9 +14459,9 @@ "Object", "Tween", "\"__ButtonColorTintTween.Fade\"", - "GetArgumentAsString(\"Value\")", - "Object.Behavior::PropertyFadeInEasing()", - "1000 * Object.Behavior::PropertyFadeInDuration()", + "Value", + "FadeInEasing", + "1000 * FadeInDuration", "no", "yes" ] @@ -14609,9 +14509,9 @@ "Object", "Tween", "\"__ButtonColorTintTween.Fade\"", - "GetArgumentAsString(\"Value\")", - "Object.Behavior::PropertyFadeOutEasing()", - "1000 * Object.Behavior::PropertyFadeOutDuration()", + "Value", + "FadeOutEasing", + "1000 * FadeOutDuration", "no", "yes" ] @@ -14657,7 +14557,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyIdleColorTint()" + "IdleColorTint" ] } ] @@ -14695,13 +14595,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyIdleColorTint" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "IdleColorTint", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -14740,7 +14639,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFocusedColorTint()" + "FocusedColorTint" ] } ] @@ -14778,13 +14677,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFocusedColorTint" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FocusedColorTint", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -14823,7 +14721,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyPressedColorTint()" + "PressedColorTint" ] } ] @@ -14861,13 +14759,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyPressedColorTint" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "PressedColorTint", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -14906,7 +14803,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFadeInDuration()" + "FadeInDuration" ] } ] @@ -14944,13 +14841,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeInDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInDuration", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -14989,7 +14885,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFadeOutDuration()" + "FadeOutDuration" ] } ] @@ -15027,13 +14923,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeOutDuration" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutDuration", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -15072,7 +14967,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFadeInEasing()" + "FadeInEasing" ] } ] @@ -15111,13 +15006,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeInEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeInEasing", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -15156,7 +15050,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyFadeOutEasing()" + "FadeOutEasing" ] } ] @@ -15195,13 +15089,12 @@ "actions": [ { "type": { - "value": "ButtonStates::ButtonColorTintTween::SetPropertyFadeOutEasing" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "FadeOutEasing", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -18786,665 +18679,127 @@ "initialVariables": [] } ] - }, + } + ] + } + ] + }, + { + "author": "Silver-Streak, @Bouh, Tristan Rhodes", + "category": "Game mechanic", + "extensionNamespace": "", + "fullName": "Object \"Is On Screen\" Detection", + "gdevelopVersion": "", + "helpPath": "", + "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLW1vbml0b3Itc2NyZWVuc2hvdCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik05LDZINVYxMEg3VjhIOU0xOSwxMEgxN1YxMkgxNVYxNEgxOU0yMSwxNkgzVjRIMjFNMjEsMkgzQzEuODksMiAxLDIuODkgMSw0VjE2QTIsMiAwIDAsMCAzLDE4SDEwVjIwSDhWMjJIMTZWMjBIMTRWMThIMjFBMiwyIDAgMCwwIDIzLDE2VjRDMjMsMi44OSAyMi4xLDIgMjEsMiIgLz48L3N2Zz4=", + "name": "IsOnScreen", + "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/monitor-screenshot.svg", + "shortDescription": "This adds a condition to detect if an object is on screen based off its current layer.", + "version": "1.2.1", + "description": [ + "This extension adds conditions to check if an object is located within the visible portion of its layer's camera. The condition also allows for specifying padding to the virtual screen border.", + "", + "Note that this does not take into account any object visibility, such as being hidden or 0 opacity, but can be combined with those existing conditions." + ], + "origin": { + "identifier": "IsOnScreen", + "name": "gdevelop-extension-store" + }, + "tags": [ + "is on screen", + "condition", + "visible", + "hide", + "screen" + ], + "authorIds": [ + "2OwwM8ToR9dx9RJ2sAKTcrLmCB92", + "8Ih1aa8f5gWUp4UB2BdhQ2iXWxJ3", + "gqDaZjCfevOOxBYkK6zlhtZnXCg1" + ], + "dependencies": [], + "globalVariables": [], + "sceneVariables": [], + "eventsFunctions": [], + "eventsBasedBehaviors": [ + { + "description": "This behavior provides a condition to check if the object is located within the visible portion of its layer's camera. The condition also allows for specifying padding to the virtual screen border.\nNote that object visibility, such as being hidden or 0 opacity, is not considered (but you can use those existing conditions in addition to this behavior).", + "fullName": "Is on screen", + "name": "InOnScreen", + "objectType": "", + "eventsFunctions": [ { - "areaMaxX": 192, - "areaMaxY": 69, - "areaMaxZ": 64, - "areaMinX": 0, - "areaMinY": 0, - "areaMinZ": 0, - "assetStoreAssetId": "5faf2b0415c271fa6e747283ed36297a95f04d2b6c477a7b011775fa6fb444ee", - "assetStoreOriginalName": "Red Button With Shadow", - "name": "Red Button With Shadow", - "objects": [ + "description": "Checks if an object position is within the viewport of its layer.", + "fullName": "Is on screen", + "functionType": "Condition", + "name": "IsOnScreen", + "sentence": "_PARAM0_ is on screen (padded by _PARAM2_ pixels)", + "events": [ { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 4, - "topEdgeAnchor": 4, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "useLegacyBottomAndRightAnchors": false - } + "type": "BuiltinCommonInstructions::JsCode", + "inlineCode": [ + "/*", + "Get the object layer, convert the position from this layer to the screen coordinates.", + "Get the point on each side on the object on screen, and compare with the screen area.", + "", + "This way even if the camera has a rotation or custom scale the object is always compared to the screen area.", + "*/", + "", + "", + "// Get the layer of the object.", + "const object = objects[0];", + "const layer = runtimeScene.getLayer(object.getLayer());", + "", + "// Get the aabb of the object on his layer.", + "const aabb = object.getVisibilityAABB();", + "", + "// Get the layer to convert the coordinates of the AABB to the screen coordinates", + "const topLeft = layer.convertInverseCoords(aabb.min[0], aabb.min[1]);", + "const topRight = layer.convertInverseCoords(aabb.max[0], aabb.min[1]);", + "const bottomRight = layer.convertInverseCoords(aabb.max[0], aabb.max[1]);", + "const bottomLeft = layer.convertInverseCoords(aabb.min[0], aabb.max[1]);", + "", + "// Get the points on each side of the object on screen.", + "const posLeftObjectOnScreen = Math.min(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]);", + "const posRightObjectOnScreen = Math.max(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]);", + "const posUpObjectOnScreen = Math.min(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]);", + "const posDownObjectOnScreen = Math.max(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]);", + "", + "const padding = eventsFunctionContext.getArgument(\"Padding\");", + "", + "if (", + " !(posLeftObjectOnScreen - padding > runtimeScene.getGame().getGameResolutionWidth() ||", + " posUpObjectOnScreen - padding > runtimeScene.getGame().getGameResolutionHeight() ||", + " posRightObjectOnScreen + padding < 0 ||", + " posDownObjectOnScreen + padding < 0", + " )", + ") {", + " eventsFunctionContext.returnValue = true;", + "}", + "" ], - "string": "BUTTON", - "font": "CantoraOne-Regular.ttf", - "textAlignment": "center", - "characterSize": 40, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "BUTTON", - "font": "CantoraOne-Regular.ttf", - "textAlignment": "center", - "verticalTextAlignment": "center", - "characterSize": 40, - "color": "255;255;255" - } - }, + "parameterObjects": "Object", + "useStrict": true, + "eventsSheetExpanded": true + } + ], + "parameters": [ { - "assetStoreId": "", - "bottomMargin": 16, - "height": 69, - "leftMargin": 16, - "name": "Idle", - "rightMargin": 16, - "texture": "Red Button With Shadow_Idle.png", - "tiled": false, - "topMargin": 16, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "serializedBehavior": { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - } - ] + "description": "Object", + "name": "Object", + "type": "object" }, { - "assetStoreId": "", - "bottomMargin": 16, - "height": 69, - "leftMargin": 16, - "name": "Hovered", - "rightMargin": 16, - "texture": "Red Button With Shadow_Hovered.png", - "tiled": false, - "topMargin": 16, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior", - "serializedBehavior": { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - } - ] + "description": "Behavior", + "name": "Behavior", + "supplementaryInformation": "IsOnScreen::InOnScreen", + "type": "behavior" }, { - "assetStoreId": "", - "bottomMargin": 16, - "height": 69, - "leftMargin": 16, - "name": "Pressed", - "rightMargin": 16, - "texture": "Red Button With Shadow_Pressed.png", - "tiled": false, - "topMargin": 16, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "depth": 1, - "height": 64, - "layer": "", - "name": "Idle", - "persistentUuid": "24882334-eec8-403e-8bf1-70fc928a46e6", - "width": 64, - "x": 0, - "y": 0, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 60, - "keepRatio": true, - "layer": "", - "name": "Label", - "persistentUuid": "1a9eba11-e70c-4a1a-88b8-ed6f52e3d4dc", - "width": 188, - "x": 2, - "y": 32, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ] - }, - { - "areaMaxX": 192, - "areaMaxY": 69, - "areaMaxZ": 64, - "areaMinX": 0, - "areaMinY": 0, - "areaMinZ": 0, - "assetStoreAssetId": "33302f0b615672a2e96316c096e13ad8d7242adba8bd5709538691894f0eae6e", - "assetStoreOriginalName": "Blue Button With Shadow", - "name": "Blue Button With Shadow", - "objects": [ - { - "assetStoreId": "", - "bold": false, - "italic": false, - "name": "Label", - "smoothed": true, - "type": "TextObject::Text", - "underlined": false, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ], - "string": "BUTTON", - "font": "CantoraOne-Regular.ttf", - "textAlignment": "center", - "characterSize": 40, - "color": { - "b": 255, - "g": 255, - "r": 255 - }, - "content": { - "bold": false, - "isOutlineEnabled": false, - "isShadowEnabled": false, - "italic": false, - "outlineColor": "255;255;255", - "outlineThickness": 2, - "shadowAngle": 90, - "shadowBlurRadius": 2, - "shadowColor": "0;0;0", - "shadowDistance": 4, - "shadowOpacity": 127, - "smoothed": true, - "underlined": false, - "text": "BUTTON", - "font": "CantoraOne-Regular.ttf", - "textAlignment": "center", - "verticalTextAlignment": "center", - "characterSize": 40, - "color": "255;255;255" - } - }, - { - "assetStoreId": "", - "bottomMargin": 16, - "height": 69, - "leftMargin": 16, - "name": "Idle", - "rightMargin": 16, - "texture": "Blue Button With Shadow_Idle.png", - "tiled": false, - "topMargin": 16, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [ - { - "folded": true, - "name": "State", - "type": "string", - "value": "Idle" - } - ], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "serializedBehavior": { - "name": "ButtonFSM", - "type": "PanelSpriteButton::ButtonFSM", - "ShouldCheckHovering": true - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 16, - "height": 69, - "leftMargin": 16, - "name": "Hovered", - "rightMargin": 16, - "texture": "Blue Button With Shadow_Hovered.png", - "tiled": false, - "topMargin": 16, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - }, - { - "name": "Tween", - "type": "Tween::TweenBehavior", - "serializedBehavior": { - "name": "Tween", - "type": "Tween::TweenBehavior" - } - } - ] - }, - { - "assetStoreId": "", - "bottomMargin": 16, - "height": 69, - "leftMargin": 16, - "name": "Pressed", - "rightMargin": 16, - "texture": "Blue Button With Shadow_Pressed.png", - "tiled": false, - "topMargin": 16, - "type": "PanelSpriteObject::PanelSprite", - "width": 192, - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 2, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "topEdgeAnchor": 1, - "useLegacyBottomAndRightAnchors": false - } - ] - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - } - ], - "layers": [ - { - "ambientLightColorB": 200, - "ambientLightColorG": 200, - "ambientLightColorR": 200, - "camera3DFarPlaneDistance": 10000, - "camera3DFieldOfView": 45, - "camera3DNearPlaneDistance": 3, - "cameraType": "", - "followBaseLayerCamera": false, - "isLightingLayer": false, - "isLocked": false, - "name": "", - "renderingType": "", - "visibility": true, - "cameras": [ - { - "defaultSize": true, - "defaultViewport": true, - "height": 0, - "viewportBottom": 1, - "viewportLeft": 0, - "viewportRight": 1, - "viewportTop": 0, - "width": 0 - } - ], - "effects": [] - } - ], - "instances": [ - { - "angle": 0, - "customSize": false, - "depth": 1, - "height": 64, - "layer": "", - "name": "Idle", - "persistentUuid": "24882334-eec8-403e-8bf1-70fc928a46e6", - "width": 64, - "x": 0, - "y": 0, - "zOrder": 1, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - }, - { - "angle": 0, - "customSize": true, - "depth": 1, - "height": 61, - "keepRatio": true, - "layer": "", - "name": "Label", - "persistentUuid": "ac76ffd4-0cc6-4581-b73c-f840b4eda2c1", - "width": 188, - "x": 2, - "y": 32, - "zOrder": 2, - "numberProperties": [], - "stringProperties": [], - "initialVariables": [] - } - ] - } - ] - } - ] - }, - { - "author": "Silver-Streak, @Bouh, Tristan Rhodes", - "category": "Game mechanic", - "extensionNamespace": "", - "fullName": "Object \"Is On Screen\" Detection", - "gdevelopVersion": "", - "helpPath": "", - "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLW1vbml0b3Itc2NyZWVuc2hvdCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik05LDZINVYxMEg3VjhIOU0xOSwxMEgxN1YxMkgxNVYxNEgxOU0yMSwxNkgzVjRIMjFNMjEsMkgzQzEuODksMiAxLDIuODkgMSw0VjE2QTIsMiAwIDAsMCAzLDE4SDEwVjIwSDhWMjJIMTZWMjBIMTRWMThIMjFBMiwyIDAgMCwwIDIzLDE2VjRDMjMsMi44OSAyMi4xLDIgMjEsMiIgLz48L3N2Zz4=", - "name": "IsOnScreen", - "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/monitor-screenshot.svg", - "shortDescription": "This adds a condition to detect if an object is on screen based off its current layer.", - "version": "1.2.1", - "description": [ - "This extension adds conditions to check if an object is located within the visible portion of its layer's camera. The condition also allows for specifying padding to the virtual screen border.", - "", - "Note that this does not take into account any object visibility, such as being hidden or 0 opacity, but can be combined with those existing conditions." - ], - "origin": { - "identifier": "IsOnScreen", - "name": "gdevelop-extension-store" - }, - "tags": [ - "is on screen", - "condition", - "visible", - "hide", - "screen" - ], - "authorIds": [ - "2OwwM8ToR9dx9RJ2sAKTcrLmCB92", - "8Ih1aa8f5gWUp4UB2BdhQ2iXWxJ3", - "gqDaZjCfevOOxBYkK6zlhtZnXCg1" - ], - "dependencies": [], - "globalVariables": [], - "sceneVariables": [], - "eventsFunctions": [], - "eventsBasedBehaviors": [ - { - "description": "This behavior provides a condition to check if the object is located within the visible portion of its layer's camera. The condition also allows for specifying padding to the virtual screen border.\nNote that object visibility, such as being hidden or 0 opacity, is not considered (but you can use those existing conditions in addition to this behavior).", - "fullName": "Is on screen", - "name": "InOnScreen", - "objectType": "", - "eventsFunctions": [ - { - "description": "Checks if an object position is within the viewport of its layer.", - "fullName": "Is on screen", - "functionType": "Condition", - "name": "IsOnScreen", - "sentence": "_PARAM0_ is on screen (padded by _PARAM2_ pixels)", - "events": [ - { - "type": "BuiltinCommonInstructions::JsCode", - "inlineCode": [ - "/*", - "Get the object layer, convert the position from this layer to the screen coordinates.", - "Get the point on each side on the object on screen, and compare with the screen area.", - "", - "This way even if the camera has a rotation or custom scale the object is always compared to the screen area.", - "*/", - "", - "", - "// Get the layer of the object.", - "const object = objects[0];", - "const layer = runtimeScene.getLayer(object.getLayer());", - "", - "// Get the aabb of the object on his layer.", - "const aabb = object.getVisibilityAABB();", - "", - "// Get the layer to convert the coordinates of the AABB to the screen coordinates", - "const topLeft = layer.convertInverseCoords(aabb.min[0], aabb.min[1]);", - "const topRight = layer.convertInverseCoords(aabb.max[0], aabb.min[1]);", - "const bottomRight = layer.convertInverseCoords(aabb.max[0], aabb.max[1]);", - "const bottomLeft = layer.convertInverseCoords(aabb.min[0], aabb.max[1]);", - "", - "// Get the points on each side of the object on screen.", - "const posLeftObjectOnScreen = Math.min(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]);", - "const posRightObjectOnScreen = Math.max(topLeft[0], topRight[0], bottomLeft[0], bottomRight[0]);", - "const posUpObjectOnScreen = Math.min(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]);", - "const posDownObjectOnScreen = Math.max(topLeft[1], topRight[1], bottomLeft[1], bottomRight[1]);", - "", - "const padding = eventsFunctionContext.getArgument(\"Padding\");", - "", - "if (", - " !(posLeftObjectOnScreen - padding > runtimeScene.getGame().getGameResolutionWidth() ||", - " posUpObjectOnScreen - padding > runtimeScene.getGame().getGameResolutionHeight() ||", - " posRightObjectOnScreen + padding < 0 ||", - " posDownObjectOnScreen + padding < 0", - " )", - ") {", - " eventsFunctionContext.returnValue = true;", - "}", - "" - ], - "parameterObjects": "Object", - "useStrict": true, - "eventsSheetExpanded": true - } - ], - "parameters": [ - { - "description": "Object", - "name": "Object", - "type": "object" - }, - { - "description": "Behavior", - "name": "Behavior", - "supplementaryInformation": "IsOnScreen::InOnScreen", - "type": "behavior" - }, - { - "description": "Padding (in pixels)", - "longDescription": "Number of pixels to pad the screen border. Zero by default. A negative value goes inside the screen, a positive value go outside.", - "name": "Padding", - "type": "expression" + "description": "Padding (in pixels)", + "longDescription": "Number of pixels to pad the screen border. Zero by default. A negative value goes inside the screen, a positive value go outside.", + "name": "Padding", + "type": "expression" } ], "objectGroups": [ @@ -19466,13 +18821,13 @@ "category": "Advanced", "extensionNamespace": "", "fullName": "Extended math support", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWZ1bmN0aW9uLXZhcmlhbnQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIuNDIsNS4yOUMxMS4zMiw1LjE5IDEwLjM1LDYgMTAuMjUsNy4xMUwxMCwxMEgxMi44MlYxMkg5LjgyTDkuMzgsMTcuMDdDOS4xOCwxOS4yNyA3LjI0LDIwLjkgNS4wNCwyMC43QzMuNzksMjAuNTkgMi42NiwxOS45IDIsMTguODNMMy41LDE3LjMzQzMuODMsMTguMzggNC45NiwxOC45NyA2LDE4LjYzQzYuNzgsMTguMzkgNy4zMywxNy43IDcuNCwxNi44OUw3LjgyLDEySDQuODJWMTBIOEw4LjI3LDYuOTNDOC40Niw0LjczIDEwLjM5LDMuMSAxMi42LDMuMjhDMTMuODYsMy4zOSAxNSw0LjA5IDE1LjY2LDUuMTdMMTQuMTYsNi42N0MxMy45MSw1LjkgMTMuMjMsNS4zNiAxMi40Miw1LjI5TTIyLDEzLjY1TDIwLjU5LDEyLjI0TDE3Ljc2LDE1LjA3TDE0LjkzLDEyLjI0TDEzLjUsMTMuNjVMMTYuMzUsMTYuNUwxMy41LDE5LjMxTDE0LjkzLDIwLjcyTDE3Ljc2LDE3Ljg5TDIwLjU5LDIwLjcyTDIyLDE5LjMxTDE5LjE3LDE2LjVMMjIsMTMuNjVaIiAvPjwvc3ZnPg==", "name": "ExtendedMath", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/function-variant.svg", "shortDescription": "Additional math functions and constants as expressions and conditions.", - "version": "1.1.0", + "version": "1.1.1", "description": [ "Expressions:", " - Mathematical constants", @@ -20352,7 +19707,7 @@ "value": "Egal" }, "parameters": [ - "mod(GetArgumentAsNumber(\"Value\"),2)", + "mod(Value,2)", "=", "0" ] @@ -20388,13 +19743,13 @@ "category": "User interface", "extensionNamespace": "", "fullName": "Toggle switch (for Shape Painter)", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBkPSJNMjIsMUgxMEM2LjEsMSwzLDQuMSwzLDhzMy4xLDcsNyw3aDEyYzMuOSwwLDctMy4xLDctN1MyNS45LDEsMjIsMXogTTIyLDEyYy0yLjIsMC00LTEuOC00LTRzMS44LTQsNC00czQsMS44LDQsNA0KCVMyNC4yLDEyLDIyLDEyeiIvPg0KPHBhdGggZD0iTTIyLDE3SDEwYy0zLjksMC03LDMuMS03LDdzMy4xLDcsNyw3aDEyYzMuOSwwLDctMy4xLDctN1MyNS45LDE3LDIyLDE3eiBNMTAsMjhjLTIuMiwwLTQtMS44LTQtNHMxLjgtNCw0LTRzNCwxLjgsNCw0DQoJUzEyLjIsMjgsMTAsMjh6Ii8+DQo8L3N2Zz4NCg==", "name": "ToggleSwitch", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_toggle_switch.svg", "shortDescription": "Toggle switch that users can click or touch.", - "version": "0.1.5", + "version": "0.2.0", "description": [ "Add this behavior to a shape painter object.", "", @@ -20467,26 +19822,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyThumbRadius" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbRadius", "<", - "Object.Behavior::PropertyTrackHeight() / 2" + "TrackHeight / 2" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyTrackHeight" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TrackHeight", "=", - "Object.Behavior::PropertyThumbRadius() * 2" + "ThumbRadius * 2" ] } ] @@ -20496,26 +19849,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyThumbRadius" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbRadius", ">", - "Object.Behavior::PropertyTrackWidth()/2" + "TrackWidth/2" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbRadius", "=", - "Object.Behavior::PropertyTrackWidth()/2" + "TrackWidth/2" ] } ] @@ -20525,13 +19876,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyHaloRadius" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HaloRadius", "<", - "Object.Behavior::PropertyThumbRadius() * 1.5" + "ThumbRadius * 1.5" ] } ], @@ -20543,8 +19893,8 @@ "parameters": [ "Object", "Behavior", - "Object.Behavior::PropertyThumbRadius() * 1.5", - "Object.Behavior::PropertyTrackWidth()/2" + "ThumbRadius * 1.5", + "TrackWidth/2" ] } ] @@ -20554,26 +19904,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyThumbShadowOffsetX" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOffsetX", ">", - "Object.Behavior::PropertyThumbRadius() / 3" + "ThumbRadius / 3" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbShadowOffsetX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOffsetX", "=", - "Object.Behavior::PropertyThumbRadius() / 3" + "ThumbRadius / 3" ] } ] @@ -20583,26 +19931,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyThumbShadowOffsetY" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOffsetY", ">", - "Object.Behavior::PropertyThumbRadius() / 3" + "ThumbRadius / 3" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbShadowOffsetY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOffsetY", "=", - "Object.Behavior::PropertyThumbRadius() / 3" + "ThumbRadius / 3" ] } ] @@ -20625,24 +19971,24 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbOffset" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbOffset", "=", - "lerp(Object.Behavior::PropertyThumbOffset(),0,0.25)" + "lerp(ThumbOffset,0,0.25)" ] } ], @@ -20652,11 +19998,10 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyThumbOffset" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbOffset", ">", "0.01" ] @@ -20665,12 +20010,12 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -20682,24 +20027,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbOffset" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbOffset", "=", - "lerp(Object.Behavior::PropertyThumbOffset(),Object.Behavior::PropertyTrackWidth(),0.25)" + "lerp(ThumbOffset,TrackWidth,0.25)" ] } ], @@ -20709,25 +20054,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyThumbOffset" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbOffset", "<", - "Object.Behavior::PropertyTrackWidth() - 0.01" + "TrackWidth - 0.01" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -20769,11 +20113,12 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyDisabled" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Disabled", + "True", + "" ] }, { @@ -20794,23 +20139,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyIsHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHovered", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyWasHovered" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "WasHovered", + "True", + "" ] } ] @@ -20821,23 +20167,24 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyIsHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHovered", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyWasHovered" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "WasHovered", + "False", + "" ] } ] @@ -20848,12 +20195,12 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyIsHovered" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "IsHovered", + "False", + "" ] } ] @@ -20868,7 +20215,7 @@ "parameters": [ "", ">=", - "Object.X() - max(Object.Behavior::PropertyHaloRadius(),Object.Behavior::PropertyThumbRadius())", + "Object.X() - max(HaloRadius,ThumbRadius)", "Object.Layer()", "0" ] @@ -20880,7 +20227,7 @@ "parameters": [ "", "<=", - "Object.X() + Object.Behavior::PropertyTrackWidth() + max(Object.Behavior::PropertyHaloRadius(),Object.Behavior::PropertyThumbRadius())", + "Object.X() + TrackWidth + max(HaloRadius,ThumbRadius)", "Object.Layer()", "0" ] @@ -20892,7 +20239,7 @@ "parameters": [ "", ">=", - "Object.Y() - (max(Object.Behavior::PropertyHaloRadius(),Object.Behavior::PropertyThumbRadius())*2 - Object.Behavior::PropertyTrackHeight())/2", + "Object.Y() - (max(HaloRadius,ThumbRadius)*2 - TrackHeight)/2", "Object.Layer()", "0" ] @@ -20904,7 +20251,7 @@ "parameters": [ "", "<=", - "Object.Y() + (max(Object.Behavior::PropertyHaloRadius(),Object.Behavior::PropertyThumbRadius())*2 + Object.Behavior::PropertyTrackHeight())/2", + "Object.Y() + (max(HaloRadius,ThumbRadius)*2 + TrackHeight)/2", "Object.Layer()", "0" ] @@ -20913,12 +20260,12 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyIsHovered" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsHovered", + "True", + "" ] } ] @@ -20928,33 +20275,35 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyIsHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHovered", + "True", + "" ] }, { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyWasHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "WasHovered", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -20965,32 +20314,34 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyIsHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHovered", + "True", + "" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyWasHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "WasHovered", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -21065,12 +20416,12 @@ }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyIsPressed" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "IsPressed", + "True", + "" ] } ] @@ -21117,11 +20468,11 @@ }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyIsPressed" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", + "IsPressed", + "False", "" ] } @@ -21144,23 +20495,24 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyNeedRedaw" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "NeedRedaw", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "NeedRedaw", + "False", + "" ] }, { @@ -21190,11 +20542,10 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyInactiveTrackColor" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "InactiveTrackColor", "=", "\"\"" ] @@ -21207,7 +20558,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveThumbColor()" + "ActiveThumbColor" ] } ] @@ -21218,11 +20569,10 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyInactiveTrackColor" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "InactiveTrackColor", "=", "\"\"" ] @@ -21235,7 +20585,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyInactiveTrackColor()" + "InactiveTrackColor" ] } ] @@ -21251,7 +20601,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyInactiveTrackOpacity()" + "InactiveTrackOpacity" ] }, { @@ -21288,9 +20638,9 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyTrackWidth()", - "Object.Behavior::PropertyTrackHeight()/2", - "Object.Behavior::PropertyTrackHeight()/2", + "TrackWidth", + "TrackHeight/2", + "TrackHeight/2", "270", "90", "", @@ -21321,10 +20671,10 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyThumbOffset()", + "ThumbOffset", "0", - "Object.Behavior::PropertyTrackWidth()", - "Object.Behavior::PropertyTrackHeight()" + "TrackWidth", + "TrackHeight" ] } ] @@ -21346,11 +20696,10 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyActiveTrackColor" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "ActiveTrackColor", "=", "\"\"" ] @@ -21363,7 +20712,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveThumbColor()" + "ActiveThumbColor" ] } ] @@ -21374,11 +20723,10 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyActiveTrackColor" + "value": "StringVariable" }, "parameters": [ - "Object", - "Behavior", + "ActiveTrackColor", "=", "\"\"" ] @@ -21391,7 +20739,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveTrackColor()" + "ActiveTrackColor" ] } ] @@ -21407,7 +20755,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyActiveTrackOpacity()" + "ActiveTrackOpacity" ] } ] @@ -21435,8 +20783,8 @@ "parameters": [ "Object", "0", - "Object.Behavior::PropertyTrackHeight()/2", - "Object.Behavior::PropertyTrackHeight()/2", + "TrackHeight/2", + "TrackHeight/2", "90", "270", "", @@ -21469,8 +20817,8 @@ "Object", "0", "0", - "Object.Behavior::PropertyThumbOffset()", - "Object.Behavior::PropertyTrackHeight()" + "ThumbOffset", + "TrackHeight" ] } ] @@ -21492,11 +20840,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyIsHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHovered", + "True", + "" ] } ], @@ -21508,7 +20857,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyHaloOpacityHover()" + "HaloOpacityHover" ] }, { @@ -21517,7 +20866,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveThumbColor()" + "ActiveThumbColor" ] }, { @@ -21536,9 +20885,9 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyThumbOffset()", - "Object.Behavior::PropertyTrackHeight()/2", - "Object.Behavior::PropertyHaloRadius()" + "ThumbOffset", + "TrackHeight/2", + "HaloRadius" ] } ] @@ -21560,11 +20909,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyIsPressed" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsPressed", + "True", + "" ] } ], @@ -21575,7 +20925,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveThumbColor()" + "ActiveThumbColor" ] }, { @@ -21585,7 +20935,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyHaloOpacityPressed()" + "HaloOpacityPressed" ] }, { @@ -21604,9 +20954,9 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyThumbOffset()", - "Object.Behavior::PropertyTrackHeight()/2", - "Object.Behavior::PropertyHaloRadius()" + "ThumbOffset", + "TrackHeight/2", + "HaloRadius" ] } ] @@ -21643,7 +20993,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyThumbShadowOpacity()" + "ThumbShadowOpacity" ] } ] @@ -21658,9 +21008,9 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyThumbOffset() + Object.Behavior::PropertyThumbShadowOffsetX()", - "Object.Behavior::PropertyTrackHeight() / 2 + Object.Behavior::ThumbShadowOffsetY()", - "Object.Behavior::PropertyThumbRadius()" + "ThumbOffset + ThumbShadowOffsetX", + "TrackHeight / 2 + Object.Behavior::ThumbShadowOffsetY()", + "ThumbRadius" ] } ] @@ -21685,7 +21035,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyThumbShadowOpacity()/2" + "ThumbShadowOpacity/2" ] } ] @@ -21700,9 +21050,9 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyThumbOffset() + Object.Behavior::PropertyThumbShadowOffsetX()/4", - "Object.Behavior::PropertyTrackHeight() / 2 + Object.Behavior::ThumbShadowOffsetY()/4", - "Object.Behavior::PropertyThumbRadius()" + "ThumbOffset + ThumbShadowOffsetX/4", + "TrackHeight / 2 + Object.Behavior::ThumbShadowOffsetY()/4", + "ThumbRadius" ] } ] @@ -21750,7 +21100,7 @@ "parameters": [ "Object", "=", - "Object.Behavior::PropertyThumbOpacity()" + "ThumbOpacity" ] } ] @@ -21760,11 +21110,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], @@ -21775,7 +21126,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveThumbColor()" + "ActiveThumbColor" ] }, { @@ -21784,7 +21135,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyActiveTrackColor()" + "ActiveTrackColor" ] }, { @@ -21805,11 +21156,12 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], @@ -21820,7 +21172,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyInactiveThumbColor()" + "InactiveThumbColor" ] }, { @@ -21829,7 +21181,7 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyInactiveTrackColor()" + "InactiveTrackColor" ] }, { @@ -21866,9 +21218,9 @@ }, "parameters": [ "Object", - "Object.Behavior::PropertyThumbOffset()", - "Object.Behavior::PropertyTrackHeight() / 2", - "Object.Behavior::PropertyThumbRadius()" + "ThumbOffset", + "TrackHeight / 2", + "ThumbRadius" ] } ] @@ -21958,23 +21310,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyTrackWidth" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TrackWidth", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22014,23 +21365,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyTrackHeight" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "TrackHeight", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22070,23 +21420,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbOpacity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbOpacity", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22126,23 +21475,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyInactiveTrackOpacity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "InactiveTrackOpacity", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22182,23 +21530,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyActiveTrackOpacity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ActiveTrackOpacity", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22238,23 +21585,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyHaloOpacityPressed" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HaloOpacityPressed", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22294,23 +21640,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyHaloOpacityHover" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HaloOpacityHover", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22350,23 +21695,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbShadowOffsetY" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOffsetY", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22406,23 +21750,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbShadowOffsetX" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOffsetX", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22462,23 +21805,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbShadowOpacity" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbShadowOpacity", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22518,23 +21860,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyThumbRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "ThumbRadius", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22574,23 +21915,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyHaloRadius" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "HaloRadius", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22630,23 +21970,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyActiveTrackColor" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "ActiveTrackColor", "=", - "GetArgumentAsString(\"Color\")" + "Color" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22686,23 +22025,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyInactiveTrackColor" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "InactiveTrackColor", "=", - "GetArgumentAsString(\"Color\")" + "Color" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22742,23 +22080,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyInactiveThumbColor" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "InactiveThumbColor", "=", - "GetArgumentAsString(\"Color\")" + "Color" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22798,23 +22135,22 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyActiveThumbColor" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "ActiveThumbColor", "=", - "GetArgumentAsString(\"Color\")" + "Color" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -22854,21 +22190,21 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyToggleChanged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", + "ToggleChanged", + "False", "" ] } @@ -22879,33 +22215,34 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyChecked" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "Checked", + "False", + "" ] }, { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyToggleChanged" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "ToggleChanged", + "True", + "" ] } ] @@ -22916,33 +22253,35 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] }, { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyToggleChanged" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "ToggleChanged", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyChecked" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "Checked", + "True", + "" ] } ] @@ -22977,22 +22316,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"State\"" + "State", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyDisabled" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "Disabled", + "False", + "" ] } ] @@ -23002,22 +22343,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"State\"" + "State", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyDisabled" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "Disabled", + "True", + "" ] } ] @@ -23028,12 +22371,12 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -23073,22 +22416,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"State\"" + "State", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyChecked" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "Checked", + "False", + "" ] } ] @@ -23098,22 +22443,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"State\"" + "State", + "True", + "" ] } ], "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyChecked" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "Checked", + "True", + "" ] } ] @@ -23124,12 +22471,12 @@ "actions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::SetPropertyNeedRedaw" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "NeedRedaw", + "True", + "" ] } ] @@ -23206,11 +22553,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyIsHovered" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "IsHovered", + "True", + "" ] } ], @@ -23258,7 +22606,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyTrackWidth()" + "TrackWidth" ] } ] @@ -23299,7 +22647,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyTrackHeight()" + "TrackHeight" ] } ] @@ -23340,7 +22688,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyThumbShadowOffsetY()" + "ThumbShadowOffsetY" ] } ] @@ -23381,7 +22729,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyThumbShadowOffsetX()" + "ThumbShadowOffsetX" ] } ] @@ -23422,7 +22770,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyThumbShadowOpacity()" + "ThumbShadowOpacity" ] } ] @@ -23463,7 +22811,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyThumbOpacity()" + "ThumbOpacity" ] } ] @@ -23504,7 +22852,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyActiveTrackOpacity()" + "ActiveTrackOpacity" ] } ] @@ -23545,7 +22893,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyInactiveTrackOpacity()" + "InactiveTrackOpacity" ] } ] @@ -23586,7 +22934,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyHaloOpacityPressed()" + "HaloOpacityPressed" ] } ] @@ -23627,7 +22975,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyHaloOpacityHover()" + "HaloOpacityHover" ] } ] @@ -23668,7 +23016,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyHaloRadius()" + "HaloRadius" ] } ] @@ -23709,7 +23057,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyActiveTrackColor()" + "ActiveTrackColor" ] } ] @@ -23750,7 +23098,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyInactiveTrackColor()" + "InactiveTrackColor" ] } ] @@ -23791,7 +23139,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyActiveThumbColor()" + "ActiveThumbColor" ] } ] @@ -23828,11 +23176,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyDisabled" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Disabled", + "True", + "" ] } ], @@ -23853,11 +23202,12 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyDisabled" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Disabled", + "True", + "" ] } ], @@ -23901,11 +23251,12 @@ "conditions": [ { "type": { - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], @@ -23926,11 +23277,12 @@ { "type": { "inverted": true, - "value": "ToggleSwitch::ToggleSwitch::PropertyChecked" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "Checked", + "True", + "" ] } ], @@ -23978,7 +23330,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyInactiveThumbColor()" + "InactiveThumbColor" ] } ] @@ -24166,13 +23518,13 @@ "category": "General", "extensionNamespace": "", "fullName": "Repeat every X seconds", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXJlcGVhdCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNywxN0g3VjE0TDMsMThMNywyMlYxOUgxOVYxM0gxN003LDdIMTdWMTBMMjEsNkwxNywyVjVINVYxMUg3VjdaIiAvPjwvc3ZnPg==", "name": "RepeatEveryXSeconds", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/repeat.svg", "shortDescription": "Trigger an event every X seconds.", - "version": "0.1.1", + "version": "0.2.1", "description": "Convenience conditions, actions and behaviors for timers to trigger a condition every X seconds.", "origin": { "identifier": "RepeatEveryXSeconds", @@ -24871,22 +24223,20 @@ "subInstructions": [ { "type": { - "value": "RepeatEveryXSeconds::RepeatTimer::PropertyLimit" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Limit", "=", "-1" ] }, { "type": { - "value": "RepeatEveryXSeconds::RepeatTimer::PropertyCounter" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Counter", "<", "Limit" ] @@ -24906,11 +24256,10 @@ }, { "type": { - "value": "RepeatEveryXSeconds::RepeatTimer::SetPropertyCounter" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Counter", "+", "1" ] @@ -25033,11 +24382,10 @@ "actions": [ { "type": { - "value": "RepeatEveryXSeconds::RepeatTimer::SetPropertyCounter" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Counter", "=", "0" ] @@ -27694,43 +27042,18 @@ "category": "Game mechanic", "extensionNamespace": "", "fullName": "Values of multiple objects", - "gdevelopVersion": "", - "helpPath": "https://victrisgames.itch.io/values-of-multiple-objects", + "gdevelopVersion": ">=5.5.222", + "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWRvdHMtaGV4YWdvbiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xNiAxMkMxNiAxMC45IDE2LjkgMTAgMTggMTBTMjAgMTAuOSAyMCAxMiAxOS4xIDE0IDE4IDE0IDE2IDEzLjEgMTYgMTJNMTAgMTJDMTAgMTAuOSAxMC45IDEwIDEyIDEwUzE0IDEwLjkgMTQgMTIgMTMuMSAxNCAxMiAxNCAxMCAxMy4xIDEwIDEyTTQgMTJDNCAxMC45IDQuOSAxMCA2IDEwUzggMTAuOSA4IDEyIDcuMSAxNCA2IDE0IDQgMTMuMSA0IDEyTTEzIDE4QzEzIDE2LjkgMTMuOSAxNiAxNSAxNlMxNyAxNi45IDE3IDE4IDE2LjEgMjAgMTUgMjAgMTMgMTkuMSAxMyAxOE03IDE4QzcgMTYuOSA3LjkgMTYgOSAxNlMxMSAxNi45IDExIDE4IDEwLjEgMjAgOSAyMCA3IDE5LjEgNyAxOE0xMyA2QzEzIDQuOSAxMy45IDQgMTUgNFMxNyA0LjkgMTcgNiAxNi4xIDggMTUgOCAxMyA3LjEgMTMgNk03IDZDNyA0LjkgNy45IDQgOSA0UzExIDQuOSAxMSA2IDEwLjEgOCA5IDggNyA3LjEgNyA2IiAvPjwvc3ZnPg==", "name": "ValuesOfMultipleObjects", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/dots-hexagon.svg", "shortDescription": "Values of picked object instances (including position, size, force and angle).", - "version": "1.4.0", + "version": "1.5.0", "description": [ "Provides values based on picked object instances. ", "Useful for camera tracking, flocking behaviors, and more.", "", - "Included expressions", - "", - "Center points:", - "- X center point (absolute) ", - "- Y center point (absolute)", - "- X center point (average) ", - "- Y center point (average)", - "", - "Position expressions (based on AABB of objects):", - "- Minimum X position", - "- Minimum Y position", - "- Maximum X position", - "- Maximum Y position", - "", - "Force expressions:", - "- Average horizontal force (X)", - "- Average vertical force (Y)", - "", - "Angle expressions:", - "- Average angle of rotation", - "", - "Size expressions:", - "- Width (min/max/average)", - "- Height (min/max/average)", - "", - "Z-order expressions: (min/max/average)" + "An example shows how to use the extension ([open the Itch.io page](https://victrisgames.itch.io/values-of-multiple-objects))." ], "origin": { "identifier": "ValuesOfMultipleObjects", @@ -27945,54 +27268,25 @@ "name": "MinZOrder", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Save the value of any instance" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MinZOrder", + "MinZOrder", "=", "Object.ZOrder()" ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and record the smallest value" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], + ], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [ { "type": { @@ -28001,37 +27295,44 @@ "parameters": [ "Object", "<", - "Variable(__ValuesOfObjects.MinZOrder)" + "MinZOrder" ] } ], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MinZOrder", + "MinZOrder", "=", "Object.ZOrder()" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.MinZOrder)" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "MinZOrder" + ] + } ] } + ], + "variables": [ + { + "name": "MinZOrder", + "type": "number", + "value": 0 + } ] } ], @@ -28054,54 +27355,25 @@ "name": "MaxZOrder", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Save the value of any instance" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MaxZOrder", + "MaxZOrder", "=", "Object.ZOrder()" ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and record the largest value" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], + ], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [ { "type": { @@ -28110,37 +27382,44 @@ "parameters": [ "Object", ">", - "Variable(__ValuesOfObjects.MaxZOrder)" + "MaxZOrder" ] } ], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MaxZOrder", + "MaxZOrder", "=", "Object.ZOrder()" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.MaxZOrder)" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "MaxZOrder" + ] + } ] } + ], + "variables": [ + { + "name": "MaxZOrder", + "type": "number", + "value": 0 + } ] } ], @@ -28163,161 +27442,71 @@ "name": "AverageZOrder", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ - { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - }, - { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.SubtotalZOrder", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their values" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], "actions": [], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.SubtotalZOrder", + "SubtotalZOrder", "+", "Object.ZOrder()" ] - }, + } + ] + }, + { + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 + }, + "comment": "Prevent dividing by 0" + }, + { + "type": "BuiltinCommonInstructions::Standard", + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "Object", + ">", + "0" + ] + } + ], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "SubtotalZOrder / PickedInstancesCount(Object)" ] } - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" ] } ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalZOrder)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalZOrder", + "type": "number", + "value": 0 } ] } @@ -28435,161 +27624,71 @@ "name": "AverageCenterOfObjectsX", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalX", + "+", + "Object.ZOrder()" + ] + } ] }, { - "type": { - "value": "ModVarScene" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "__ValuesOfObjects.SubtotalX", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their position value " - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ + "comment": "Prevent dividing by 0" + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.SubtotalX", - "+", - "Object.CenterX()" + "Object", + ">", + "0" ] - }, + } + ], + "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalX / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalX)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalX", + "type": "number", + "value": 0 } ] } @@ -28614,161 +27713,71 @@ "name": "AverageCenterOfObjectsY", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalY", + "+", + "Object.ZOrder()" + ] + } ] }, { - "type": { - "value": "ModVarScene" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "__ValuesOfObjects.SubtotalY", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their position value " - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ + "comment": "Prevent dividing by 0" + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.SubtotalY", - "+", - "Object.CenterY()" + "Object", + ">", + "0" ] - }, + } + ], + "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalY / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalY)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalY", + "type": "number", + "value": 0 } ] } @@ -28793,54 +27802,25 @@ "name": "MinHeight", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Save the value of any instance" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MinHeight", + "MinHeight", "=", "Object.Height()" ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and record the smallest value" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], + ], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [ { "type": { @@ -28849,37 +27829,44 @@ "parameters": [ "Object", "<", - "Variable(__ValuesOfObjects.MinHeight)" + "MinHeight" ] } ], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MinHeight", + "MinHeight", "=", "Object.Height()" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.MinHeight)" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "MinHeight" + ] + } ] } + ], + "variables": [ + { + "name": "MinHeight", + "type": "number", + "value": 0 + } ] } ], @@ -28903,54 +27890,25 @@ "name": "MaxHeight", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Save the value of any instance" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MaxHeight", + "MaxHeight", "=", "Object.Height()" ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and record the largest value" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], + ], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [ { "type": { @@ -28959,37 +27917,44 @@ "parameters": [ "Object", ">", - "Variable(__ValuesOfObjects.MaxHeight)" + "MaxHeight" ] } ], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MaxHeight", + "MaxHeight", "=", "Object.Height()" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.MaxHeight)" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "MaxHeight" + ] + } ] } + ], + "variables": [ + { + "name": "MaxHeight", + "type": "number", + "value": 0 + } ] } ], @@ -29013,161 +27978,71 @@ "name": "AverageHeight", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalHeight", + "+", + "Object.ZOrder()" + ] + } ] }, { - "type": { - "value": "ModVarScene" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "__ValuesOfObjects.SubtotalHeight", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their values" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ + "comment": "Prevent dividing by 0" + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.SubtotalHeight", - "+", - "Object.Height()" + "Object", + ">", + "0" ] - }, + } + ], + "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalHeight / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } - ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalHeight)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalHeight", + "type": "number", + "value": 0 } ] } @@ -29191,54 +28066,25 @@ "name": "MinWidth", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Save the value of any instance" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MinWidth", + "MinWidth", "=", "Object.Width()" ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and record the smallest value" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], + ], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [ { "type": { @@ -29247,37 +28093,44 @@ "parameters": [ "Object", "<", - "Variable(__ValuesOfObjects.MinWidth)" + "MinWidth" ] } ], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MinWidth", + "MinWidth", "=", "Object.Width()" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.MinWidth)" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "MinWidth" + ] + } ] } + ], + "variables": [ + { + "name": "MinWidth", + "type": "number", + "value": 0 + } ] } ], @@ -29301,54 +28154,25 @@ "name": "MaxWidth", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Save the value of any instance" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MaxWidth", + "MaxWidth", "=", "Object.Width()" ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and record the largest value" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], + ], "events": [ { - "type": "BuiltinCommonInstructions::Standard", + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", "conditions": [ { "type": { @@ -29357,37 +28181,44 @@ "parameters": [ "Object", ">", - "Variable(__ValuesOfObjects.MaxWidth)" + "MaxWidth" ] } ], "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetNumberVariable" }, "parameters": [ - "__ValuesOfObjects.MaxWidth", + "MaxWidth", "=", "Object.Width()" ] } ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + }, { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.MaxWidth)" + "type": "BuiltinCommonInstructions::Standard", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetReturnNumber" + }, + "parameters": [ + "MaxWidth" + ] + } ] } + ], + "variables": [ + { + "name": "MaxWidth", + "type": "number", + "value": 0 + } ] } ], @@ -29411,161 +28242,71 @@ "name": "AverageWidth", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalWidth", + "+", + "Object.ZOrder()" + ] + } ] }, { - "type": { - "value": "ModVarScene" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "__ValuesOfObjects.SubtotalWidth", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their values" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ + "comment": "Prevent dividing by 0" + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.SubtotalWidth", - "+", - "Object.Width()" + "Object", + ">", + "0" ] - }, + } + ], + "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalWidth / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalWidth)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalWidth", + "type": "number", + "value": 0 } ] } @@ -29589,161 +28330,71 @@ "name": "AverageForceX", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalHorizontalForce", + "+", + "Object.ZOrder()" + ] + } ] }, { - "type": { - "value": "ModVarScene" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "__ValuesOfObjects.SubtotalHorizontalForce", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their forces" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ + "comment": "Prevent dividing by 0" + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.SubtotalHorizontalForce", - "+", - "Object.ForceX()" + "Object", + ">", + "0" ] - }, + } + ], + "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalHorizontalForce / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } - ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalHorizontalForce)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalHorizontalForce", + "type": "number", + "value": 0 } ] } @@ -29767,161 +28418,71 @@ "name": "AverageForceY", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalVerticalForce", + "+", + "Object.ZOrder()" + ] + } ] }, { - "type": { - "value": "ModVarScene" + "type": "BuiltinCommonInstructions::Comment", + "color": { + "b": 109, + "g": 230, + "r": 255, + "textB": 0, + "textG": 0, + "textR": 0 }, - "parameters": [ - "__ValuesOfObjects.SubtotalVerticalForce", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate a sum of their forces" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ + "comment": "Prevent dividing by 0" + }, { "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ + "conditions": [ { "type": { - "value": "ModVarScene" + "value": "PickedInstancesCount" }, "parameters": [ - "__ValuesOfObjects.SubtotalVerticalForce", - "+", - "Object.ForceY()" + "Object", + ">", + "0" ] - }, + } + ], + "actions": [ { "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalVerticalForce / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } - ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalVerticalForce)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalVerticalForce", + "type": "number", + "value": 0 } ] } @@ -29945,62 +28506,28 @@ "name": "AverageAngle", "sentence": "", "events": [ - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Reset counter variables" - }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [], - "actions": [ + "actions": [], + "events": [ { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" + "type": "BuiltinCommonInstructions::ForEach", + "object": "Object", + "conditions": [], + "actions": [ + { + "type": { + "value": "SetNumberVariable" + }, + "parameters": [ + "SubtotalAngle", + "+", + "Object.ZOrder()" + ] + } ] }, - { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.SubtotalAngle", - "=", - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Cycle through units and calculate average angle" - }, - { - "type": "BuiltinCommonInstructions::ForEach", - "object": "Object", - "conditions": [], - "actions": [], - "events": [ { "type": "BuiltinCommonInstructions::Comment", "color": { @@ -30011,151 +28538,39 @@ "textG": 0, "textR": 0 }, - "comment": "Use negative values for angles between 180 and 360 " + "comment": "Prevent dividing by 0" }, { "type": "BuiltinCommonInstructions::Standard", "conditions": [ { "type": { - "value": "Angle" + "value": "PickedInstancesCount" }, "parameters": [ "Object", ">", - "180" - ] - } - ], - "actions": [ - { - "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.SubtotalAngle", - "+", - "Object.Angle()-360" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "Angle" - }, - "parameters": [ - "Object", - "<=", - "180" + "0" ] } ], "actions": [ { "type": { - "value": "ModVarScene" - }, - "parameters": [ - "__ValuesOfObjects.SubtotalAngle", - "+", - "Object.Angle()" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [], - "actions": [ - { - "type": { - "value": "ModVarScene" + "value": "SetReturnNumber" }, "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "+", - "1" + "SubtotalAngle / PickedInstancesCount(Object)" ] } ] } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Prevent dividing by 0" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "=", - "0" - ] - } - ], - "actions": [ - { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "0" - ] - } - ] - }, - { - "type": "BuiltinCommonInstructions::Comment", - "color": { - "b": 109, - "g": 230, - "r": 255, - "textB": 0, - "textG": 0, - "textR": 0 - }, - "comment": "Divide the the sum of positions by the number of objects to get the average position" - }, - { - "type": "BuiltinCommonInstructions::Standard", - "conditions": [ - { - "type": { - "value": "VarScene" - }, - "parameters": [ - "__ValuesOfObjects.ObjectsCounted", - "!=", - "0" - ] - } ], - "actions": [ + "variables": [ { - "type": { - "value": "SetReturnNumber" - }, - "parameters": [ - "Variable(__ValuesOfObjects.SubtotalAngle)/Variable(__ValuesOfObjects.ObjectsCounted)" - ] + "name": "SubtotalAngle", + "type": "number", + "value": 0 } ] } @@ -32968,13 +31383,13 @@ "category": "Visual effect", "extensionNamespace": "", "fullName": "Shake object", - "gdevelopVersion": "", - "helpPath": "https://victrisgames.itch.io/gdevelop-camera-shake-example", + "gdevelopVersion": ">=5.5.222", + "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWFycm93LWFsbCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMywxMUgxOEwxNi41LDkuNUwxNy45Miw4LjA4TDIxLjg0LDEyTDE3LjkyLDE1LjkyTDE2LjUsMTQuNUwxOCwxM0gxM1YxOEwxNC41LDE2LjVMMTUuOTIsMTcuOTJMMTIsMjEuODRMOC4wOCwxNy45Mkw5LjUsMTYuNUwxMSwxOFYxM0g2TDcuNSwxNC41TDYuMDgsMTUuOTJMMi4xNiwxMkw2LjA4LDguMDhMNy41LDkuNUw2LDExSDExVjZMOS41LDcuNUw4LjA4LDYuMDhMMTIsMi4xNkwxNS45Miw2LjA4TDE0LjUsNy41TDEzLDZWMTFaIiAvPjwvc3ZnPg==", "name": "ShakeObject", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/arrow-all.svg", "shortDescription": "Shake an object.", - "version": "1.5.6", + "version": "1.6.0", "description": [ "Shake an object (position, angle or scale).", "", @@ -33008,7 +31423,7 @@ "eventsFunctions": [], "eventsBasedBehaviors": [ { - "description": "Shake an object, using one or more ways to shake (position, angle).\nThis behavior can be used on any type of object.", + "description": "Shake objects with translation and rotation.", "fullName": "Shake object (position, angle)", "name": "ShakeObject_PositionAngle", "objectType": "", @@ -33080,7 +31495,7 @@ "Object", "__ShakeObject_Duration", "=", - "GetArgumentAsNumber(\"Duration\")" + "Duration" ] }, { @@ -33091,7 +31506,7 @@ "Object", "__ShakeObject_PowerX", "=", - "GetArgumentAsNumber(\"PowerX\")" + "PowerX" ] }, { @@ -33102,7 +31517,7 @@ "Object", "__ShakeObject_PowerY", "=", - "GetArgumentAsNumber(\"PowerY\")" + "PowerY" ] }, { @@ -33113,7 +31528,7 @@ "Object", "__ShakeObject_PowerAngle", "=", - "GetArgumentAsNumber(\"PowerAngle\")" + "PowerAngle" ] }, { @@ -33124,7 +31539,7 @@ "Object", "__ShakeObject_TimeBetweenShakes", "=", - "GetArgumentAsNumber(\"TimeBetweenShakes\")" + "TimeBetweenShakes" ] } ] @@ -33162,10 +31577,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShakeForever\"" + "ShakeForever", + "True", + "" ] } ], @@ -34994,10 +33411,10 @@ "sharedPropertyDescriptors": [] }, { - "description": "Shake an object, using one or more ways to shake (position, angle, scale)\nThis behavior can only be used on sprite objects.", + "description": "Shake objects with translation, rotation and scale.", "fullName": "Shake object (position, angle, scale)", "name": "ShakeObject_PositionAngleScale", - "objectType": "Sprite", + "objectType": "", "eventsFunctions": [ { "description": "Shake an object, using one or more ways to shake (position, angle, scale). Make sure to \"Stop shaking\" before starting a new shake if it uses different parameters.", @@ -35066,7 +33483,7 @@ "Object", "__ShakeObject_Duration", "=", - "GetArgumentAsNumber(\"Duration\")" + "Duration" ] }, { @@ -35077,7 +33494,7 @@ "Object", "__ShakeObject_PowerX", "=", - "GetArgumentAsNumber(\"PowerX\")" + "PowerX" ] }, { @@ -35088,7 +33505,7 @@ "Object", "__ShakeObject_PowerY", "=", - "GetArgumentAsNumber(\"PowerY\")" + "PowerY" ] }, { @@ -35099,7 +33516,7 @@ "Object", "__ShakeObject_PowerAngle", "=", - "GetArgumentAsNumber(\"PowerAngle\")" + "PowerAngle" ] }, { @@ -35110,7 +33527,7 @@ "Object", "__ShakeObject_PowerScale", "=", - "GetArgumentAsNumber(\"PowerScale\")" + "PowerScale" ] }, { @@ -35121,7 +33538,7 @@ "Object", "__ShakeObject_TimeBetweenShakes", "=", - "GetArgumentAsNumber(\"TimeBetweenShakes\")" + "TimeBetweenShakes" ] } ] @@ -35159,10 +33576,12 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"ShakeForever\"" + "ShakeForever", + "True", + "" ] } ], @@ -35368,7 +33787,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -35710,10 +34128,11 @@ "actions": [ { "type": { - "value": "ChangeScale" + "value": "ScalableCapability::ScalableBehavior::SetValue" }, "parameters": [ "Object", + "Scale", "-", "Object.Variable(__ShakeObject_ScaleTravelled)" ] @@ -36618,10 +35037,11 @@ "actions": [ { "type": { - "value": "ChangeScale" + "value": "ScalableCapability::ScalableBehavior::SetValue" }, "parameters": [ "Object", + "Scale", "+", "round(1024 * Object.Variable(__ShakeObject_DisplacementScale) * Object.Variable(__ShakeObject_PercentTimeElapsedThisFrame)) / 1024" ] @@ -36899,10 +35319,11 @@ "actions": [ { "type": { - "value": "ChangeScale" + "value": "ScalableCapability::ScalableBehavior::SetValue" }, "parameters": [ "Object", + "Scale", "-", "round(1024 * Object.Variable(__ShakeObject_DisplacementScale) * Object.Variable(__ShakeObject_PercentTimeElapsedThisFrame)) / 1024" ] @@ -37159,10 +35580,11 @@ "actions": [ { "type": { - "value": "ChangeScale" + "value": "ScalableCapability::ScalableBehavior::SetValue" }, "parameters": [ "Object", + "Scale", "-", "Object.Variable(__ShakeObject_ScaleTravelled)" ] @@ -37247,7 +35669,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -37299,7 +35720,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -37349,7 +35769,6 @@ { "description": "Object", "name": "Object", - "supplementaryInformation": "Sprite", "type": "object" }, { @@ -37362,7 +35781,17 @@ "objectGroups": [] } ], - "propertyDescriptors": [], + "propertyDescriptors": [ + { + "value": "", + "type": "Behavior", + "label": "Scalable capability", + "extraInformation": [ + "ScalableCapability::ScalableBehavior" + ], + "name": "Scale" + } + ], "sharedPropertyDescriptors": [] } ], @@ -37373,13 +35802,13 @@ "category": "Movement", "extensionNamespace": "", "fullName": "Draggable (for physics objects)", - "gdevelopVersion": "", + "gdevelopVersion": ">=5.5.222", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBkPSJNMjcsMTFjMC0yLTIuMi0zLjYtNS42LTQuNEMyMC42LDMuMiwxOSwxLDE3LDFzLTMuNiwyLjItNC40LDUuNkM5LjIsNy40LDcsOSw3LDExYzAsMiwyLjIsMy42LDUuNiw0LjQNCgljMC4zLDEuMiwwLjYsMi4yLDEuMSwzLjFjMC4zLDAuNSwwLjksMC43LDEuNCwwLjRjMC41LTAuMywwLjctMC45LDAuNC0xLjRjLTAuMy0wLjUtMC41LTEuMS0wLjctMS44YzAuNywwLjEsMS41LDAuMSwyLjIsMC4xDQoJYzAuOCwwLDEuNSwwLDIuMi0wLjFjLTAuMywxLTAuNywxLjktMS4xLDIuNWMtMC4zLDAuNC0wLjIsMS4xLDAuMiwxLjRjMC4yLDAuMSwwLjQsMC4yLDAuNiwwLjJjMC4zLDAsMC42LTAuMSwwLjgtMC40DQoJYzAuNy0xLDEuMy0yLjQsMS43LTRDMjQuOCwxNC42LDI3LDEzLDI3LDExeiBNMTcsM2MwLjcsMCwxLjYsMS4yLDIuMiwzLjNjLTAuNy0wLjEtMS41LTAuMS0yLjItMC4xcy0xLjUsMC0yLjIsMC4xDQoJQzE1LjQsNC4yLDE2LjMsMywxNywzeiBNOSwxMWMwLTAuNywxLjItMS42LDMuMy0yLjJjLTAuMSwwLjctMC4xLDEuNS0wLjEsMi4yYzAsMC44LDAsMS41LDAuMSwyLjJDMTAuMiwxMi42LDksMTEuNyw5LDExeiBNMTcsMTMuOQ0KCWMtMSwwLTEuOS0wLjEtMi43LTAuMmMtMC4xLTAuOC0wLjItMS43LTAuMi0yLjdjMC0xLDAuMS0xLjksMC4yLTIuN0MxNS4xLDguMiwxNiw4LjEsMTcsOC4xczEuOSwwLjEsMi43LDAuMg0KCWMwLjEsMC44LDAuMiwxLjcsMC4yLDIuN2MwLDAuOS0wLjEsMS44LTAuMiwyLjdDMTguOSwxMy44LDE4LDEzLjksMTcsMTMuOXogTTIxLjcsMTMuMmMwLjEtMC43LDAuMS0xLjUsMC4xLTIuMg0KCWMwLTAuOCwwLTEuNS0wLjEtMi4yQzIzLjgsOS40LDI1LDEwLjMsMjUsMTFDMjUsMTEuNywyMy44LDEyLjYsMjEuNywxMy4yeiIvPg0KPHBhdGggZD0iTTI5LjksMTcuNUMyOS43LDE3LjIsMjkuNCwxNywyOSwxN2MtMi4yLDAtNC4zLDEtNS42LDIuOEwyMi41LDIxYy0xLjEsMS4zLTIuOCwyLTQuNSwyaC0zYy0wLjYsMC0xLTAuNC0xLTFzMC40LTEsMS0xaDEuOQ0KCWMxLjYsMCwzLjEtMS4zLDMuMS0yLjljMCwwLDAtMC4xLDAtMC4xYzAtMC41LTAuNS0xLTEtMWwtNi4xLDBjLTMuNiwwLTYuNSwxLjYtOC4xLDQuMmwtMi43LDQuMmMtMC4yLDAuMy0wLjIsMC43LDAsMWwzLDUNCgljMC4xLDAuMiwwLjQsMC40LDAuNiwwLjVjMC4xLDAsMC4xLDAsMC4yLDBjMC4yLDAsMC40LTAuMSwwLjYtMC4yYzMuOC0yLjUsOC4yLTMuOCwxMi43LTMuOGMzLjMsMCw2LjMtMS44LDcuOS00LjdsMi43LTQuOA0KCUMzMCwxOC4yLDMwLDE3LjgsMjkuOSwxNy41eiIvPg0KPC9zdmc+DQo=", "name": "DraggablePhysics", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Glyphster Pack/Master/SVG/Virtual Reality/Virtual Reality_hand_vr_ar_360.svg", "shortDescription": "Drag a physics object with the mouse (or touch).", - "version": "1.2.0", + "version": "1.3.0", "description": [ "Enables players to click and drag on physics objects to move them. The object retains velocity when the click is released, allowing players to fling objects across the screen.", "", @@ -37489,11 +35918,12 @@ "conditions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::PropertyEnableAutomaticDragging" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "EnableAutomaticDragging", + "True", + "" ] } ], @@ -37508,7 +35938,7 @@ }, "parameters": [ "", - "Object.Behavior::PropertyMouseButton()" + "MouseButton" ] }, { @@ -37556,19 +35986,18 @@ "PhysicsBehavior", "MouseX(Object.Layer(),0)", "MouseY(Object.Layer(),0)", - "Object.Behavior::PropertyMaxForce()", - "Object.Behavior::PropertyFrequency()", - "Object.Behavior::PropertyDamping()", + "MaxForce", + "Frequency", + "Damping", "__DraggablePhysics.MouseJointID" ] }, { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyMouseJointID" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MouseJointID", "=", "Variable(__DraggablePhysics.MouseJointID)" ] @@ -37596,11 +36025,12 @@ "conditions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::PropertyEnableAutomaticDragging" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "EnableAutomaticDragging", + "True", + "" ] }, { @@ -37609,7 +36039,7 @@ }, "parameters": [ "", - "Object.Behavior::PropertyMouseButton()" + "MouseButton" ] } ], @@ -37660,7 +36090,7 @@ "parameters": [ "Object", "PhysicsBehavior", - "Object.Behavior::PropertyMouseJointID()", + "MouseJointID", "MouseX(Object.Layer(),0)", "MouseY(Object.Layer(),0)" ] @@ -37718,19 +36148,18 @@ "PhysicsBehavior", "MouseX(Object.Layer(),0)", "MouseY(Object.Layer(),0)", - "Object.Behavior::PropertyMaxForce()", - "Object.Behavior::PropertyFrequency()", - "Object.Behavior::PropertyDamping()", + "MaxForce", + "Frequency", + "Damping", "__DraggablePhysics.MouseJointID" ] }, { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyMouseJointID" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MouseJointID", "=", "Variable(__DraggablePhysics.MouseJointID)" ] @@ -37782,16 +36211,15 @@ "parameters": [ "Object", "PhysicsBehavior", - "Object.Behavior::PropertyMouseJointID()" + "MouseJointID" ] }, { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyMouseJointID" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MouseJointID", "=", "0" ] @@ -37826,11 +36254,10 @@ "conditions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::PropertyMouseJointID" + "value": "NumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MouseJointID", "!=", "0" ] @@ -37918,7 +36345,7 @@ "value": "SetReturnString" }, "parameters": [ - "Object.Behavior::PropertyMouseButton()" + "MouseButton" ] } ] @@ -37956,13 +36383,12 @@ "actions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyMouseButton" + "value": "SetStringVariable" }, "parameters": [ - "Object", - "Behavior", + "MouseButton", "=", - "GetArgumentAsString(\"Value\")" + "Value" ] } ] @@ -38000,7 +36426,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyMaxForce()" + "MaxForce" ] } ] @@ -38037,13 +36463,12 @@ "actions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyMaxForce" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "MaxForce", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -38081,7 +36506,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyFrequency()" + "Frequency" ] } ] @@ -38118,13 +36543,12 @@ "actions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyFrequency" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Frequency", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -38162,7 +36586,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Object.Behavior::PropertyDamping()" + "Damping" ] } ] @@ -38199,13 +36623,12 @@ "actions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyDamping" + "value": "SetNumberVariable" }, "parameters": [ - "Object", - "Behavior", + "Damping", "=", - "GetArgumentAsNumber(\"Value\")" + "Value" ] } ] @@ -38239,11 +36662,12 @@ "conditions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::PropertyEnableAutomaticDragging" + "value": "BooleanVariable" }, "parameters": [ - "Object", - "Behavior" + "EnableAutomaticDragging", + "True", + "" ] } ], @@ -38288,22 +36712,24 @@ { "type": { "inverted": true, - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyEnableAutomaticDragging" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "no" + "EnableAutomaticDragging", + "False", + "" ] } ] @@ -38313,22 +36739,24 @@ "conditions": [ { "type": { - "value": "GetArgumentAsBoolean" + "value": "BooleanVariable" }, "parameters": [ - "\"Value\"" + "Value", + "True", + "" ] } ], "actions": [ { "type": { - "value": "DraggablePhysics::DraggablePhysics::SetPropertyEnableAutomaticDragging" + "value": "SetBooleanVariable" }, "parameters": [ - "Object", - "Behavior", - "yes" + "EnableAutomaticDragging", + "True", + "" ] } ]