public static void Postfix(HudManager __instance) { #region add the immortal button reliveButton = new CooldownButton(delegate() { Immortal.onClick(reliveButton); }, (float)1, "Pheonix.Assets.scndchancedone.png", 100f, Vector2.zero, CooldownButton.Category.OnlyPheonix, __instance, (float)0, delegate() { Immortal.onDone(); }); reliveButton.killButtonManager.gameObject.SetActive(false); #endregion #region add the droplet button dropletButton = new CooldownButton(delegate() { Droplit.onClick(dropletButton); }, (float)5, "Pheonix.Assets.commsIcon.png", 100f, Vector2.zero, CooldownButton.Category.OnlyPheonix, __instance, (float)0, delegate() { Droplit.onDone(); }); dropletButton.killButtonManager.SetTarget(PlayerTools.getClosestDeadPlayer(PlayerControl.LocalPlayer)); dropletButton.killButtonManager.gameObject.SetActive(false); #endregion #region add the reveal button flashButton = new CooldownButton(delegate() { Reveal.onClick(flashButton); }, (float)30f, "Pheonix.Assets.revealIcon.png", 100f, new Vector2(1.1f, 0f), CooldownButton.Category.OnlyPheonix, __instance, (float)HarmonyMain.flashDuration.GetValue(), delegate() { Reveal.onDone(); }); flashButton.killButtonManager.gameObject.SetActive(false); #endregion #region add the wrath button wrathButton = new CooldownButton(delegate() { Wrath.onClick(wrathButton); }, (float)15f, "Pheonix.Assets.wrathIcon.png", 100f, new Vector2(0.6f, 1.2f), CooldownButton.Category.OnlyPheonix, __instance, (float)0, delegate() { Wrath.onDone(); }); wrathButton.killButtonManager.gameObject.SetActive(false); #endregion #region add the extinguish button extinguishButton = new CooldownButton(delegate() { Water.onClick(extinguishButton); }, (float)HarmonyMain.extinguishCooldown.GetValue(), "Pheonix.Assets.clenseIcon.png", 100f, Vector2.zero, CooldownButton.Category.OnlyImpostor, __instance, (float)0, delegate() { Water.onDone(); }); extinguishButton.killButtonManager.gameObject.SetActive(false); #endregion }