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

◆ DownloadMissingMods()

static void Terraria.ModLoader.UI.UIModPackItem.DownloadMissingMods ( UIMouseEvent evt,
UIElement listeningElement )
inlinestaticprivate

Definition at line 659 of file UIModPackItem.cs.

660 {
662 Interface.modBrowser.Activate();
663 Interface.modBrowser.FilterTextBox.Text = "";
664 Interface.modBrowser.SpecialModPackFilter = modpack.GetModPackBrowserIds();
665 Interface.modBrowser.SpecialModPackFilterTitle = Language.GetTextValue("tModLoader.MBFilterModlist");
666 Interface.modBrowser.UpdateFilterMode = UpdateFilter.All;
667 Interface.modBrowser.ModSideFilterMode = ModSideFilter.All;
669 Interface.modBrowser.PreviousUIState = Interface.modPacksMenu;
670 Main.menuMode = 10007;
671 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static readonly SoundStyle MenuOpen
Definition SoundID.cs:291
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
UIModPackItem(string name, string[] mods, bool legacy, IEnumerable< LocalMod > localMods)

References Terraria.ModLoader.UI.UIModPackItem.UIModPackItem(), Terraria.Localization.Language.GetTextValue(), Terraria.ID.SoundID.MenuOpen, Terraria.ModLoader.UI.Interface.modBrowser, Terraria.ModLoader.UI.Interface.modPacksMenu, and Terraria.Audio.SoundEngine.PlaySound().

Referenced by Terraria.ModLoader.UI.UIModPackItem.UIModPackItem().

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