Skip to content

Commit

Permalink
[Tappy plane] Fix score value in leaderboard dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Nov 6, 2024
1 parent 17da83a commit 1287a7a
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 52 deletions.
8 changes: 4 additions & 4 deletions examples/3d-car-coin-hunt/3d-car-coin-hunt.json
Original file line number Diff line number Diff line change
Expand Up @@ -37540,13 +37540,13 @@
},
{
"author": "",
"category": "",
"category": "User interface",
"extensionNamespace": "",
"fullName": "",
"helpPath": "",
"iconUrl": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
"name": "LeaderboardDialog",
"previewIconUrl": "",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
"shortDescription": "",
"version": "",
"description": "",
Expand All @@ -37566,7 +37566,7 @@
"areaMinY": 0,
"areaMinZ": 0,
"defaultName": "LeaderboardDialog",
"description": "",
"description": "Displays the player score and allows to submit it to a leaderboard.",
"fullName": "Leaderboard dialog",
"isInnerAreaFollowingParentSize": true,
"isUsingLegacyInstancesRenderer": false,
Expand Down
20 changes: 10 additions & 10 deletions examples/3d-lane-runner/3d-lane-runner.json
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,13 @@
"effects": [],
"behaviors": [
{
"name": "Anchor",
"type": "AnchorBehavior::AnchorBehavior",
"bottomEdgeAnchor": 0,
"leftEdgeAnchor": 1,
"name": "Anchor",
"relativeToOriginalWindowSize": true,
"rightEdgeAnchor": 2,
"topEdgeAnchor": 0,
"type": "AnchorBehavior::AnchorBehavior",
"useLegacyBottomAndRightAnchors": false
}
],
Expand Down Expand Up @@ -742,13 +742,13 @@
"effects": [],
"behaviors": [
{
"name": "Anchor",
"type": "AnchorBehavior::AnchorBehavior",
"bottomEdgeAnchor": 2,
"leftEdgeAnchor": 1,
"name": "Anchor",
"relativeToOriginalWindowSize": true,
"rightEdgeAnchor": 2,
"topEdgeAnchor": 1,
"type": "AnchorBehavior::AnchorBehavior",
"useLegacyBottomAndRightAnchors": false
}
]
Expand All @@ -761,13 +761,13 @@
"effects": [],
"behaviors": [
{
"name": "Anchor",
"type": "AnchorBehavior::AnchorBehavior",
"bottomEdgeAnchor": 0,
"leftEdgeAnchor": 4,
"name": "Anchor",
"relativeToOriginalWindowSize": true,
"rightEdgeAnchor": 0,
"topEdgeAnchor": 0,
"type": "AnchorBehavior::AnchorBehavior",
"useLegacyBottomAndRightAnchors": false
}
],
Expand Down Expand Up @@ -23184,13 +23184,13 @@
},
{
"author": "",
"category": "",
"category": "User interface",
"extensionNamespace": "",
"fullName": "",
"helpPath": "",
"iconUrl": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
"name": "LeaderboardDialog",
"previewIconUrl": "",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
"shortDescription": "",
"version": "",
"description": "",
Expand All @@ -23210,7 +23210,7 @@
"areaMinY": 0,
"areaMinZ": 0,
"defaultName": "LeaderboardDialog",
"description": "",
"description": "Displays the player score and allows to submit it to a leaderboard.",
"fullName": "Leaderboard dialog",
"isInnerAreaFollowingParentSize": true,
"isUsingLegacyInstancesRenderer": false,
Expand Down
10 changes: 5 additions & 5 deletions examples/run-dino-run/run-dino-run.json
Original file line number Diff line number Diff line change
Expand Up @@ -7216,13 +7216,13 @@
"eventsFunctionsExtensions": [
{
"author": "",
"category": "",
"category": "User interface",
"extensionNamespace": "",
"fullName": "",
"helpPath": "",
"iconUrl": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
"name": "LeaderboardDialog",
"previewIconUrl": "",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
"shortDescription": "",
"version": "",
"description": "",
Expand All @@ -7242,8 +7242,8 @@
"areaMinY": 0,
"areaMinZ": 0,
"defaultName": "",
"description": "",
"fullName": "",
"description": "Displays the player score and allows to submit it to a leaderboard.",
"fullName": "Leaderboard dialog",
"isInnerAreaFollowingParentSize": true,
"isUsingLegacyInstancesRenderer": false,
"name": "LeaderboardDialog",
Expand Down
85 changes: 52 additions & 33 deletions examples/tappy-plane/tappy-plane.json
Original file line number Diff line number Diff line change
Expand Up @@ -3202,27 +3202,57 @@
"",
"\"Gameover\""
]
},
}
],
"events": [
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetScore"
"type": "BuiltinCommonInstructions::Comment",
"color": {
"b": 109,
"g": 230,
"r": 255,
"textB": 0,
"textG": 0,
"textR": 0
},
"parameters": [
"LeaderboardDialog",
"=",
"Score",
""
]
"comment": "A sub event is needed to use the objects from the external layout."
},
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName"
},
"parameters": [
"LeaderboardDialog",
"=",
"PlayerName",
""
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetNumberVariable"
},
"parameters": [
"Score",
"=",
"1"
]
},
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetScore"
},
"parameters": [
"LeaderboardDialog",
"=",
"Score",
""
]
},
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName"
},
"parameters": [
"LeaderboardDialog",
"=",
"PlayerName",
""
]
}
]
}
]
Expand Down Expand Up @@ -3439,13 +3469,13 @@
"eventsFunctionsExtensions": [
{
"author": "",
"category": "",
"category": "User interface",
"extensionNamespace": "",
"fullName": "",
"helpPath": "",
"iconUrl": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXRyb3BoeSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xOCAyQzE3LjEgMiAxNiAzIDE2IDRIOEM4IDMgNi45IDIgNiAySDJWMTFDMiAxMiAzIDEzIDQgMTNINi4yQzYuNiAxNSA3LjkgMTYuNyAxMSAxN1YxOS4wOEM4IDE5LjU0IDggMjIgOCAyMkgxNkMxNiAyMiAxNiAxOS41NCAxMyAxOS4wOFYxN0MxNi4xIDE2LjcgMTcuNCAxNSAxNy44IDEzSDIwQzIxIDEzIDIyIDEyIDIyIDExVjJIMThNNiAxMUg0VjRINlYxMU0yMCAxMUgxOFY0SDIwVjExWiIgLz48L3N2Zz4=",
"name": "LeaderboardDialog",
"previewIconUrl": "",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg",
"shortDescription": "",
"version": "",
"description": "",
Expand All @@ -3465,8 +3495,8 @@
"areaMinY": 0,
"areaMinZ": 0,
"defaultName": "",
"description": "",
"fullName": "",
"description": "Displays the player score and allows to submit it to a leaderboard.",
"fullName": "Leaderboard dialog",
"isInnerAreaFollowingParentSize": true,
"isUsingLegacyInstancesRenderer": false,
"name": "LeaderboardDialog",
Expand All @@ -3481,17 +3511,6 @@
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetScore"
},
"parameters": [
"Object",
"=",
"0",
""
]
},
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetDefaultPlayerName"
Expand Down

0 comments on commit 1287a7a

Please sign in to comment.