Example #1
0
    // Token: 0x06001C82 RID: 7298 RVA: 0x00325EA8 File Offset: 0x003240A8
    public void InitUI()
    {
        for (int i = 0; i < 7; i++)
        {
            if (this.m_ScrollItem[i].Str == null)
            {
                this.m_ScrollItem[i].Str = StringManager.Instance.SpawnString(80);
            }
        }
        if (GUIManager.Instance.bOpenOnIPhoneX)
        {
            Transform child = base.transform.GetChild(0);
            if (child != null)
            {
                ((RectTransform)child).offsetMin = new Vector2(-GUIManager.Instance.IPhoneX_DeltaX, 0f);
                ((RectTransform)child).offsetMax = new Vector2(GUIManager.Instance.IPhoneX_DeltaX, 0f);
            }
        }
        this.m_Light   = base.transform.GetChild(0).GetChild(4).GetComponent <Image>();
        this.m_LightTf = base.transform.GetChild(0).GetChild(4);
        UIText component = base.transform.GetChild(3).GetChild(0).GetComponent <UIText>();

        component.font = this.TTF;
        component.text = this.DM.mStringTable.GetStringByID(5911u);
        component      = base.transform.GetChild(3).GetChild(1).GetComponent <UIText>();
        component.font = this.TTF;
        component.text = this.DM.mStringTable.GetStringByID(5912u);
        if (GUIManager.Instance.IsArabic)
        {
            component.rectTransform.anchoredPosition = component.ArabicFixPos(new Vector2(64f, 210f));
        }
        UIButton component2 = base.transform.GetChild(4).GetComponent <UIButton>();

        component2.m_Handler = this;
        UIHIBtn component3 = base.transform.GetChild(2).GetChild(1).GetComponent <UIHIBtn>();

        GUIManager.Instance.InitianHeroItemImg(component3.transform, eHeroOrItem.Hero, 1, 1, 1, 1, false, false, true, false);
        this.m_ScrollPanel = base.transform.GetChild(1).GetComponent <ScrollPanel>();
        List <float> list = new List <float>();

        for (int j = 0; j < this.GM.m_HerodLvUpData.Count; j++)
        {
            list.Add(96f);
        }
        this.m_ScrollPanel.IntiScrollPanel(330f, 1f, 0f, list, 7, this);
    }