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

◆ Draw()

override void Terraria.GameContent.UI.States.UICharacterCreation.Draw ( SpriteBatch spriteBatch)
inlinevirtual

Reimplemented from Terraria.UI.UIElement.

Definition at line 1352 of file UICharacterCreation.cs.

1353 {
1354 base.Draw(spriteBatch);
1355 string text = null;
1357 {
1358 text = Language.GetTextValue("UI.CopyColorToClipboard");
1359 }
1361 {
1362 text = Language.GetTextValue("UI.PasteColorFromClipboard");
1363 }
1365 {
1366 text = Language.GetTextValue("UI.RandomizeColor");
1367 }
1369 {
1370 text = Language.GetTextValue("UI.CopyPlayerToClipboard");
1371 }
1373 {
1374 text = Language.GetTextValue("UI.PastePlayerFromClipboard");
1375 }
1377 {
1378 text = Language.GetTextValue("UI.RandomizePlayer");
1379 }
1380 if (text != null)
1381 {
1382 float x = FontAssets.MouseText.Value.MeasureString(text).X;
1383 Vector2 vector = new Vector2(Main.mouseX, Main.mouseY) + new Vector2(16f);
1384 if (vector.Y > (float)(Main.screenHeight - 30))
1385 {
1386 vector.Y = Main.screenHeight - 30;
1387 }
1388 if (vector.X > (float)Main.screenWidth - x)
1389 {
1390 vector.X = Main.screenWidth - 460;
1391 }
1392 Utils.DrawBorderStringFourWay(spriteBatch, FontAssets.MouseText.Value, text, vector.X, vector.Y, new Color(Main.mouseTextColor, Main.mouseTextColor, Main.mouseTextColor, Main.mouseTextColor), Color.Black, Vector2.Zero);
1393 }
1394 SetupGamepadPoints(spriteBatch);
1395 }
static string GetTextValue(string key)
Definition Language.cs:15

References Terraria.GameContent.UI.States.UICharacterCreation._copyHexButton, Terraria.GameContent.UI.States.UICharacterCreation._copyTemplateButton, Terraria.GameContent.UI.States.UICharacterCreation._pasteHexButton, Terraria.GameContent.UI.States.UICharacterCreation._pasteTemplateButton, Terraria.GameContent.UI.States.UICharacterCreation._randomColorButton, Terraria.GameContent.UI.States.UICharacterCreation._randomizePlayerButton, Microsoft.Xna.Framework.Color.Black, 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, Terraria.GameContent.UI.States.UICharacterCreation.SetupGamepadPoints(), Microsoft.Xna.Framework.Graphics.Vector2, and Microsoft.Xna.Framework.Vector2.Zero.