Skip to content

Commit c5a524e

Browse files
committed
Use a leaderboard property.
1 parent 0dda931 commit c5a524e

File tree

4 files changed

+309
-33
lines changed

4 files changed

+309
-33
lines changed

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

Lines changed: 79 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"firstLayout": "Menu",
33
"gdVersion": {
4-
"build": 216,
4+
"build": 217,
55
"major": 5,
66
"minor": 4,
77
"revision": 0
@@ -37142,6 +37142,75 @@
3714237142
}
3714337143
],
3714437144
"objectGroups": []
37145+
},
37146+
{
37147+
"description": "the leaderboard of the object.",
37148+
"fullName": "Leaderboard",
37149+
"functionType": "ExpressionAndCondition",
37150+
"name": "LeaderboardId",
37151+
"sentence": "the leaderboard",
37152+
"events": [
37153+
{
37154+
"type": "BuiltinCommonInstructions::Standard",
37155+
"conditions": [],
37156+
"actions": [
37157+
{
37158+
"type": {
37159+
"value": "SetReturnString"
37160+
},
37161+
"parameters": [
37162+
"LeaderboardId"
37163+
]
37164+
}
37165+
]
37166+
}
37167+
],
37168+
"expressionType": {
37169+
"type": "leaderboardId"
37170+
},
37171+
"parameters": [
37172+
{
37173+
"description": "Object",
37174+
"name": "Object",
37175+
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
37176+
"type": "object"
37177+
}
37178+
],
37179+
"objectGroups": []
37180+
},
37181+
{
37182+
"fullName": "",
37183+
"functionType": "ActionWithOperator",
37184+
"getterName": "LeaderboardId",
37185+
"name": "SetLeaderboardId",
37186+
"sentence": "",
37187+
"events": [
37188+
{
37189+
"type": "BuiltinCommonInstructions::Standard",
37190+
"conditions": [],
37191+
"actions": [
37192+
{
37193+
"type": {
37194+
"value": "LeaderboardDialog::LeaderboardDialog::SetPropertyLeaderboardId"
37195+
},
37196+
"parameters": [
37197+
"Object",
37198+
"=",
37199+
"Value"
37200+
]
37201+
}
37202+
]
37203+
}
37204+
],
37205+
"parameters": [
37206+
{
37207+
"description": "Object",
37208+
"name": "Object",
37209+
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
37210+
"type": "object"
37211+
}
37212+
],
37213+
"objectGroups": []
3714537214
}
3714637215
],
3714737216
"propertyDescriptors": [
@@ -37154,6 +37223,15 @@
3715437223
"extraInformation": [],
3715537224
"name": "DefaultPlayerName"
3715637225
},
37226+
{
37227+
"value": "",
37228+
"type": "LeaderboardId",
37229+
"label": "Leaderboard",
37230+
"description": "",
37231+
"group": "",
37232+
"extraInformation": [],
37233+
"name": "LeaderboardId"
37234+
},
3715737235
{
3715837236
"value": "0",
3715937237
"type": "Number",
@@ -37164,15 +37242,6 @@
3716437242
"extraInformation": [],
3716537243
"hidden": true,
3716637244
"name": "Score"
37167-
},
37168-
{
37169-
"value": "",
37170-
"type": "String",
37171-
"label": "Leaderboard Id",
37172-
"description": "",
37173-
"group": "",
37174-
"extraInformation": [],
37175-
"name": "LeaderboardId"
3717637245
}
3717737246
],
3717837247
"objects": [

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

Lines changed: 72 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"firstLayout": "Menu",
33
"gdVersion": {
4-
"build": 216,
4+
"build": 217,
55
"major": 5,
66
"minor": 4,
77
"revision": 0
@@ -23771,6 +23771,75 @@
2377123771
}
2377223772
],
2377323773
"objectGroups": []
23774+
},
23775+
{
23776+
"description": "the leaderboard id of the object.",
23777+
"fullName": "Leaderboard id",
23778+
"functionType": "ExpressionAndCondition",
23779+
"name": "LeaderboardId",
23780+
"sentence": "the leaderboard id",
23781+
"events": [
23782+
{
23783+
"type": "BuiltinCommonInstructions::Standard",
23784+
"conditions": [],
23785+
"actions": [
23786+
{
23787+
"type": {
23788+
"value": "SetReturnString"
23789+
},
23790+
"parameters": [
23791+
"LeaderboardId"
23792+
]
23793+
}
23794+
]
23795+
}
23796+
],
23797+
"expressionType": {
23798+
"type": "leaderboardId"
23799+
},
23800+
"parameters": [
23801+
{
23802+
"description": "Object",
23803+
"name": "Object",
23804+
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
23805+
"type": "object"
23806+
}
23807+
],
23808+
"objectGroups": []
23809+
},
23810+
{
23811+
"fullName": "",
23812+
"functionType": "ActionWithOperator",
23813+
"getterName": "LeaderboardId",
23814+
"name": "SetLeaderboardId",
23815+
"sentence": "",
23816+
"events": [
23817+
{
23818+
"type": "BuiltinCommonInstructions::Standard",
23819+
"conditions": [],
23820+
"actions": [
23821+
{
23822+
"type": {
23823+
"value": "LeaderboardDialog::LeaderboardDialog::SetPropertyLeaderboardId"
23824+
},
23825+
"parameters": [
23826+
"Object",
23827+
"=",
23828+
"Value"
23829+
]
23830+
}
23831+
]
23832+
}
23833+
],
23834+
"parameters": [
23835+
{
23836+
"description": "Object",
23837+
"name": "Object",
23838+
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
23839+
"type": "object"
23840+
}
23841+
],
23842+
"objectGroups": []
2377423843
}
2377523844
],
2377623845
"propertyDescriptors": [
@@ -23796,8 +23865,8 @@
2379623865
},
2379723866
{
2379823867
"value": "",
23799-
"type": "String",
23800-
"label": "Leaderboard Id",
23868+
"type": "LeaderboardId",
23869+
"label": "Leaderboard",
2380123870
"description": "",
2380223871
"group": "",
2380323872
"extraInformation": [],

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

Lines changed: 79 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"firstLayout": "Intro",
33
"gdVersion": {
4-
"build": 216,
4+
"build": 217,
55
"major": 5,
66
"minor": 4,
77
"revision": 0
@@ -7896,6 +7896,75 @@
78967896
}
78977897
],
78987898
"objectGroups": []
7899+
},
7900+
{
7901+
"description": "the leaderboard of the object.",
7902+
"fullName": "Leaderboard",
7903+
"functionType": "ExpressionAndCondition",
7904+
"name": "LeaderboardId",
7905+
"sentence": "the leaderboard",
7906+
"events": [
7907+
{
7908+
"type": "BuiltinCommonInstructions::Standard",
7909+
"conditions": [],
7910+
"actions": [
7911+
{
7912+
"type": {
7913+
"value": "SetReturnString"
7914+
},
7915+
"parameters": [
7916+
"LeaderboardId"
7917+
]
7918+
}
7919+
]
7920+
}
7921+
],
7922+
"expressionType": {
7923+
"type": "leaderboardId"
7924+
},
7925+
"parameters": [
7926+
{
7927+
"description": "Object",
7928+
"name": "Object",
7929+
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
7930+
"type": "object"
7931+
}
7932+
],
7933+
"objectGroups": []
7934+
},
7935+
{
7936+
"fullName": "",
7937+
"functionType": "ActionWithOperator",
7938+
"getterName": "LeaderboardId",
7939+
"name": "SetLeaderboardId",
7940+
"sentence": "",
7941+
"events": [
7942+
{
7943+
"type": "BuiltinCommonInstructions::Standard",
7944+
"conditions": [],
7945+
"actions": [
7946+
{
7947+
"type": {
7948+
"value": "LeaderboardDialog::LeaderboardDialog::SetPropertyLeaderboardId"
7949+
},
7950+
"parameters": [
7951+
"Object",
7952+
"=",
7953+
"Value"
7954+
]
7955+
}
7956+
]
7957+
}
7958+
],
7959+
"parameters": [
7960+
{
7961+
"description": "Object",
7962+
"name": "Object",
7963+
"supplementaryInformation": "LeaderboardDialog::LeaderboardDialog",
7964+
"type": "object"
7965+
}
7966+
],
7967+
"objectGroups": []
78997968
}
79007969
],
79017970
"propertyDescriptors": [
@@ -7908,6 +7977,15 @@
79087977
"extraInformation": [],
79097978
"name": "DefaultPlayerName"
79107979
},
7980+
{
7981+
"value": "",
7982+
"type": "LeaderboardId",
7983+
"label": "Leaderboard",
7984+
"description": "",
7985+
"group": "",
7986+
"extraInformation": [],
7987+
"name": "LeaderboardId"
7988+
},
79117989
{
79127990
"value": "0",
79137991
"type": "Number",
@@ -7918,15 +7996,6 @@
79187996
"extraInformation": [],
79197997
"hidden": true,
79207998
"name": "Score"
7921-
},
7922-
{
7923-
"value": "",
7924-
"type": "String",
7925-
"label": "Leaderboard Id",
7926-
"description": "",
7927-
"group": "",
7928-
"extraInformation": [],
7929-
"name": "LeaderboardId"
79307999
}
79318000
],
79328001
"objects": [

0 commit comments

Comments
 (0)