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(); } } }
public override void gameWindowSizeChanged(Rectangle oldBounds, Rectangle newBounds) { ItemMenu.Open(); }