Example #1
0
    //-------------------------------------------------------------------------------------------------
    public LvItmBtn AddLvBtn(string sLabel, Color clr)
    {
        LvItmBtn itm = new LvItmBtn();

        itm.mWidth = mViewWH.x;
        itm.mLabel = sLabel;   // 显示的文字
        itm.mColor = clr;
        AddLvItem(itm);
        return(itm);
    }
Example #2
0
    public LvItmBtn AddLvBtn(string sLabel, float fw, Color clr)
    {
        LvItmBtn itm = new LvItmBtn();

        itm.mLabel = sLabel;
        itm.mColor = clr;
        itm.mWidth = fw;
        PushToAry(itm);
        return(itm);
    }