Exemple #1
0
 private void ControlEvents_KeyPressed(object sender, EventArgsKeyPressed e)
 {
     if (e.KeyPressed.ToString() == ModEntry.Settings.MenuButton && Context.IsPlayerFree)
     {
         ItemMenu.Open();
     }
 }
 private void ControlEvents_KeyPressed(object sender, EventArgsKeyPressed e)
 {
     if (e.KeyPressed.ToString() == CJBEndlessInventory.Settings.MenuButton)
     {
         if (Game1.hasLoadedGame && Game1.activeClickableMenu == null && Game1.player.CanMove && !Game1.dialogueUp && !Game1.eventUp)
         {
             ItemMenu.Open();
         }
     }
 }
Exemple #3
0
 public override void gameWindowSizeChanged(Rectangle oldBounds, Rectangle newBounds)
 {
     ItemMenu.Open();
 }