Esempio 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();
        }
Esempio n. 2
0
        void OnInit()
        {
            _container = new EComponent(buff_width, buff_height);
            _container.SetBg(false);
            _container.show_box = false;
            _container.ResetPosition(buff_width / 2, buff_height / 2);
            _container.SetBg(0, 0, 0);


            EBuffInfoItem buff_info = new EBuffInfoItem(720, buff_height);

            _container.AddComponent(buff_info, 10, 10);

            /*
             * _container.AddComponent(trigger_item, 10, 10);
             *
             * target_select_item = new ETargetSelectorItem(trigger_item.Ew, trigger_item.Eh + 150);
             * _container.AddComponentDown(target_select_item, trigger_item, 10);
             *
             * EAttributeItem attribute = new EAttributeItem(550, 115);
             * _container.AddComponentDown(attribute, target_select_item);
             *
             * EValueItem value_item = new EValueItem(550, 115);
             * _container.AddComponentDown(value_item, attribute);
             *
             * EActionItem action_item = new EActionItem(550, 115);
             * _container.AddComponentDown(action_item, value_item);
             *
             * EStateitem state_item = new EStateitem(550, 75);
             * _container.AddComponentDown(state_item, action_item);*/
        }
Esempio n. 3
0
        public EComponent _container;                                           // 容器


        #endregion

        #region MONO Override

        public void GetAssets()
        {
            _container = new EComponent(_tWidth, _tHeight);
            _container.SetBg(false);
            _container.ResetPosition(_tWidth / 2, _tHeight / 2);
            _container.SetBg(0, 0, 0);

            EffectReportPanel texWin = new EffectReportPanel(this, _tWidth, _tHeight);

            _container.AddComponent(texWin, 5, 10);
        }
Esempio n. 4
0
        public virtual void AddItem1(EComponent rect)
        {
            rect.SetBg(false);
            if (flag)
            {
                rect.SetBgStyle(EStyle.BoxStyle1);
            }
            else
            {
                rect.SetBgStyle(EStyle.BoxStyle2);
            }

            flag = !flag;
            AddItem(rect);
        }
Esempio n. 5
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();
        }
Esempio n. 6
0
        public void GetAssets()
        {
            _container = new EComponent(t_width, t_height);
            _container.SetBg(false);
            _container.ResetPosition(t_width / 2, t_height / 2);
            _container.SetBg(0, 0, 0);

            _bar           = new EToolBar(new[] { "打包", "工具", "优化检测", "Buff编辑器", "技能编辑器" }, t_width / 2);
            _bar.OnSelect += on_select;
            _container.AddComponent(_bar, 0, 10);

            _tool_win = new ToolWin(t_width - 50, t_height - _bar.Size.y - 30);
            AddPanel(_tool_win);


            _panel_map.Add(1, _tool_win);

            _bar.SelectIndex = 1;
        }
Esempio n. 7
0
 public void AddPanel(int index, EComponent comp)
 {
     comp.Enabel = false;
     AddComponent(comp, 0, _bar.Size.y + 20);
     _panelMap.Add(index, comp);
 }
Esempio n. 8
0
 public void AddPanel(EComponent component)
 {
     component.Enabel = false;
     _container.AddComponent(component, 0, _bar.Size.y + 20);
 }
Esempio n. 9
0
 public void AddPanel(EComponent component, int index)
 {
     component.Enabel = false;
     AddComponent(component, 0, _bar.Size.y + 20);
     _panel_map.Add(index, component);
 }