Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DisplayFormatAttribute.cs
Go to the documentation of this file.
2
4
5[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
7{
8 private readonly LocalizableString _nullDisplayText = new LocalizableString("NullDisplayText");
9
10 public string? DataFormatString { get; set; }
11
12 public string? NullDisplayText
13 {
14 get
15 {
17 }
18 set
19 {
20 _nullDisplayText.Value = value;
21 }
22 }
23
24 public bool ConvertEmptyStringToNull { get; set; }
25
26 public bool ApplyFormatInEditMode { get; set; }
27
28 public bool HtmlEncode { get; set; }
29
30 [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicProperties)]
32 {
33 get
34 {
36 }
37 set
38 {
39 _nullDisplayText.ResourceType = value;
40 }
41 }
42
44 {
46 HtmlEncode = true;
47 }
48
49 public string? GetNullDisplayText()
50 {
52 }
53}