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

◆ ShowInfoMessages()

bool Terraria.ModLoader.UI.UIModSources.ShowInfoMessages ( )
inlineprivate

Definition at line 410 of file UIModSources.cs.

411 {
412 if (!ModLoader.SeenFirstLaunchModderWelcomeMessage)
413 {
414 ShowWelcomeMessage("tModLoader.ViewOnGitHub", "https://github.com/tModLoader/tModLoader/wiki/Update-Migration-Guide");
415 ModLoader.SeenFirstLaunchModderWelcomeMessage = true;
416 Main.SaveSettings();
417 return true;
418 }
420 {
421 if (IsRunningInSandbox())
422 {
423 Utils.ShowFancyErrorMessage(Language.GetTextValue("tModLoader.DevModsInSandbox"), 888, PreviousUIState);
424 }
425 else
426 {
427 ShowWelcomeMessage("tModLoader.DownloadNetSDK", "https://github.com/tModLoader/tModLoader/wiki/tModLoader-guide-for-developers#developing-with-tmodloader", 888, PreviousUIState);
428 }
429 return true;
430 }
431 return false;
432 }
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
void ShowWelcomeMessage(string altButtonTextKey, string url, int gotoMenu=10001, UIState state=null)

References Terraria.Localization.Language.GetTextValue(), Terraria.ModLoader.UI.UIModSources.IsCompatibleDotnetSdkAvailable(), Terraria.ModLoader.UI.UIModSources.IsRunningInSandbox(), Terraria.ModLoader.UI.UIModSources.PreviousUIState, Terraria.Main.SaveSettings(), Terraria.ModLoader.ModLoader.SeenFirstLaunchModderWelcomeMessage, Terraria.Utils.ShowFancyErrorMessage(), and Terraria.ModLoader.UI.UIModSources.ShowWelcomeMessage().

Referenced by Terraria.ModLoader.UI.UIModSources.OnActivate().

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