Definition at line 45012 of file Main.cs.
45013 {
45015 {
45016 return;
45017 }
45019 {
45022 }
45025 {
45027 }
45030 {
45032 {
45033 return;
45034 }
45039 {
45043 {
45045 }
45046 else
45047 {
45049 }
45050 }
45051 float num = 1f;
45053 {
45054 num = 0.3f;
45057 int frameX = 0;
45058 spriteBatch.Draw(
TextureAssets.
Cursors[
num2].Value,
t2 +
bonus,
TextureAssets.
Cursors[
num2].Frame(1, 1, frameX), color, (
float)
Math.
PI / 2f *
GlobalTimeWrappedHourly,
TextureAssets.
Cursors[
num2].Frame(1, 1, frameX).Size() / 2f,
cursorScale,
SpriteEffects.None, 0f);
45059 }
45060 if (
smart && !flag)
45061 {
45065 spriteBatch.Draw(
TextureAssets.
Cursors[
num3].Value, t +
bonus,
TextureAssets.
Cursors[
num3].Frame(2, 1,
frameX2), color, 0f,
TextureAssets.
Cursors[
num3].Frame(2, 1,
frameX2).Size() / 2f,
cursorScale,
SpriteEffects.None, 0f);
45066 }
45067 else
45068 {
45072 }
45073 }
45074 else
45075 {
45077 spriteBatch.Draw(
TextureAssets.
Cursors[
num5].Value,
new Vector2(
mouseX,
mouseY) +
bonus +
Vector2.
One,
null,
new Microsoft.
Xna.
Framework.
Color((
int)((
float)(
int)color.
R * 0.2f), (
int)((
float)(
int)color.
G * 0.2f), (
int)((
float)(
int)color.
B * 0.2f), (
int)((
float)(
int)color.
A * 0.5f)), 0f,
default(
Vector2),
cursorScale * 1.1f,
SpriteEffects.None, 0f);
45079 }
45080 }
static Asset< Texture2D >[] Cursors
static int TileInteractionLX
static int TileInteractionLY
static Microsoft.Xna.Framework.Color cursorColor
static SpriteBatch spriteBatch
static int TileInteractionHY
static Microsoft.Xna.Framework.Point ScreenSize
static bool alreadyGrabbingSunOrMoon
static float GamepadCursorAlpha
static bool SmartCursorIsUsed
static void ClearSmartInteract()
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
static int TileInteractionHX
static Player LocalPlayer
static float GlobalTimeWrappedHourly
static float Distance(Vector2 value1, Vector2 value2)
References Microsoft.Xna.Framework.Color.A, Terraria.Main.alreadyGrabbingSunOrMoon, Microsoft.Xna.Framework.Color.B, Terraria.Main.ClearSmartInteract(), Terraria.Main.cursorColor, Terraria.GameContent.TextureAssets.Cursors, Terraria.Main.cursorScale, Microsoft.Xna.Framework.Vector2.Distance(), Microsoft.Xna.Framework.Color.G, Terraria.Main.gameMenu, Terraria.Main.GamepadCursorAlpha, Terraria.Main.GlobalTimeWrappedHourly, Terraria.Main.hslToRgb(), Terraria.GameInput.PlayerInput.InBuildingMode, Terraria.GameInput.PlayerInput.InvisibleGamepadInMenus, Terraria.Main.LocalPlayer, Terraria.Main.mouseX, Terraria.Main.mouseY, Terraria.Main.myPlayer, Microsoft.Xna.Framework.Vector2.One, System.Math.PI, Terraria.Main.player, Microsoft.Xna.Framework.Color.R, Terraria.Main.ScreenSize, Terraria.GameInput.PlayerInput.SettingsForUI.ShowGamepadCursor, Terraria.Main.SmartCursorIsUsed, Terraria.GameInput.PlayerInput.smartSelectPointer, Terraria.Main.spriteBatch, Terraria.Main.TileInteractionHX, Terraria.Main.TileInteractionHY, Terraria.Main.TileInteractionLX, Terraria.Main.TileInteractionLY, Microsoft.Xna.Framework.Graphics.Vector2, Microsoft.Xna.Framework.Color.White, and Microsoft.Xna.Framework.Vector2.Zero.
Referenced by Terraria.Main.DoDraw(), Terraria.UI.IngameFancyUI.Draw(), Terraria.Main.DrawInterface_36_Cursor(), Terraria.Main.DrawMap(), and Terraria.Main.DrawMenu().