|
8 | 8 | "name": "PanelSpriteContinuousBar", |
9 | 9 | "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Glyphster Pack/Master/SVG/Interface Elements/ea06363a57846caab544f536b78a952234b68d4941d41c1577852a1d61aefec3_Interface Elements_interface_ui_loading_progress_bar.svg", |
10 | 10 | "shortDescription": "A bar that represents a resource in the game (health, mana, ammo, etc).", |
11 | | - "version": "1.0.0", |
| 11 | + "version": "1.1.0", |
12 | 12 | "description": "A bar that represents a resource in the game (health, mana, ammo, etc).", |
13 | 13 | "origin": { |
14 | 14 | "identifier": "ResourceBar", |
|
501 | 501 | "description": "the previous high value conservation duration (in seconds) of the object.", |
502 | 502 | "fullName": "Previous high value conservation duration", |
503 | 503 | "functionType": "ExpressionAndCondition", |
504 | | - "group": "Resource bar configuration", |
| 504 | + "group": "FillBar bar configuration", |
505 | 505 | "name": "PreviousHighValueDuration", |
506 | 506 | "sentence": "the previous high value conservation duration", |
507 | 507 | "events": [ |
|
762 | 762 | }, |
763 | 763 | "parameters": [ |
764 | 764 | "", |
765 | | - "Resource", |
| 765 | + "FillBar", |
766 | 766 | "0", |
767 | 767 | "0", |
768 | 768 | "" |
|
783 | 783 | "value": "ChangePlan" |
784 | 784 | }, |
785 | 785 | "parameters": [ |
786 | | - "Resource", |
| 786 | + "FillBar", |
787 | 787 | "=", |
788 | 788 | "3" |
789 | 789 | ] |
|
967 | 967 | "value": "Tween::RemoveTween" |
968 | 968 | }, |
969 | 969 | "parameters": [ |
970 | | - "Resource", |
| 970 | + "FillBar", |
971 | 971 | "Tween", |
972 | 972 | "\"ChangeValue\"" |
973 | 973 | ] |
|
977 | 977 | "value": "PanelSpriteObject::Width" |
978 | 978 | }, |
979 | 979 | "parameters": [ |
980 | | - "Resource", |
| 980 | + "FillBar", |
981 | 981 | "=", |
982 | 982 | "Object.WidthForValue()" |
983 | 983 | ] |
|
1079 | 1079 | "value": "Tween::RemoveTween" |
1080 | 1080 | }, |
1081 | 1081 | "parameters": [ |
1082 | | - "Resource", |
| 1082 | + "FillBar", |
1083 | 1083 | "Tween", |
1084 | 1084 | "\"ChangeValue\"" |
1085 | 1085 | ] |
|
1095 | 1095 | "value": "PanelSpriteObject::Width" |
1096 | 1096 | }, |
1097 | 1097 | "parameters": [ |
1098 | | - "Resource", |
| 1098 | + "FillBar", |
1099 | 1099 | "=", |
1100 | 1100 | "Object.WidthForValue()" |
1101 | 1101 | ] |
|
1285 | 1285 | "value": "PanelSpriteObject::Width" |
1286 | 1286 | }, |
1287 | 1287 | "parameters": [ |
1288 | | - "Resource", |
| 1288 | + "FillBar", |
1289 | 1289 | "<", |
1290 | 1290 | "Buffer.Width()" |
1291 | 1291 | ] |
|
1311 | 1311 | "value": "PanelSpriteObject::Width" |
1312 | 1312 | }, |
1313 | 1313 | "parameters": [ |
1314 | | - "Resource", |
| 1314 | + "FillBar", |
1315 | 1315 | ">=", |
1316 | 1316 | "Buffer.Width()" |
1317 | 1317 | ] |
|
1356 | 1356 | "value": "MettreXY" |
1357 | 1357 | }, |
1358 | 1358 | "parameters": [ |
1359 | | - "Resource", |
| 1359 | + "FillBar", |
1360 | 1360 | "=", |
1361 | 1361 | "Object.PropertyBarLeftPadding()", |
1362 | 1362 | "=", |
|
1368 | 1368 | "value": "PanelSpriteObject::Width" |
1369 | 1369 | }, |
1370 | 1370 | "parameters": [ |
1371 | | - "Resource", |
| 1371 | + "FillBar", |
1372 | 1372 | "=", |
1373 | 1373 | "Object.WidthForValue()" |
1374 | 1374 | ] |
|
1378 | 1378 | "value": "PanelSpriteObject::Height" |
1379 | 1379 | }, |
1380 | 1380 | "parameters": [ |
1381 | | - "Resource", |
| 1381 | + "FillBar", |
1382 | 1382 | "=", |
1383 | 1383 | "round(Background.Height() - Object.PropertyBarTopPadding() - Object.PropertyBarBottomPadding())" |
1384 | 1384 | ] |
|
1396 | 1396 | "parameters": [ |
1397 | 1397 | "Buffer", |
1398 | 1398 | "=", |
1399 | | - "Resource.X()", |
| 1399 | + "FillBar.X()", |
1400 | 1400 | "=", |
1401 | | - "Resource.Y()" |
| 1401 | + "FillBar.Y()" |
1402 | 1402 | ] |
1403 | 1403 | }, |
1404 | 1404 | { |
|
1408 | 1408 | "parameters": [ |
1409 | 1409 | "Buffer", |
1410 | 1410 | "=", |
1411 | | - "Resource.Width()" |
| 1411 | + "FillBar.Width()" |
1412 | 1412 | ] |
1413 | 1413 | }, |
1414 | 1414 | { |
|
1418 | 1418 | "parameters": [ |
1419 | 1419 | "Buffer", |
1420 | 1420 | "=", |
1421 | | - "Resource.Height()" |
| 1421 | + "FillBar.Height()" |
1422 | 1422 | ] |
1423 | 1423 | } |
1424 | 1424 | ] |
|
1456 | 1456 | "parameters": [ |
1457 | 1457 | "Label", |
1458 | 1458 | "=", |
1459 | | - "round(Resource.CenterY())" |
| 1459 | + "round(FillBar.CenterY())" |
1460 | 1460 | ] |
1461 | 1461 | }, |
1462 | 1462 | { |
|
1499 | 1499 | "value": "SetReturnNumber" |
1500 | 1500 | }, |
1501 | 1501 | "parameters": [ |
1502 | | - "Resource.ResourceBar::Value()" |
| 1502 | + "FillBar.ResourceBar::Value()" |
1503 | 1503 | ] |
1504 | 1504 | } |
1505 | 1505 | ] |
|
1534 | 1534 | "value": "PanelSpriteContinuousBar::ResourceBar::SetValue" |
1535 | 1535 | }, |
1536 | 1536 | "parameters": [ |
1537 | | - "Resource", |
| 1537 | + "FillBar", |
1538 | 1538 | "ResourceBar", |
1539 | 1539 | "=", |
1540 | 1540 | "GetArgumentAsNumber(\"Value\")", |
|
1546 | 1546 | "value": "Tween::AddObjectWidthTween" |
1547 | 1547 | }, |
1548 | 1548 | "parameters": [ |
1549 | | - "Resource", |
| 1549 | + "FillBar", |
1550 | 1550 | "Tween", |
1551 | 1551 | "\"ChangeValue\"", |
1552 | 1552 | "Object.WidthForValue()", |
|
1574 | 1574 | "value": "PanelSpriteContinuousBar::ResourceBar::IsChanging" |
1575 | 1575 | }, |
1576 | 1576 | "parameters": [ |
1577 | | - "Resource", |
| 1577 | + "FillBar", |
1578 | 1578 | "ResourceBar", |
1579 | 1579 | "" |
1580 | 1580 | ] |
|
1588 | 1588 | "parameters": [ |
1589 | 1589 | "Buffer", |
1590 | 1590 | "=", |
1591 | | - "round(Object.FullBarWidth() * Resource.ResourceBar::PreviousHighValue() / Resource.ResourceBar::MaxValue())" |
| 1591 | + "round(Object.FullBarWidth() * FillBar.ResourceBar::PreviousHighValue() / FillBar.ResourceBar::MaxValue())" |
1592 | 1592 | ] |
1593 | 1593 | } |
1594 | 1594 | ] |
|
1627 | 1627 | "value": "SetReturnNumber" |
1628 | 1628 | }, |
1629 | 1629 | "parameters": [ |
1630 | | - "Resource.ResourceBar::PropertyMaxValue()" |
| 1630 | + "FillBar.ResourceBar::PropertyMaxValue()" |
1631 | 1631 | ] |
1632 | 1632 | } |
1633 | 1633 | ] |
|
1662 | 1662 | "value": "PanelSpriteContinuousBar::ResourceBar::SetMaxValue" |
1663 | 1663 | }, |
1664 | 1664 | "parameters": [ |
1665 | | - "Resource", |
| 1665 | + "FillBar", |
1666 | 1666 | "ResourceBar", |
1667 | 1667 | "=", |
1668 | 1668 | "GetArgumentAsNumber(\"Value\")", |
|
1710 | 1710 | "description": "Check if the bar is empty.", |
1711 | 1711 | "fullName": "Empty", |
1712 | 1712 | "functionType": "Condition", |
1713 | | - "group": "Resource bar", |
| 1713 | + "group": "FillBar bar", |
1714 | 1714 | "name": "IsEmpty", |
1715 | 1715 | "sentence": "_PARAM0_ is empty", |
1716 | 1716 | "events": [ |
|
1722 | 1722 | "value": "PanelSpriteContinuousBar::ResourceBar::IsEmpty" |
1723 | 1723 | }, |
1724 | 1724 | "parameters": [ |
1725 | | - "Resource", |
| 1725 | + "FillBar", |
1726 | 1726 | "ResourceBar", |
1727 | 1727 | "=" |
1728 | 1728 | ] |
|
1754 | 1754 | "description": "Check if the bar is full.", |
1755 | 1755 | "fullName": "Full", |
1756 | 1756 | "functionType": "Condition", |
1757 | | - "group": "Resource bar", |
| 1757 | + "group": "FillBar bar", |
1758 | 1758 | "name": "IsFull", |
1759 | 1759 | "sentence": "_PARAM0_ is full", |
1760 | 1760 | "events": [ |
|
1766 | 1766 | "value": "PanelSpriteContinuousBar::ResourceBar::IsFull" |
1767 | 1767 | }, |
1768 | 1768 | "parameters": [ |
1769 | | - "Resource", |
| 1769 | + "FillBar", |
1770 | 1770 | "ResourceBar", |
1771 | 1771 | "=" |
1772 | 1772 | ] |
|
1798 | 1798 | "description": "the previous value conservation duration (in seconds) of the object.", |
1799 | 1799 | "fullName": "Previous value conservation duration", |
1800 | 1800 | "functionType": "ExpressionAndCondition", |
1801 | | - "group": "Resource bar configuration", |
| 1801 | + "group": "FillBar bar configuration", |
1802 | 1802 | "name": "PreviousValueDuration", |
1803 | 1803 | "sentence": "the previous value conservation duration", |
1804 | 1804 | "events": [ |
|
1811 | 1811 | "value": "SetReturnNumber" |
1812 | 1812 | }, |
1813 | 1813 | "parameters": [ |
1814 | | - "Resource.ResourceBar::PropertyPreviousHighValueDuration()" |
| 1814 | + "FillBar.ResourceBar::PropertyPreviousHighValueDuration()" |
1815 | 1815 | ] |
1816 | 1816 | } |
1817 | 1817 | ] |
|
1846 | 1846 | "value": "PanelSpriteContinuousBar::ResourceBar::SetPreviousHighValueDuration" |
1847 | 1847 | }, |
1848 | 1848 | "parameters": [ |
1849 | | - "Resource", |
| 1849 | + "FillBar", |
1850 | 1850 | "ResourceBar", |
1851 | 1851 | "=", |
1852 | 1852 | "GetArgumentAsNumber(\"Value\")", |
|
1927 | 1927 | "description": "Check if the resource value is changing.", |
1928 | 1928 | "fullName": "Value is changing", |
1929 | 1929 | "functionType": "Condition", |
1930 | | - "group": "Resource bar", |
| 1930 | + "group": "FillBar bar", |
1931 | 1931 | "name": "IsChanging", |
1932 | 1932 | "private": true, |
1933 | 1933 | "sentence": "_PARAM0_ value is changing", |
|
1940 | 1940 | "value": "PanelSpriteContinuousBar::ResourceBar::IsChanging" |
1941 | 1941 | }, |
1942 | 1942 | "parameters": [ |
1943 | | - "Resource", |
| 1943 | + "FillBar", |
1944 | 1944 | "ResourceBar", |
1945 | 1945 | "" |
1946 | 1946 | ] |
|
1984 | 1984 | "value": "SetReturnNumber" |
1985 | 1985 | }, |
1986 | 1986 | "parameters": [ |
1987 | | - "round(Object.FullBarWidth() * Resource.ResourceBar::Value() / Resource.ResourceBar::MaxValue())" |
| 1987 | + "round(Object.FullBarWidth() * FillBar.ResourceBar::Value() / FillBar.ResourceBar::MaxValue())" |
1988 | 1988 | ] |
1989 | 1989 | } |
1990 | 1990 | ] |
|
2042 | 2042 | "description": "Check if the label is shown.", |
2043 | 2043 | "fullName": "Label is shown", |
2044 | 2044 | "functionType": "Condition", |
2045 | | - "group": "Resource bar configuration", |
| 2045 | + "group": "FillBar bar configuration", |
2046 | 2046 | "name": "IsLabelShown", |
2047 | 2047 | "sentence": "_PARAM0_ label is shown", |
2048 | 2048 | "events": [ |
|
2084 | 2084 | "description": "Show (or hide) the label on the bar.", |
2085 | 2085 | "fullName": "Show label", |
2086 | 2086 | "functionType": "Action", |
2087 | | - "group": "Resource bar configuration", |
| 2087 | + "group": "FillBar bar configuration", |
2088 | 2088 | "name": "SetLabelShown", |
2089 | 2089 | "sentence": "Show the label of _PARAM0_: _PARAM1_", |
2090 | 2090 | "events": [ |
|
2215 | 2215 | "group": "Bar", |
2216 | 2216 | "extraInformation": [ |
2217 | 2217 | "Label", |
2218 | | - "Resource", |
| 2218 | + "FillBar", |
2219 | 2219 | "Buffer" |
2220 | 2220 | ], |
2221 | 2221 | "hidden": false, |
|
2229 | 2229 | "group": "Bar", |
2230 | 2230 | "extraInformation": [ |
2231 | 2231 | "Label", |
2232 | | - "Resource", |
| 2232 | + "FillBar", |
2233 | 2233 | "Buffer" |
2234 | 2234 | ], |
2235 | 2235 | "hidden": false, |
|
2243 | 2243 | "group": "Bar", |
2244 | 2244 | "extraInformation": [ |
2245 | 2245 | "Label", |
2246 | | - "Resource", |
| 2246 | + "FillBar", |
2247 | 2247 | "Buffer" |
2248 | 2248 | ], |
2249 | 2249 | "hidden": false, |
|
2257 | 2257 | "group": "Bar", |
2258 | 2258 | "extraInformation": [ |
2259 | 2259 | "Label", |
2260 | | - "Resource", |
| 2260 | + "FillBar", |
2261 | 2261 | "Buffer" |
2262 | 2262 | ], |
2263 | 2263 | "hidden": false, |
|
2356 | 2356 | "description": "Only used by the scene editor.", |
2357 | 2357 | "group": "", |
2358 | 2358 | "extraInformation": [ |
2359 | | - "Resource" |
| 2359 | + "FillBar" |
2360 | 2360 | ], |
2361 | 2361 | "hidden": true, |
2362 | 2362 | "name": "LabelVerticalAnchorTarget" |
|
2390 | 2390 | "bottomMargin": 0, |
2391 | 2391 | "height": 32, |
2392 | 2392 | "leftMargin": 0, |
2393 | | - "name": "Resource", |
| 2393 | + "name": "FillBar", |
2394 | 2394 | "rightMargin": 0, |
2395 | 2395 | "tags": "", |
2396 | 2396 | "texture": "", |
|
0 commit comments