From e6141c9a6e600ee8c81903d043a2577b5d9af918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Sat, 21 Jan 2023 19:25:32 +0100 Subject: [PATCH 1/2] [Community] [Units bar] Fix the initial value. --- extensions/community/TiledUnitsBar.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/extensions/community/TiledUnitsBar.json b/extensions/community/TiledUnitsBar.json index 1883c04aa..ac7552e8a 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.1.1", + "version": "1.1.2", "description": "A bar that represents a resource in the game (health, mana, ammo, etc).", "origin": { "identifier": "ResourceBar", @@ -846,7 +846,7 @@ "textG": 0, "textR": 0 }, - "comment": "Pass the configuration to the behavior.", + "comment": "Pass the configuration to the behavior (MaxValue must be set befor Value).", "comment2": "" }, { @@ -855,23 +855,23 @@ "actions": [ { "type": { - "value": "TiledUnitsBar::TiledUnitsBar::SetValue" + "value": "TiledUnitsBar::TiledUnitsBar::SetMaxValue" }, "parameters": [ "Object", "=", - "Object.PropertyInitialValue()", + "Object.PropertyMaxValue()", "" ] }, { "type": { - "value": "TiledUnitsBar::TiledUnitsBar::SetMaxValue" + "value": "TiledUnitsBar::TiledUnitsBar::SetValue" }, "parameters": [ "Object", "=", - "Object.PropertyMaxValue()", + "Object.PropertyInitialValue()", "" ] } From 8ea69279d0915fac0178704ac2e2f098fece44bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Sat, 21 Jan 2023 19:27:29 +0100 Subject: [PATCH 2/2] Typo --- extensions/community/TiledUnitsBar.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/community/TiledUnitsBar.json b/extensions/community/TiledUnitsBar.json index ac7552e8a..a24ce00b4 100644 --- a/extensions/community/TiledUnitsBar.json +++ b/extensions/community/TiledUnitsBar.json @@ -846,7 +846,7 @@ "textG": 0, "textR": 0 }, - "comment": "Pass the configuration to the behavior (MaxValue must be set befor Value).", + "comment": "Pass the configuration to the behavior (MaxValue must be set before Value).", "comment2": "" }, {