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

◆ DisplayColorTexture()

override Color Terraria.ModLoader.WireVisibilityBuilderToggle.DisplayColorTexture ( )
inlinevirtualinherited

This is the overlay color that is drawn on top of the texture.

Default value is P:Microsoft.Xna.Framework.Color.White

Reimplemented from Terraria.ModLoader.VanillaBuilderToggle.

Definition at line 56 of file WireVisibilityBuilderToggle.cs.

57 {
58 //IL_0002: Unknown result type (might be due to invalid IL or missing references)
59 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
60 //IL_002c: Unknown result type (might be due to invalid IL or missing references)
61 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
62 //IL_0058: Unknown result type (might be due to invalid IL or missing references)
63 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
64 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
65 //IL_006b: Unknown result type (might be due to invalid IL or missing references)
66 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
67 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
68 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
69 //IL_008a: Unknown result type (might be due to invalid IL or missing references)
70 Color color = default(Color);
71 switch (base.CurrentState)
72 {
73 case 0:
74 color = Color.White;
75 return color;
76 case 1:
77 ((Color)(ref color))._002Ector(127, 127, 127);
78 break;
79 case 2:
80 color = Utils.MultiplyRGBA(new Color(127, 127, 127), new Color(0.66f, 0.66f, 0.66f));
81 return color;
82 case 3:
83 color = Utils.MultiplyRGBA(new Color(127, 127, 127), new Color(0.33f, 0.33f, 0.33f));
84 return color;
85 }
86 return color;
87 }

References Terraria.Utils.MultiplyRGBA().

+ Here is the call graph for this function: