From 30a281e58d9cb1d1b4107235f3146ea62dc855d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Fri, 6 Jan 2023 17:47:23 +0100 Subject: [PATCH] [Community] Rename "Resource" child-object as "FillBar". * Don't show in changelog. --- .../community/PanelSpriteContinuousBar.json | 86 +++++++++---------- extensions/community/PanelSpriteSlider.json | 58 ++++++------- extensions/community/TiledUnitsBar.json | 32 +++---- 3 files changed, 88 insertions(+), 88 deletions(-) diff --git a/extensions/community/PanelSpriteContinuousBar.json b/extensions/community/PanelSpriteContinuousBar.json index 9645c0ad1..8eb0673a5 100644 --- a/extensions/community/PanelSpriteContinuousBar.json +++ b/extensions/community/PanelSpriteContinuousBar.json @@ -8,7 +8,7 @@ "name": "PanelSpriteContinuousBar", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Glyphster Pack/Master/SVG/Interface Elements/ea06363a57846caab544f536b78a952234b68d4941d41c1577852a1d61aefec3_Interface Elements_interface_ui_loading_progress_bar.svg", "shortDescription": "A bar that represents a resource in the game (health, mana, ammo, etc).", - "version": "1.0.0", + "version": "1.1.0", "description": "A bar that represents a resource in the game (health, mana, ammo, etc).", "origin": { "identifier": "ResourceBar", @@ -501,7 +501,7 @@ "description": "the previous high value conservation duration (in seconds) of the object.", "fullName": "Previous high value conservation duration", "functionType": "ExpressionAndCondition", - "group": "Resource bar configuration", + "group": "FillBar bar configuration", "name": "PreviousHighValueDuration", "sentence": "the previous high value conservation duration", "events": [ @@ -762,7 +762,7 @@ }, "parameters": [ "", - "Resource", + "FillBar", "0", "0", "" @@ -783,7 +783,7 @@ "value": "ChangePlan" }, "parameters": [ - "Resource", + "FillBar", "=", "3" ] @@ -967,7 +967,7 @@ "value": "Tween::RemoveTween" }, "parameters": [ - "Resource", + "FillBar", "Tween", "\"ChangeValue\"" ] @@ -977,7 +977,7 @@ "value": "PanelSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", "=", "Object.WidthForValue()" ] @@ -1079,7 +1079,7 @@ "value": "Tween::RemoveTween" }, "parameters": [ - "Resource", + "FillBar", "Tween", "\"ChangeValue\"" ] @@ -1095,7 +1095,7 @@ "value": "PanelSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", "=", "Object.WidthForValue()" ] @@ -1285,7 +1285,7 @@ "value": "PanelSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", "<", "Buffer.Width()" ] @@ -1311,7 +1311,7 @@ "value": "PanelSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", ">=", "Buffer.Width()" ] @@ -1356,7 +1356,7 @@ "value": "MettreXY" }, "parameters": [ - "Resource", + "FillBar", "=", "Object.PropertyBarLeftPadding()", "=", @@ -1368,7 +1368,7 @@ "value": "PanelSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", "=", "Object.WidthForValue()" ] @@ -1378,7 +1378,7 @@ "value": "PanelSpriteObject::Height" }, "parameters": [ - "Resource", + "FillBar", "=", "round(Background.Height() - Object.PropertyBarTopPadding() - Object.PropertyBarBottomPadding())" ] @@ -1396,9 +1396,9 @@ "parameters": [ "Buffer", "=", - "Resource.X()", + "FillBar.X()", "=", - "Resource.Y()" + "FillBar.Y()" ] }, { @@ -1408,7 +1408,7 @@ "parameters": [ "Buffer", "=", - "Resource.Width()" + "FillBar.Width()" ] }, { @@ -1418,7 +1418,7 @@ "parameters": [ "Buffer", "=", - "Resource.Height()" + "FillBar.Height()" ] } ] @@ -1456,7 +1456,7 @@ "parameters": [ "Label", "=", - "round(Resource.CenterY())" + "round(FillBar.CenterY())" ] }, { @@ -1499,7 +1499,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.ResourceBar::Value()" + "FillBar.ResourceBar::Value()" ] } ] @@ -1534,7 +1534,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::SetValue" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=", "GetArgumentAsNumber(\"Value\")", @@ -1546,7 +1546,7 @@ "value": "Tween::AddObjectWidthTween" }, "parameters": [ - "Resource", + "FillBar", "Tween", "\"ChangeValue\"", "Object.WidthForValue()", @@ -1574,7 +1574,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::IsChanging" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "" ] @@ -1588,7 +1588,7 @@ "parameters": [ "Buffer", "=", - "round(Object.FullBarWidth() * Resource.ResourceBar::PreviousHighValue() / Resource.ResourceBar::MaxValue())" + "round(Object.FullBarWidth() * FillBar.ResourceBar::PreviousHighValue() / FillBar.ResourceBar::MaxValue())" ] } ] @@ -1627,7 +1627,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.ResourceBar::PropertyMaxValue()" + "FillBar.ResourceBar::PropertyMaxValue()" ] } ] @@ -1662,7 +1662,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::SetMaxValue" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=", "GetArgumentAsNumber(\"Value\")", @@ -1710,7 +1710,7 @@ "description": "Check if the bar is empty.", "fullName": "Empty", "functionType": "Condition", - "group": "Resource bar", + "group": "FillBar bar", "name": "IsEmpty", "sentence": "_PARAM0_ is empty", "events": [ @@ -1722,7 +1722,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::IsEmpty" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=" ] @@ -1754,7 +1754,7 @@ "description": "Check if the bar is full.", "fullName": "Full", "functionType": "Condition", - "group": "Resource bar", + "group": "FillBar bar", "name": "IsFull", "sentence": "_PARAM0_ is full", "events": [ @@ -1766,7 +1766,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::IsFull" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=" ] @@ -1798,7 +1798,7 @@ "description": "the previous value conservation duration (in seconds) of the object.", "fullName": "Previous value conservation duration", "functionType": "ExpressionAndCondition", - "group": "Resource bar configuration", + "group": "FillBar bar configuration", "name": "PreviousValueDuration", "sentence": "the previous value conservation duration", "events": [ @@ -1811,7 +1811,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.ResourceBar::PropertyPreviousHighValueDuration()" + "FillBar.ResourceBar::PropertyPreviousHighValueDuration()" ] } ] @@ -1846,7 +1846,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::SetPreviousHighValueDuration" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=", "GetArgumentAsNumber(\"Value\")", @@ -1927,7 +1927,7 @@ "description": "Check if the resource value is changing.", "fullName": "Value is changing", "functionType": "Condition", - "group": "Resource bar", + "group": "FillBar bar", "name": "IsChanging", "private": true, "sentence": "_PARAM0_ value is changing", @@ -1940,7 +1940,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::IsChanging" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "" ] @@ -1984,7 +1984,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "round(Object.FullBarWidth() * Resource.ResourceBar::Value() / Resource.ResourceBar::MaxValue())" + "round(Object.FullBarWidth() * FillBar.ResourceBar::Value() / FillBar.ResourceBar::MaxValue())" ] } ] @@ -2042,7 +2042,7 @@ "description": "Check if the label is shown.", "fullName": "Label is shown", "functionType": "Condition", - "group": "Resource bar configuration", + "group": "FillBar bar configuration", "name": "IsLabelShown", "sentence": "_PARAM0_ label is shown", "events": [ @@ -2084,7 +2084,7 @@ "description": "Show (or hide) the label on the bar.", "fullName": "Show label", "functionType": "Action", - "group": "Resource bar configuration", + "group": "FillBar bar configuration", "name": "SetLabelShown", "sentence": "Show the label of _PARAM0_: _PARAM1_", "events": [ @@ -2215,7 +2215,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource", + "FillBar", "Buffer" ], "hidden": false, @@ -2229,7 +2229,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource", + "FillBar", "Buffer" ], "hidden": false, @@ -2243,7 +2243,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource", + "FillBar", "Buffer" ], "hidden": false, @@ -2257,7 +2257,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource", + "FillBar", "Buffer" ], "hidden": false, @@ -2356,7 +2356,7 @@ "description": "Only used by the scene editor.", "group": "", "extraInformation": [ - "Resource" + "FillBar" ], "hidden": true, "name": "LabelVerticalAnchorTarget" @@ -2390,7 +2390,7 @@ "bottomMargin": 0, "height": 32, "leftMargin": 0, - "name": "Resource", + "name": "FillBar", "rightMargin": 0, "tags": "", "texture": "", diff --git a/extensions/community/PanelSpriteSlider.json b/extensions/community/PanelSpriteSlider.json index 563050e9f..12b96efdc 100644 --- a/extensions/community/PanelSpriteSlider.json +++ b/extensions/community/PanelSpriteSlider.json @@ -2,13 +2,13 @@ "author": "", "category": "User interface", "extensionNamespace": "", - "fullName": "Slider (tiled)", + "fullName": "Slider", "helpPath": "", "iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMy4wLjMsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iSWNvbnMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB2aWV3Qm94PSIwIDAgMzIgMzIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDMyIDMyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDpub25lO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDoxMDt9DQo8L3N0eWxlPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMjMiIGN5PSI3IiByPSIzIi8+DQo8bGluZSBjbGFzcz0ic3QwIiB4MT0iMyIgeTE9IjciIHgyPSIyMCIgeTI9IjciLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIyOSIgeTE9IjciIHgyPSIyNiIgeTI9IjciLz4NCjxjaXJjbGUgY2xhc3M9InN0MCIgY3g9IjEyIiBjeT0iMTYiIHI9IjMiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIzIiB5MT0iMTYiIHgyPSI5IiB5Mj0iMTYiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIyOSIgeTE9IjE2IiB4Mj0iMTUiIHkyPSIxNiIvPg0KPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMjMiIGN5PSIyNSIgcj0iMyIvPg0KPGxpbmUgY2xhc3M9InN0MCIgeDE9IjMiIHkxPSIyNSIgeDI9IjIwIiB5Mj0iMjUiLz4NCjxsaW5lIGNsYXNzPSJzdDAiIHgxPSIyOSIgeTE9IjI1IiB4Mj0iMjYiIHkyPSIyNSIvPg0KPC9zdmc+DQo=", "name": "PanelSpriteSlider", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/UI Essentials/1678c39a3b2bd3df4f82a8a293770db4986a6bcfd3f78e738ddfc86e39176423_UI Essentials_sliders_options.svg", "shortDescription": "A draggable slider that users can move to select a numerical value.", - "version": "1.0.0", + "version": "1.1.0", "description": "A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.", "origin": { "identifier": "ResourceBar", @@ -2029,7 +2029,7 @@ }, "parameters": [ "", - "Resource", + "FillBar", "0", "0", "" @@ -2062,7 +2062,7 @@ "value": "ChangePlan" }, "parameters": [ - "Resource", + "FillBar", "=", "2" ] @@ -2350,8 +2350,8 @@ "parameters": [ "Object", "=", - "Resource.Slider::MinValue() + Resource.Slider::Size() * (MouseX() - Object.FullBarLeft()) / Object.FullBarWidth()", - "Resource.Slider::MinValue() + Resource.Slider::Size() * (MouseX() - Object.FullBarLeft()) / Object.FullBarWidth()" + "FillBar.Slider::MinValue() + FillBar.Slider::Size() * (MouseX() - Object.FullBarLeft()) / Object.FullBarWidth()", + "FillBar.Slider::MinValue() + FillBar.Slider::Size() * (MouseX() - Object.FullBarLeft()) / Object.FullBarWidth()" ] } ], @@ -2412,8 +2412,8 @@ "parameters": [ "Object", "=", - "Resource.Slider::MinValue() + Resource.Slider::Size() * (Thumb.CenterX() - Object.FullBarLeft()) / Object.FullBarWidth()", - "Resource.Slider::MinValue() + Resource.Slider::Size() * (Thumb.CenterX() - Object.FullBarLeft()) / Object.FullBarWidth()" + "FillBar.Slider::MinValue() + FillBar.Slider::Size() * (Thumb.CenterX() - Object.FullBarLeft()) / Object.FullBarWidth()", + "FillBar.Slider::MinValue() + FillBar.Slider::Size() * (Thumb.CenterX() - Object.FullBarLeft()) / Object.FullBarWidth()" ] } ], @@ -2736,7 +2736,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.Slider::Value()" + "FillBar.Slider::Value()" ] } ] @@ -2771,7 +2771,7 @@ "value": "PanelSpriteSlider::Slider::SetValue" }, "parameters": [ - "Resource", + "FillBar", "Slider", "=", "GetArgumentAsNumber(\"Value\")", @@ -2823,7 +2823,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.Slider::MinValue()" + "FillBar.Slider::MinValue()" ] } ] @@ -2858,7 +2858,7 @@ "value": "PanelSpriteSlider::Slider::SetMinValue" }, "parameters": [ - "Resource", + "FillBar", "Slider", "=", "GetArgumentAsNumber(\"Value\")", @@ -2919,7 +2919,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.Slider::MaxValue()" + "FillBar.Slider::MaxValue()" ] } ] @@ -2954,7 +2954,7 @@ "value": "PanelSpriteSlider::Slider::SetMaxValue" }, "parameters": [ - "Resource", + "FillBar", "Slider", "=", "GetArgumentAsNumber(\"Value\")", @@ -3015,7 +3015,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.Slider::StepSize()" + "FillBar.Slider::StepSize()" ] } ] @@ -3050,7 +3050,7 @@ "value": "PanelSpriteSlider::Slider::SetStepSize" }, "parameters": [ - "Resource", + "FillBar", "Slider", "=", "GetArgumentAsNumber(\"Value\")", @@ -3225,7 +3225,7 @@ "value": "MettreXY" }, "parameters": [ - "Resource", + "FillBar", "=", "Object.PropertyBarLeftPadding()", "=", @@ -3237,7 +3237,7 @@ "value": "PanelSpriteObject::Height" }, "parameters": [ - "Resource", + "FillBar", "=", "round(Background.Height() - Object.PropertyBarTopPadding() - Object.PropertyBarBottomPadding())" ] @@ -3277,7 +3277,7 @@ "parameters": [ "Label", "=", - "round(Resource.CenterY())" + "round(FillBar.CenterY())" ] }, { @@ -3320,9 +3320,9 @@ "value": "PanelSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", "=", - "Object.FullBarWidth() * (Resource.Slider::Value() - Resource.Slider::MinValue()) / Resource.Slider::Size()" + "Object.FullBarWidth() * (FillBar.Slider::Value() - FillBar.Slider::MinValue()) / FillBar.Slider::Size()" ] } ] @@ -3338,7 +3338,7 @@ "parameters": [ "Thumb", "=", - "Object.FullBarLeft() + Resource.Width()" + "Object.FullBarLeft() + FillBar.Width()" ] }, { @@ -3348,7 +3348,7 @@ "parameters": [ "Thumb", "=", - "Resource.CenterY()" + "FillBar.CenterY()" ] } ] @@ -3587,7 +3587,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource" + "FillBar" ], "hidden": false, "name": "BarLeftPadding" @@ -3600,7 +3600,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource" + "FillBar" ], "hidden": false, "name": "BarTopPadding" @@ -3613,7 +3613,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource" + "FillBar" ], "hidden": false, "name": "BarRightPadding" @@ -3626,7 +3626,7 @@ "group": "Bar", "extraInformation": [ "Label", - "Resource" + "FillBar" ], "hidden": false, "name": "BarBottomPadding" @@ -3720,7 +3720,7 @@ "description": "Only used by the scene editor.", "group": "", "extraInformation": [ - "Resource" + "FillBar" ], "hidden": true, "name": "ThumbAnchorTarget" @@ -3789,7 +3789,7 @@ "bottomMargin": 0, "height": 32, "leftMargin": 0, - "name": "Resource", + "name": "FillBar", "rightMargin": 0, "tags": "", "texture": "", diff --git a/extensions/community/TiledUnitsBar.json b/extensions/community/TiledUnitsBar.json index 9436f5241..fdbf332df 100644 --- a/extensions/community/TiledUnitsBar.json +++ b/extensions/community/TiledUnitsBar.json @@ -8,7 +8,7 @@ "name": "TiledUnitsBar", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/063e9152cf65bc0f3be2a828afd950c3ecf1b1fc72feefdc2467252fe987dc0f_dots-horizontal.svg", "shortDescription": "A bar that represents a resource in the game (health, mana, ammo, etc).", - "version": "1.0.0", + "version": "1.1.0", "description": "A bar that represents a resource in the game (health, mana, ammo, etc).", "origin": { "identifier": "ResourceBar", @@ -774,7 +774,7 @@ }, "parameters": [ "", - "Resource", + "FillBar", "0", "0", "" @@ -805,7 +805,7 @@ "value": "ChangePlan" }, "parameters": [ - "Resource", + "FillBar", "=", "3" ] @@ -1162,7 +1162,7 @@ "value": "MettreXY" }, "parameters": [ - "Resource", + "FillBar", "=", "Bar.X()", "=", @@ -1199,7 +1199,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.ResourceBar::Value()" + "FillBar.ResourceBar::Value()" ] } ] @@ -1234,7 +1234,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::SetValue" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=", "GetArgumentAsNumber(\"Value\")", @@ -1246,9 +1246,9 @@ "value": "TiledSpriteObject::Width" }, "parameters": [ - "Resource", + "FillBar", "=", - "Resource.ResourceBar::Value() * Object.PropertyUnitWidth()" + "FillBar.ResourceBar::Value() * Object.PropertyUnitWidth()" ] } ] @@ -1287,7 +1287,7 @@ "value": "SetReturnNumber" }, "parameters": [ - "Resource.ResourceBar::PropertyMaxValue()" + "FillBar.ResourceBar::PropertyMaxValue()" ] } ] @@ -1322,7 +1322,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::SetMaxValue" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=", "GetArgumentAsNumber(\"Value\")", @@ -1383,7 +1383,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::IsEmpty" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=" ] @@ -1427,7 +1427,7 @@ "value": "PanelSpriteContinuousBar::ResourceBar::IsFull" }, "parameters": [ - "Resource", + "FillBar", "ResourceBar", "=" ] @@ -1516,7 +1516,7 @@ "description": "", "group": "", "extraInformation": [ - "Resource", + "FillBar", "Bar" ], "hidden": false, @@ -1529,7 +1529,7 @@ "description": "", "group": "", "extraInformation": [ - "Resource", + "FillBar", "Bar" ], "hidden": false, @@ -1542,7 +1542,7 @@ "description": "Only used by the scene editor.", "group": "", "extraInformation": [ - "Resource", + "FillBar", "Bar" ], "hidden": true, @@ -1565,7 +1565,7 @@ { "assetStoreId": "", "height": 32, - "name": "Resource", + "name": "FillBar", "tags": "", "texture": "", "type": "TiledSpriteObject::TiledSprite",