protected override void OnShown(EventArgs e) { base.OnShown(e); if (Settings.Default.AutoShowOverlay) { ShowOverlay(); } _ = lightsManager.SwitchToDefaultColor(); if (GameDetector.IsGameRunning()) { var dialog = new RoleDialog(); dialog.ShowDialog(this); AdjustForCurrentRole(dialog.SelectedRole); } else if (Settings.Default.AutoStartGame) { GameDetector.LauchGame(); } }
private void StartGame_Click(object sender, EventArgs e) { GameDetector.LauchGame(); }