Ejemplo n.º 1
0
        public void GetAssets()
        {
            _container = new EComponent(_tWidth, _tHeight);
            _container.SetBg(false);
            _container.ResetPosition(_tWidth / 2, _tHeight / 2);
            _container.SetBg(0, 0, 0);
            _toolBarPanel = new ToolBarPanel(new List <string>()
            {
                "AssetBundle资源列表", "动作文件", "网格", "纹理"
            }, _tWidth - 10, _tHeight - 10);
            float[] wh = _toolBarPanel.GetChildWh();

            AssetBundleListReportWin abWin = new AssetBundleListReportWin(this, wh[0], wh[1]);

            _toolBarPanel.AddPanel(0, abWin);

            AnimationsReportWin animWin = new AnimationsReportWin(this, wh[0], wh[1]);

            _toolBarPanel.AddPanel(1, animWin);

            MeshsReportWin meshWin = new MeshsReportWin(this, wh[0], wh[1]);

            _toolBarPanel.AddPanel(2, meshWin);

            TexturesReportWin texWin = new TexturesReportWin(this, wh[0], wh[1]);

            _toolBarPanel.AddPanel(3, texWin);

            _container.AddComponent(_toolBarPanel, 5, 10);
            _toolBarPanel.ResetSelect();
        }
Ejemplo n.º 2
0
 public void _init()
 {
     _toolbar = new ToolBarPanel(new List <string>()
     {
         "打包资源", "查看资源报告", "生成CRC热更新文件"
     }, Ew, Eh - 10);
     _toolbar.OnSelect += OnSelect;
     _onClickAction.Add(0, OnBuildAssetBundle);
     _onClickAction.Add(1, OnShowAbReport);
     AddComponent(_toolbar, 0, 5);
     //_abBuildBtn=new EButton("打包资源",150);
     //_abReportBtn=new EButton("查看Ab资源报告:");
 }
Ejemplo n.º 3
0
        public void GetAssets()
        {
            _container = new EComponent(_tWidth, _tHeight);
            _container.SetBg(false);
            _container.ResetPosition(_tWidth / 2, _tHeight / 2);
            _container.SetBg(0, 0, 0);
            _toolBarPanel = new ToolBarPanel(new List <string>()
            {
                "纹理", "B", "C"
            }, _tWidth - 10, _tHeight - 10);
            float[]          wh     = _toolBarPanel.GetChildWh();
            TextureFormatWin texWin = new TextureFormatWin(this, wh[0], wh[1]);

            _toolBarPanel.AddPanel(0, texWin);
            _container.AddComponent(_toolBarPanel, 5, 10);
            _toolBarPanel.ResetSelect();
        }