Skip to content

Commit 0169503

Browse files
authored
[Community] [Units bar] Fix the initial value (#736)
* Don't show in changelog
1 parent 4c75db3 commit 0169503

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extensions/community/TiledUnitsBar.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "TiledUnitsBar",
99
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/063e9152cf65bc0f3be2a828afd950c3ecf1b1fc72feefdc2467252fe987dc0f_dots-horizontal.svg",
1010
"shortDescription": "A bar that represents a resource in the game (health, mana, ammo, etc).",
11-
"version": "1.1.1",
11+
"version": "1.1.2",
1212
"description": "A bar that represents a resource in the game (health, mana, ammo, etc).",
1313
"origin": {
1414
"identifier": "ResourceBar",
@@ -846,7 +846,7 @@
846846
"textG": 0,
847847
"textR": 0
848848
},
849-
"comment": "Pass the configuration to the behavior.",
849+
"comment": "Pass the configuration to the behavior (MaxValue must be set before Value).",
850850
"comment2": ""
851851
},
852852
{
@@ -855,23 +855,23 @@
855855
"actions": [
856856
{
857857
"type": {
858-
"value": "TiledUnitsBar::TiledUnitsBar::SetValue"
858+
"value": "TiledUnitsBar::TiledUnitsBar::SetMaxValue"
859859
},
860860
"parameters": [
861861
"Object",
862862
"=",
863-
"Object.PropertyInitialValue()",
863+
"Object.PropertyMaxValue()",
864864
""
865865
]
866866
},
867867
{
868868
"type": {
869-
"value": "TiledUnitsBar::TiledUnitsBar::SetMaxValue"
869+
"value": "TiledUnitsBar::TiledUnitsBar::SetValue"
870870
},
871871
"parameters": [
872872
"Object",
873873
"=",
874-
"Object.PropertyMaxValue()",
874+
"Object.PropertyInitialValue()",
875875
""
876876
]
877877
}

0 commit comments

Comments
 (0)