From 9ea35ca50f6c393f666cb87551117628ef837019 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Mon, 27 Jul 2020 12:32:04 -0500 Subject: [PATCH] A bunch of glowmasks --- .../DraedonStructures/AgedLaboratoryConsole.cs | 16 ++++++++++++++++ .../AgedLaboratoryConsoleGlow.png | Bin 0 -> 240 bytes .../DraedonStructures/AgedLaboratoryDisplay.cs | 16 ++++++++++++++++ .../AgedLaboratoryDisplayGlow.png | Bin 0 -> 1005 bytes Tiles/DraedonStructures/AgedLaboratoryScreen.cs | 16 ++++++++++++++++ .../AgedLaboratoryScreenGlow.png | Bin 0 -> 530 bytes Tiles/DraedonStructures/AgedLaboratoryServer.cs | 16 ++++++++++++++++ .../AgedLaboratoryServerGlow.png | Bin 0 -> 682 bytes Tiles/DraedonStructures/AgedReinforcedCrate.cs | 16 ++++++++++++++++ .../AgedReinforcedCrateGlow.png | Bin 0 -> 470 bytes Tiles/DraedonStructures/LaboratoryConsole.cs | 16 ++++++++++++++++ .../DraedonStructures/LaboratoryConsoleGlow.png | Bin 0 -> 503 bytes Tiles/DraedonStructures/LaboratoryDisplay.cs | 16 ++++++++++++++++ .../DraedonStructures/LaboratoryDisplayGlow.png | Bin 0 -> 560 bytes Tiles/DraedonStructures/LaboratoryScreen.cs | 16 ++++++++++++++++ .../DraedonStructures/LaboratoryScreenGlow.png | Bin 0 -> 388 bytes Tiles/DraedonStructures/LaboratoryServer.cs | 16 ++++++++++++++++ .../DraedonStructures/LaboratoryServerGlow.png | Bin 0 -> 468 bytes Tiles/DraedonStructures/LaboratoryTerminal.cs | 16 ++++++++++++++++ .../LaboratoryTerminalGlow.png | Bin 0 -> 553 bytes Tiles/DraedonStructures/ReinforcedCrate.cs | 16 ++++++++++++++++ Tiles/DraedonStructures/ReinforcedCrateGlow.png | Bin 0 -> 194 bytes 22 files changed, 176 insertions(+) create mode 100644 Tiles/DraedonStructures/AgedLaboratoryConsoleGlow.png create mode 100644 Tiles/DraedonStructures/AgedLaboratoryDisplayGlow.png create mode 100644 Tiles/DraedonStructures/AgedLaboratoryScreenGlow.png create mode 100644 Tiles/DraedonStructures/AgedLaboratoryServerGlow.png create mode 100644 Tiles/DraedonStructures/AgedReinforcedCrateGlow.png create mode 100644 Tiles/DraedonStructures/LaboratoryConsoleGlow.png create mode 100644 Tiles/DraedonStructures/LaboratoryDisplayGlow.png create mode 100644 Tiles/DraedonStructures/LaboratoryScreenGlow.png create mode 100644 Tiles/DraedonStructures/LaboratoryServerGlow.png create mode 100644 Tiles/DraedonStructures/LaboratoryTerminalGlow.png create mode 100644 Tiles/DraedonStructures/ReinforcedCrateGlow.png 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 0000000000000000000000000000000000000000..dafc86424c18bb8adf6e18d90f690cefe02d0932 GIT binary patch literal 240 zcmeAS@N?(olHy`uVBq!ia0vp^N63i^3J+*0!A%7iq0p1)UE&fPXGDyXxGu?r~kh0x!555 zGUq|(lygpRc|v(=YCntb+bLKXv^4W>MRvvm<4c{2DIAhcZ4)r4zbYy%vbXmtMs~54 R?E*T8!PC{xWt~$(69Dz+Rk{EG literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..4e40753f44fa57e10c83417cb722f06ac5b5f311 GIT binary patch literal 1005 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1A<9JK~!i%?V8O` z6G0fp+bwO^Vkz>WA_5we00t$I#F&^EKW-i+@jvir;#~}}-c3CEADD18UPQymXwXPV z#Gt4sV34*@)>7MruJ)OoP1rKo?z}ZdoL}Lu@_nrL(;qqM{NbfLxeD&VZ<_Z8A~G6iW~ll^6leUFl?BFFX-%fHx)*aI;|F ztxUEP*Q$r$dXTM(uCcE#OZEnwRmZw|KFB;8WnOCv_PpvsY(6E6&1YW&+kxCP*^Zr6 zVy|b799*||5_O9mU(2q+GxiSU%a4n2l^6l!?=jcTo`OGoJ_VPhR{y)ca_J)c(fCui zU)1*)56FdCTwRB#iE{tgwAu5kIG>A&A=A#lLfLxfZtrA2f9*;v*YBe8~7=@w+ b1OmSR+PbdRB9!$u00000NkvXXu0mjf8HCs~ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..46cae369ea9f3f4ada545001afad61c8fc3ea4a5 GIT binary patch literal 530 zcmV+t0`2{YP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0jEhsK~z{r?U>(7 z!cY{)w{XkfGti_5mx~?*35tXagya#rvjeg#7IeLqOq==E;ke*Ye3C9XQcbtv6X(&66F$83h+C9XQ+-Ez&Q zfn+jygQKFAE3ma(z^w4rF^m&fybkfsp;D;~+x8M>MO9VU^E{Z9^p>MhG72Io2;8CD zrjLk-s_r9p2DNVSZn-x3$NE}nBcl@ zkVPYx%?H^QGN+0$Kw&qN?dgWo@@oK7{L#99UA6()); } + + 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 0000000000000000000000000000000000000000..8a7f75b35107e6b599f24da85706a3b60830f6bc GIT binary patch literal 682 zcmV;b0#*HqP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0zXMaK~!i%?U~PO z6G0rscQ*T@-DF8^v{GrBNT3%*C_UuTi{MfGW5uIKFFh1N@KzA3#Di&?wn?FzO}0C4 zW&|UGv)@35FMi~h%gNG&-LP7B3YKfZF$u{ zg1lA5?L(f5EVX&tO`CI2}J=>;gg80UQ`96dD$%>OPonWm02aG zE@{;3a3NG56a8fMYwEtcx;{ zx2@D(>-U;>mhUyD7BNqLKC@<3@aaez1rQZJi8ME3hzg%XM$=n}3ZF!>LO@jbB=Y6w z6-0$kB5ApXNKtVnkv}T5gO1t(x>;HqhF5AFY}Ys84ZX+K+S-D9k@|m`Ojlr|Ulp3V z?uEV{zY6X6#WVPaPoLrc3f~G%1QA4qPa=cyHAKaoMC5ESGo}hP--oJV+IMe^$n~Sj zetfXVAzMs)M(!n26}c<0yfaV*K8eULTIQ=31wM($dcxEc6r4%qKfmL7_Z6PFNOPUo Q+yDRo07*qoM6N<$f=6CAiU0rr literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..510aaf4709245e89e48e250423f37a8cf7ac347c GIT binary patch literal 470 zcmV;{0V)28P)>lXf00001b5ch_0Itp) z=>Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0c%M_K~z{r-IqU0 z!$2H{FM)(6*Tq_?)~YEMf-MepvABqvAHWae;^g9o@dLPti`c~uQlX$wYzq#G^q)dTqNvk|_cKF8QK%8mLqw6M zk)3>=gyCh_A0WJxibX`4Ml{1#N+o)7yIHV?YS-rA|yI$Js3 zj6GX?UDIZJjBTah_b=Aoa6E$Fx?NbFMhekNAslgm;e9( M07*qoM6N<$f;GCyk^lez literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..8838829fc27a386d6009d9f65d412d8047f00df0 GIT binary patch literal 503 zcmVPx#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0gOpRK~z{r?U=Dj z!%!54Z^T54h|yM2i=?>q6*|}_@DbcP>7od34z3-m^+pz1pa9lF~KM`WB5cbaVAncu} zWU`Y85tj^~L=KMDvA8_%!BLdn1fuJ<+W72L%5Y~^-~^}N3Hn~;rnv!Es&g=ry&j2! zPa-sFwVJQ+ZgqUGOp3GmChTm#!+a8v7IX^d=5ugg?)NBYm#Di&-Bm=?E~57f-$Xpm zgZ~;fiReO9MtUT_yaM;`@8D^(RV>1K*I1S%S0TDtiC|I-9zH!nr|)&+1*V(Zw4s~f zUTp#9lZc+s6n@+z#%&wX`8(xr=Zd88?GfqJ-mG-vW0Qz3L}lbZw9KErpNXV3y%V}w tRdgXLd()); } + + 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 0000000000000000000000000000000000000000..b834e5b34e6b4c9ab4db482f75d8db37d91ab4c6 GIT binary patch literal 560 zcmeAS@N?(olHy`uVBq!ia0vp^Za{3t!3HF&c;34LDaPU;cPEB*=VV?2IV|apzK#qG z8~eHcB(eheoCO|{#S9F5he4R}c>anMpoXKKE{-7?&TnUL^gC=I;`+90i^mFuz!|r< z?muu~{)W<|BqxIn2O5qXIdY}fKJkJ0u5HF84P2dS9*(tVyF)H_-(_xM5))}jk;Dd_jHH# zrWJ>mSp5}Qn#`~>c~w+&%$92x3>m5m_v-iFUcFIc(dX1lYjz$e$o`k&{CD9LQTN}1 z)6I1Qt=JMSZ@IwmH~NLdfm5bwUu-61tJ=QPJCnJ6f9;jCQTrDc-?!tP7PTWoX77B{ zWeNx18!qfCy!d~y;Pro-9{rFx{9S@S+xpnt%^58sd(SU@V^QMc7*^Kf{leq7hBlvU zu)w-?vM(g~eRvw6UKH4~YaLfiZ1n>^xrRQ*4aY1t9IJQ`b+R#A6{6^gshj5RYcKp} z@BaMkcINNwE!#9ocovvh7cYB$?!+ISdvDy2GkmIy`TAXQt)b1()); } + + 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 0000000000000000000000000000000000000000..7c9ef2d2bb544b3f25c712d59469b62e77ccfce0 GIT binary patch literal 388 zcmeAS@N?(olHy`uVBq!ia0vp^CP1vh!3HFct&=POQjEnx?oJHr&dIz4a#+$GeH|GX zHuiJ>Nn{1`ISV`@iy0XB4ude`@%$AjKn;?fE{-7)?#Urjf)g1S^W^djYJa|BHQ;4d zJN7K$*O{A>6J`l)Fxbd&S^eA`hRZt`Hoi(=m~LINmG{7x>-zBrO@wF2xHWwI|Nno$ zvkwf1_1fHQO>P`q(avU_5E2l;V*Kv@e)eS-8xP5|?K%2@S&Yq1pm!agS|9g=ApbSB zFB}2`Ieqx|ODKi#Pn33E!sM0A!RE%@dXTSeeY->E^h-4c0t|QWDzBd+ot5z9sKCar zOiO>}Z;?C1=;poiAm0Nyrlr14FN+PBO3HzTOqx77o#Ej^zJz}gWrilVf+XG~Tybue z?WxMxzmdKI;Vst04CLu`v3p{ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..3d3280ceb8061597d86d3de5246ab6c233f95da4 GIT binary patch literal 468 zcmeAS@N?(olHy`uVBq!ia0vp^NNn{1`ISV`@iy0XB4ude`@%$AjKn1b$JlR{i!uUOO6saG4DmfE%IC#v2loccmk%&c?6Bzfzm;1jAcCpq@> zPs z@7(uuTO{uG{d8;6k<&XjZq8a1dpAEZ(lluP|K)C{?24~>gr2$9F}=9&_eFJ``0t?~ z{m-xH-?07n^PAmsmj?7MdrSbUWS#sq_>tDnm{ Hr-UW|OtQxA literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..57b4d2427a2f0939179483e6954e6ceaccc3fd45 GIT binary patch literal 553 zcmV+^0@nSBP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0lrB@K~!i%?VGVq z0znXlcZqkH7&H;Bq2(1Ud=on=D=VXgjTR(UR#tSriG{B~3$;=xF_AlyGYrfXqvLFl zBb@ht3Hg^~Z;QEq|GVAndAB4lS&OvkhNNTHCOz;Y(oi;S9HzEVAV6UhP#6UiMgfIU z$e&746fIg|+}`hzo^_u|@A`+N=clivp={bXX_}J4F$&)tlOzdg)rjMm6pk_Q?38+a zn{+aHBdr>Z#xCh}`aufEDCCZ*YPLu?Yv33Ke{sD}jo#Imbk(#!UAAcc%5ZD`gbeL3 z;p-V5XY@3n|E;4Asq81YylIlcF$zA*mbyXz9yms!@Qm?~gCI+0#~qscq5UO%J;UR0 zws6+SeiCGiLE-N)WqT^&J;tDL$CNE&;249oXN;WljFmC+Ix9Q0agZ^81gmQS9AkjO zD4;M3D2xIMqfq$jx@=%|ZGas-1vo|l86!Z(7+|d=z*@-wg;79Z6!MH=)}1xH(()); } + + 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 0000000000000000000000000000000000000000..6543b380cc72407da0c6dabe8b743a49c4049e1c GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^Na~60+7BevL9R^{>ams(qO;^m> zOm~KO3X6YtkSJweRim;}wx_N>okP;8ZGvJ7jH>0^dG6G#IQiev^V+s?evEg9N!|(d Y)t$n}`*@zK2G9xyPgg&ebxsLQ02hcn3;+NC literal 0 HcmV?d00001