We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using Google translation because I can not speak English.
Suggestion. I would like to retrieve the contents of Main.NewText. The following usage is assumed.
Main.NewText
[Terraria.Main.cs] public static void NewText(string newText, byte R = 255, byte G = 255, byte B = 255, bool force = false) { ModHooks.OnNewText(ref newText, new Microsoft.Xna.Framework.Color(R, G, B), force); : [Terraria.ModLoader.ModHooks.cs] public abstract partial class Mod : public virtual void OnNewText(ref string newText, Color color, bool force) { } : internal static class ModHooks : internal static void OnNewText(ref string newText, Color color, bool force) { foreach (Mod mod in ModLoader.mods.Values) { mod.OnNewText(ref newText, color, force); } }
The text was updated successfully, but these errors were encountered:
I don't see much use for this, and it would be very easy to simply check Main.chatLine in an Update method and do whatever you want with them.
Sorry, something went wrong.
I approve this, especially due to the ref parameter. I also request a bool return to optionally cancel the message entirely.
May require additional support for multiplayer, also I'm not sure what state our commands are in
Use the MonoMod hooking support coming in 0.11
No branches or pull requests
I am using Google translation because I can not speak English.
Description
Suggestion.
I would like to retrieve the contents of
Main.NewText
.The following usage is assumed.
Code example
The text was updated successfully, but these errors were encountered: