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

◆ PublishServerSideMod()

void Terraria.ModLoader.UI.UIModSourceItem.PublishServerSideMod ( UIMouseEvent evt,
UIElement listeningElement )
inlineprivate

Definition at line 430 of file UIModSourceItem.cs.

431 {
433 try
434 {
436 {
437 Utils.ShowFancyErrorMessage(Language.GetTextValue("tModLoader.SteamPublishingLimit"), 10001);
438 return;
439 }
440 Process.Start(new ProcessStartInfo
441 {
442 UseShellExecute = true,
443 FileName = Process.GetCurrentProcess().MainModule.FileName,
444 Arguments = "tModLoader.dll -server -steam -publish " + _builtMod.modFile.path.Remove(_builtMod.modFile.path.LastIndexOf(".tmod"))
445 }).WaitForExit();
446 }
447 catch (WebException e)
448 {
450 }
451 }
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
static void LogModBrowserException(Exception e, int returnToMenu)

References Terraria.ModLoader.UI.UIModSourceItem._builtMod, Terraria.Localization.Language.GetTextValue(), Terraria.ModLoader.UI.ModBrowser.UIModBrowser.LogModBrowserException(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.Utils.ShowFancyErrorMessage(), and Terraria.Social.Steam.SteamedWraps.SteamClient.

Referenced by Terraria.ModLoader.UI.UIModSourceItem.UIModSourceItem().

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