Difference between revisions of "Gaming:loadPlayerCenteredScores"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 +
<languages />
 
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
 
'''<translate>Available since</translate>:''' Gideros 2012.09<br/>
 +
'''<translate>Class</translate>:''' [[Special:MyLanguage/Gaming|Gaming]]<br/>
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Fetch player leaderboard entries. Either [[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]] or [[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]] will be triggered.</translate>
 
<translate>Fetch player leaderboard entries. Either [[Special:MyLanguage/Event.PLAYER_SCORE_COMPLETE|Event.PLAYER_SCORE_COMPLETE]] or [[Special:MyLanguage/Event.PLAYER_SCORE_ERROR|Event.PLAYER_SCORE_ERROR]] will be triggered.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
 
  Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)
</source>
+
</syntaxhighlight>
 
=== <translate>Parameters</translate> ===
 
=== <translate>Parameters</translate> ===
 
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
 
'''leaderboardId''': (string) <translate>Leaderboard Id</translate> <br/>
Line 11: Line 13:
 
'''collection''': (number) <translate>Player range: [[Special:MyLanguage/Gaming.FRIENDS|Gaming.FRIENDS]] or [[Special:MyLanguage/Gaming.ALL_PLAYERS|Gaming.ALL_PLAYERS]]</translate> '''optional'''<br/>
 
'''collection''': (number) <translate>Player range: [[Special:MyLanguage/Gaming.FRIENDS|Gaming.FRIENDS]] or [[Special:MyLanguage/Gaming.ALL_PLAYERS|Gaming.ALL_PLAYERS]]</translate> '''optional'''<br/>
 
'''maxEntries''': (number) <translate>Maximum number of entries to return</translate> '''optional'''<br/>
 
'''maxEntries''': (number) <translate>Maximum number of entries to return</translate> '''optional'''<br/>
 +
 +
{{Gaming}}

Latest revision as of 14:29, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Fetch player leaderboard entries. Either Event.PLAYER_SCORE_COMPLETE or Event.PLAYER_SCORE_ERROR will be triggered.

 Gaming:loadPlayerCenteredScores(leaderboardId,timeSpan,collection,maxEntries)

Parameters

leaderboardId: (string) Leaderboard Id
timeSpan: (number) Time range: Gaming.TODAY, Gaming.WEEK or Gaming.ALL_TIME optional
collection: (number) Player range: Gaming.FRIENDS or Gaming.ALL_PLAYERS optional
maxEntries: (number) Maximum number of entries to return optional