diff --git a/Tiles/DraedonStructures/AgedLaboratoryConsole.cs b/Tiles/DraedonStructures/AgedLaboratoryConsole.cs index 1fa9a4acfb..2a5df27de4 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryConsole.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryConsole.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -39,5 +40,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/AgedLaboratoryConsoleGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/AgedLaboratoryConsoleGlow.png b/Tiles/DraedonStructures/AgedLaboratoryConsoleGlow.png new file mode 100644 index 0000000000..dafc86424c Binary files /dev/null and b/Tiles/DraedonStructures/AgedLaboratoryConsoleGlow.png differ diff --git a/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs b/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs index 47711c20cd..dc9566f381 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryDisplay.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.Enums; @@ -44,5 +45,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/AgedLaboratoryDisplayGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/AgedLaboratoryDisplayGlow.png b/Tiles/DraedonStructures/AgedLaboratoryDisplayGlow.png new file mode 100644 index 0000000000..4e40753f44 Binary files /dev/null and b/Tiles/DraedonStructures/AgedLaboratoryDisplayGlow.png differ diff --git a/Tiles/DraedonStructures/AgedLaboratoryScreen.cs b/Tiles/DraedonStructures/AgedLaboratoryScreen.cs index 219fcee99d..da426253ba 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryScreen.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryScreen.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -32,5 +33,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/AgedLaboratoryScreenGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/AgedLaboratoryScreenGlow.png b/Tiles/DraedonStructures/AgedLaboratoryScreenGlow.png new file mode 100644 index 0000000000..46cae369ea Binary files /dev/null and b/Tiles/DraedonStructures/AgedLaboratoryScreenGlow.png differ diff --git a/Tiles/DraedonStructures/AgedLaboratoryServer.cs b/Tiles/DraedonStructures/AgedLaboratoryServer.cs index 169e8f0ae2..cc3e99aaa9 100644 --- a/Tiles/DraedonStructures/AgedLaboratoryServer.cs +++ b/Tiles/DraedonStructures/AgedLaboratoryServer.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -39,5 +40,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/AgedLaboratoryServerGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/AgedLaboratoryServerGlow.png b/Tiles/DraedonStructures/AgedLaboratoryServerGlow.png new file mode 100644 index 0000000000..8a7f75b351 Binary files /dev/null and b/Tiles/DraedonStructures/AgedLaboratoryServerGlow.png differ diff --git a/Tiles/DraedonStructures/AgedReinforcedCrate.cs b/Tiles/DraedonStructures/AgedReinforcedCrate.cs index 39fdaa2152..bf795ef9e4 100644 --- a/Tiles/DraedonStructures/AgedReinforcedCrate.cs +++ b/Tiles/DraedonStructures/AgedReinforcedCrate.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -38,5 +39,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/AgedReinforcedCrateGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/AgedReinforcedCrateGlow.png b/Tiles/DraedonStructures/AgedReinforcedCrateGlow.png new file mode 100644 index 0000000000..510aaf4709 Binary files /dev/null and b/Tiles/DraedonStructures/AgedReinforcedCrateGlow.png differ diff --git a/Tiles/DraedonStructures/LaboratoryConsole.cs b/Tiles/DraedonStructures/LaboratoryConsole.cs index 4099a686a4..ff9a753426 100644 --- a/Tiles/DraedonStructures/LaboratoryConsole.cs +++ b/Tiles/DraedonStructures/LaboratoryConsole.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -39,5 +40,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/LaboratoryConsoleGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/LaboratoryConsoleGlow.png b/Tiles/DraedonStructures/LaboratoryConsoleGlow.png new file mode 100644 index 0000000000..8838829fc2 Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryConsoleGlow.png differ diff --git a/Tiles/DraedonStructures/LaboratoryDisplay.cs b/Tiles/DraedonStructures/LaboratoryDisplay.cs index c305e068cb..ae029f5043 100644 --- a/Tiles/DraedonStructures/LaboratoryDisplay.cs +++ b/Tiles/DraedonStructures/LaboratoryDisplay.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.Enums; @@ -44,5 +45,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/LaboratoryDisplayGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/LaboratoryDisplayGlow.png b/Tiles/DraedonStructures/LaboratoryDisplayGlow.png new file mode 100644 index 0000000000..b834e5b34e Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryDisplayGlow.png differ diff --git a/Tiles/DraedonStructures/LaboratoryScreen.cs b/Tiles/DraedonStructures/LaboratoryScreen.cs index 11e65ef020..65fab54371 100644 --- a/Tiles/DraedonStructures/LaboratoryScreen.cs +++ b/Tiles/DraedonStructures/LaboratoryScreen.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -32,5 +33,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 16, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/LaboratoryScreenGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/LaboratoryScreenGlow.png b/Tiles/DraedonStructures/LaboratoryScreenGlow.png new file mode 100644 index 0000000000..7c9ef2d2bb Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryScreenGlow.png differ diff --git a/Tiles/DraedonStructures/LaboratoryServer.cs b/Tiles/DraedonStructures/LaboratoryServer.cs index 9c3913f21e..f8626e654a 100644 --- a/Tiles/DraedonStructures/LaboratoryServer.cs +++ b/Tiles/DraedonStructures/LaboratoryServer.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -39,5 +40,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/LaboratoryServerGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/LaboratoryServerGlow.png b/Tiles/DraedonStructures/LaboratoryServerGlow.png new file mode 100644 index 0000000000..3d3280ceb8 Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryServerGlow.png differ diff --git a/Tiles/DraedonStructures/LaboratoryTerminal.cs b/Tiles/DraedonStructures/LaboratoryTerminal.cs index 50a43dfce6..03f4ee7d0b 100644 --- a/Tiles/DraedonStructures/LaboratoryTerminal.cs +++ b/Tiles/DraedonStructures/LaboratoryTerminal.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.DataStructures; using Terraria.Enums; @@ -44,5 +45,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/LaboratoryTerminalGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/LaboratoryTerminalGlow.png b/Tiles/DraedonStructures/LaboratoryTerminalGlow.png new file mode 100644 index 0000000000..57b4d2427a Binary files /dev/null and b/Tiles/DraedonStructures/LaboratoryTerminalGlow.png differ diff --git a/Tiles/DraedonStructures/ReinforcedCrate.cs b/Tiles/DraedonStructures/ReinforcedCrate.cs index d25f4e06c8..e9dfae3485 100644 --- a/Tiles/DraedonStructures/ReinforcedCrate.cs +++ b/Tiles/DraedonStructures/ReinforcedCrate.cs @@ -1,5 +1,6 @@ using CalamityMod.Items.Placeables.DraedonStructures; using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ModLoader; using Terraria.ObjectData; @@ -38,5 +39,20 @@ namespace CalamityMod.Tiles.DraedonStructures { Item.NewItem(i * 16, j * 16, 32, 32, ModContent.ItemType()); } + + public override void PostDraw(int i, int j, SpriteBatch spriteBatch) + { + int xFrameOffset = Main.tile[i, j].frameX; + int yFrameOffset = Main.tile[i, j].frameY; + Texture2D glowmask = ModContent.GetTexture("CalamityMod/Tiles/DraedonStructures/ReinforcedCrateGlow"); + Vector2 drawOffest = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange); + Vector2 drawPosition = new Vector2(i * 16 - Main.screenPosition.X, j * 16 - Main.screenPosition.Y) + drawOffest; + Color drawColour = Color.White; + Tile trackTile = Main.tile[i, j]; + if (!trackTile.halfBrick() && trackTile.slope() == 0) + spriteBatch.Draw(glowmask, drawPosition, new Rectangle(xFrameOffset, yFrameOffset, 18, 18), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + else if (trackTile.halfBrick()) + spriteBatch.Draw(glowmask, drawPosition + new Vector2(0f, 8f), new Rectangle(xFrameOffset, yFrameOffset, 18, 8), drawColour, 0.0f, Vector2.Zero, 1f, SpriteEffects.None, 0.0f); + } } } diff --git a/Tiles/DraedonStructures/ReinforcedCrateGlow.png b/Tiles/DraedonStructures/ReinforcedCrateGlow.png new file mode 100644 index 0000000000..6543b380cc Binary files /dev/null and b/Tiles/DraedonStructures/ReinforcedCrateGlow.png differ