示例#1
0
        public override bool UpdateGame()
        {
            SongMenus[htSongMenus(SongMenu)].Update();

            if (SongMenus[htSongMenus(SongMenu)].IsSmallView())
            {
                CheckPlaylist();
            }

            Texts[htTexts(TextCategory)].Text = CSongs.GetActualCategoryName();

            if (CSongs.Category > -1 || CConfig.Tabs == EOffOn.TR_CONFIG_OFF)
            {
                CBackgroundMusic.Disabled = true;
            }
            else
            {
                CBackgroundMusic.Disabled = false;
            }

            int song = SongMenus[htSongMenus(SongMenu)].GetActualSelection();

            if ((CSongs.Category >= 0 || CConfig.Tabs == EOffOn.TR_CONFIG_OFF) && song >= 0 && song < CSongs.VisibleSongs.Length)
            {
                Texts[htTexts(TextSelection)].Text = CSongs.VisibleSongs[song].Artist + " - " + CSongs.VisibleSongs[song].Title;
            }
            else if (CSongs.Category == -1 && song >= 0 && song < CSongs.Categories.Length)
            {
                Texts[htTexts(TextSelection)].Text = CSongs.Categories[song].Name;
            }
            else
            {
                Texts[htTexts(TextSelection)].Text = String.Empty;
            }

            Texts[htTexts(TextSearchBar)].Text = _SearchText;
            if (_SearchActive)
            {
                Texts[htTexts(TextSearchBar)].Text += '|';

                Texts[htTexts(TextSearchBar)].Visible       = true;
                Texts[htTexts(TextSearchBarTitle)].Visible  = true;
                Statics[htStatics(StaticSearchBar)].Visible = true;
            }
            else
            {
                Texts[htTexts(TextSearchBar)].Visible       = false;
                Texts[htTexts(TextSearchBarTitle)].Visible  = false;
                Statics[htStatics(StaticSearchBar)].Visible = false;
            }

            return(true);
        }