Example #1
0
        private void AddTargetFilter(EButton button)
        {
            ETargetItem item = new ETargetItem(_scrollview.Ew - 30, 30);

            item.SetData(GetInof());
            _scrollview.AddItem(item);
            item.Init();
            item._remove_btn.OnClick += OnRemoveItem;
        }
Example #2
0
        private void AddEffect(EButton button)
        {
            string data = _effect_popup.GetData();

            E_EffectType eff_type = (E_EffectType)Enum.Parse(typeof(E_EffectType), data);

            EEffectInfoItem effect_info_item = new EEffectInfoItem(Ew - 70, 460, eff_type);

            //AddComponent(effect_info_item, 10, _des_text_area.Ey + _des_text_area.Eh / 2 + 5);
            _scroll_view.AddItem(effect_info_item);
        }