Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
160 changes: 125 additions & 35 deletions extensions/reviewed/PanelSpriteButton.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"author": "",
"category": "User interface",
"extensionNamespace": "",
"fullName": "Panel sprite button",
"fullName": "Labeled button",
"gdevelopVersion": ">=5.5.230",
"helpPath": "/objects/button",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPHBhdGggY2xhc3M9InN0MCIgZD0iTTI5LDIzSDNjLTEuMSwwLTItMC45LTItMlYxMWMwLTEuMSwwLjktMiwyLTJoMjZjMS4xLDAsMiwwLjksMiwydjEwQzMxLDIyLjEsMzAuMSwyMywyOSwyM3oiLz4NCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0xMywxOUwxMywxOWMtMS4xLDAtMi0wLjktMi0ydi0yYzAtMS4xLDAuOS0yLDItMmgwYzEuMSwwLDIsMC45LDIsMnYyQzE1LDE4LjEsMTQuMSwxOSwxMywxOXoiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIxOCIgeTE9IjEzIiB4Mj0iMTgiIHkyPSIxOSIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjIxIiB5MT0iMTMiIHgyPSIxOCIgeTI9IjE3Ii8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMjEiIHkxPSIxOSIgeDI9IjE5IiB5Mj0iMTYiLz4NCjwvc3ZnPg0K",
"name": "PanelSpriteButton",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Interface Elements/Interface Elements_interface_ui_button_ok_cta_clock_tap.svg",
"shortDescription": "A button that can be customized.",
"version": "2.1.1",
"shortDescription": "A button with a label.",
"version": "2.1.2",
"description": [
"A button that can be used for menus and most labelled buttons of a game. The button can be customized with a background for each state and a label. It handles user interactions and a simple condition can be used to check if it is clicked.",
"",
Expand Down Expand Up @@ -1172,12 +1172,27 @@
"value": "Idle",
"type": "Choice",
"label": "State",
"extraInformation": [
"Idle",
"Hovered",
"PressedInside",
"PressedOutside",
"Validated"
"choices": [
{
"label": "Idle",
"value": "Idle"
},
{
"label": "Hovered",
"value": "Hovered"
},
{
"label": "PressedInside",
"value": "PressedInside"
},
{
"label": "PressedOutside",
"value": "PressedOutside"
},
{
"label": "Validated",
"value": "Validated"
}
],
"hidden": true,
"name": "State"
Expand Down Expand Up @@ -1211,7 +1226,29 @@
"name": "Index"
}
],
"sharedPropertyDescriptors": []
"propertiesFolderStructure": {
"folderName": "__ROOT",
"children": [
{
"propertyName": "ShouldCheckHovering"
},
{
"propertyName": "State"
},
{
"propertyName": "TouchId"
},
{
"propertyName": "TouchIsInside"
},
{
"propertyName": "MouseIsInside"
},
{
"propertyName": "Index"
}
]
}
}
],
"eventsBasedObjects": [
Expand All @@ -1224,8 +1261,8 @@
"areaMinZ": 0,
"assetStoreTag": "menu buttons",
"defaultName": "Button",
"description": "A button that can be customized.",
"fullName": "Button (panel sprite)",
"description": "Button with a label.",
"fullName": "Labeled button",
"isInnerAreaFollowingParentSize": true,
"isUsingLegacyInstancesRenderer": false,
"name": "PanelSpriteButton",
Expand Down Expand Up @@ -1464,6 +1501,7 @@
"ambientLightColorB": 200,
"ambientLightColorG": 200,
"ambientLightColorR": 200,
"camera2DPlaneMaxDrawingDistance": 5000,
"camera3DFarPlaneDistance": 10000,
"camera3DFieldOfView": 45,
"camera3DNearPlaneDistance": 3,
Expand Down Expand Up @@ -1523,6 +1561,7 @@
"initialVariables": []
}
],
"editionSettings": {},
"eventsFunctions": [
{
"fullName": "",
Expand Down Expand Up @@ -1963,26 +2002,45 @@
"parameters": [
"Pressed"
]
},
{
"type": {
"value": "Tween::RemoveTween"
},
"parameters": [
"Hovered",
"Tween",
"\"Fadeout\""
]
},
}
],
"events": [
{
"type": {
"value": "OpacityCapability::OpacityBehavior::SetValue"
},
"parameters": [
"Hovered",
"Opacity",
"=",
"255"
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "NumberVariable"
},
"parameters": [
"HoveredFadeOutDuration",
">",
"0"
]
}
],
"actions": [
{
"type": {
"value": "Tween::RemoveTween"
},
"parameters": [
"Hovered",
"Tween",
"\"Fadeout\""
]
},
{
"type": {
"value": "OpacityCapability::OpacityBehavior::SetValue"
},
"parameters": [
"Hovered",
"Opacity",
"=",
"255"
]
}
]
}
]
Expand Down Expand Up @@ -2673,21 +2731,53 @@
"type": "Number",
"unit": "Pixel",
"label": "",
"group": "States",
"hidden": true,
"name": "LabelOffset"
},
{
"value": "",
"type": "Choice",
"label": "",
"extraInformation": [
"Label.Text=LabelText",
"BitmapLabel.Text=LabelText"
"choices": [
{
"label": "Label.Text=LabelText",
"value": "Label.Text=LabelText"
},
{
"label": "BitmapLabel.Text=LabelText",
"value": "BitmapLabel.Text=LabelText"
}
],
"hidden": true,
"name": "_PropertyMapping"
}
]
],
"propertiesFolderStructure": {
"folderName": "__ROOT",
"children": [
{
"propertyName": "LabelText"
},
{
"propertyName": "_PropertyMapping"
},
{
"folderName": "States",
"children": [
{
"propertyName": "HoveredFadeOutDuration"
},
{
"propertyName": "PressedLabelOffsetY"
},
{
"propertyName": "LabelOffset"
}
]
}
]
}
}
]
}
5 changes: 4 additions & 1 deletion scripts/lib/ExtensionsValidatorExceptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,10 @@ const extensionsAllowedProperties = {
javaScriptObjectAllowedProperties: [],
},
PlaygamaBridge: {
gdjsAllowedProperties: ['_playgamaBridgeExtension'],
gdjsAllowedProperties: [
'_playgamaBridgeExtension',
'registerRuntimeScenePostEventsCallback',
],
gdjsEvtToolsAllowedProperties: [],
runtimeSceneAllowedProperties: [],
javaScriptObjectAllowedProperties: [],
Expand Down