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

◆ EnableList()

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

Definition at line 608 of file UIModPackItem.cs.

609 {
611 LocalMod[] array = ModOrganizer.FindMods();
612 foreach (LocalMod mod in array)
613 {
614 mod.Enabled = mod.Enabled || modListItem._mods.Contains(mod.Name);
615 }
616 if (modListItem._missing.Count > 0)
617 {
618 Interface.infoMessage.Show(Language.GetTextValue("tModLoader.ModPackModsMissing", string.Join("\n", modListItem._missing)), 10016);
619 }
620 Logging.tML.Info((object)("Enabled Collection of mods defined in Mod Pack " + modListItem._filename));
621 ModLoader.OnSuccessfulLoad = (Action)Delegate.Combine(ModLoader.OnSuccessfulLoad, (Action)delegate
622 {
623 Main.menuMode = 10016;
624 });
625 ModLoader.Reload();
626 }
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
static LocalMod[] FindMods(bool logDuplicates=false)
Mods from any location, using the default internal priority logic.
Responsible for sorting, dependency verification and organizing which mods to load.
UIModPackItem(string name, string[] mods, bool legacy, IEnumerable< LocalMod > localMods)

References Terraria.ModLoader.UI.UIModPackItem.UIModPackItem(), Terraria.ModLoader.Core.ModOrganizer.FindMods(), Terraria.Localization.Language.GetTextValue(), Terraria.ModLoader.UI.Interface.infoMessage, Terraria.ModLoader.ModLoader.OnSuccessfulLoad, Terraria.ModLoader.ModLoader.Reload(), and Terraria.ModLoader.Logging.tML.

Referenced by Terraria.ModLoader.UI.UIModPackItem.UIModPackItem(), Terraria.ModLoader.UI.UIModPackItem.EnabledListOnly(), and Terraria.ModLoader.UI.UIModPackItem.UpdateModPack().

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