コード例 #1
0
ファイル: UnitAlbumPanel.cs プロジェクト: Kelicia91/Sugarism
    //
    public void ShowCGList(AlbumController.EAlbumType albumType)
    {
        hideAllCGScrollView();

        CGScrollView scrollView = getCGScrollView(albumType);

        if (null == scrollView)
        {
            Log.Error(string.Format("not found CGScrollView; {0}", albumType));
            return;
        }

        scrollView.Show();
    }
コード例 #2
0
ファイル: UnitAlbumPanel.cs プロジェクト: Kelicia91/Sugarism
    private void addAlbumType(AlbumController.EAlbumType albumType)
    {
        CGScrollView scrollView = Instantiate(PrefCGScrollView);

        scrollView.transform.SetParent(CGScrollViewListPanel.transform, false);
        scrollView.Set(AlbumId, albumType);
        scrollView.Hide();

        _cgScrollViewList.Add(scrollView);

        AlbumTypeToggle toggle = Instantiate(PrefAlbumTypeToggle);

        toggle.transform.SetParent(ToggleGroup.transform, false);
        toggle.Set(ToggleGroup);
        toggle.Set(this, albumType);
    }