Reimplemented from Terraria.UI.UIElement.
Definition at line 112 of file UIAchievementsMenu.cs.
113 {
114
115
116
117
118
119
120
121
122
123
124
125
126 base.Draw(spriteBatch);
128 {
130 {
131 string text = "";
132 text = i switch
133 {
140 };
141 float x = FontAssets.MouseText.Value.MeasureString(text).X;
142 Vector2
vector =
new Vector2((
float)Main.mouseX, (
float)Main.mouseY) +
new Vector2(16
f);
143 if (
vector.Y > (
float)(Main.screenHeight - 30))
144 {
145 vector.Y = Main.screenHeight - 30;
146 }
147 if (
vector.X > (
float)Main.screenWidth - x)
148 {
149 vector.X = Main.screenWidth - 460;
150 }
151 Utils.DrawBorderStringFourWay(spriteBatch, FontAssets.MouseText.Value, text,
vector.X,
vector.Y,
new Color((
int)Main.mouseTextColor, (
int)Main.mouseTextColor, (
int)Main.mouseTextColor, (
int)Main.mouseTextColor), Color.Black, Vector2.Zero);
152 break;
153 }
154 }
156 }
static string GetTextValue(string key)
Retrieves the text value for a specified localization key. The text returned will be for the currentl...
Contains methods to access or retrieve localization values. The Localization Guideteaches more about ...
References Terraria.GameContent.UI.States.UIAchievementsMenu._categoryButtons, Terraria.Utils.DrawBorderStringFourWay(), Terraria.Localization.Language.GetTextValue(), Terraria.UI.UIElement.IsMouseHovering, Terraria.GameContent.FontAssets.MouseText, Terraria.Main.mouseTextColor, Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Main.screenHeight, Terraria.Main.screenWidth, and Terraria.GameContent.UI.States.UIAchievementsMenu.SetupGamepadPoints().