|
| 1 | +# Leaderboard dialog |
| 2 | + |
| 3 | +<img src="https://asset-resources.gdevelop.io/public-resources/Icons/4b89b420c0ed9c540a7f00c5735a31af0db2160679d3fab2170df3681c3ac38c_trophy.svg" class="extension-icon"></img> |
| 4 | +Display the player score and allow to submit it to a leaderboard. |
| 5 | + |
| 6 | +**Authors and contributors** to this experimental extension: [D8H](https://gd.games/D8H). |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +Display the player score and allow to submit it to a leaderboard. |
| 11 | + |
| 12 | +!!! tip |
| 13 | + Learn [how to install new extensions](/gdevelop5/extensions/search) by following a step-by-step guide. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +## Leaderboard dialog |
| 18 | + |
| 19 | +Displays the player score and allows to submit it to a leaderboard. |
| 20 | + |
| 21 | +### Object actions |
| 22 | + |
| 23 | +**Best score** |
| 24 | +Change the best score of the object. |
| 25 | + |
| 26 | +**Default player name** |
| 27 | +Change the default player name. |
| 28 | + |
| 29 | +**Leaderboard** |
| 30 | +Change the leaderboard of the object. |
| 31 | + |
| 32 | +**Score** |
| 33 | +Change the score. |
| 34 | + |
| 35 | +**Title** |
| 36 | +Change the title of the object. |
| 37 | + |
| 38 | +### Object conditions |
| 39 | + |
| 40 | +**Best score** |
| 41 | +Compare the best score of the object. |
| 42 | + |
| 43 | +**Default player name** |
| 44 | +Compare the default player name. |
| 45 | + |
| 46 | +**Back button clicked** |
| 47 | +Check if the back button of the dialog is clicked. |
| 48 | + |
| 49 | +**Next button clicked** |
| 50 | +Check if the next button of the dialog is clicked. |
| 51 | + |
| 52 | +**Restart button clicked** |
| 53 | +Check if the restart button of the dialog is clicked. |
| 54 | + |
| 55 | +**Score is submitted** |
| 56 | +Check if the score has been sucessfully submitted by the dialog. |
| 57 | + |
| 58 | +**Leaderboard** |
| 59 | +Compare the leaderboard of the object. |
| 60 | + |
| 61 | +**Player name** |
| 62 | +Compare the player name. |
| 63 | + |
| 64 | +**Score** |
| 65 | +Compare the score. |
| 66 | + |
| 67 | +### Object expressions |
| 68 | + |
| 69 | +| Expression | Description | | |
| 70 | +|-----|-----|-----| |
| 71 | +| `Object.BestScore()` | Return the best score of the object. || |
| 72 | +| `Object.DefaultPlayerName()` | Return the default player name. || |
| 73 | +| `Object.LeaderboardId()` | Return the leaderboard of the object. || |
| 74 | +| `Object.PlayerName()` | Return the player name. || |
| 75 | +| `Object.Score()` | Return the score. || |
| 76 | + |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +*This page is an auto-generated reference page about the **Leaderboard dialog** extension, made by the community of [GDevelop, the open-source, cross-platform game engine designed for everyone](https://gdevelop.io/).* Learn more about [all GDevelop community-made extensions here](/gdevelop5/extensions). |
0 commit comments