예제 #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();
        }
예제 #2
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();
        }