This class manages the uGUI of the Steam Workshop browse items menu. It registers to events of SteamWorkshopMain class, e.g. SteamWorkshopMain.OnItemListLoaded. SteamWorkshopUIBrowse also receives UI callbacks from uGUI buttons and other elements. 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 SteamWorkshopMain class from your new implementation.
More...
Inherits MonoBehaviour.
This class manages the uGUI of the Steam Workshop browse items menu. It registers to events of SteamWorkshopMain class, e.g. SteamWorkshopMain.OnItemListLoaded. SteamWorkshopUIBrowse also receives UI callbacks from uGUI buttons and other elements. 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 SteamWorkshopMain class from your new implementation.
◆ ConvertItemsToNodes()
virtual uMyGUI_TreeBrowser.Node [] LapinerTools.Steam.UI.SteamWorkshopUIBrowse.ConvertItemsToNodes |
( |
WorkshopItem [] |
p_items | ) |
|
|
protectedvirtual |
This method will convert the gives Steam items to UI nodes, which can be passed to the item browser.
◆ InitSearch()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InitSearch |
( |
| ) |
|
|
protectedvirtual |
◆ InitSorting()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InitSorting |
( |
| ) |
|
|
protectedvirtual |
◆ InvokeEventHandlerSafely< T >()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeEventHandlerSafely< T > |
( |
System.Action< T > |
p_handler, |
|
|
T |
p_data |
|
) |
| |
|
protectedvirtual |
◆ InvokeOnAddFavoriteButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnAddFavoriteButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ InvokeOnItemDataSet()
◆ InvokeOnPlayButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnPlayButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ InvokeOnRemoveFavoriteButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnRemoveFavoriteButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ InvokeOnSubscribeButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnSubscribeButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ InvokeOnUnsubscribeButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnUnsubscribeButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ InvokeOnVoteDownButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnVoteDownButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ InvokeOnVoteUpButtonClick()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.InvokeOnVoteUpButtonClick |
( |
WorkshopItem |
p_clickedItem | ) |
|
◆ LateUpdate()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.LateUpdate |
( |
| ) |
|
|
protectedvirtual |
◆ LoadItems()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.LoadItems |
( |
int |
p_page | ) |
|
◆ OnDestroy()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.OnDestroy |
( |
| ) |
|
|
protectedvirtual |
◆ Search()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.Search |
( |
string |
p_searchText | ) |
|
Search items containing p_searchText. Will reload the item list if the search text has changed.
- Parameters
-
p_searchText | text to search. |
◆ SetItems() [1/2]
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.SetItems |
( |
WorkshopItemList |
p_itemList | ) |
|
Call SetItems to refresh the item selection UI. Calling this method will remove all currently visible items and replace them with those passed in the p_itemList argument.
- Parameters
-
p_itemList | list of items to be visualized. |
◆ SetItems() [2/2]
◆ SetPage()
void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.SetPage |
( |
int |
p_page | ) |
|
|
protected |
◆ ShowErrorMessage()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.ShowErrorMessage |
( |
ErrorEventArgs |
p_errorArgs | ) |
|
|
protectedvirtual |
◆ Start()
virtual void LapinerTools.Steam.UI.SteamWorkshopUIBrowse.Start |
( |
| ) |
|
|
protectedvirtual |
◆ ITEM_BROWSER
uMyGUI_TreeBrowser LapinerTools.Steam.UI.SteamWorkshopUIBrowse.ITEM_BROWSER = null |
|
protected |
◆ m_improveNavigationFocus
bool LapinerTools.Steam.UI.SteamWorkshopUIBrowse.m_improveNavigationFocus = true |
|
protected |
◆ m_uiNodeToSteamItem
Dictionary<uMyGUI_TreeBrowser.Node, WorkshopItem> LapinerTools.Steam.UI.SteamWorkshopUIBrowse.m_uiNodeToSteamItem = new Dictionary<uMyGUI_TreeBrowser.Node, WorkshopItem>() |
|
protected |
◆ PAGE_SELCTOR
uMyGUI_PageBox LapinerTools.Steam.UI.SteamWorkshopUIBrowse.PAGE_SELCTOR = null |
|
protected |
◆ s_instance
◆ SEARCH_BUTTON
Button LapinerTools.Steam.UI.SteamWorkshopUIBrowse.SEARCH_BUTTON = null |
|
protected |
◆ SEARCH_INPUT
InputField LapinerTools.Steam.UI.SteamWorkshopUIBrowse.SEARCH_INPUT = null |
|
protected |
◆ SORTING
SortingConfig LapinerTools.Steam.UI.SteamWorkshopUIBrowse.SORTING = null |
|
protected |
◆ Instance
◆ OnAddFavoriteButtonClick
System.Action<WorkshopItemEventArgs> LapinerTools.Steam.UI.SteamWorkshopUIBrowse.OnAddFavoriteButtonClick |
Invoked when the add to favorites button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
◆ OnItemDataSet
Invoked when the data of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is updated. You can use this event to initialize fields of your custom UI. For example, you could add a highscore text to the WorkshopItemListEntry prefab. Then you would search the highscore uGUI text object and set the value when this event is triggered.
◆ OnPageChanged
System.Action<int> LapinerTools.Steam.UI.SteamWorkshopUIBrowse.OnPageChanged |
Invoked when the item list page was changed.
◆ OnPlayButtonClick
Invoked when the play button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
◆ OnRemoveFavoriteButtonClick
System.Action<WorkshopItemEventArgs> LapinerTools.Steam.UI.SteamWorkshopUIBrowse.OnRemoveFavoriteButtonClick |
Invoked when the remove from favorites button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
◆ OnSearchButtonClick
System.Action<string> LapinerTools.Steam.UI.SteamWorkshopUIBrowse.OnSearchButtonClick |
Invoked when the search button is clicked or the search text is committed.
◆ OnSortModeChanged
Invoked when the sort mode was changed.
◆ OnSubscribeButtonClick
Invoked when the subscribe button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
◆ OnUnsubscribeButtonClick
System.Action<WorkshopItemEventArgs> LapinerTools.Steam.UI.SteamWorkshopUIBrowse.OnUnsubscribeButtonClick |
Invoked when the unsubscribe button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
◆ OnVoteDownButtonClick
Invoked when the vote down button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
◆ OnVoteUpButtonClick
Invoked when the vote up button of the WorkshopItemListEntry prefab (SteamWorkshopItemNode class) is clicked.
The documentation for this class was generated from the following file: