public void DrawSelf(SpriteBatch spriteBatch) { if (Killer == null || Victim == null) { return; } Vector2 position = Position; Texture2D tex = Textures.KillFeedEntry; Texture2D texScar = Textures.SCAREntryIcon; float offX = Killer.Length * 10; float offsetX = 94; Color borderColor = Main.LocalPlayer.name == Killer ? Color.Red * 0.9f : Color.Black * 0.9f; DrawHelpers.DrawBorderedRectangle(position, (int)Width, (int)Height, Color.Black * 0.8f * Opacity, borderColor * Opacity, spriteBatch); spriteBatch.Draw(texScar, position + new Vector2(20 + offX + 10, 5), null, Color.White * Opacity, 0f, Vector2.Zero, 1f, SpriteEffects.None, 1f); if (NoScope) { spriteBatch.Draw(tex, position + new Vector2(20 + offX + offsetX, 5), new Rectangle(0, 80, 40, 40), Color.White * Opacity, 0f, Vector2.Zero, 0.75f, SpriteEffects.None, 1f); offsetX += 34; } if (WallBang) { spriteBatch.Draw(tex, position + new Vector2(20 + offX + offsetX, 6), new Rectangle(0, 40, 40, 40), Color.White * Opacity, 0f, Vector2.Zero, 0.75f, SpriteEffects.None, 1f); offsetX += 32; } if (Headshot) { spriteBatch.Draw(tex, position + new Vector2(20 + offX + offsetX, 6), new Rectangle(0, 0, 40, 40), Color.White * Opacity, 0f, Vector2.Zero, 0.75f, SpriteEffects.None, 1f); offsetX += 44; } spriteBatch.DrawString(Main.fontMouseText, Killer, position + new Vector2(10, 10), Color.White * Opacity); spriteBatch.DrawString(Main.fontMouseText, Victim, position + new Vector2(offX + 20 + offsetX, 10), Color.White * Opacity); }
public void PostSCARDraw(NPC npc, SpriteBatch spriteBatch, Color drawColor) { if (Main.LocalPlayer.whoAmI == Main.myPlayer) { TBAPlayer standUser = TBAPlayer.Get(Main.LocalPlayer); if (standUser.Stand is SREKTStand && standUser.StandActive) { int maxHeight = (npc.life * npc.height) / npc.lifeMax; if (standUser.ActiveStandProjectile is SREKTStand stand && stand.Wallhack) { DrawHelpers.DrawBorderedRectangle(npc.position - Main.screenPosition - new Vector2(12, maxHeight - npc.height), 10, maxHeight, Color.Lime, Color.Green, spriteBatch); DrawHelpers.DrawBorderedRectangle(npc.position - Main.screenPosition, npc.width, npc.height, Color.Black * 0f, Color.Green, spriteBatch); } } } }