public override void OnMouseUp(int button) { if (button == 1) { if (ButtonClicked > 0 && Enabled[ButtonClicked - 1]) { switch (ButtonClicked) { case 8: // exit button AllodsWindow.Quit(); break; default: break; } } ButtonClicked = 0; } }
public void quit() { AllodsWindow.Quit(); }