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

◆ ViewListInfo()

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

Definition at line 763 of file UIModPackItem.cs.

764 {
767 string message = "";
768 string[] mods = modListItem._mods;
769 foreach (string mod in mods)
770 {
771 message = message + mod + (modListItem._missing.Contains(mod) ? Language.GetTextValue("tModLoader.ModPackMissing") : (ModLoader.IsEnabled(mod) ? "" : Language.GetTextValue("tModLoader.ModPackDisabled"))) + "\n";
772 }
773 Interface.infoMessage.Show(Language.GetTextValue("tModLoader.ModPackModsContained", message), 10016);
774 }
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 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.ModLoader.UI.Interface.infoMessage, Terraria.ModLoader.ModLoader.IsEnabled(), 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: