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

◆ ExtractLocalization()

void Terraria.ModLoader.UI.UIModInfo.ExtractLocalization ( UIMouseEvent evt,
UIElement listeningElement )
inlineprivate

Definition at line 341 of file UIModInfo.cs.

342 {
344 if (LocalizationLoader.ExtractLocalizationFiles(_modName))
345 {
346 extractLocalizationButton.SetText(Language.GetTextValue("tModLoader.ModInfoExtracted"));
347 }
348 }
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
UIAutoScaleTextTextPanel< string > extractLocalizationButton
Definition UIModInfo.cs:29

References Terraria.ModLoader.UI.UIModInfo._modName, Terraria.ModLoader.UI.UIModInfo.extractLocalizationButton, Terraria.ModLoader.LocalizationLoader.ExtractLocalizationFiles(), Terraria.Localization.Language.GetTextValue(), Terraria.ID.SoundID.MenuOpen, Terraria.Audio.SoundEngine.PlaySound(), and Terraria.ModLoader.UI.UIAutoScaleTextTextPanel< T >.SetText().

Referenced by Terraria.ModLoader.UI.UIModInfo.OnInitialize().

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