Пример #1
0
 private void ControlEvents_KeyPressed(object sender, EventArgsKeyPressed e)
 {
     if (e.KeyPressed.ToString() == ModEntry.Settings.MenuButton && Context.IsPlayerFree)
     {
         ItemMenu.Open();
     }
 }
Пример #2
0
 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();
         }
     }
 }
Пример #3
0
 public override void gameWindowSizeChanged(Rectangle oldBounds, Rectangle newBounds)
 {
     ItemMenu.Open();
 }