Esempio n. 1
0
    //------------------------------------------------------------------------------------------------------------------
    //
    // 将全部资源进行打包
    //
    //--------------------------------------------------------------------------------------------
    // 将全部资源进行打包
    void OnLyrPackClient(BuildPackWindow src, float fx, float fy)
    {
        if (GUI.Button(new Rect(fx, fy - 2, 40, 20), @"查找"))
        {
            string verPth = "PackVers/";
            string szf    = EditorUtility.OpenFilePanel(@"版本文件", verPth, "csv");
            if (szf.Length > 0)
            {
                mCsvFile.loadCsvFile(szf, true);
                src.GenViewData(mCsvFile, szf);
                GenFromCsv();
            }
        }

        mFixView.OnDrawView(fx, fy + 25, mFixFile.ToArray());
    }
Esempio n. 2
0
    //--------------------------------------------------------------------------------------------
    Vector2 OnLyrVerInfor(BuildPackWindow src, float fx, float fy)
    {
        GUI.Label(new Rect(fx, fy + 2, 150, 20), @"当前版本:" + PackVerCfg.GetCurVer());

        if (GUI.Button(new Rect(fx + 150, fy - 2, 50, 20), @"刷 新"))
        {
            src.mVerMng.NtfSearchPackVers();
        }

        GUI.Label(new Rect(fx + 210, fy + 2, 80, 20), @"版本文件列表:");
        List <string> sList = src.mVerMng.GetVerList();

        if (mViewList.OnDrawView(fx, fy + 20, sList.ToArray()))
        {
            string szf = src.GetVerFile(mViewList.mHitRow);
            mCsvFile.loadCsvFile(szf, true);
            src.GenViewData(mCsvFile, szf);
        }

        return(new Vector2(340, 280));
    }