public void PrepareSearchFollowed(string filter) { lastSearchString = filter; ActiveQuery = HeathenWorkshopItemQuery.Create(SteamUser.GetSteamID().GetAccountID(), EUserUGCList.k_EUserUGCList_Followed, EUGCMatchingUGCType.k_EUGCMatchingUGCType_Items_ReadyToUse, EUserUGCListSortOrder.k_EUserUGCListSortOrder_TitleAsc, CreatorAppId, steamSettings.applicationId); if (!string.IsNullOrEmpty(filter)) { SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, filter); } QueryPrepared.Invoke(ActiveQuery); }
public void SearchAll(string filter) { lastSearchString = filter; ActiveQuery = HeathenWorkshopItemQuery.Create(EUGCQuery.k_EUGCQuery_RankedByTrend, EUGCMatchingUGCType.k_EUGCMatchingUGCType_Items_ReadyToUse, CreatorAppId, steamSettings.applicationId); if (!string.IsNullOrEmpty(filter)) { SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, filter); } ActiveQuery.Execute(HandleResults); }
public void SearchFavorites(string filter) { lastSearchString = filter; ActiveQuery = HeathenWorkshopItemQuery.Create(SteamUser.GetSteamID().GetAccountID(), EUserUGCList.k_EUserUGCList_Favorited, EUGCMatchingUGCType.k_EUGCMatchingUGCType_Items_ReadyToUse, EUserUGCListSortOrder.k_EUserUGCListSortOrder_TitleAsc, CreatorAppId, steamSettings.applicationId); if (!string.IsNullOrEmpty(filter)) { SteamworksWorkshop.WorkshopSetSearchText(ActiveQuery.handle, filter); } ActiveQuery.Execute(HandleResults); }