public override void Unload() { guraGawrDownFrames = null; SpecialEffectKey = null; TerrarianUpFrames = null; JunkoAndFriendsRenderTargets.Unload(); Instance = null; }
public static ModHotKey SpecialEffectKey; //will make vanities do special things! public override void Load() { Instance = this; if (!Main.dedServ) { AddEquipTexture(null, EquipType.Legs, "Junko_Legs", "JunkoAndFriends/Items/JunkoVanity/JunkoLeg_Legs"); AddEquipTexture(null, EquipType.Legs, "MoriLeg_Legs", "JunkoAndFriends/Items/MoriVanity/MoriLeg_Legs"); AddEquipTexture(null, EquipType.Legs, "AmeliaLeg_Legs", "JunkoAndFriends/Items/AmeliaVanity/AmeliaLeg_Legs"); GameShaders.Armor.BindShader(ModContent.ItemType <WaveShaderDye>(), new ArmorShaderData(new Ref <Effect>(GetEffect("Effects/WaveShader")), "WaveShaderPass")); GameShaders.Misc["WaveShader"] = new MiscShaderData(new Ref <Effect>(GetEffect("Effects/WaveShader")), "WaveShaderPass"); JunkoAndFriendsRenderTargets.Initialize(); } On.Terraria.Main.Draw += Main_Draw; SpecialEffectKey = RegisterHotKey("Special Vanity Effect", "NumPad5"); guraGawrDownFrames = new List <int> { 56, 112, 168, 224, 336, 560, 616, 672, 728 }; TerrarianUpFrames = new List <int> { 392, 448, 504, 784, 840, 896 }; }