private void options_MouseButtonDown(GuiCursorInputEventArgs e, object sender) { if (e.PressedButtons.Contains(MouseButtons.LeftButton)) { options.Press(); } }
void start_MouseButtonDown(GuiCursorInputEventArgs e, object sender) { if (e.PressedButtons.Contains(MouseButtons.LeftButton)) { start.Press(); } }
private void button_MouseButtonDown(GuiCursorInputEventArgs e, object sender) { if (e.PressedButtons.Contains(MouseButtons.LeftButton)) { Button button = sender as Button; button.Press(); } }