private void LoadBeatmapInfo() { artistText.text = CurrentBeatmaps[CurrentIndex].Artist; authorText.text = CurrentBeatmaps[CurrentIndex].Author; densityText.text = CurrentBeatmaps[CurrentIndex].Density.ToString(); //Debug.Log(CurrentBeatmaps[CurrentIndex].FilePath); animationObj.Play("SelectSong_BeatmapSelected", 0, 0); if (!DensityPanel.activeSelf) { DensityPanel.SetActive(true); } if (!OptionPanel.activeSelf) { OptionPanel.SetActive(true); } if (!StartPanel.activeSelf) { StartPanel.SetActive(true); } }
public void Selected(int index, string title, List <BeatmapInfo>[] St5, List <BeatmapInfo>[] Th2, List <BeatmapInfo>[] Th4, List <BeatmapInfo>[] Th6, List <BeatmapInfo>[] Pt1, bool[] filled, int bgaFrame, string bgaPath, string backPath) { Starlight5 = St5; Theater2 = Th2; Theater4 = Th4; Theater6 = Th6; Platinum1 = Pt1; CurBGAVal = bgaFrame; BGAPath = bgaPath; BackPath = backPath; titleText.text = title; artistText.text = null; authorText.text = null; for (int i = 0; i < 5; i++) { ModeBtn[i].interactable = false; ModeBtn[i].gameObject.GetComponent <Image>().color = Color.white; ModeBtn[i].gameObject.GetComponentInChildren <Text>().color = Color.black; if (filled[i]) { ModeBtn[i].interactable = true; } } for (int i = 0; i < 4; i++) { LevelBtn[i].interactable = false; LevelBtn[i].gameObject.GetComponent <Image>().color = GlobalTheme.ThemeColor(); LevelBtn[i].gameObject.GetComponentInChildren <Text>().color = GlobalTheme.ThemeContrastColor(); } animationObj.Play("SelectSong_SongSelected", 0, 0); if (!TitlePanel.activeSelf) { TitlePanel.SetActive(true); } if (!PeoplePanel.activeSelf) { PeoplePanel.SetActive(true); } if (!ModePanel.activeSelf) { ModePanel.SetActive(true); } if (!SongSelectedPrevious) { OptionPanel.SetActive(true); SongSelectedPrevious = true; } LevelSelectedPrevious = false; if (BeatmapIndexPanel.activeSelf) { BeatmapIndexPanel.SetActive(false); } if (lastButtonIdx != -1) { buttons[lastButtonIdx].GetComponent <Graphic>().color = GlobalTheme.ThemeColor(); buttons[lastButtonIdx].GetComponent <SongButton>().buttonText.color = GlobalTheme.ThemeContrastColor(); } lastButtonIdx = index; }