Exemple #1
0
    // Token: 0x06001AC9 RID: 6857 RVA: 0x002D7DF0 File Offset: 0x002D5FF0
    public void UpDateRowItem(GameObject item, int dataIdx, int panelObjectIdx, int panelId)
    {
        if ((int)this.Selected == dataIdx)
        {
            item.transform.GetChild(3).gameObject.SetActive(true);
            item.transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(1);
        }
        else
        {
            item.transform.GetChild(3).gameObject.SetActive(false);
            item.transform.GetChild(0).GetComponent <UISpritesArray>().SetSpriteIndex(0);
        }
        UIButton component = item.transform.GetChild(0).GetComponent <UIButton>();

        component.m_BtnID1  = 1;
        component.m_BtnID2  = dataIdx;
        component.m_Handler = this;
        if (dataIdx == 0)
        {
            UIText component2 = item.transform.GetChild(1).GetComponent <UIText>();
            component2.text = DataManager.Instance.mStringTable.GetStringByID(7412u);
            return;
        }
        eUI_EffectFilter_OpenKind openKind = this.OpenKind;

        if (openKind != eUI_EffectFilter_OpenKind.ItemTypeFilter)
        {
            if (openKind == eUI_EffectFilter_OpenKind.EffectTypeFilter)
            {
                this.UpdateRowEffectType(item, dataIdx, panelObjectIdx);
            }
        }
        else
        {
            this.UpdateRowItemType(item, dataIdx, panelObjectIdx);
        }
    }
Exemple #2
0
    // Token: 0x06001AC7 RID: 6855 RVA: 0x002D7A38 File Offset: 0x002D5C38
    public override void OnOpen(int arg1, int arg2)
    {
        this.OpenKind = (eUI_EffectFilter_OpenKind)arg1;
        this.SPHeight = new List <float>();
        this.Selected = (ushort)arg2;
        UIEffectFilter.SeletedFilter = this.Selected;
        this.door = (Door)GUIManager.Instance.FindMenu(EGUIWindow.Door);
        Font ttffont = GUIManager.Instance.GetTTFFont();

        this.AGS_Form        = base.transform;
        this.AGS_ScrollPanel = this.AGS_Form.GetChild(2).GetComponent <ScrollPanel>();
        UIText component = this.AGS_Form.GetChild(3).GetChild(1).GetComponent <UIText>();

        component.font = ttffont;
        component.text = string.Empty;
        if (GUIManager.Instance.IsArabic)
        {
            RectTransform component2 = this.AGS_Form.GetChild(3).GetChild(3).GetComponent <RectTransform>();
            component2.localScale       = new Vector3(-1f, 1f, 1f);
            component2.anchoredPosition = new Vector2(component2.anchoredPosition.x + 47f, component2.anchoredPosition.y);
        }
        UIButton component3 = this.AGS_Form.GetChild(5).GetComponent <UIButton>();

        component3.m_Handler    = this;
        component3.m_EffectType = e_EffectType.e_Scale;
        component               = this.AGS_Form.GetChild(5).GetChild(0).GetComponent <UIText>();
        component.font          = ttffont;
        component.text          = DataManager.Instance.mStringTable.GetStringByID(5026u);
        component3              = this.AGS_Form.GetChild(6).GetChild(0).GetComponent <UIButton>();
        component3.m_Handler    = this;
        component3.m_EffectType = e_EffectType.e_Scale;
        Image component4 = this.AGS_Form.GetChild(6).GetComponent <Image>();

        component4.sprite   = this.door.LoadSprite("UI_main_close_base");
        component4.material = this.door.LoadMaterial();
        component4.enabled  = !GUIManager.Instance.bOpenOnIPhoneX;
        component4          = this.AGS_Form.GetChild(6).GetChild(0).GetComponent <Image>();
        component4.sprite   = this.door.LoadSprite("UI_main_close");
        component4.material = this.door.LoadMaterial();
        eUI_EffectFilter_OpenKind openKind = this.OpenKind;

        if (openKind != eUI_EffectFilter_OpenKind.ItemTypeFilter)
        {
            if (openKind == eUI_EffectFilter_OpenKind.EffectTypeFilter)
            {
                this.SPHeight.Add(66f);
                component      = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>();
                component.font = ttffont;
                component.text = DataManager.Instance.mStringTable.GetStringByID(7411u);
                for (int i = 0; i < DataManager.Instance.LordEquipEffectFilter.TableCount; i++)
                {
                    this.SPHeight.Add(66f);
                }
            }
        }
        else
        {
            component      = this.AGS_Form.GetChild(1).GetChild(0).GetComponent <UIText>();
            component.font = ttffont;
            component.text = DataManager.Instance.mStringTable.GetStringByID(7460u);
            this.SPHeight.Add(66f);
            for (int j = 0; j < 6; j++)
            {
                this.SPHeight.Add(66f);
            }
        }
        this.AGS_ScrollPanel.IntiScrollPanel(424f, 0f, 0f, this.SPHeight, 9, this);
        this.AGS_ScrollPanel.GoTo((int)this.Selected);
    }