public override bool HandlesMouseDown(int mouseX, int mouseY, MouseButton button) { if (table.scroll.draggingMouse || game.Gui.hudScreen.hotbar.HandlesMouseDown(mouseX, mouseY, button)) { return(true); } bool handled = table.HandlesMouseDown(mouseX, mouseY, button); if ((!handled || table.PendingClose) && button == MouseButton.Left) { bool hotbar = game.Input.ControlDown || game.Input.ShiftDown; if (!hotbar) { game.Gui.SetNewScreen(null); } } return(true); }