Skip to content

Commit 504fee1

Browse files
committed
Upgrade units bar to fix the initial value.
1 parent d79c2aa commit 504fee1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/resource-bar/game.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14593,7 +14593,7 @@
1459314593
"name": "TiledUnitsBar",
1459414594
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/063e9152cf65bc0f3be2a828afd950c3ecf1b1fc72feefdc2467252fe987dc0f_dots-horizontal.svg",
1459514595
"shortDescription": "A bar that represents a resource in the game (health, mana, ammo, etc).",
14596-
"version": "1.1.1",
14596+
"version": "1.1.2",
1459714597
"description": "A bar that represents a resource in the game (health, mana, ammo, etc).",
1459814598
"origin": {
1459914599
"identifier": "ResourceBar",
@@ -15431,7 +15431,7 @@
1543115431
"textG": 0,
1543215432
"textR": 0
1543315433
},
15434-
"comment": "Pass the configuration to the behavior.",
15434+
"comment": "Pass the configuration to the behavior (MaxValue must be set before Value).",
1543515435
"comment2": ""
1543615436
},
1543715437
{
@@ -15440,23 +15440,23 @@
1544015440
"actions": [
1544115441
{
1544215442
"type": {
15443-
"value": "TiledUnitsBar::TiledUnitsBar::SetValue"
15443+
"value": "TiledUnitsBar::TiledUnitsBar::SetMaxValue"
1544415444
},
1544515445
"parameters": [
1544615446
"Object",
1544715447
"=",
15448-
"Object.PropertyInitialValue()",
15448+
"Object.PropertyMaxValue()",
1544915449
""
1545015450
]
1545115451
},
1545215452
{
1545315453
"type": {
15454-
"value": "TiledUnitsBar::TiledUnitsBar::SetMaxValue"
15454+
"value": "TiledUnitsBar::TiledUnitsBar::SetValue"
1545515455
},
1545615456
"parameters": [
1545715457
"Object",
1545815458
"=",
15459-
"Object.PropertyMaxValue()",
15459+
"Object.PropertyInitialValue()",
1546015460
""
1546115461
]
1546215462
}

0 commit comments

Comments
 (0)