Exemplo n.º 1
0
        protected override void Dispose(bool disposing)
        {
            KeyboardHandler.OnKeyPressed -= onKeyPressed;

            sa_chartList.Dispose();
            searchBox.Dispose();
            spriteManagerTop.Dispose();
            base.Dispose(disposing);
        }
Exemplo n.º 2
0
        protected override void Dispose(bool disposing)
        {
            KeyboardHandler.OnKeyRepeat -= KeyboardHandler_OnKeyRepeat;
            BanchoClient.OnConnect      -= BanchoClient_OnConnect;

            LeaveLobby(false);

            spriteManager.Dispose();
            spriteManagerFilters.Dispose();
            areaGameList.Dispose();
            Matches.Clear();

            filterTextBox.Dispose();

            base.Dispose(disposing);
        }
Exemplo n.º 3
0
        protected override void Dispose(bool disposing)
        {
            KeyboardHandler.OnKeyRepeat -= KeyboardHandler_OnKeyRepeat;
            BanchoClient.OnConnect      -= BanchoClient_OnConnect;

            LeaveLobby(false);

            spriteManager.Dispose();
            gameList.Dispose();
            Matches.Clear();

            BanchoClient.Users.ForEach(u => u.InLobby = false);

            content.Unload();

            base.Dispose(disposing);
        }
Exemplo n.º 4
0
        protected override void Dispose(bool disposing)
        {
            Beatmaps.ForEach(b => b.Dispose());

            KeyboardHandler.OnKeyRepeat -= KeyboardHandler_OnKeyRepeat;
            spriteManager.Dispose();
            spriteManagerFg.Dispose();
            resultsPane.Dispose();
            searchTextBox.Dispose();

            GameBase.spriteManager.Remove(loadingText);

            //if (didDownloads)
            //    BeatmapManager.CheckAndProcess(false);

            base.Dispose(disposing);

            if (wasPlayingAudio)
            {
                AudioEngine.TogglePause();
            }
        }
Exemplo n.º 5
0
 protected override void Dispose(bool disposing)
 {
     area.Dispose();
     base.Dispose(disposing);
 }
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     bindingManager.Dispose();
     pa.Dispose();
 }
Exemplo n.º 7
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     searchBox.Dispose();
     scrollableView.Dispose();
 }
Exemplo n.º 8
0
 protected override void Dispose(bool disposing)
 {
     channelButtonList.Dispose();
     base.Dispose(disposing);
 }
Exemplo n.º 9
0
        protected override void Dispose(bool disposing)
        {
            if (ApplauseChannel != null)
            {
                ApplauseChannel.Stop();
            }

            AudioEngine.StopAllSampleEvents();

            if (scrollableArea != null)
            {
                scrollableArea.Dispose();
            }

            KeyboardHandler.OnKeyPressed -= GameBase_OnKeyPressed;

            if (BeatmapManager.Current != null)
            {
                BeatmapManager.Current.Scores.Clear();
            }

            if (rankingDialog != null)
            {
                rankingDialog.Close();
                rankingDialog.Dispose();
            }

            if (score != null)
            {
                if (score.HpGraph != null)
                {
                    score.DisposeHpGraph();
                }

                if (LoadingReplay)
                {
                    score.GotReplayData -= score_GotReplayData;
                }

                if (!InputManager.ReplayMode)
                {
                    score.ClearReplayData();
                }
            }

            switch (GameBase.QueuedMode)
            {
            case OsuModes.Rank:
            case OsuModes.RankingTagCoop:
            case OsuModes.RankingTeam:
            case OsuModes.RankingVs:
                break;

            default:
                Player.currentScore = null;
                break;
            }

            GameBase.spriteManager.Remove(s_white);

            if (spriteManagerWideScrolling != null)
            {
                spriteManagerWideScrolling.Dispose();
            }
            if (spriteManagerWideAbove != null)
            {
                spriteManagerWideAbove.Dispose();
            }
            if (spriteManagerWideBelow != null)
            {
                spriteManagerWideBelow.Dispose();
            }

            base.Dispose(disposing);
        }
Exemplo n.º 10
0
 protected override void Dispose(bool disposing)
 {
     spriteList.Dispose();
     base.Dispose(disposing);
 }