public NetworkGameDisconnectUserControl(KulamiPeer peer, VoidFunctionTemplate.Function callback) { InitializeComponent(); Peer = peer; Peer.OnConnectionChange += on_connect_change; Callback = callback; }
public NetworkGameLeftUserControl(KulamiPeer peer, VoidFunctionTemplate.Function callback) { InitializeComponent(); this.Callback = callback; LeftGameNotificationLabel.Content = peer.Name + " has left the game."; LeftGameNotificationLabelGlow.Content = peer.Name + " has left the game."; }
public GameCompleteUserControl(GameResult gameResult, VoidFunctionTemplate.Function callback) { this.callback = callback; InitializeComponent(); showWinner(gameResult); //keep the music down while the fanfare plays tempVolume = VolumeManager.MusicVolume; VolumeManager.MusicVolume = 0; }
public InGameMenuUserControl(VoidFunctionTemplate.Function callback) { InitializeComponent(); this.Callback = callback; }