From 80b3851fc8888ab91fbcc0081a5c82402f927149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Mon, 1 Jun 2026 13:32:33 +0200 Subject: [PATCH] [Clicker starter] Fix unused variant button with broken resources --- .../starting-clicker/starting-clicker.json | 1544 ++++++++++++----- 1 file changed, 1145 insertions(+), 399 deletions(-) diff --git a/examples/starting-clicker/starting-clicker.json b/examples/starting-clicker/starting-clicker.json index 804fd0663..f3de56b0f 100644 --- a/examples/starting-clicker/starting-clicker.json +++ b/examples/starting-clicker/starting-clicker.json @@ -1,9 +1,9 @@ { "firstLayout": "", "gdVersion": { - "build": 245, + "build": 269, "major": 5, - "minor": 5, + "minor": 6, "revision": 0 }, "properties": { @@ -18,6 +18,7 @@ "scaleMode": "linear", "sizeOnStartupMode": "", "templateSlug": "starting-platformer", + "useDeprecatedZeroAsDefaultStringVariable": true, "version": "1.0.0", "name": "starting-clicker", "description": "", @@ -178,8 +179,7 @@ "preloadInCache": false, "userAdded": false } - ], - "resourceFolders": [] + ] }, "objects": [], "objectsFolderStructure": { @@ -203,14 +203,17 @@ "gridType": "rectangular", "gridWidth": 32, "gridHeight": 32, + "gridDepth": 32, "gridOffsetX": 0, "gridOffsetY": 0, + "gridOffsetZ": 0, "gridColor": 10401023, "gridAlpha": 0.8, "snap": false, "zoomFactor": 0.4950840073748959, "windowMask": false, - "selectedLayer": "" + "selectedLayer": "", + "gameEditorMode": "instances-editor" }, "objectsGroups": [], "variables": [], @@ -435,26 +438,31 @@ { "assetStoreId": "d00645a899e762e085fa6fdf2625701baea9cc10ee903a64ca7d371e5bbb8dca", "name": "PurchasePassive_Button1", + "persistentUuid": "e260b6b0-5d6d-4158-aa21-0b04b896ae23", "type": "PanelSpriteButton::PanelSpriteButton", "variant": "PurchasePassive", "variables": [ { "name": "Earning", + "persistentUuid": "e9f1e9b5-cb60-4fa6-aa4d-1c7e37368087", "type": "number", "value": 10 }, { "name": "Progress", + "persistentUuid": "51a115a0-f5c9-4d39-99d6-bcd4f29191f1", "type": "number", "value": 0 }, { "name": "Level", + "persistentUuid": "e12849dd-fcc7-4a4c-9666-50ede0b1ed79", "type": "number", "value": 0 }, { "name": "PurchaseCost", + "persistentUuid": "eb507e8c-ac2c-45b4-a4be-5b492387cc4b", "type": "number", "value": 20 } @@ -714,6 +722,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -731,6 +740,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -801,6 +811,7 @@ { "author": "", "category": "User interface", + "dimension": "", "extensionNamespace": "", "fullName": "Button states and effects", "gdevelopVersion": ">=5.5.222", @@ -841,12 +852,18 @@ "globalVariables": [], "sceneVariables": [], "eventsFunctions": [], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT" + }, "eventsBasedBehaviors": [ { "description": "Use objects as buttons.", "fullName": "Button states", + "helpPath": "", + "iconUrl": "", "name": "ButtonFSM", "objectType": "", + "previewIconUrl": "", "eventsFunctions": [ { "fullName": "", @@ -1920,6 +1937,41 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "doStepPreEvents" + }, + { + "functionName": "onDeActivate" + }, + { + "functionName": "ResetState" + }, + { + "functionName": "IsIdle" + }, + { + "functionName": "IsClicked" + }, + { + "functionName": "IsHovered" + }, + { + "functionName": "IsFocused" + }, + { + "functionName": "IsPressed" + }, + { + "functionName": "IsPressedOutside" + }, + { + "functionName": "TouchId" + } + ] + }, "propertyDescriptors": [ { "value": "true", @@ -1987,13 +2039,38 @@ "name": "Index" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "ShouldCheckHovering" + }, + { + "propertyName": "State" + }, + { + "propertyName": "TouchId" + }, + { + "propertyName": "TouchIsInside" + }, + { + "propertyName": "MouseIsInside" + }, + { + "propertyName": "Index" + } + ] + } }, { "description": "Enable effects on buttons based on their state.", "fullName": "Button object effects", + "helpPath": "", + "iconUrl": "", "name": "ButtonObjectEffects", "objectType": "", + "previewIconUrl": "", "eventsFunctions": [ { "fullName": "", @@ -2288,6 +2365,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "IdleEffect", + "group": "Button object effects configuration", "name": "SetIdleEffect", "sentence": "", "events": [ @@ -2368,6 +2446,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FocusedEffect", + "group": "Button object effects configuration", "name": "SetFocusedEffect", "sentence": "", "events": [ @@ -2448,6 +2527,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PressedEffect", + "group": "Button object effects configuration", "name": "SetPressedEffect", "sentence": "", "events": [ @@ -2484,6 +2564,40 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "doStepPreEvents" + }, + { + "folderName": "Button object effects configuration", + "children": [ + { + "functionName": "IdleEffect" + }, + { + "functionName": "SetIdleEffect" + }, + { + "functionName": "FocusedEffect" + }, + { + "functionName": "SetFocusedEffect" + }, + { + "functionName": "PressedEffect" + }, + { + "functionName": "SetPressedEffect" + } + ] + } + ] + }, "propertyDescriptors": [ { "value": "", @@ -2528,13 +2642,40 @@ "name": "PressedEffect" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "ButtonFSM" + }, + { + "propertyName": "Effect" + }, + { + "folderName": "Effects", + "children": [ + { + "propertyName": "IdleEffect" + }, + { + "propertyName": "FocusedEffect" + }, + { + "propertyName": "PressedEffect" + } + ] + } + ] + } }, { "description": "Change the animation of buttons according to their state.", "fullName": "Button animation", + "helpPath": "", + "iconUrl": "", "name": "ButtonAnimationName", "objectType": "", + "previewIconUrl": "", "eventsFunctions": [ { "fullName": "", @@ -2738,6 +2879,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "IdleAnimationName", + "group": "Button animation configuration", "name": "SetIdleAnimationName", "sentence": "", "events": [ @@ -2818,6 +2960,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FocusedAnimationName", + "group": "Button animation configuration", "name": "SetFocusedAnimationName", "sentence": "", "events": [ @@ -2898,6 +3041,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PressedAnimationName", + "group": "Button animation configuration", "name": "SetPressedAnimationName", "sentence": "", "events": [ @@ -2934,6 +3078,40 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "doStepPreEvents" + }, + { + "folderName": "Button animation configuration", + "children": [ + { + "functionName": "IdleAnimationName" + }, + { + "functionName": "SetIdleAnimationName" + }, + { + "functionName": "FocusedAnimationName" + }, + { + "functionName": "SetFocusedAnimationName" + }, + { + "functionName": "PressedAnimationName" + }, + { + "functionName": "SetPressedAnimationName" + } + ] + } + ] + }, "propertyDescriptors": [ { "value": "", @@ -2978,13 +3156,40 @@ "name": "PressedAnimationName" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "Animation" + }, + { + "propertyName": "ButtonFSM" + }, + { + "folderName": "Animation", + "children": [ + { + "propertyName": "IdleAnimationName" + }, + { + "propertyName": "FocusedAnimationName" + }, + { + "propertyName": "PressedAnimationName" + } + ] + } + ] + } }, { "description": "Smoothly change an effect on buttons according to their state.", "fullName": "Button object effect tween", + "helpPath": "", + "iconUrl": "", "name": "ButtonObjectEffectTween", "objectType": "", + "previewIconUrl": "", "eventsFunctions": [ { "fullName": "", @@ -3820,6 +4025,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "IdleValue", + "group": "Button effect tween configuration", "name": "SetIdleValue", "sentence": "", "events": [ @@ -3900,6 +4106,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FocusedValue", + "group": "Button effect tween configuration", "name": "SetFocusedValue", "sentence": "", "events": [ @@ -3980,6 +4187,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PressedValue", + "group": "Button effect tween configuration", "name": "SetPressedValue", "sentence": "", "events": [ @@ -4061,6 +4269,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeInEasing", + "group": "Button effect tween configuration", "name": "SetFadeInEasing", "sentence": "", "events": [ @@ -4142,6 +4351,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeOutEasing", + "group": "Button effect tween configuration", "name": "SetFadeOutEasing", "sentence": "", "events": [ @@ -4222,6 +4432,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeInDuration", + "group": "Button effect tween configuration", "name": "SetFadeInDuration", "sentence": "", "events": [ @@ -4302,6 +4513,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeOutDuration", + "group": "Button effect tween configuration", "name": "SetFadeOutDuration", "sentence": "", "events": [ @@ -4338,6 +4550,85 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "doStepPreEvents" + }, + { + "functionName": "TimeDelta" + }, + { + "functionName": "FadeIn" + }, + { + "functionName": "FadeOut" + }, + { + "functionName": "PlayTween" + }, + { + "folderName": "Button effect tween configuration", + "children": [ + { + "functionName": "EffectName" + }, + { + "functionName": "EffectProperty" + }, + { + "functionName": "SetEffectProperty" + }, + { + "functionName": "IdleValue" + }, + { + "functionName": "SetIdleValue" + }, + { + "functionName": "FocusedValue" + }, + { + "functionName": "SetFocusedValue" + }, + { + "functionName": "PressedValue" + }, + { + "functionName": "SetPressedValue" + }, + { + "functionName": "FadeInEasing" + }, + { + "functionName": "SetFadeInEasing" + }, + { + "functionName": "FadeOutEasing" + }, + { + "functionName": "SetFadeOutEasing" + }, + { + "functionName": "FadeInDuration" + }, + { + "functionName": "SetFadeInDuration" + }, + { + "functionName": "FadeOutDuration" + }, + { + "functionName": "SetFadeOutDuration" + } + ] + } + ] + }, "propertyDescriptors": [ { "value": "", @@ -4765,13 +5056,86 @@ "name": "EffectValue" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "ButtonFSM" + }, + { + "propertyName": "Effect" + }, + { + "folderName": "Effect", + "children": [ + { + "propertyName": "EffectName" + }, + { + "propertyName": "EffectProperty" + } + ] + }, + { + "folderName": "Value", + "children": [ + { + "propertyName": "IdleValue" + }, + { + "propertyName": "FocusedValue" + }, + { + "propertyName": "PressedValue" + } + ] + }, + { + "folderName": "Speed", + "children": [ + { + "propertyName": "FadeInEasing" + }, + { + "propertyName": "FadeOutEasing" + }, + { + "propertyName": "FadeInDuration" + }, + { + "propertyName": "FadeOutDuration" + } + ] + }, + { + "propertyName": "PreviousState" + }, + { + "propertyName": "TweenInitialValue" + }, + { + "propertyName": "TweenTargetedValue" + }, + { + "propertyName": "TweenTime" + }, + { + "propertyName": "TweenState" + }, + { + "propertyName": "EffectValue" + } + ] + } }, { "description": "Smoothly resize buttons according to their state.", "fullName": "Button scale tween", + "helpPath": "", + "iconUrl": "", "name": "ButtonScaleTween", "objectType": "", + "previewIconUrl": "", "eventsFunctions": [ { "fullName": "", @@ -5181,6 +5545,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "IdleScale", + "group": "Button scale tween configuration", "name": "SetIdleScale", "sentence": "", "events": [ @@ -5261,6 +5626,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FocusedScale", + "group": "Button scale tween configuration", "name": "SetFocusedScale", "sentence": "", "events": [ @@ -5341,6 +5707,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PressedScale", + "group": "Button scale tween configuration", "name": "SetPressedScale", "sentence": "", "events": [ @@ -5421,6 +5788,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeInDuration", + "group": "Button scale tween configuration", "name": "SetFadeInDuration", "sentence": "", "events": [ @@ -5501,6 +5869,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeOutDuration", + "group": "Button scale tween configuration", "name": "SetFadeOutDuration", "sentence": "", "events": [ @@ -5582,6 +5951,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeInEasing", + "group": "Button scale tween configuration", "name": "SetFadeInEasing", "sentence": "", "events": [ @@ -5663,6 +6033,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeOutEasing", + "group": "Button scale tween configuration", "name": "SetFadeOutEasing", "sentence": "", "events": [ @@ -5699,12 +6070,76 @@ "objectGroups": [] } ], - "propertyDescriptors": [ - { - "value": "", - "type": "Behavior", - "label": "Scalable capability", - "extraInformation": [ + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "doStepPreEvents" + }, + { + "functionName": "FadeIn" + }, + { + "functionName": "FadeOut" + }, + { + "folderName": "Button scale tween configuration", + "children": [ + { + "functionName": "IdleScale" + }, + { + "functionName": "SetIdleScale" + }, + { + "functionName": "FocusedScale" + }, + { + "functionName": "SetFocusedScale" + }, + { + "functionName": "PressedScale" + }, + { + "functionName": "SetPressedScale" + }, + { + "functionName": "FadeInDuration" + }, + { + "functionName": "SetFadeInDuration" + }, + { + "functionName": "FadeOutDuration" + }, + { + "functionName": "SetFadeOutDuration" + }, + { + "functionName": "FadeInEasing" + }, + { + "functionName": "SetFadeInEasing" + }, + { + "functionName": "FadeOutEasing" + }, + { + "functionName": "SetFadeOutEasing" + } + ] + } + ] + }, + "propertyDescriptors": [ + { + "value": "", + "type": "Behavior", + "label": "Scalable capability", + "extraInformation": [ "ScalableCapability::ScalableBehavior" ], "choices": [], @@ -6075,13 +6510,63 @@ "name": "PreviousState" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "Scale" + }, + { + "propertyName": "ButtonFSM" + }, + { + "propertyName": "Tween" + }, + { + "folderName": "Size", + "children": [ + { + "propertyName": "IdleScale" + }, + { + "propertyName": "FocusedScale" + }, + { + "propertyName": "PressedScale" + } + ] + }, + { + "folderName": "Speed", + "children": [ + { + "propertyName": "FadeInDuration" + }, + { + "propertyName": "FadeOutDuration" + }, + { + "propertyName": "FadeInEasing" + }, + { + "propertyName": "FadeOutEasing" + } + ] + }, + { + "propertyName": "PreviousState" + } + ] + } }, { "description": "Smoothly change the color tint of buttons according to their state.", "fullName": "Button color tint tween", + "helpPath": "", + "iconUrl": "", "name": "ButtonColorTintTween", "objectType": "Sprite", + "previewIconUrl": "", "eventsFunctions": [ { "fullName": "", @@ -6492,6 +6977,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "IdleColorTint", + "group": "Button color tint tween", "name": "SetIdleColorTint", "sentence": "", "events": [ @@ -6574,6 +7060,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FocusedColorTint", + "group": "Button color tint tween", "name": "SetFocusedColorTint", "sentence": "", "events": [ @@ -6656,6 +7143,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PressedColorTint", + "group": "Button color tint tween", "name": "SetPressedColorTint", "sentence": "", "events": [ @@ -6738,6 +7226,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeInDuration", + "group": "Button color tint tween", "name": "SetFadeInDuration", "sentence": "", "events": [ @@ -6820,6 +7309,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeOutDuration", + "group": "Button color tint tween", "name": "SetFadeOutDuration", "sentence": "", "events": [ @@ -6903,6 +7393,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeInEasing", + "group": "Button color tint tween", "name": "SetFadeInEasing", "sentence": "", "events": [ @@ -6986,6 +7477,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "FadeOutEasing", + "group": "Button color tint tween", "name": "SetFadeOutEasing", "sentence": "", "events": [ @@ -7023,6 +7515,70 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "doStepPreEvents" + }, + { + "functionName": "FadeIn" + }, + { + "functionName": "FadeOut" + }, + { + "folderName": "Button color tint tween", + "children": [ + { + "functionName": "IdleColorTint" + }, + { + "functionName": "SetIdleColorTint" + }, + { + "functionName": "FocusedColorTint" + }, + { + "functionName": "SetFocusedColorTint" + }, + { + "functionName": "PressedColorTint" + }, + { + "functionName": "SetPressedColorTint" + }, + { + "functionName": "FadeInDuration" + }, + { + "functionName": "SetFadeInDuration" + }, + { + "functionName": "FadeOutDuration" + }, + { + "functionName": "SetFadeOutDuration" + }, + { + "functionName": "FadeInEasing" + }, + { + "functionName": "SetFadeInEasing" + }, + { + "functionName": "FadeOutEasing" + }, + { + "functionName": "SetFadeOutEasing" + } + ] + } + ] + }, "propertyDescriptors": [ { "value": "", @@ -7386,7 +7942,51 @@ "name": "PreviousState" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "ButtonFSM" + }, + { + "propertyName": "Tween" + }, + { + "folderName": "Color", + "children": [ + { + "propertyName": "IdleColorTint" + }, + { + "propertyName": "FocusedColorTint" + }, + { + "propertyName": "PressedColorTint" + } + ] + }, + { + "folderName": "Speed", + "children": [ + { + "propertyName": "FadeInDuration" + }, + { + "propertyName": "FadeOutDuration" + }, + { + "propertyName": "FadeInEasing" + }, + { + "propertyName": "FadeOutEasing" + } + ] + }, + { + "propertyName": "PreviousState" + } + ] + } } ], "eventsBasedObjects": [] @@ -7394,6 +7994,7 @@ { "author": "", "category": "User interface", + "dimension": "", "extensionNamespace": "", "fullName": "Resource bar (continuous)", "gdevelopVersion": ">=5.5.230", @@ -7437,12 +8038,18 @@ "globalVariables": [], "sceneVariables": [], "eventsFunctions": [], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT" + }, "eventsBasedBehaviors": [ { "description": "A bar that represents a resource in the game (health, mana, ammo, etc).", "fullName": "Resource bar", + "helpPath": "", + "iconUrl": "", "name": "ResourceBar", "objectType": "", + "previewIconUrl": "", "private": true, "eventsFunctions": [ { @@ -7685,6 +8292,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "MaxValue", + "group": "Resource bar configuration", "name": "SetMaxValue", "sentence": "", "events": [ @@ -7940,6 +8548,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PreviousHighValueDuration", + "group": "FillBar bar configuration", "name": "SetPreviousHighValueDuration", "sentence": "", "events": [ @@ -8035,6 +8644,57 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "doStepPostEvents" + }, + { + "functionName": "Value" + }, + { + "functionName": "SetValue" + }, + { + "folderName": "Resource bar configuration", + "children": [ + { + "functionName": "MaxValue" + }, + { + "functionName": "SetMaxValue" + } + ] + }, + { + "functionName": "IsEmpty" + }, + { + "functionName": "IsFull" + }, + { + "functionName": "PreviousHighValue" + }, + { + "functionName": "UpdatePreviousHighValue" + }, + { + "folderName": "FillBar bar configuration", + "children": [ + { + "functionName": "PreviousHighValueDuration" + }, + { + "functionName": "SetPreviousHighValueDuration" + } + ] + }, + { + "functionName": "IsChanging" + } + ] + }, "propertyDescriptors": [ { "value": "1", @@ -8063,7 +8723,23 @@ "name": "PreviousHighValueDuration" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "CurrentValue" + }, + { + "propertyName": "MaxValue" + }, + { + "propertyName": "PreviousHighValue" + }, + { + "propertyName": "PreviousHighValueDuration" + } + ] + } } ], "eventsBasedObjects": [ @@ -8077,9 +8753,12 @@ "defaultName": "ResourceBar", "description": "A bar that represents a resource in the game (health, mana, ammo, etc).", "fullName": "Resource bar (continuous)", + "helpPath": "", + "iconUrl": "", "isInnerAreaFollowingParentSize": true, "isUsingLegacyInstancesRenderer": false, "name": "PanelSpriteContinuousBar", + "previewIconUrl": "", "objects": [ { "assetStoreId": "", @@ -8256,6 +8935,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -9079,6 +9759,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "Value", + "group": "Resource bar", "name": "SetValue", "sentence": "", "events": [ @@ -9259,6 +9940,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "MaxValue", + "group": "Resource bar configuration", "name": "SetMaxValue", "sentence": "", "events": [ @@ -9443,6 +10125,7 @@ "fullName": "", "functionType": "ActionWithOperator", "getterName": "PreviousValueDuration", + "group": "Resource bar configuration", "name": "SetPreviousValueDuration", "sentence": "", "events": [ @@ -9824,41 +10507,110 @@ "objectGroups": [] } ], - "propertyDescriptors": [ - { - "value": "3", - "type": "Number", - "label": "Maximum value", - "name": "MaxValue" - }, - { - "value": "3", - "type": "Number", - "label": "Initial value", - "name": "InitialValue" - }, - { - "value": "", - "type": "Number", - "label": "", - "description": "It's used to detect a change at hot reload.", - "hidden": true, - "name": "PreviousInitialValue" - }, - { - "value": "1", - "type": "Number", - "unit": "Second", - "label": "Previous high value conservation duration (in seconds)", - "group": "Animation", - "name": "PreviousHighValueDuration" - }, - { - "value": "0.25", - "type": "Number", - "unit": "Second", - "label": "Easing duration", - "group": "Animation", + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "onHotReloading" + }, + { + "functionName": "doStepPostEvents" + }, + { + "functionName": "UpdateLayout" + }, + { + "folderName": "Resource bar", + "children": [ + { + "functionName": "Value" + }, + { + "functionName": "SetValue" + }, + { + "functionName": "IsEmpty" + }, + { + "functionName": "IsFull" + }, + { + "functionName": "IsChanging" + } + ] + }, + { + "folderName": "Resource bar configuration", + "children": [ + { + "functionName": "MaxValue" + }, + { + "functionName": "SetMaxValue" + }, + { + "functionName": "PreviousValueDuration" + }, + { + "functionName": "SetPreviousValueDuration" + }, + { + "functionName": "IsLabelShown" + }, + { + "functionName": "SetLabelShown" + } + ] + }, + { + "functionName": "WidthForValue" + }, + { + "functionName": "FullBarWidth" + }, + { + "functionName": "UpdateLabel" + } + ] + }, + "propertyDescriptors": [ + { + "value": "3", + "type": "Number", + "label": "Maximum value", + "name": "MaxValue" + }, + { + "value": "3", + "type": "Number", + "label": "Initial value", + "name": "InitialValue" + }, + { + "value": "", + "type": "Number", + "label": "", + "description": "It's used to detect a change at hot reload.", + "hidden": true, + "name": "PreviousInitialValue" + }, + { + "value": "1", + "type": "Number", + "unit": "Second", + "label": "Previous high value conservation duration (in seconds)", + "group": "Animation", + "name": "PreviousHighValueDuration" + }, + { + "value": "0.25", + "type": "Number", + "unit": "Second", + "label": "Easing duration", + "group": "Animation", "name": "EasingDuration" }, { @@ -9893,6 +10645,43 @@ "name": "OldParentWidth" } ], + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "MaxValue" + }, + { + "propertyName": "InitialValue" + }, + { + "propertyName": "PreviousInitialValue" + }, + { + "folderName": "Animation", + "children": [ + { + "propertyName": "PreviousHighValueDuration" + }, + { + "propertyName": "EasingDuration" + } + ] + }, + { + "propertyName": "ShowLabel" + }, + { + "propertyName": "BarLeftPlusRightMargin" + }, + { + "propertyName": "BarTopPlusBottomMargin" + }, + { + "propertyName": "OldParentWidth" + } + ] + }, "variants": [ { "areaMaxX": 96, @@ -10078,6 +10867,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -10147,6 +10937,7 @@ { "author": "", "category": "User interface", + "dimension": "", "extensionNamespace": "", "fullName": "Animated Score Counter", "gdevelopVersion": ">=5.5.222", @@ -10178,12 +10969,18 @@ } ], "eventsFunctions": [], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT" + }, "eventsBasedBehaviors": [ { "description": "Smoothly changes a counter value in a text object.", "fullName": "Rolling counter", + "helpPath": "", + "iconUrl": "", "name": "RollingCounter", "objectType": "", + "previewIconUrl": "", "private": true, "eventsFunctions": [ { @@ -10407,6 +11204,23 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "doStepPreEvents" + }, + { + "functionName": "Value" + }, + { + "functionName": "SetValue" + }, + { + "functionName": "ResetDisplayedValue" + } + ] + }, "propertyDescriptors": [ { "value": "", @@ -10466,13 +11280,44 @@ "name": "Speed" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "Text" + }, + { + "propertyName": "Prefix" + }, + { + "propertyName": "Suffix" + }, + { + "propertyName": "Duration" + }, + { + "propertyName": "Increment" + }, + { + "propertyName": "CounterValue" + }, + { + "propertyName": "DisplayedValue" + }, + { + "propertyName": "Speed" + } + ] + } }, { "description": "Shake objects with translation, rotation and scale.", "fullName": "Shake object (position, angle, scale)", + "helpPath": "", + "iconUrl": "", "name": "ShakeObject_PositionAngleScale", "objectType": "", + "previewIconUrl": "", "private": true, "eventsFunctions": [ { @@ -12840,6 +13685,23 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "ShakeObject_PositionAngleScale" + }, + { + "functionName": "doStepPostEvents" + }, + { + "functionName": "StopShaking" + }, + { + "functionName": "IsShaking" + } + ] + }, "propertyDescriptors": [ { "value": "", @@ -12858,7 +13720,17 @@ "name": "Property" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "Scale" + }, + { + "propertyName": "Property" + } + ] + } } ], "eventsBasedObjects": [ @@ -12872,9 +13744,12 @@ "defaultName": "ScoreCounter", "description": "An animated score counter with an icon and a customisable font.", "fullName": "Animated Score Counter", + "helpPath": "", + "iconUrl": "", "isInnerAreaFollowingParentSize": true, "isUsingLegacyInstancesRenderer": false, "name": "ScoreCounter", + "previewIconUrl": "", "objects": [ { "adaptCollisionMaskAutomatically": false, @@ -13069,6 +13944,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -13430,6 +14306,23 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "doStepPostEvents" + }, + { + "functionName": "Score" + }, + { + "functionName": "SetScore" + } + ] + }, "propertyDescriptors": [ { "value": "0", @@ -13441,6 +14334,19 @@ "name": "Score" } ], + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "folderName": "Value", + "children": [ + { + "propertyName": "Score" + } + ] + } + ] + }, "variants": [ { "areaMaxX": 152, @@ -13631,6 +14537,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -13705,6 +14612,7 @@ { "author": "", "category": "User interface", + "dimension": "", "extensionNamespace": "", "fullName": "Panel sprite button", "gdevelopVersion": ">=5.5.230", @@ -13763,12 +14671,23 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "IsInGameEdition" + } + ] + }, "eventsBasedBehaviors": [ { "description": "The finite state machine used internally by the button object.", "fullName": "Button finite state machine", + "helpPath": "", + "iconUrl": "", "name": "ButtonFSM", "objectType": "", + "previewIconUrl": "", "private": true, "eventsFunctions": [ { @@ -14863,6 +15782,41 @@ "objectGroups": [] } ], + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "doStepPostEvents" + }, + { + "functionName": "onDeActivate" + }, + { + "functionName": "ResetState" + }, + { + "functionName": "IsIdle" + }, + { + "functionName": "IsClicked" + }, + { + "functionName": "IsHovered" + }, + { + "functionName": "IsFocused" + }, + { + "functionName": "IsPressed" + }, + { + "functionName": "IsPressedOutside" + }, + { + "functionName": "TouchId" + } + ] + }, "propertyDescriptors": [ { "value": "true", @@ -14930,7 +15884,29 @@ "name": "Index" } ], - "sharedPropertyDescriptors": [] + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "ShouldCheckHovering" + }, + { + "propertyName": "State" + }, + { + "propertyName": "TouchId" + }, + { + "propertyName": "TouchIsInside" + }, + { + "propertyName": "MouseIsInside" + }, + { + "propertyName": "Index" + } + ] + } } ], "eventsBasedObjects": [ @@ -14944,9 +15920,12 @@ "defaultName": "Button", "description": "A button that can be customized.", "fullName": "Button (panel sprite)", + "helpPath": "", + "iconUrl": "", "isInnerAreaFollowingParentSize": true, "isUsingLegacyInstancesRenderer": false, "name": "PanelSpriteButton", + "previewIconUrl": "", "objects": [ { "assetStoreId": "", @@ -15182,6 +16161,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -16364,32 +17344,82 @@ "objectGroups": [] } ], - "propertyDescriptors": [ - { - "value": "", - "type": "MultilineString", - "label": "Label", - "name": "LabelText" - }, - { - "value": "0.25", - "type": "Number", - "unit": "Second", - "label": "Hovered fade out duration", - "group": "States", - "name": "HoveredFadeOutDuration" - }, - { - "value": "0", - "type": "Number", - "unit": "Pixel", - "label": "Label offset on Y axis when pressed", - "group": "States", - "name": "PressedLabelOffsetY" - }, - { - "value": "0", - "type": "Number", + "eventsFunctionsFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "functionName": "onCreated" + }, + { + "functionName": "onHotReloading" + }, + { + "functionName": "doStepPostEvents" + }, + { + "functionName": "IsIdle" + }, + { + "functionName": "IsClicked" + }, + { + "functionName": "IsHovered" + }, + { + "functionName": "IsFocused" + }, + { + "functionName": "IsPressed" + }, + { + "functionName": "SetLabelText" + }, + { + "functionName": "SetLabelTextOp" + }, + { + "functionName": "LabelText" + }, + { + "functionName": "Activate" + }, + { + "functionName": "IsActivated" + }, + { + "functionName": "LabelOffset" + }, + { + "functionName": "SetLabelOffset" + } + ] + }, + "propertyDescriptors": [ + { + "value": "", + "type": "MultilineString", + "label": "Label", + "name": "LabelText" + }, + { + "value": "0.25", + "type": "Number", + "unit": "Second", + "label": "Hovered fade out duration", + "group": "States", + "name": "HoveredFadeOutDuration" + }, + { + "value": "0", + "type": "Number", + "unit": "Pixel", + "label": "Label offset on Y axis when pressed", + "group": "States", + "name": "PressedLabelOffsetY" + }, + { + "value": "0", + "type": "Number", "unit": "Pixel", "label": "", "hidden": true, @@ -16413,6 +17443,31 @@ "name": "_PropertyMapping" } ], + "propertiesFolderStructure": { + "folderName": "__ROOT", + "children": [ + { + "propertyName": "LabelText" + }, + { + "folderName": "States", + "children": [ + { + "propertyName": "HoveredFadeOutDuration" + }, + { + "propertyName": "PressedLabelOffsetY" + } + ] + }, + { + "propertyName": "LabelOffset" + }, + { + "propertyName": "_PropertyMapping" + } + ] + }, "variants": [ { "areaMaxX": 288, @@ -16428,6 +17483,7 @@ "bold": false, "italic": false, "name": "Label", + "persistentUuid": "c2be883d-21c7-4be5-8c5f-fd42e3e731b1", "smoothed": true, "type": "TextObject::Text", "underlined": false, @@ -16585,6 +17641,7 @@ { "assetStoreId": "", "name": "BitmapLabel", + "persistentUuid": "36729d45-587f-4cb5-b04a-3e973cc442c0", "type": "BitmapText::BitmapTextObject", "variables": [], "effects": [], @@ -16665,6 +17722,7 @@ "ambientLightColorB": 200, "ambientLightColorG": 200, "ambientLightColorR": 200, + "camera2DPlaneMaxDrawingDistance": 5000, "camera3DFarPlaneDistance": 10000, "camera3DFieldOfView": 45, "camera3DNearPlaneDistance": 3, @@ -16730,330 +17788,18 @@ "gridType": "rectangular", "gridWidth": 32, "gridHeight": 32, + "gridDepth": 32, "gridOffsetX": 0, "gridOffsetY": 0, + "gridOffsetZ": 0, "gridColor": 10401023, "gridAlpha": 0.8, "snap": false, "zoomFactor": 2.4305555555555554, "windowMask": false, - "selectedLayer": "" + "selectedLayer": "", + "gameEditorMode": "instances-editor" } - }, - { - "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, - "lineHeight": 0, - "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 - } - ] - }, - { - "assetStoreId": "", - "name": "BitmapLabel", - "type": "BitmapText::BitmapTextObject", - "variables": [], - "effects": [], - "behaviors": [ - { - "name": "Anchor", - "type": "AnchorBehavior::AnchorBehavior", - "bottomEdgeAnchor": 4, - "topEdgeAnchor": 4, - "leftEdgeAnchor": 1, - "relativeToOriginalWindowSize": true, - "rightEdgeAnchor": 2, - "useLegacyBottomAndRightAnchors": false - } - ], - "content": { - "text": "Text", - "opacity": 255, - "scale": 1, - "fontSize": 20, - "tint": "255;255;255", - "bitmapFontResourceName": "", - "textureAtlasResourceName": "", - "align": "center", - "verticalTextAlignment": "center" - } - } - ], - "objectsFolderStructure": { - "folderName": "__ROOT", - "children": [ - { - "objectName": "Label" - }, - { - "objectName": "Idle" - }, - { - "objectName": "Hovered" - }, - { - "objectName": "Pressed" - }, - { - "objectName": "BitmapLabel" - } - ] - }, - "objectsGroups": [ - { - "name": "Background", - "objects": [ - { - "name": "Idle" - }, - { - "name": "Hovered" - }, - { - "name": "Pressed" - } - ] - }, - { - "name": "Labels", - "objects": [ - { - "name": "Label" - }, - { - "name": "BitmapLabel" - } - ] - } - ], - "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": [] - } - ], - "editionSettings": {} } ] } @@ -17061,4 +17807,4 @@ } ], "externalLayouts": [] -} \ No newline at end of file +}