Skip to content

Commit 2eb38ef

Browse files
D8HHelperWesley
andauthored
[Review] [Score counter] Allow to use bitmap texts (#2094)
- Also fix the initial value not being taken into account Co-authored-by: HelperWesley <72082749+HelperWesley@users.noreply.github.com>
1 parent 6a99e1b commit 2eb38ef

1 file changed

Lines changed: 80 additions & 15 deletions

File tree

extensions/reviewed/ScoreCounter.json

Lines changed: 80 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"author": "",
33
"category": "User interface",
4+
"dimension": "",
45
"extensionNamespace": "",
56
"fullName": "Animated score counter",
67
"gdevelopVersion": ">=5.5.222",
@@ -9,7 +10,7 @@
910
"name": "ScoreCounter",
1011
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/48ec8784eacd92181e4a3bde4755962b5f6edf986e624fc85ea423a31408450d_counter.svg",
1112
"shortDescription": "Animated score counter with an icon.",
12-
"version": "1.4.0",
13+
"version": "1.4.1",
1314
"description": [
1415
"An animated score counter with an icon and a customisable font.",
1516
"",
@@ -53,6 +54,14 @@
5354
"objectGroups": []
5455
}
5556
],
57+
"eventsFunctionsFolderStructure": {
58+
"folderName": "__ROOT",
59+
"children": [
60+
{
61+
"functionName": "IsInGameEdition"
62+
}
63+
]
64+
},
5665
"eventsBasedBehaviors": [
5766
{
5867
"description": "Smoothly changes a counter value in a text object.",
@@ -299,6 +308,23 @@
299308
"objectGroups": []
300309
}
301310
],
311+
"eventsFunctionsFolderStructure": {
312+
"folderName": "__ROOT",
313+
"children": [
314+
{
315+
"functionName": "doStepPreEvents"
316+
},
317+
{
318+
"functionName": "Value"
319+
},
320+
{
321+
"functionName": "SetValue"
322+
},
323+
{
324+
"functionName": "ResetDisplayedValue"
325+
}
326+
]
327+
},
302328
"propertyDescriptors": [
303329
{
304330
"value": "",
@@ -2760,6 +2786,23 @@
27602786
"objectGroups": []
27612787
}
27622788
],
2789+
"eventsFunctionsFolderStructure": {
2790+
"folderName": "__ROOT",
2791+
"children": [
2792+
{
2793+
"functionName": "ShakeObject_PositionAngleScale"
2794+
},
2795+
{
2796+
"functionName": "doStepPostEvents"
2797+
},
2798+
{
2799+
"functionName": "StopShaking"
2800+
},
2801+
{
2802+
"functionName": "IsShaking"
2803+
}
2804+
]
2805+
},
27632806
"propertyDescriptors": [
27642807
{
27652808
"value": "",
@@ -2770,22 +2813,13 @@
27702813
],
27712814
"choices": [],
27722815
"name": "Scale"
2773-
},
2774-
{
2775-
"value": "",
2776-
"type": "Number",
2777-
"label": "",
2778-
"name": "Property"
27792816
}
27802817
],
27812818
"propertiesFolderStructure": {
27822819
"folderName": "__ROOT",
27832820
"children": [
27842821
{
27852822
"propertyName": "Scale"
2786-
},
2787-
{
2788-
"propertyName": "Property"
27892823
}
27902824
]
27912825
}
@@ -3143,13 +3177,24 @@
31433177
"actions": [
31443178
{
31453179
"type": {
3146-
"value": "TextContainerCapability::TextContainerBehavior::SetValue"
3180+
"value": "ScoreCounter::RollingCounter::SetValue"
31473181
},
31483182
"parameters": [
31493183
"CounterText",
3150-
"Text",
3184+
"RollingCounter",
31513185
"=",
3152-
"Score"
3186+
"Score",
3187+
""
3188+
]
3189+
},
3190+
{
3191+
"type": {
3192+
"value": "ScoreCounter::RollingCounter::ResetDisplayedValue"
3193+
},
3194+
"parameters": [
3195+
"CounterText",
3196+
"RollingCounter",
3197+
""
31533198
]
31543199
}
31553200
]
@@ -3351,11 +3396,11 @@
33513396
"value": "ScoreCounter::ShakeObject_PositionAngleScale::ShakeObject_PositionAngleScale"
33523397
},
33533398
"parameters": [
3354-
"Counter",
3399+
"CounterText",
33553400
"ShakeObject_PositionAngleScale",
33563401
"0.2",
33573402
"0",
3358-
"10",
3403+
"0.15 * Icon.Height()",
33593404
"0",
33603405
"0",
33613406
"0.1",
@@ -3468,6 +3513,26 @@
34683513
"objectGroups": []
34693514
}
34703515
],
3516+
"eventsFunctionsFolderStructure": {
3517+
"folderName": "__ROOT",
3518+
"children": [
3519+
{
3520+
"functionName": "onCreated"
3521+
},
3522+
{
3523+
"functionName": "onHotReloading"
3524+
},
3525+
{
3526+
"functionName": "Score"
3527+
},
3528+
{
3529+
"functionName": "SetScore"
3530+
},
3531+
{
3532+
"functionName": "ResetPitch"
3533+
}
3534+
]
3535+
},
34713536
"propertyDescriptors": [
34723537
{
34733538
"value": "0",

0 commit comments

Comments
 (0)