Example #1
0
 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);
 }
Example #2
0
 private void CloseButtonClicked(UIMouseEvent evt, UIElement listeningElement)
 {
     VampKnives.CloseUpgradeUI();
 }