Exemplo n.º 1
0
    //------------------------------------------------------------------------------------------------------------------
    //
    // 打包升级用资源
    //
    //--------------------------------------------------------------------------------------------
    // 打包升级用资源
    void OnLyrPackUpdate(BuildPackWindow src, float fx, float fy)
    {
        string verPth = "PackVers/";

        if (GUI.Button(new Rect(fx + 355, fy, 40, 20), @"比较"))
        {
            NtfCompare(src);
        }

        float fw = 335;

        GUI.Label(new Rect(fx, fy + 25, fw, 20), @"基础版本: " + mfCsv0);
        if (GUI.Button(new Rect(fx + fw + 20, fy + 25, 40, 20), @"查找"))
        {
            string fl = EditorUtility.OpenFilePanel(@"源版本文件", verPth, "csv");
            if (fl.Length > 0)
            {
                mfCsv0 = ArchiveUtil.NtfPathBeginPackVers(fl);
                NtfCompare(src);
            }
        }

        GUI.Label(new Rect(fx, fy + 50, fw, 20), @"比对版本: " + mfCsv1);
        if (GUI.Button(new Rect(fx + fw + 20, fy + 50, 40, 20), @"查找"))
        {
            string fl = EditorUtility.OpenFilePanel(@"目标版本文件", verPth, "csv");
            if (fl.Length > 0)
            {
                mfCsv1 = ArchiveUtil.NtfPathBeginPackVers(fl);
                NtfCompare(src);
            }
        }

        mCmpView.OnDrawView(fx, fy + 75, mCmpFile.ToArray());
    }