Ejemplo n.º 1
0
        public override bool HandlesMouseClick(int mouseX, int mouseY, MouseButton button)
        {
            if (table.scroll.draggingMouse || game.Gui.hudScreen.hotbar.HandlesMouseClick(mouseX, mouseY, button))
            {
                return(true);
            }

            bool handled = table.HandlesMouseClick(mouseX, mouseY, button);

            if ((!handled || table.PendingClose) && button == MouseButton.Left)
            {
                bool hotbar = game.Input.ControlDown;
                if (!hotbar)
                {
                    game.Gui.SetNewScreen(null);
                }
            }
            return(true);
        }