public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/BlueMoon/Lumantis/Lumantis_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Boss/Infernon/InfernonSkull_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/MoonjellyEvent/MoonjellyGiant_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/DeadeyeMarksman/DeadArcher_Glow")); }
public override void ModifyDrawLayers(List <PlayerLayer> layers) { Texture2D textureLegs; if (!player.armor[12].IsAir) { if (player.armor[12].type >= ItemID.Count && ItemGlowMask.TryGetValue(player.armor[12].type, out textureLegs))//Vanity Legs { InsertAfterVanillaLayer(layers, "Legs", new PlayerLayer(mod.Name, "GlowMaskLegs", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawArmorGlowMask(EquipType.Legs, textureLegs, info); })); } } else if (player.armor[2].type >= ItemID.Count && ItemGlowMask.TryGetValue(player.armor[2].type, out textureLegs)) //Legs { InsertAfterVanillaLayer(layers, "Legs", new PlayerLayer(mod.Name, "GlowMaskLegs", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawArmorGlowMask(EquipType.Legs, textureLegs, info); })); } Texture2D textureBody; if (!player.armor[11].IsAir) { if (player.armor[11].type >= ItemID.Count && ItemGlowMask.TryGetValue(player.armor[11].type, out textureBody))//Vanity Body { InsertAfterVanillaLayer(layers, "Body", new PlayerLayer(mod.Name, "GlowMaskBody", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawArmorGlowMask(EquipType.Body, textureBody, info); })); } } else if (player.armor[1].type >= ItemID.Count && ItemGlowMask.TryGetValue(player.armor[1].type, out textureBody)) //Body { InsertAfterVanillaLayer(layers, "Body", new PlayerLayer(mod.Name, "GlowMaskBody", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawArmorGlowMask(EquipType.Body, textureBody, info); })); } Texture2D textureHead; if (!player.armor[10].IsAir) { if (player.armor[10].type >= ItemID.Count && ItemGlowMask.TryGetValue(player.armor[10].type, out textureHead))//Vanity Head { InsertAfterVanillaLayer(layers, "Head", new PlayerLayer(mod.Name, "GlowMaskHead", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawArmorGlowMask(EquipType.Head, textureHead, info); })); } } else if (player.armor[0].type >= ItemID.Count && ItemGlowMask.TryGetValue(player.armor[0].type, out textureHead)) //Head { InsertAfterVanillaLayer(layers, "Head", new PlayerLayer(mod.Name, "GlowMaskHead", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawArmorGlowMask(EquipType.Head, textureHead, info); })); } Texture2D textureItem; if (player.HeldItem.type >= ItemID.Count && ItemGlowMask.TryGetValue(player.HeldItem.type, out textureItem))//Held ItemType { InsertAfterVanillaLayer(layers, "HeldItem", new PlayerLayer(mod.Name, "GlowMaskHeldItem", delegate(PlayerDrawInfo info) { GlowmaskUtils.DrawItemGlowMask(textureItem, info); })); } }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/SporeWheezer/SporeWheezer_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) => GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/StarjinxEvent/Enemies/Pathfinder/Pathfinder_Glow"), Color.White * 0.75f);
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/WinterbornMelee_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Spirit/HauntedBook_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) => GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Cystal/Cystal_Shield"));
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) => GlowmaskUtils.DrawItemGlowMaskWorld(spriteBatch, item, ModContent.GetTexture(Texture + "_glow"), rotation, scale);
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Boss/Scarabeus/ChildofScarabeus_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/BloodMoon/Occultist_Glow")); }
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { GlowmaskUtils.DrawItemGlowMaskWorld(Main.spriteBatch, item, mod.GetTexture(Texture.Remove(0, "Starjinx/".Length) + "_glow"), rotation, scale); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Boss/Atlas/CobbledEye_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Asteroid/CogTrapperBody_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Reach/Reachman_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/DarkfeatherMage/DarkfeatherMage_Glow")); }
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) => GlowmaskUtils.DrawItemGlowMaskWorld(spriteBatch, item, mod.GetTexture(Texture.Remove(0, mod.Name.Length + 1) + "_glow"), rotation, scale);
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, mod.GetTexture("NPCs/Starfarer/CogTrapperTail_Glow")); }
public override void PostDraw(SpriteBatch spriteBatch, Color drawColor) { GlowmaskUtils.DrawNPCGlowMask(spriteBatch, npc, ModContent.GetTexture("SpiritMod/NPCs/Critters/Floater_Critter_Glow")); }
public override void PostDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, float rotation, float scale, int whoAmI) { GlowmaskUtils.DrawItemGlowMaskWorld(spriteBatch, item, Main.itemTexture[item.type], rotation, scale); }