public override void ProcessTriggers(TriggersSet triggersSet) { base.ProcessTriggers(triggersSet); if (DepositAll.JustPressed) { ChestUI.DepositAll(); } if (LootAll.JustPressed) { ChestUI.LootAll(); } if (QuickStack.JustPressed) { player.QuickStackAllChests(); ChestUI.QuickStack(); } if (Restock.JustPressed) { ChestUI.Restock(); } if (SortChest.JustPressed) { ItemSorting.SortChest(); } if (SortInventory.JustPressed) { ItemSorting.SortInventory(); } }
public void QuickStackToChests() { if (player.chest != -1) { ChestUI.QuickStack(); } else { player.QuickStackAllChests(); } Recipe.FindRecipes(); }
public static void QuickStack() { if (Main.player[Main.myPlayer].chest > -1 || (Main.player[Main.myPlayer].chest == -2 || Main.player[Main.myPlayer].chest == -3)) { ChestUI.QuickStack(); } else { Main.player[Main.myPlayer].QuickStackAllChests(); Recipe.FindRecipes(); } }
public override void Update() { if (!Main.gameMenu && !Main.mapFullscreen) { //if (kQuickMoveItem.KeyDown && Main.playerInventory) //{ // CheckInventory(); // if (player.chest != -1) CheckChest(); //} //if (kQuickMoveItem.KeyDown && Main.playerInventory && ((Main.mouseLeft && Main.mouseLeftRelease) || (Main.mouseRight && Main.mouseRightRelease))) //{ // CheckQuickCraft(); // CheckQuickBuy(); //} if (Main.playerInventory) { if (kSortInventory.KeyPressed) { //Terraria.UI.ItemSorting.Sort(); ModUtils.Sort(); Recipe.FindRecipes(); //Console.WriteLine("clean inv"); //CleanInventory(); } } //if (Main.playerInventory && player.chest != -1) { if (kQuickStack.KeyPressed) { Player player = Main.player[Main.myPlayer]; if (player.chest != -1) { ChestUI.QuickStack(); } else { player.QuickStackAllChests(); Recipe.FindRecipes(); } } } if (kSwapHotbar.KeyPressed) { SwapHotbar(); } } }