public override bool NewRightClick(int i, int j) { if (UpgradePanel.visible) { Main.playerInventory = false; VampKnives.CloseUpgradeUI(); UpgradePanel.visible = false; Main.PlaySound(SoundID.MenuClose); } else if (UpgradePanel.visible == false) { Main.playerInventory = true; VampKnives.OpenUpgradeUI(); UpgradePanel.visible = true; Main.PlaySound(SoundID.MenuOpen); } return(true); }
private void CloseButtonClicked(UIMouseEvent evt, UIElement listeningElement) { VampKnives.CloseUpgradeUI(); }