Exemple #1
0
        public void SetInfo(string[] titles, float[] titles_width, int max_size)
        {
            ERect first = null;

            for (int i = 0; i < titles.Length; i++)
            {
                EButton title_btn = new EButton(titles[i], titles_width[i]);
                _title_btns.Add(title_btn);
                if (first == null)
                {
                    AddComponent(title_btn, 2, 5);
                }
                else
                {
                    AddComponentRight(title_btn, first, 0);
                }

                first = title_btn;
            }

            _scrollview = new EScrollView(Ew, Eh - DEFAULT_HEIGHT * 2 - 20);
            AddComponent(_scrollview, 0, DEFAULT_HEIGHT + 10);
            _scrollview.SetHeightInterval(2);

            _page_item = new ExtendPageItem();
            _page_item.SetPageInfo(100, 10);
            AddComponent(_page_item, E_Anchor.DOWN_CENTER);
            _page_item.ResetPosition(_page_item.Ex, _page_item.Ey - 5);
            _page_item.OnUpdatePage += _on_update_page;
        }
Exemple #2
0
        public void _init()
        {
            _target_filter_btn = new EButton("增加过滤类型", 100);
            _target_popup      = new EStringPopup("", 200);
            _target_popup.SetData(GetInof());

            _scrollview = new EScrollView(Ew - 20, Eh - 50);
            _scrollview.SetColor(Color.black);
        }
Exemple #3
0
        public void _init()
        {
            _buff_id_input = new ELabelIntInput("模板Id", 70, 1001, 200);

            _des_title_lab = new ELabel("模板描述", 70);
            _des_text_area = new ETextArea(200, 18 * 4);

            _add_effect_btn          = new EButton("添加效果", 70);
            _add_effect_btn.OnClick += AddEffect;

            _effect_popup = new EEnumPopup(200);
            _effect_popup.SetData(E_EffectType.attribute);

            duration_input      = new ELabelIntInput("持续时间(ms)", 100, 1000, 100);
            interval_time_input = new ELabelIntInput("间隔时间(ms)", 100, 1000, 100);
            max_layer_input     = new ELabelIntInput("最大层级", 100, 1, 100);
            _scroll_view        = new EScrollView(Ew - 20, Eh - 100);

            _save_btn          = new EButton("保存", 50);
            _save_btn.OnClick += OnSaveInfo;
            //_scroll_view.SetBg(true);
        }