예제 #1
0
    //-------------------------------------------------------------------------------------------------
    public LvColGrp AddLvColGrp(LvAlign nType = LvAlign.LIA_LEFT)
    {
        LvColGrp itm = new LvColGrp();

        itm.mWidth = mViewWH.x;
        itm.mTye   = nType;
        AddLvItem(itm);
        return(itm);
    }
예제 #2
0
    public LvColGrp AddLvColGrp(LvAlign nType = LvAlign.LIA_LEFT)
    {
        LvColGrp itm = new LvColGrp();

        itm.mTye   = nType;
        itm.mLabel = "";
        PushToAry(itm);
        return(itm);
    }
예제 #3
0
    void AddReToViewCtrl()
    {
#if (MY_DEBUG) // 显示出来
        UIListViewCtrl LvCtrl = m_lvCtrl;
        if (LvCtrl == null)
        {
            return;
        }
        LvCtrl.ClearLvItems();
        LvItm lvHdr = LvCtrl.AddLvLabel(@"调试信息", Color.red);
        lvHdr.mfont   = 24;
        lvHdr.mAnchor = TextAnchor.MiddleCenter;

        LvColGrp iGrp = LvCtrl.AddLvColGrp();

        //LvColGrp iGrp0 = iGrp.AddLvColGrp(0);
        string szVer = @"游戏版本:" + GameResMng.mGmVer;
        iGrp.AddLvLabel(szVer, 200, Color.green);

        szVer = @"资源版本:" + GameResMng.mReVer;
        iGrp.AddLvLabel(szVer, 200, Color.blue);

        //LvColGrp iGrp1 = iGrp.AddLvColGrp(2);
        //lvHdr = iGrp1.AddLvBtn(@"网络资源", 80, Color.blue);
        //lvHdr.mAnchor = TextAnchor.MiddleCenter;

        //lvHdr = iGrp1.AddLvBtn(@"本地资源", 80, Color.blue);
        //lvHdr.mAnchor = TextAnchor.MiddleCenter;

        iGrp.UpdateDrawH();


        LvCtrl.AddLvEmpty(5);

        LvCtrl.AddLvLabel(@"运行信息:", Color.green);

        LvItmGrp itmGrp = LvCtrl.AddLvItmGrp(@"搜索到的资源包:", Color.green);
        //itmGrp.AddLvLabel("asdf", 0, Color.white);
        //itmGrp.AddLvLabel("234234asdf", 0, Color.white);
        if (null != mPackDic)
        {
            foreach (ResPackge pck in mPackDic.Values)
            {
                Debug.Log("pck.mType = " + pck.mType.ToString());
                if (pck.mType == 0)
                {
                    itmGrp.AddLvLabelEx(pck);
                }
            }
        }

        itmGrp = LvCtrl.AddLvItmGrp(@"搜索到的场景:", Color.green);
        //itmGrp.AddLvLabel("asdf", 0, Color.white);
        //itmGrp.AddLvLabel("234234asdf", 0, Color.white);
        if (null != mPackDic)
        {
            Dictionary <string, ResPackItm> vDic = GetSceneItms();
            foreach (ResPackItm itm in vDic.Values)
            {
                ResPackge pck = GetPackge(itm.mPack);
                string    sf  = Path.GetFileNameWithoutExtension(itm.mFile);
                itmGrp.AddLvBtnEx(@"Load " + sf, pck);
            }
        }
#endif
    }