Example #1
0
    public GamePackUI(string sNm, string sPth, BuildGameWindow win)
    {
        mGame    = sNm;
        mPath    = (sPth);
        mGmWind  = win;
        mbSingle = false;
        mLaunch  = "ClientLaunch.unity";
        mPthCtrl = new UIToggleCtrl(@"子目录列表");
        mScnCtrl = new UIToggleCtrl(@"场景列表");

        mPthCtrl.AddButton(new BtnItem(101, 40, @"刷新", this.OnClickCtrlBtn));
        mPthCtrl.AddButton(new BtnItem(102, 40, @"打包", this.OnClickCtrlBtn));
        mPthCtrl.AddButton(new BtnItem(103, 40, @"反选", this.OnClickCtrlBtn));
        mPthCtrl.AddButton(new BtnItem(104, 40, @"增加版本", this.OnClickCtrlBtn));

        mScnCtrl.AddButton(new BtnItem(201, 40, @"刷新", this.OnClickCtrlBtn));
        mScnCtrl.AddButton(new BtnItem(202, 40, @"打包", this.OnClickCtrlBtn));

        mPath = sPth.Replace("\\", "/");
        if (!mPath.EndsWith("/"))
        {
            mPath += "/";
        }
        NtfRefreshPath();
        NtfRefreshScene();
        mLaunch = FindGameLaunch();
    }
Example #2
0
    //--------------------------------------------------------------------------------------------
    // 启动
    void OnEnable()
    {
        ArchiveUtil.NtfInitSkips();
        PackVerCfg.NtfLoadVerCfg("PackVers/VerConfig.txt");
        mVerMng = new VerItemMng();
        mVerMng.NtfSearchPackVers();    // 搜索已经存在的版本文件
        mTgtCtrl = new UITargetCtrl();
        mGameLst = new UIToggleCtrl(@"游戏列表", this.OnClickGameList);
        mPubLst  = new UIToggleCtrl(@"公共文件");        // 场景列表
        mGameRes = new Dictionary <string, GamePackUI>();
        mPubLst.EnableHori(true);
        mPubLst.LeftTitle(true);
        NtfRefreshGames();
        NtfRefreshPublic();

        mGameLst.AddButton(new BtnItem(101, 40, @"刷新", this.OnClickCtrlBtn));

        mPubLst.AddButton(new BtnItem(201, 40, @"刷新", this.OnClickCtrlBtn));
        mPubLst.AddButton(new BtnItem(202, 40, @"打包", this.OnClickCtrlBtn));
    }