189 Vector2 vector3 = vector - vector2;
192 vector3.ToRotation();
196 for (
int i = 0; i < 6; i++)
198 if (!drawToolAllowActuators && i == 5)
207 Vector2 vector4 = vector2 + Vector2.UnitX * (45f * ((float)i - 1.5f));
221 vector4 = vector2 +
new Vector2((45f + (
float)(drawToolAllowActuators ? 15 : 0)) * (float)(2 - num), 0f) *
_lineOpacity;
225 vector4 = vector2 +
new Vector2((0f - (45f + (
float)(drawToolAllowActuators ? 15 : 0))) * (
float)(num - 1), 0f) *
_lineOpacity;
267 if (!flag2 && i != 4)
271 color2 =
new Color(100, 100, 100);
272 color2 =
new Color(120, 120, 120);
273 color =
new Color(200, 200, 200);
277 color2 =
new Color(150, 150, 150);
278 color2 =
new Color(80, 80, 80);
279 color =
new Color(100, 100, 100);
336 Vector2 vector3 = vector - vector2;
339 float num = vector3.ToRotation();
340 float num2 = vector3.
Length();
343 float num3 = 4 + drawToolAllowActuators.ToInt();
344 float num4 = (drawToolAllowActuators ? 11f : (-0.5f));
345 for (
int i = 0; i < 6; i++)
347 if (!drawToolAllowActuators && i == 5)
356 Vector2 vector4 = vector2 + Vector2.UnitX * (45f * ((float)i - 1.5f));
373 vector4 = vector2 +
Vector2.
UnitX.RotatedBy(num5 * ((
float)Math.PI * 2f) / num3 - (
float)Math.PI / num4) * 45f;
377 vector4 = vector2 +
Vector2.
UnitX.RotatedBy((
float)(i - 1) * ((
float)Math.PI * 2f) / num3 - (
float)Math.PI / num4) * 45f;
400 float value = (vector4 - vector2).ToRotation().AngleTowards(num, (
float)Math.PI * 2f / (num3 * 2f)) - num;
439 if (!flag2 && i != 4)
443 color2 =
new Color(100, 100, 100);
444 color2 =
new Color(120, 120, 120);
445 color =
new Color(200, 200, 200);
449 color2 =
new Color(150, 150, 150);
450 color2 =
new Color(80, 80, 80);
451 color =
new Color(100, 100, 100);
484 spriteBatch.
Draw(value2, vector4,
null, color, 0f, value2.Size() / 2f, 1f,
SpriteEffects.None, 0f);
485 spriteBatch.
Draw(texture2D, vector4,
null, color2, 0f, texture2D.Size() / 2f, 1f,
SpriteEffects.None, 0f);
502 if (!drawToolAllowActuators)
506 vector +=
new Vector2(-20f, 10f);
510 vector +=
new Vector2(0f, 10f);
521 if (flag && !drawToolAllowActuators)
530 for (
int i = 0; i < 5; i++)
532 if (!drawToolAllowActuators && i == 4)
537 Vector2 vec = vector + Vector2.UnitX * (45f * ((float)i - 1.5f));
578 color2 =
new Color(253, 58, 61);
581 color2 =
new Color(83, 180, 253);
584 color2 =
new Color(83, 253, 153);
587 color2 =
new Color(253, 254, 83);
599 if (drawToolAllowActuators)
604 vec = vector +
new Vector2(-12f, 0f) * num;
607 vec = vector +
new Vector2(12f, 0f) * num;
610 vec = vector +
new Vector2(-6f, 12f) * num;
613 vec = vector +
new Vector2(6f, 12f) * num;
616 vec = vector +
new Vector2(0f, 0f) * num;
622 vec = vector +
new Vector2(12 * (num4 + 1), 12 * (3 - num4)) * num;
625 else if (drawToolAllowActuators)
630 vec = vector +
new Vector2(-12f, 0f) * num;
633 vec = vector +
new Vector2(12f, 0f) * num;
636 vec = vector +
new Vector2(-6f, 12f) * num;
639 vec = vector +
new Vector2(6f, 12f) * num;
642 vec = vector +
new Vector2(0f, 0f) * num;
652 vec = vector +
new Vector2(0f, -12f) * num * num6;
655 vec = vector +
new Vector2(12f, 0f) * num * num6;
658 vec = vector +
new Vector2(-12f, 0f) * num * num6;
661 vec = vector +
new Vector2(0f, 12f) * num * num6;
666 spriteBatch.
Draw(texture, vec, rectangle3, color * num3, 0f, rectangle3.Size() / 2f, scale,
SpriteEffects.None, 0f);
667 spriteBatch.
Draw(
value, vec, rectangle, color2 * num3, 0f, rectangle.Size() / 2f, scale,
SpriteEffects.None, 0f);
670 spriteBatch.
Draw(
value, vec, rectangle2, color * num3, 0f, rectangle2.Size() / 2f, scale,
SpriteEffects.None, 0f);
void Draw(Texture2D texture, Vector2 position, Color color)
static double Abs(double value)
static int Sign(decimal value)
static Asset< Texture2D > BuilderAcc
static Asset< Texture2D >[] WireUi
static bool DrawToolModeUI
static MultiToolMode ToolMode
static bool DrawToolAllowActuators
static int _lastActuatorEnabled
void Draw(SpriteBatch spriteBatch)
void DrawLine(SpriteBatch spriteBatch)
void DrawCursorArea(SpriteBatch spriteBatch)
void DrawFlower(SpriteBatch spriteBatch)
static WiresRadial radial
static void HandleWiresUI(SpriteBatch spriteBatch)
static bool ingameOptionsWindow
static bool drawingPlayerChat
static UserInterface InGameUI
static bool SmartInteractShowingGenuine
static bool mouseLeftRelease
static Vector2 MouseScreen
static bool mouseRightRelease
static float GamepadCursorAlpha
static bool HoveringOverAnNPC
static bool SmartCursorWanted
bool cursorItemIconEnabled
static Rectangle CenteredRectangle(Vector2 center, Vector2 size)
static Color Lerp(Color value1, Color value2, float amount)
static float Dot(Vector2 value1, Vector2 value2)
static float Distance(Vector2 value1, Vector2 value2)