Exemple #1
0
    public void SetBeatInfo(int index_, UIBeatList.InfoSelectedHandler selectedHandler_, BeatInfo beatInfo)
    {
        _index           = index_;
        _selectedHandler = selectedHandler_;

        _albumArt.sprite = Define.GetAlbumArtSprite(beatInfo);
        _title.text      = beatInfo._title;
        _difficulty.SetDifficulty(beatInfo._difficulty);
        _length.text = Define.ConverBeatLength(beatInfo._length);
        _cleared.SetActive(Define.IsSongCleared(beatInfo));
    }
Exemple #2
0
    public void Open(BeatInfo beatInfo)
    {
        // 정보 채우기
        _beatInfo        = beatInfo;
        _albumArt.sprite = Define.GetAlbumArtSprite(_beatInfo);
        _title.text      = _beatInfo._title;
        _author.text     = _beatInfo._author;
        _highScore.text  = string.Format("High Score: {0}", Define.GetSongHighScore(beatInfo)); // 한꺼번에 가운데 정렬 위해 텍스트를 둘로 나누지 않음
        if (!Define.IsSongCleared(beatInfo))
        {
            _highScore.text += " (Not Cleared)";
        }
        _difficulty.SetDifficulty(beatInfo._difficulty);
        _length.text = Define.ConverBeatLength(_beatInfo._length);
        _leaderboard.interactable = (EGSocial._IsAuthenticated); // 로그인 되었을 때만 사용가능
        _leaderboard.GetComponent <MaterialUI.RippleConfig>().enabled = _leaderboard.interactable;
        _leaderboardText.color = (_leaderboard.interactable) ? _leaderboardTextEnabledColor : _leaderboardTextDisabledColor;

        // 활성화
        _Go.SetActive(true);
    }