Skip to content

Commit

Permalink
Use a leaderboard property.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Oct 28, 2024
1 parent 549665f commit 8db0a24
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 33 deletions.
89 changes: 79 additions & 10 deletions examples/3d-car-coin-hunt/3d-car-coin-hunt.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"firstLayout": "Menu",
"gdVersion": {
"build": 216,
"build": 217,
"major": 5,
"minor": 4,
"revision": 0
Expand Down Expand Up @@ -37142,6 +37142,75 @@
}
],
"objectGroups": []
},
{
"description": "the leaderboard of the object.",
"fullName": "Leaderboard",
"functionType": "ExpressionAndCondition",
"name": "LeaderboardId",
"sentence": "the leaderboard",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"LeaderboardId"
]
}
]
}
],
"expressionType": {
"type": "leaderboardId"
},
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
"type": "object"
}
],
"objectGroups": []
},
{
"fullName": "",
"functionType": "ActionWithOperator",
"getterName": "LeaderboardId",
"name": "SetLeaderboardId",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetPropertyLeaderboardId"
},
"parameters": [
"Object",
"=",
"Value"
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
"type": "object"
}
],
"objectGroups": []
}
],
"propertyDescriptors": [
Expand All @@ -37154,6 +37223,15 @@
"extraInformation": [],
"name": "DefaultPlayerName"
},
{
"value": "",
"type": "LeaderboardId",
"label": "Leaderboard",
"description": "",
"group": "",
"extraInformation": [],
"name": "LeaderboardId"
},
{
"value": "0",
"type": "Number",
Expand All @@ -37164,15 +37242,6 @@
"extraInformation": [],
"hidden": true,
"name": "Score"
},
{
"value": "",
"type": "String",
"label": "Leaderboard Id",
"description": "",
"group": "",
"extraInformation": [],
"name": "LeaderboardId"
}
],
"objects": [
Expand Down
75 changes: 72 additions & 3 deletions examples/3d-lane-runner/3d-lane-runner.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"firstLayout": "Menu",
"gdVersion": {
"build": 216,
"build": 217,
"major": 5,
"minor": 4,
"revision": 0
Expand Down Expand Up @@ -23771,6 +23771,75 @@
}
],
"objectGroups": []
},
{
"description": "the leaderboard id of the object.",
"fullName": "Leaderboard id",
"functionType": "ExpressionAndCondition",
"name": "LeaderboardId",
"sentence": "the leaderboard id",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"LeaderboardId"
]
}
]
}
],
"expressionType": {
"type": "leaderboardId"
},
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
"type": "object"
}
],
"objectGroups": []
},
{
"fullName": "",
"functionType": "ActionWithOperator",
"getterName": "LeaderboardId",
"name": "SetLeaderboardId",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetPropertyLeaderboardId"
},
"parameters": [
"Object",
"=",
"Value"
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
"type": "object"
}
],
"objectGroups": []
}
],
"propertyDescriptors": [
Expand All @@ -23796,8 +23865,8 @@
},
{
"value": "",
"type": "String",
"label": "Leaderboard Id",
"type": "LeaderboardId",
"label": "Leaderboard",
"description": "",
"group": "",
"extraInformation": [],
Expand Down
89 changes: 79 additions & 10 deletions examples/run-dino-run/run-dino-run.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"firstLayout": "Intro",
"gdVersion": {
"build": 216,
"build": 217,
"major": 5,
"minor": 4,
"revision": 0
Expand Down Expand Up @@ -7896,6 +7896,75 @@
}
],
"objectGroups": []
},
{
"description": "the leaderboard of the object.",
"fullName": "Leaderboard",
"functionType": "ExpressionAndCondition",
"name": "LeaderboardId",
"sentence": "the leaderboard",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnString"
},
"parameters": [
"LeaderboardId"
]
}
]
}
],
"expressionType": {
"type": "leaderboardId"
},
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
"type": "object"
}
],
"objectGroups": []
},
{
"fullName": "",
"functionType": "ActionWithOperator",
"getterName": "LeaderboardId",
"name": "SetLeaderboardId",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "LeaderboardDialog::LeaderboardDialog::SetPropertyLeaderboardId"
},
"parameters": [
"Object",
"=",
"Value"
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
"type": "object"
}
],
"objectGroups": []
}
],
"propertyDescriptors": [
Expand All @@ -7908,6 +7977,15 @@
"extraInformation": [],
"name": "DefaultPlayerName"
},
{
"value": "",
"type": "LeaderboardId",
"label": "Leaderboard",
"description": "",
"group": "",
"extraInformation": [],
"name": "LeaderboardId"
},
{
"value": "0",
"type": "Number",
Expand All @@ -7918,15 +7996,6 @@
"extraInformation": [],
"hidden": true,
"name": "Score"
},
{
"value": "",
"type": "String",
"label": "Leaderboard Id",
"description": "",
"group": "",
"extraInformation": [],
"name": "LeaderboardId"
}
],
"objects": [
Expand Down
Loading

0 comments on commit 8db0a24

Please sign in to comment.