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

◆ Draw()

void Terraria.GameContent.UI.IssueReportsIndicator.Draw ( SpriteBatch spriteBatch)
inline

Definition at line 48 of file IssueReportsIndicator.cs.

49 {
50 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
51 //IL_0049: Unknown result type (might be due to invalid IL or missing references)
52 //IL_0058: Unknown result type (might be due to invalid IL or missing references)
53 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
54 //IL_0062: Unknown result type (might be due to invalid IL or missing references)
55 //IL_006d: Unknown result type (might be due to invalid IL or missing references)
56 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
57 //IL_0077: Unknown result type (might be due to invalid IL or missing references)
58 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
59 //IL_007f: Unknown result type (might be due to invalid IL or missing references)
60 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
61 //IL_008c: Unknown result type (might be due to invalid IL or missing references)
62 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
63 //IL_0093: Unknown result type (might be due to invalid IL or missing references)
64 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
65 //IL_009f: Unknown result type (might be due to invalid IL or missing references)
66 //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
67 //IL_00a9: Unknown result type (might be due to invalid IL or missing references)
68 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
69 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)
70 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
71 //IL_00b6: Unknown result type (might be due to invalid IL or missing references)
72 //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
73 //IL_00bf: Unknown result type (might be due to invalid IL or missing references)
74 //IL_010a: Unknown result type (might be due to invalid IL or missing references)
75 //IL_010b: Unknown result type (might be due to invalid IL or missing references)
76 //IL_0112: Unknown result type (might be due to invalid IL or missing references)
77 //IL_011c: Unknown result type (might be due to invalid IL or missing references)
78 //IL_0144: Unknown result type (might be due to invalid IL or missing references)
79 //IL_0149: Unknown result type (might be due to invalid IL or missing references)
80 //IL_014e: Unknown result type (might be due to invalid IL or missing references)
81 //IL_014f: Unknown result type (might be due to invalid IL or missing references)
82 //IL_0156: Unknown result type (might be due to invalid IL or missing references)
83 //IL_0160: Unknown result type (might be due to invalid IL or missing references)
84 //IL_0162: Unknown result type (might be due to invalid IL or missing references)
85 //IL_016c: Unknown result type (might be due to invalid IL or missing references)
87 _displayUpPercent = MathHelper.Clamp(_displayUpPercent + (float)shouldBeShowing.ToDirectionInt(), 0f, 1f);
88 if (_displayUpPercent == 0f)
89 {
90 return;
91 }
92 Texture2D value = _buttonTexture.Value;
93 Vector2 val = Main.ScreenSize.ToVector2() + new Vector2(40f, -80f);
94 Vector2 value2 = val + new Vector2(-80f, 0f);
95 Vector2 vector2 = Vector2.Lerp(val, value2, _displayUpPercent);
96 Rectangle rectangle = value.Frame();
97 Vector2 origin = rectangle.Size() / 2f;
98 bool flag = false;
99 Rectangle val2 = Utils.CenteredRectangle(vector2, rectangle.Size());
100 if (((Rectangle)(ref val2)).Contains(Main.MouseScreen.ToPoint()))
101 {
102 flag = true;
103 string textValue = Language.GetTextValue("UI.IssueReporterHasThingsToShow");
104 Main.instance.MouseText(textValue, 0, 0);
105 if (Main.mouseLeft)
106 {
107 OpenUI();
108 Hide();
109 return;
110 }
111 }
112 float scale = 1f;
113 spriteBatch.Draw(value, vector2, (Rectangle?)rectangle, Color.White, 0f, origin, scale, (SpriteEffects)0, 0f);
114 if (flag)
115 {
116 Texture2D value3 = _buttonOutlineTexture.Value;
117 Rectangle rectangle2 = value3.Frame();
118 spriteBatch.Draw(value3, vector2, (Rectangle?)rectangle2, Color.White, 0f, rectangle2.Size() / 2f, scale, (SpriteEffects)0, 0f);
119 }
120 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Definition Language.cs:35
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
Definition Language.cs:12

References Terraria.GameContent.UI.IssueReportsIndicator._buttonOutlineTexture, Terraria.GameContent.UI.IssueReportsIndicator._buttonTexture, Terraria.GameContent.UI.IssueReportsIndicator._displayUpPercent, Terraria.GameContent.UI.IssueReportsIndicator._shouldBeShowing, Terraria.Utils.CenteredRectangle(), Terraria.Localization.Language.GetTextValue(), Terraria.GameContent.UI.IssueReportsIndicator.Hide(), Terraria.Main.instance, Terraria.Main.mouseLeft, Terraria.Main.MouseScreen, Terraria.GameContent.UI.IssueReportsIndicator.OpenUI(), and Terraria.Main.ScreenSize.

+ Here is the call graph for this function: