private void MainMenu_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { VolumeManager.MusicVolume = tempVolume; ContentControlActions.FadeOut(); callback(); }
public void stopIntro() { HomeScreenIntro.Stop(); // Todo refactor this HomeScreenIntro.Volume = .7; HomeScreenIntro.Close(); ContentControlActions.FadeOut(); OnComplete(this, new EventArgs()); }
private void on_connect_change(object sender, NetConnectionEventArgs e) { if (!e.Connected) { return; } Peer.OnConnectionChange = null; ContentControlActions.FadeOut(); }
private void startGame() { ContentControlActions.FadeOut(); // Set up game engine HumanPlayer humanPlayer = new HumanPlayer(GameBoardUserControl.human_move_handler); Player AiPlayer = gameModeIsHard ? (Player) new HardAiPlayer() : new EasyAiPlayer(); Board board = BoardSetup.Random(); GameBoardUserControl control = new GameBoardUserControl( board, humanPlayer, AiPlayer, playerGoesFirst ? PieceType.Red : PieceType.Black ); ContentControlActions.setBaseContentControl(control); }
private void Cancel_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ContentControlActions.FadeOut(); }
private void LeaveGame_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { ContentControlActions.FadeOut(); Callback(); }
private void closeHelpIdle_MouseUp(object sender, MouseButtonEventArgs e) { ContentControlActions.FadeOut(); }
private void Back_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Teardown(); ContentControlActions.FadeOut(); }
private void Okay_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { Panel.SetZIndex(Okay, 0); ContentControlActions.FadeOut(); }