Definition at line 55168 of file Main.cs.
55169 {
55174 float num = 1f;
55176 {
55177 num = 0.5f;
55178 }
55185 {
55187 num2 = builderAccStatus[4];
55188 num3 = builderAccStatus[5];
55189 num4 = builderAccStatus[6];
55190 num5 = builderAccStatus[7];
55191 num6 = builderAccStatus[9];
55192 }
55197 {
55199 }
55205 {
55207 }
55209 {
55211 }
55213 {
55215 }
55217 {
55219 }
55222 {
55224 {
55225 bool flag2 =
false;
55226 bool flag3 =
false;
55227 bool flag4 =
false;
55228 bool flag5 =
false;
55229 bool flag6 =
false;
55230 bool flag7 =
false;
55231 bool flag8 =
false;
55232 bool flag9 =
false;
55237 {
55240 {
55241 if (
tile.type == 424)
55242 {
55243 switch (
tile.frameX / 18)
55244 {
55245 case 0:
55247 break;
55248 case 1:
55250 break;
55251 case 2:
55253 break;
55254 }
55255 }
55256 else if (
tile.type == 445)
55257 {
55259 }
55260 }
55262 {
55265 if (
Main.tile[
j,
i - 1].wire())
55266 {
55269 }
55270 if (
Main.tile[
j + 1,
i].wire())
55271 {
55274 }
55275 if (
Main.tile[
j,
i + 1].wire())
55276 {
55279 }
55280 if (
Main.tile[
j - 1,
i].wire())
55281 {
55284 }
55289 {
55290 case 0:
55292 break;
55293 case 2:
55294 color *= 0.5f;
55295 break;
55296 case 3:
55298 break;
55299 }
55301 {
55303 }
55304 else
55305 {
55307 }
55308 }
55310 {
55314 if (
Main.tile[
j,
i - 1].wire2())
55315 {
55319 {
55321 }
55322 }
55323 if (
Main.tile[
j + 1,
i].wire2())
55324 {
55328 {
55330 }
55331 }
55332 if (
Main.tile[
j,
i + 1].wire2())
55333 {
55337 {
55339 }
55340 }
55341 if (
Main.tile[
j - 1,
i].wire2())
55342 {
55346 {
55348 }
55349 }
55351 {
55353 }
55354 value.Y =
num12 + 18;
55358 {
55359 case 0:
55361 break;
55362 case 2:
55364 break;
55365 case 3:
55367 break;
55368 }
55370 {
55372 }
55373 else
55374 {
55377 {
55379 {
55380 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(18,
value.Y, 16, 6),
color2, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55381 }
55383 }
55385 {
55387 {
55388 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2 +
new Vector2(0f, 10f),
new Microsoft.
Xna.
Framework.
Rectangle(72,
value.Y + 10, 16, 6),
color2, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55389 }
55391 }
55393 {
55395 {
55396 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (
int)
screenPosition.Y) +
zero2 +
new Vector2(10f, 0f),
new Microsoft.
Xna.
Framework.
Rectangle(46,
value.Y, 6, 16),
color2, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55397 }
55399 }
55401 {
55403 {
55404 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (
int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(144,
value.Y, 6, 16),
color2, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55405 }
55407 }
55408 }
55409 }
55411 {
55415 if (
Main.tile[
j,
i - 1].wire3())
55416 {
55420 {
55422 }
55423 }
55424 if (
Main.tile[
j + 1,
i].wire3())
55425 {
55429 {
55431 }
55432 }
55433 if (
Main.tile[
j,
i + 1].wire3())
55434 {
55438 {
55440 }
55441 }
55442 if (
Main.tile[
j - 1,
i].wire3())
55443 {
55447 {
55449 }
55450 }
55452 {
55454 }
55455 value.Y =
num12 + 36;
55459 {
55460 case 0:
55462 break;
55463 case 2:
55465 break;
55466 case 3:
55468 break;
55469 }
55471 {
55473 }
55474 else
55475 {
55478 {
55480 {
55481 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(18,
value.Y, 16, 6),
color3, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55482 }
55484 }
55486 {
55488 {
55489 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2 +
new Vector2(0f, 10f),
new Microsoft.
Xna.
Framework.
Rectangle(72,
value.Y + 10, 16, 6),
color3, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55490 }
55492 }
55494 {
55496 {
55497 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (
int)
screenPosition.Y) +
zero2 +
new Vector2(10f, 0f),
new Microsoft.
Xna.
Framework.
Rectangle(46,
value.Y, 6, 16),
color3, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55498 }
55500 }
55502 {
55504 {
55505 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (
int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(144,
value.Y, 6, 16),
color3, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55506 }
55508 }
55509 }
55510 }
55512 {
55516 if (
Main.tile[
j,
i - 1].wire4())
55517 {
55521 {
55523 }
55524 }
55525 if (
Main.tile[
j + 1,
i].wire4())
55526 {
55530 {
55532 }
55533 }
55534 if (
Main.tile[
j,
i + 1].wire4())
55535 {
55539 {
55541 }
55542 }
55543 if (
Main.tile[
j - 1,
i].wire4())
55544 {
55548 {
55550 }
55551 }
55553 {
55555 }
55556 value.Y =
num12 + 54;
55560 {
55561 case 0:
55563 break;
55564 case 2:
55566 break;
55567 case 3:
55569 break;
55570 }
55572 {
55574 }
55575 else
55576 {
55579 {
55581 {
55582 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(18,
value.Y, 16, 6),
color4, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55583 }
55585 }
55587 {
55589 {
55590 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2 +
new Vector2(0f, 10f),
new Microsoft.
Xna.
Framework.
Rectangle(72,
value.Y + 10, 16, 6),
color4, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55591 }
55593 }
55595 {
55597 {
55598 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (
int)
screenPosition.Y) +
zero2 +
new Vector2(10f, 0f),
new Microsoft.
Xna.
Framework.
Rectangle(46,
value.Y, 6, 16),
color4, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55599 }
55601 }
55603 {
55605 {
55606 spriteBatch.Draw(
TextureAssets.
WireNew.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (
int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(144,
value.Y, 6, 16),
color4, 0f,
zero, 1f,
SpriteEffects.None, 0f);
55607 }
55609 }
55610 }
55611 }
55612 }
55613 if (
Main.tile[
j,
i].actuator() && (Lighting.Brightness(
j,
i) > 0f ||
num6 == 0))
55614 {
55617 {
55618 case 0:
55620 break;
55621 case 2:
55623 break;
55624 case 3:
55626 break;
55627 }
55628 spriteBatch.Draw(
TextureAssets.
Actuator.Value,
new Vector2(
j * 16 - (
int)
screenPosition.X,
i * 16 - (int)
screenPosition.Y) +
zero2,
new Microsoft.
Xna.
Framework.
Rectangle(0, 0,
TextureAssets.
Actuator.Width(),
TextureAssets.
Actuator.Height()),
color5 * num, 0f,
default(
Vector2), 1f,
SpriteEffects.None, 0f);
55629 }
55631 {
55633 if (
type == 423 &&
tile.frameY == 36)
55634 {
55636 }
55637 }
55638 }
55639 }
55641 {
55645 {
55649 }
55650 }
55651 TimeLogger.DetailedDrawTime(34);
55652 }
static Asset< Texture2D > WireNew
static Asset< Texture2D > Actuator
static SpriteBatch spriteBatch
static Vector2 screenPosition
static Microsoft.Xna.Framework.Point GetScreenOverdrawOffset()
List< Tuple< int, int, ushort > > DrawWiresSpecialTiles
static Color LightSeaGreen
References Terraria.GameContent.TextureAssets.Actuator, System.Collections.Generic.List< T >.Add(), Terraria.Lighting.Brightness(), System.Collections.Generic.List< T >.Clear(), System.Collections.Generic.List< T >.Count, Terraria.TimeLogger.DetailedDrawTime(), Terraria.Utils.DrawRectangle(), Terraria.Main.drawToScreen, Terraria.Main.DrawWiresSpecialTiles, Terraria.Lighting.GetColor(), Terraria.Main.GetScreenOverdrawOffset(), Terraria.Main.gfxQuality, Terraria.GameContent.UI.WiresUI.Settings.HideWires, System.Text.RegularExpressions.i, Microsoft.Xna.Framework.Color.LightSeaGreen, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.myPlayer, Terraria.Main.player, Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, Terraria.Main.spriteBatch, System.start, Terraria.Main.tile, Microsoft.Xna.Framework.Color.Transparent, System.type, System.value, Microsoft.Xna.Framework.Graphics.Vector2, Microsoft.Xna.Framework.Color.White, Terraria.GameContent.TextureAssets.WireNew, and Microsoft.Xna.Framework.Vector2.Zero.
Referenced by Terraria.Main.DoDraw(), and Terraria.Main.DrawCapture().