TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DownloadModsAndReturnToBrowser()

async void Terraria.ModLoader.UI.ModBrowser.UIModBrowser.DownloadModsAndReturnToBrowser ( List< ModPubId_t > modIds)
inlinepackage

Enqueues a list of mods, if found on the browser (also used for ModPacks)

Definition at line 402 of file UIModBrowser.cs.

403 {
406 {
407 searchModIds = modIds.ToArray()
408 }, out missingMods);
410 {
411 return;
412 }
413 if (missingMods.Any())
414 {
415 Interface.errorMessage.Show(Language.GetTextValue("tModLoader.MBModsNotFoundOnline", string.Join(",", missingMods)), 10007);
416 return;
417 }
418 Main.QueueMainThreadAction(delegate
419 {
420 Main.menuMode = 10007;
421 });
422 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
Task< bool > DownloadMods(IEnumerable< ModDownloadItem > mods)
List< ModDownloadItem > DirectQueryItems(QueryParameters queryParams, out List< string > missingMods)

References Terraria.Social.Base.SocialBrowserModule.DirectQueryItems(), Terraria.ModLoader.UI.ModBrowser.UIModBrowser.DownloadMods(), Terraria.ModLoader.UI.Interface.errorMessage, Terraria.Localization.Language.GetTextValue(), Terraria.Main.QueueMainThreadAction(), and Terraria.ModLoader.UI.ModBrowser.UIModBrowser.SocialBackend.

Referenced by Terraria.ModLoader.UI.ModBrowser.UIModBrowser.DownloadAllFilteredMods(), and Terraria.ModLoader.UI.ModBrowser.UIModBrowser.UpdateAllMods().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: