public void Create(
            PatternSelectListCtrl.OnChangeItemFunc _onChangeItemFunc)
        {
            this.onChangeItemFunc = _onChangeItemFunc;
            for (int index = this.objContent.get_transform().get_childCount() - 1; index >= 0; --index)
            {
                Object.Destroy((Object)((Component)this.objContent.get_transform().GetChild(index)).get_gameObject());
            }
            ToggleGroup component1 = (ToggleGroup)this.objContent.GetComponent <ToggleGroup>();
            int         num        = 0;

            for (int index = 0; index < this._lstSelectInfo.Count; ++index)
            {
                GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.objTemp);
                PatternSelectInfoComponent component2 = (PatternSelectInfoComponent)gameObject.GetComponent <PatternSelectInfoComponent>();
                component2.info     = this._lstSelectInfo[index];
                component2.info.sic = component2;
                component2.tgl.set_group(component1);
                gameObject.get_transform().SetParent(this.objContent.get_transform(), false);
                this.SetToggleHandler(gameObject, component2);
                component2.img = (Image)gameObject.GetComponent <Image>();
                if (Object.op_Implicit((Object)component2.img))
                {
                    Texture2D texture2D = !this._lstSelectInfo[index].assetBundle.IsNullOrEmpty() ? CommonLib.LoadAsset <Texture2D>(this._lstSelectInfo[index].assetBundle, this._lstSelectInfo[index].assetName, false, string.Empty) : PngAssist.LoadTexture(UserData.Path + "pattern_thumb/" + this._lstSelectInfo[index].assetName);
                    if (Object.op_Implicit((Object)texture2D))
                    {
                        component2.img.set_sprite(Sprite.Create(texture2D, new Rect(0.0f, 0.0f, (float)((Texture)texture2D).get_width(), (float)((Texture)texture2D).get_height()), new Vector2(0.5f, 0.5f)));
                    }
                }
                component2.Disvisible(this._lstSelectInfo[index].disvisible);
                component2.Disable(this._lstSelectInfo[index].disable);
                ++num;
            }
            this.ToggleAllOff();
        }
        private void SetToggleHandler(GameObject obj, PatternSelectInfoComponent _psic)
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            PatternSelectListCtrl.\u003CSetToggleHandler\u003Ec__AnonStoreyA handlerCAnonStoreyA = new PatternSelectListCtrl.\u003CSetToggleHandler\u003Ec__AnonStoreyA();
            // ISSUE: reference to a compiler-generated field
            handlerCAnonStoreyA._psic = _psic;
            // ISSUE: reference to a compiler-generated field
            handlerCAnonStoreyA.\u0024this = this;
            UIAL_EventTrigger uialEventTrigger = (UIAL_EventTrigger)obj.AddComponent <UIAL_EventTrigger>();

            uialEventTrigger.triggers = new List <UIAL_EventTrigger.Entry>();
            UIAL_EventTrigger.Entry entry1 = new UIAL_EventTrigger.Entry();
            entry1.eventID    = (EventTriggerType)4;
            entry1.buttonType = UIAL_EventTrigger.ButtonType.Left;
            // ISSUE: method pointer
            entry1.callback.AddListener(new UnityAction <BaseEventData>((object)handlerCAnonStoreyA, __methodptr(\u003C\u003Em__0)));
            uialEventTrigger.triggers.Add(entry1);
            if (!Object.op_Implicit((Object)this.textDrawName))
            {
                return;
            }
            UIAL_EventTrigger.Entry entry2 = new UIAL_EventTrigger.Entry();
            entry2.eventID = (EventTriggerType)0;
            // ISSUE: method pointer
            entry2.callback.AddListener(new UnityAction <BaseEventData>((object)handlerCAnonStoreyA, __methodptr(\u003C\u003Em__1)));
            uialEventTrigger.triggers.Add(entry2);
            UIAL_EventTrigger.Entry entry3 = new UIAL_EventTrigger.Entry();
            entry3.eventID = (EventTriggerType)1;
            // ISSUE: method pointer
            entry3.callback.AddListener(new UnityAction <BaseEventData>((object)handlerCAnonStoreyA, __methodptr(\u003C\u003Em__2)));
            uialEventTrigger.triggers.Add(entry3);
        }
 public void OnPointerExit(PatternSelectInfoComponent _psic)
 {
     if (Object.op_Equality((Object)null, (Object)_psic) || !((Selectable)_psic.tgl).get_interactable() || !Object.op_Implicit((Object)this.textDrawName))
     {
         return;
     }
     ((TMP_Text)this.textDrawName).set_text(this.selectDrawName);
 }
 public void OnPointerClick(PatternSelectInfoComponent _psic)
 {
     if (Object.op_Equality((Object)null, (Object)_psic) || !((Selectable)_psic.tgl).get_interactable())
     {
         return;
     }
     this.ChangeItem(_psic);
 }
 public void ChangeItem(PatternSelectInfoComponent _psic)
 {
     if (this.onChangeItemFunc != null)
     {
         this.onChangeItemFunc(_psic.info.index);
     }
     this.selectDrawName = _psic.info.name;
     if (!Object.op_Implicit((Object)this.textDrawName))
     {
         return;
     }
     ((TMP_Text)this.textDrawName).set_text(this.selectDrawName);
 }
        public PatternSelectInfoComponent GetSelectableTopItem()
        {
            SortedDictionary <int, PatternSelectInfoComponent> source = new SortedDictionary <int, PatternSelectInfoComponent>();

            for (int index = 0; index < this._lstSelectInfo.Count; ++index)
            {
                if (((Selectable)this._lstSelectInfo[index].sic.tgl).get_interactable() && ((Component)this._lstSelectInfo[index].sic).get_gameObject().get_activeSelf())
                {
                    source[((Component)this._lstSelectInfo[index].sic).get_gameObject().get_transform().GetSiblingIndex()] = this._lstSelectInfo[index].sic;
                }
            }
            PatternSelectInfoComponent selectInfoComponent = (PatternSelectInfoComponent)null;

            if (source.Count != 0)
            {
                selectInfoComponent = source.First <KeyValuePair <int, PatternSelectInfoComponent> >().Value;
            }
            return(selectInfoComponent);
        }