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

◆ FormatWith()

static string Terraria.Utils.FormatWith ( string original,
object obj )
inlinestatic

Definition at line 739 of file Utils.cs.

740 {
743 {
744 if (match.Groups[1].Length != 0)
745 {
746 return "";
747 }
748 string name = match.Groups[2].ToString();
750 return (propertyDescriptor == null) ? "" : (propertyDescriptor.GetValue(obj) ?? "").ToString();
751 });
752 }
virtual ? PropertyDescriptor Find(string name, bool ignoreCase)
static PropertyDescriptorCollection GetProperties([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type componentType)
static Regex _substitutionRegex
Definition Utils.cs:51

References Terraria.Utils._substitutionRegex, System.ComponentModel.PropertyDescriptorCollection.Find(), System.ComponentModel.TypeDescriptor.GetProperties(), System.match, System.Text.RegularExpressions.name, System.obj, and System.ToString.

Referenced by Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInGame(), and Terraria.UI.InGamePopups.PlayerWantsToJoinGamePopup.DrawInNotificationsArea().