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

◆ FailureMessage()

static void Terraria.GameContent.Events.DD2Event.FailureMessage ( int client)
inlinestatic

Definition at line 596 of file DD2Event.cs.

597 {
598 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
599 LocalizedText text = Language.GetText("DungeonDefenders2.BartenderWarning");
600 Color color = default(Color);
601 ((Color)(ref color))._002Ector(255, 255, 0);
602 if (Main.netMode == 2)
603 {
605 }
606 else
607 {
608 Main.NewText(text.Value, ((Color)(ref color)).R, ((Color)(ref color)).G, ((Color)(ref color)).B);
609 }
610 }
static void SendChatMessageToClient(NetworkText text, Color color, int playerId)
Definition ChatHelper.cs:30
static LocalizedText GetText(string key)
Retrieves a LocalizedText object for a specified localization key. The actual text value can be retri...
Definition Language.cs:25
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12
string Value
Retrieves the text value. This is the actual text the user should see.
Contains the localization value corresponding to a key for the current game language....
static NetworkText FromKey(string key, params object[] substitutions)
Creates a NetworkText object from a localization key and optional substitutions. The receiving client...
Represents text that will be sent over the network in multiplayer and displayed to the receiving user...

References Terraria.Localization.NetworkText.FromKey(), Terraria.Localization.Language.GetText(), Terraria.Localization.LocalizedText.Key, Terraria.Main.netMode, Terraria.Main.NewText(), Terraria.Chat.ChatHelper.SendChatMessageToClient(), and Terraria.Localization.LocalizedText.Value.

Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Player.TileInteractionsUse().

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