Difference between revisions of "Gaming:loadScores"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Fetch leaderboard entries. Either [[Special:MyLanguage/Event.LOAD_SCORES_COMPLETE|Event.LOAD_SCORES_COMPLETE]] or [[Special:MyLanguage/Event.LOAD_SCORES_ERROR|Event.LOAD_SCORES_ERROR]] will be triggered.</translate>
 
<translate>Fetch leaderboard entries. Either [[Special:MyLanguage/Event.LOAD_SCORES_COMPLETE|Event.LOAD_SCORES_COMPLETE]] or [[Special:MyLanguage/Event.LOAD_SCORES_ERROR|Event.LOAD_SCORES_ERROR]] will be triggered.</translate>
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
  Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)
 
  Gaming:loadScores(leaderboardId,timeSpan,collection,maxEntries)
 
</source>
 
</source>

Revision as of 14:28, 13 July 2023


Available since: Gideros 2012.09
Class: Gaming

Description

Fetch leaderboard entries. Either Event.LOAD_SCORES_COMPLETE or Event.LOAD_SCORES_ERROR will be triggered. <syntaxhighlight lang="lua">

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

</source>

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