Skip to content

Commit 0f81b0a

Browse files
authored
[Tappy plane] Fix score value in leaderboard dialog (#726)
1 parent 17da83a commit 0f81b0a

File tree

4 files changed

+71
-52
lines changed

4 files changed

+71
-52
lines changed

examples/3d-car-coin-hunt/3d-car-coin-hunt.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37540,13 +37540,13 @@
3754037540
},
3754137541
{
3754237542
"author": "",
37543-
"category": "",
37543+
"category": "User interface",
3754437544
"extensionNamespace": "",
3754537545
"fullName": "",
3754637546
"helpPath": "",
37547-
"iconUrl": "",
37547+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
3754837548
"name": "LeaderboardDialog",
37549-
"previewIconUrl": "",
37549+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
3755037550
"shortDescription": "",
3755137551
"version": "",
3755237552
"description": "",
@@ -37566,7 +37566,7 @@
3756637566
"areaMinY": 0,
3756737567
"areaMinZ": 0,
3756837568
"defaultName": "LeaderboardDialog",
37569-
"description": "",
37569+
"description": "Displays the player score and allows to submit it to a leaderboard.",
3757037570
"fullName": "Leaderboard dialog",
3757137571
"isInnerAreaFollowingParentSize": true,
3757237572
"isUsingLegacyInstancesRenderer": false,

examples/3d-lane-runner/3d-lane-runner.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -690,13 +690,13 @@
690690
"effects": [],
691691
"behaviors": [
692692
{
693+
"name": "Anchor",
694+
"type": "AnchorBehavior::AnchorBehavior",
693695
"bottomEdgeAnchor": 0,
694696
"leftEdgeAnchor": 1,
695-
"name": "Anchor",
696697
"relativeToOriginalWindowSize": true,
697698
"rightEdgeAnchor": 2,
698699
"topEdgeAnchor": 0,
699-
"type": "AnchorBehavior::AnchorBehavior",
700700
"useLegacyBottomAndRightAnchors": false
701701
}
702702
],
@@ -742,13 +742,13 @@
742742
"effects": [],
743743
"behaviors": [
744744
{
745+
"name": "Anchor",
746+
"type": "AnchorBehavior::AnchorBehavior",
745747
"bottomEdgeAnchor": 2,
746748
"leftEdgeAnchor": 1,
747-
"name": "Anchor",
748749
"relativeToOriginalWindowSize": true,
749750
"rightEdgeAnchor": 2,
750751
"topEdgeAnchor": 1,
751-
"type": "AnchorBehavior::AnchorBehavior",
752752
"useLegacyBottomAndRightAnchors": false
753753
}
754754
]
@@ -761,13 +761,13 @@
761761
"effects": [],
762762
"behaviors": [
763763
{
764+
"name": "Anchor",
765+
"type": "AnchorBehavior::AnchorBehavior",
764766
"bottomEdgeAnchor": 0,
765767
"leftEdgeAnchor": 4,
766-
"name": "Anchor",
767768
"relativeToOriginalWindowSize": true,
768769
"rightEdgeAnchor": 0,
769770
"topEdgeAnchor": 0,
770-
"type": "AnchorBehavior::AnchorBehavior",
771771
"useLegacyBottomAndRightAnchors": false
772772
}
773773
],
@@ -23184,13 +23184,13 @@
2318423184
},
2318523185
{
2318623186
"author": "",
23187-
"category": "",
23187+
"category": "User interface",
2318823188
"extensionNamespace": "",
2318923189
"fullName": "",
2319023190
"helpPath": "",
23191-
"iconUrl": "",
23191+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
2319223192
"name": "LeaderboardDialog",
23193-
"previewIconUrl": "",
23193+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
2319423194
"shortDescription": "",
2319523195
"version": "",
2319623196
"description": "",
@@ -23210,7 +23210,7 @@
2321023210
"areaMinY": 0,
2321123211
"areaMinZ": 0,
2321223212
"defaultName": "LeaderboardDialog",
23213-
"description": "",
23213+
"description": "Displays the player score and allows to submit it to a leaderboard.",
2321423214
"fullName": "Leaderboard dialog",
2321523215
"isInnerAreaFollowingParentSize": true,
2321623216
"isUsingLegacyInstancesRenderer": false,

examples/run-dino-run/run-dino-run.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7216,13 +7216,13 @@
72167216
"eventsFunctionsExtensions": [
72177217
{
72187218
"author": "",
7219-
"category": "",
7219+
"category": "User interface",
72207220
"extensionNamespace": "",
72217221
"fullName": "",
72227222
"helpPath": "",
7223-
"iconUrl": "",
7223+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
72247224
"name": "LeaderboardDialog",
7225-
"previewIconUrl": "",
7225+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
72267226
"shortDescription": "",
72277227
"version": "",
72287228
"description": "",
@@ -7242,8 +7242,8 @@
72427242
"areaMinY": 0,
72437243
"areaMinZ": 0,
72447244
"defaultName": "",
7245-
"description": "",
7246-
"fullName": "",
7245+
"description": "Displays the player score and allows to submit it to a leaderboard.",
7246+
"fullName": "Leaderboard dialog",
72477247
"isInnerAreaFollowingParentSize": true,
72487248
"isUsingLegacyInstancesRenderer": false,
72497249
"name": "LeaderboardDialog",

examples/tappy-plane/tappy-plane.json

Lines changed: 52 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,27 +3202,57 @@
32023202
"",
32033203
"\"Gameover\""
32043204
]
3205-
},
3205+
}
3206+
],
3207+
"events": [
32063208
{
3207-
"type": {
3208-
"value": "LeaderboardDialog::LeaderboardDialog::SetScore"
3209+
"type": "BuiltinCommonInstructions::Comment",
3210+
"color": {
3211+
"b": 109,
3212+
"g": 230,
3213+
"r": 255,
3214+
"textB": 0,
3215+
"textG": 0,
3216+
"textR": 0
32093217
},
3210-
"parameters": [
3211-
"LeaderboardDialog",
3212-
"=",
3213-
"Score",
3214-
""
3215-
]
3218+
"comment": "A sub event is needed to use the objects from the external layout."
32163219
},
32173220
{
3218-
"type": {
3219-
"value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName"
3220-
},
3221-
"parameters": [
3222-
"LeaderboardDialog",
3223-
"=",
3224-
"PlayerName",
3225-
""
3221+
"type": "BuiltinCommonInstructions::Standard",
3222+
"conditions": [],
3223+
"actions": [
3224+
{
3225+
"type": {
3226+
"value": "SetNumberVariable"
3227+
},
3228+
"parameters": [
3229+
"Score",
3230+
"=",
3231+
"1"
3232+
]
3233+
},
3234+
{
3235+
"type": {
3236+
"value": "LeaderboardDialog::LeaderboardDialog::SetScore"
3237+
},
3238+
"parameters": [
3239+
"LeaderboardDialog",
3240+
"=",
3241+
"Score",
3242+
""
3243+
]
3244+
},
3245+
{
3246+
"type": {
3247+
"value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName"
3248+
},
3249+
"parameters": [
3250+
"LeaderboardDialog",
3251+
"=",
3252+
"PlayerName",
3253+
""
3254+
]
3255+
}
32263256
]
32273257
}
32283258
]
@@ -3439,13 +3469,13 @@
34393469
"eventsFunctionsExtensions": [
34403470
{
34413471
"author": "",
3442-
"category": "",
3472+
"category": "User interface",
34433473
"extensionNamespace": "",
34443474
"fullName": "",
34453475
"helpPath": "",
3446-
"iconUrl": "",
3476+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
34473477
"name": "LeaderboardDialog",
3448-
"previewIconUrl": "",
3478+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
34493479
"shortDescription": "",
34503480
"version": "",
34513481
"description": "",
@@ -3465,8 +3495,8 @@
34653495
"areaMinY": 0,
34663496
"areaMinZ": 0,
34673497
"defaultName": "",
3468-
"description": "",
3469-
"fullName": "",
3498+
"description": "Displays the player score and allows to submit it to a leaderboard.",
3499+
"fullName": "Leaderboard dialog",
34703500
"isInnerAreaFollowingParentSize": true,
34713501
"isUsingLegacyInstancesRenderer": false,
34723502
"name": "LeaderboardDialog",
@@ -3481,17 +3511,6 @@
34813511
"type": "BuiltinCommonInstructions::Standard",
34823512
"conditions": [],
34833513
"actions": [
3484-
{
3485-
"type": {
3486-
"value": "LeaderboardDialog::LeaderboardDialog::SetScore"
3487-
},
3488-
"parameters": [
3489-
"Object",
3490-
"=",
3491-
"0",
3492-
""
3493-
]
3494-
},
34953514
{
34963515
"type": {
34973516
"value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName"

0 commit comments

Comments
 (0)