132 if (result.Width != 0 && result.Height != 0)
136 for (
int i = 0; i < 2; i++)
153 for (
int j = 0;
j < 2;
j++)
164 float num2 = 0.8f / num;
234 result2.X += 1 -
num4;
235 result2.Y += 1 -
num5;
237 zero = result.ToVector2();
304 result4.X += 1 -
num7;
305 result4.Y += 1 -
num8;
382 result = (Main.screenPosition + mouse).ToTileCoordinates();
492 for (
int i = 0; i < 4; i++)
578 if (result.Width == 0 || result.Height == 0)
591 if (result.Width == 0 || result.Height == 0)
599 for (
int i = 0; i < 2; i++)
658 result.X = 227 - result.Width / 2;
709 Settings.PackImage =
true;
710 Settings.IncludeEntities =
true;
711 Settings.TransparentBackground =
false;
712 Settings.BiomeChoiceIndex = -1;
725 for (
int i = 0; i < 2; i++)
727 for (
int j = 0;
j < 7;
j++)
729 if (i == 1 &&
j == 6)
734 r.X = start.X + 24 *
j + 12 * i;
735 r.Y = start.Y + 24 * i;
743 Settings.BiomeChoiceIndex =
num2;
762 spritebatch.Draw(
TextureAssets.
MagicPixel.Value,
r.TopLeft(),
new Rectangle(0, 0, 1, 1),
Color.
Gold, 0f,
Vector2.
Zero,
new Vector2(20f),
SpriteEffects.None, 0f);
766 spritebatch.Draw(
TextureAssets.
MagicPixel.Value,
r.TopLeft(),
new Rectangle(0, 0, 1, 1),
Color.
White *
num4, 0f,
Vector2.
Zero,
new Vector2(20f),
SpriteEffects.None, 0f);
814 rect.Inflate(-20, -20);
817 for (
int i = 0; i < 7; i++)
848 for (
int i = 0; i < 7; i++)
956 Main.blockMouse =
true;
990 Main.mouseText =
false;
1028 for (
int i = 0; i < num; i++)
1050 CaptureMech = WiresUI.Settings.DrawWires
1052 if (
obj.Biome.WaterStyle != 13)
1094 Main.blockMouse =
true;
1095 Main.mouseLeftRelease =
false;
1113 CaptureMech = WiresUI.Settings.DrawWires
1121 for (
int i = 0; i < num; i++)
1126 Color color = Main.inventoryBack * 0.8f;
1139 else if (i >= 2 && i <= 3)
1265 result =
new Point(-1, -1);
1275 float num6 = Main.maxTilesX - 10;
1276 float num7 = Main.maxTilesY - 10;
1283 Main.mapFullscreenScale =
num8;
1287 Main.mapFullscreenScale = 16f;
1292 Main.mapFullscreenPos.X =
num4;
1296 Main.mapFullscreenPos.X =
num6;
1300 Main.mapFullscreenPos.Y =
num5;
1304 Main.mapFullscreenPos.Y =
num7;
1314 float num10 = Main.maxTilesX / 840;
1329 if ((
double)
num10 < 1.2)
1343 if ((
double)
num10 < 1.2)
1357 if ((
double)
num10 < 1.2)
1400 result =
new Point(-1, -1);
1411 result =
new Point(-1, -1);
1431 if (point.X <
fluff)
1437 point.X = Main.maxTilesX - 1 -
fluff;
1439 if (point.Y <
fluff)
1445 point.Y = Main.maxTilesY - 1 -
fluff;
1468 int num = PlayerInput.ScrollWheelDelta / 120;
1535 string text =
num2.ToString(
"##") +
" ";
1536 string text2 =
"/ 100%";
static readonly BlendState AlphaBlend
static readonly DepthStencilState None
static readonly RasterizerState CullCounterClockwise
static readonly SamplerState LinearClamp
void Draw(Texture2D texture, Vector2 position, Color color)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static string Combine(string path1, string path2)
static byte Min(byte val1, byte val2)
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static Asset< DynamicSpriteFont > ItemStack
static Asset< DynamicSpriteFont > DeathText
static Asset< Texture2D > Map
static Asset< Texture2D > InventoryBack
static Asset< Texture2D > Cd
static Asset< Texture2D > InventoryBack14
static Asset< Texture2D >[] MapIcon
static Asset< Texture2D >[] Extra
static Asset< Texture2D >[] Camera
static Asset< Texture2D > InventoryBack2
static Asset< Texture2D > MagicPixel
static CaptureBiome GetCaptureBiome(int biomeChoice)
void Draw(SpriteBatch sb)
void ToggleActive(bool tickedOn)
void ButtonDraw(int button, ref string key, ref string value)
void PressButton(int button)
void DrawWaterChoices(SpriteBatch spritebatch, Point start, Point mouse)
int UnnecessaryBiomeSelectionTypeConversion(int index)
override void ToggleActive(bool tickedOn)
override void Draw(SpriteBatch sb)
void DrawMarkedArea(SpriteBatch sb)
override void Draw(SpriteBatch sb)
void DrawBound(SpriteBatch sb, Rectangle r, int mode)
void DragBounds(Vector2 mouse)
Rectangle GetBound(Rectangle drawbox, int boundIndex)
override void ToggleActive(bool tickedOn)
void EdgePlacement(Vector2 mouse)
override void Draw(SpriteBatch sb)
void DrawCursors(SpriteBatch sb)
override void ToggleActive(bool tickedOn)
void DrawMarkedArea(SpriteBatch sb)
static Color MarkedAreaColor
static bool TransparentBackground
static int BiomeChoiceIndex
static bool IncludeEntities
void DrawButtons(SpriteBatch sb)
static CaptureSettings CameraSettings
static void StartCamera(CaptureSettings settings)
bool UpdateButtons(Vector2 mouse)
void DrawCameraLock(SpriteBatch sb)
static void PointWorldClamp(ref Point point, int fluff)
static void ConstraintPoints()
static void QuickScreenshot()
void ToggleCamera(bool On=true)
static Rectangle GetArea()
const float CameraMaxFrame
static Dictionary< int, CaptureInterfaceMode > Modes
static bool JustActivated
const float CameraMaxWait
static float CameraWaiting
void Draw(SpriteBatch sb)
static bool GetMapCoords(int PinX, int PinY, int Goal, out Point result)
static Dictionary< int, CaptureInterfaceMode > FillModes()
static CaptureManager Instance
static LocalizedText[] inter
static LocalizedText[] menu
static int OffScreenTiles
static string GetTextValue(string key)
static float mapFullscreenScale
static Microsoft.Xna.Framework.Color cursorColor
static float[] liquidAlpha
static Vector2 ReverseGravitySupport(Vector2 pos, float height=0f)
static bool mouseLeftRelease
static Vector2 MouseWorld
static Vector2 screenPosition
static Vector2 MouseScreen
static Matrix UIScaleMatrix
static Matrix CurrentWantedZoomMatrix
static Vector2 mapFullscreenPos
static int textureMaxHeight
static int textureMaxWidth
static Vector2 ViewPosition
static Vector3 rgbToHsl(Microsoft.Xna.Framework.Color newColor)
static bool CaptureModeDisabled
static Microsoft.Xna.Framework.Color hslToRgb(Vector3 hslVector)
static bool mapFullscreen
static GraphicsDeviceManager graphics
static Vector2 DrawColorCodedStringWithShadow(SpriteBatch spriteBatch, DynamicSpriteFont font, TextSnippet[] snippets, Vector2 position, float rotation, Vector2 origin, Vector2 baseScale, out int hoveredSnippet, float maxWidth=-1f, float spread=2f)
static void DrawCursorSingle(SpriteBatch sb, Color color, float rot=float.NaN, float scale=1f, Vector2 manualPosition=default(Vector2), int cursorSlot=0, int specialMode=0)
static void DrawInvBG(SpriteBatch sb, Rectangle R, Color c=default(Color))
static void OpenFolder(string folderPath)
static Vector2 DrawBorderStringBig(SpriteBatch spriteBatch, string text, Vector2 pos, Color color, float scale=1f, float anchorx=0f, float anchory=0f, int maxCharactersDisplayed=-1)
static Rectangle Intersect(Rectangle value1, Rectangle value2)
static Vector2 Clamp(Vector2 value1, Vector2 min, Vector2 max)