This class manages the uGUI of the Steam leaderboards UI. It registers to events of SteamLeaderboardsMain class, e.g. SteamLeaderboardsMain.OnDownloadedScores. You can replace this class with your own UI e.g. NGUI. In this case you need to take care of registering to events and calling methods of the SteamLeaderboardsMain class from your new implementation.
More...
Inherits MonoBehaviour.
This class manages the uGUI of the Steam leaderboards UI. It registers to events of SteamLeaderboardsMain class, e.g. SteamLeaderboardsMain.OnDownloadedScores. You can replace this class with your own UI e.g. NGUI. In this case you need to take care of registering to events and calling methods of the SteamLeaderboardsMain class from your new implementation.
◆ ConvertScoresToNodes()
virtual uMyGUI_TreeBrowser.Node [] LapinerTools.Steam.UI.SteamLeaderboardsUI.ConvertScoresToNodes |
( |
List< LeaderboardsScoreEntry > |
p_scores | ) |
|
|
protectedvirtual |
This method will convert the gives Steam score entries to UI nodes, which can be passed to the item browser.
◆ DownloadScores()
void LapinerTools.Steam.UI.SteamLeaderboardsUI.DownloadScores |
( |
string |
p_leaderboardName | ) |
|
◆ DownloadScoresAroundUser()
void LapinerTools.Steam.UI.SteamLeaderboardsUI.DownloadScoresAroundUser |
( |
string |
p_leaderboardName, |
|
|
int |
p_range |
|
) |
| |
◆ InvokeEventHandlerSafely< T >()
virtual void LapinerTools.Steam.UI.SteamLeaderboardsUI.InvokeEventHandlerSafely< T > |
( |
System.Action< T > |
p_handler, |
|
|
T |
p_data |
|
) |
| |
|
protectedvirtual |
◆ InvokeOnEntryDataSet()
◆ OnDestroy()
virtual void LapinerTools.Steam.UI.SteamLeaderboardsUI.OnDestroy |
( |
| ) |
|
|
protectedvirtual |
◆ SetLeaderboardName()
void LapinerTools.Steam.UI.SteamLeaderboardsUI.SetLeaderboardName |
( |
string |
p_leaderboardName | ) |
|
Call SetLeaderboardName to update the text of the uGUI Text object linked in the LEADERBOARD_NAME_TEXT inspector property.
◆ SetScores() [1/2]
Call SetScores to refresh the leaderboard UI. Calling this method will remove all currently visible score entries and replace them with those passed in the p_scores argument.
- Parameters
-
p_scores | list of items to be visualized. |
◆ SetScores() [2/2]
◆ ShowErrorMessage()
virtual void LapinerTools.Steam.UI.SteamLeaderboardsUI.ShowErrorMessage |
( |
ErrorEventArgs |
p_errorArgs | ) |
|
|
protectedvirtual |
◆ Start()
virtual void LapinerTools.Steam.UI.SteamLeaderboardsUI.Start |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
virtual void LapinerTools.Steam.UI.SteamLeaderboardsUI.Update |
( |
| ) |
|
|
protectedvirtual |
◆ UpdateScrollbarVisibility()
virtual void LapinerTools.Steam.UI.SteamLeaderboardsUI.UpdateScrollbarVisibility |
( |
| ) |
|
|
protectedvirtual |
◆ UploadScore() [1/2]
static void LapinerTools.Steam.UI.SteamLeaderboardsUI.UploadScore |
( |
string |
p_leaderboardName, |
|
|
int |
p_score |
|
) |
| |
|
static |
The same as SteamLeaderboardsMain.UploadScore with an additional loading popup and a new record popup.
- Parameters
-
p_leaderboardName | leaderboard name. |
p_score | player score. |
◆ UploadScore() [2/2]
static void LapinerTools.Steam.UI.SteamLeaderboardsUI.UploadScore |
( |
string |
p_leaderboardName, |
|
|
int |
p_score, |
|
|
System.Action< LeaderboardsUploadedScoreEventArgs > |
p_onUploadedScoreSuccessfully |
|
) |
| |
|
static |
The same as SteamLeaderboardsMain.UploadScore with an additional loading popup and new record popup.
- Parameters
-
p_leaderboardName | leaderboard name. |
p_score | player score. |
p_onUploadedScoreSuccessfully | action to call when the score is uploaded successfully. |
◆ LEADERBOARD_EMPTY_MESSAGE
Text LapinerTools.Steam.UI.SteamLeaderboardsUI.LEADERBOARD_EMPTY_MESSAGE = null |
|
protected |
◆ LEADERBOARD_NAME_TEXT
Text LapinerTools.Steam.UI.SteamLeaderboardsUI.LEADERBOARD_NAME_TEXT = null |
|
protected |
◆ s_instance
◆ SCORES_BROWSER
uMyGUI_TreeBrowser LapinerTools.Steam.UI.SteamLeaderboardsUI.SCORES_BROWSER = null |
|
protected |
◆ Instance
◆ OnEntryDataSet
Invoked when the data of the LeaderboardListEntry prefab (SteamLeaderboardsScoreEntryNode class) is updated. You can use this event to initialize fields of your custom UI. For example, you could add a replay button to the LeaderboardListEntry prefab. Then you would search the replay uGUI button object and set the button callback when this event is triggered.
The documentation for this class was generated from the following file: