Example #1
0
        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();
            }
        }
Example #2
0
 private async void Save_Click(object sender, EventArgs e)
 {
     await lightsManager.SwitchToDefaultColor();
 }