Exemplo n.º 1
0
        private void Input_ButtonPressed(object sender, ButtonPressedEventArgs e)
        {
            if (Context.IsWorldReady)
            {
                if (this.Config.Controls.Organize.Contains(e.Button))
                {
                    Organize();
                }

                if (this.Config.Controls.StackToChest.Contains(e.Button) && Game1.activeClickableMenu is ItemGrabMenu)
                {
                    ItemGrabMenu menu = (ItemGrabMenu)Game1.activeClickableMenu;

                    if (menu.organizeButton != null)
                    {
                        menu.FillOutStacks();
                        if (this.Config.Controls.OrganizeAfterStackToChest)
                        {
                            Organize();
                        }
                    }
                }
            }
        }