Exemple #1
0
 private void ActiveGwentTrackerWindow_Closed(object sender, EventArgs e)
 {
     activeGwentTrackerWindow.Closed -= ActiveGwentTrackerWindow_Closed;
     activeGwentTrackerWindow.RequestedGwentPlayersOnMap -= ActiveGwentTrackerWindow_RequestedGwentPlayersOnMap;
     activeGwentTrackerWindow = null;
     if (RandomPlayersOnMap)
     {
         ToggleGwentPlayers(false);
     }
 }
Exemple #2
0
        private void GwentOpenButton_Click(object sender, RoutedEventArgs e)
        {
            if (activeGwentTrackerWindow == null)
            {
                activeGwentTrackerWindow = new GwentTracker();
                if (manualMode)
                {
                    activeGwentTrackerWindow.LoadInfo(BaseGameGwentCards);
                }
                else
                {
                    activeGwentTrackerWindow.LoadInfo(BaseGameGwentCards, ActiveSave.GwentManager.RegularCards, ActiveSave.GwentManager.LeaderCards);
                }

                activeGwentTrackerWindow.Show();
                activeGwentTrackerWindow.RequestedGwentPlayersOnMap += ActiveGwentTrackerWindow_RequestedGwentPlayersOnMap;
                activeGwentTrackerWindow.Closed += ActiveGwentTrackerWindow_Closed;
            }
        }