Vector2 mCurPos; // BuildSetting列表 //-------------------------------------------------------------------------------------------- public CLyrPackRes() { mCsvFile = new CsvParser(); mFileLst = new List <string>(); mFixFile = new List <string>(); mFixView = new CViewList(400, 225); mfCsv0 = "PackVers/" + PackVerCfg.GetCurVer() + ".csv"; mfCsv1 = PackVerCfg.GetPreVer(); if (mfCsv1.Length > 0) { mfCsv1 = "PackVers/" + mfCsv1 + ".csv"; } mCmpFile = new List <string>(); mCmpView = new CViewList(400, 175); }
//-------------------------------------------------------------------------------------------- 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)); }