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

◆ Show()

void Terraria.ModLoader.UI.UIModInfo.Show ( string modName,
string displayName,
int gotoMenu,
LocalMod localMod,
string description = "",
string url = "" )
inlinepackage

Definition at line 350 of file UIModInfo.cs.

351 {
352 _modName = modName;
353 _modDisplayName = displayName;
354 _gotoMenu = gotoMenu;
356 _info = description;
357 if (_info.Equals(""))
358 {
359 _info = Language.GetTextValue("tModLoader.ModInfoNoDescriptionAvailable");
360 }
361 _url = url;
363 {
365 {
366 m_ModPubId = publishId.ToString()
367 };
368 }
369 else
370 {
371 _publishedFileId = default(ModPubId_t);
372 }
373 Main.gameMenu = true;
374 Main.menuMode = 10008;
375 }
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 bool GetPublishIdLocal(TmodFile modFile, out ulong publishId)

References Terraria.ModLoader.UI.UIModInfo._gotoMenu, Terraria.ModLoader.UI.UIModInfo._info, Terraria.ModLoader.UI.UIModInfo._localMod, Terraria.ModLoader.UI.UIModInfo._modDisplayName, Terraria.ModLoader.UI.UIModInfo._modName, Terraria.ModLoader.UI.UIModInfo._publishedFileId, Terraria.ModLoader.UI.UIModInfo._url, Terraria.Social.Steam.WorkshopHelper.GetPublishIdLocal(), and Terraria.Localization.Language.GetTextValue().

+ Here is the call graph for this function: