Пример #1
0
 // Token: 0x0600151C RID: 5404 RVA: 0x00240F24 File Offset: 0x0023F124
 public _Friend(Transform transform, Font font, IUIButtonClickHandler handle, Transform blockTrans)
 {
     this.gameobject        = transform.gameObject;
     this.IconTrans         = transform.GetChild(0);
     this.LinkNameText      = transform.GetChild(1).GetComponent <UIText>();
     this.LinkNameText.font = font;
     this.OriLinkFontSize   = this.LinkNameText.fontSize;
     this.NameStr           = StringManager.Instance.SpawnString(64);
     this.LinkStr           = StringManager.Instance.SpawnString(128);
     this.TimeStr           = StringManager.Instance.SpawnString(30);
     this.NameText          = default(_TextUnderLine);
     this.NameText.Init(transform.GetChild(2).GetComponent <RectTransform>(), font);
     this.NameText.Button.m_Handler = handle;
     this.TextHandle    = null;
     this.TimeText      = transform.GetChild(3).GetComponent <UIText>();
     this.TimeText.font = font;
     transform.GetChild(2).SetParent(blockTrans);
     this.BeiginTime      = 0L;
     this.RequireTime     = 0u;
     this.friend          = null;
     this.Icon            = null;
     this.ID              = (this.Index = 0);
     this.TimeTextDefSize = this.TimeText.rectTransform.sizeDelta;
     this.TimeText.AdjuestUI();
 }
Пример #2
0
 // Token: 0x06001720 RID: 5920 RVA: 0x0027D558 File Offset: 0x0027B758
 public _PetItem(Transform transform, IUIButtonClickHandler clickHandle)
 {
     this.bInit      = 1;
     this.gameobject = transform.gameObject;
     this.PetCell    = new _PetCell[4];
     for (int i = 0; i < 4; i++)
     {
         this.PetCell[i] = new _PetCell(transform.GetChild(i), clickHandle);
     }
 }
Пример #3
0
 // Token: 0x06001BEB RID: 7147 RVA: 0x00319210 File Offset: 0x00317410
 public void Hide(IUIButtonClickHandler hint)
 {
     if (this.HideBtn.m_Handler != hint)
     {
         return;
     }
     this.m_RectTransform.gameObject.SetActive(false);
     this.HideBtn.m_Handler = null;
     this.m_ButtonHint      = null;
 }
Пример #4
0
 // Token: 0x06001FFD RID: 8189 RVA: 0x003CDADC File Offset: 0x003CBCDC
 public void Init(Transform transform, IUIButtonClickHandler handle)
 {
     this.transform          = transform;
     this.TransObj           = transform.gameObject;
     this.YesObj             = transform.GetChild(0).gameObject;
     this.Applybtn           = transform.GetChild(0).GetChild(1).GetComponent <UIButton>();
     this.Applybtn.m_Handler = handle;
     this.Applybtn.m_BtnID1  = 2;
     this.Setupbtn           = transform.GetChild(0).GetChild(2).GetComponent <UIButton>();
     this.Setupbtn.m_Handler = handle;
     this.Setupbtn.m_BtnID1  = 3;
     this.Title     = transform.GetChild(0).GetChild(0).GetComponent <UIText>();
     this.ApplyText = transform.GetChild(0).GetChild(1).GetChild(0).GetComponent <UIText>();
     this.SetupText = transform.GetChild(0).GetChild(2).GetChild(0).GetComponent <UIText>();
     this.ApplyImg  = transform.GetChild(0).GetChild(1).GetComponent <Image>();
 }
Пример #5
0
    // Token: 0x06001510 RID: 5392 RVA: 0x00240A54 File Offset: 0x0023EC54
    public _UIFBFriends(Transform transform, Font font, IUIButtonClickHandler handle, Transform blockTrans)
    {
        this.recttransform = (transform as RectTransform);
        this.gameobject    = transform.gameObject;
        this.Title         = this.recttransform.GetChild(1).GetComponent <UIText>();
        this.Title.font    = font;
        this.Title.text    = DataManager.Instance.mStringTable.GetStringByID(12159u);
        this.Friends       = new _UIFBFriends._Friend[10];
        int i;

        for (i = 0; i < 10; i++)
        {
            this.Friends[i] = new _UIFBFriends._Friend(this.recttransform.GetChild(2 + i), font, handle, blockTrans);
        }
        this.TipText      = this.recttransform.GetChild(i + 2).GetComponent <UIText>();
        this.TipText.font = font;
        this.TipText.text = DataManager.Instance.mStringTable.GetStringByID(12166u);
    }
Пример #6
0
 // Token: 0x06001725 RID: 5925 RVA: 0x0027D838 File Offset: 0x0027BA38
 public _PetCell(Transform transform, IUIButtonClickHandler clickHandle)
 {
     this.cellType   = _PetItem._ItemType.Def;
     this.gameobject = transform.gameObject;
     this.PetTrans   = transform.GetChild(0).GetChild(0);
     this.ItemTrans  = transform.GetChild(1).GetChild(1);
     this.PetObj     = transform.GetChild(0).gameObject;
     this.ItemObj    = transform.GetChild(1).gameObject;
     if (transform.childCount > 2)
     {
         this.DefObj = transform.GetChild(2).gameObject;
         UIButton component = this.DefObj.transform.GetChild(0).GetComponent <UIButton>();
         component.m_Handler = clickHandle;
         component.m_BtnID1  = 3;
     }
     else
     {
         this.DefObj = null;
     }
     this.PetNameText  = transform.GetChild(0).GetChild(2).GetChild(0).GetComponent <UIText>();
     this.ItemNameText = transform.GetChild(1).GetChild(2).GetComponent <UIText>();
     this.NumText      = this.ItemTrans.GetChild(0).GetChild(0).GetComponent <UIText>();
     this.NumStr       = StringManager.Instance.SpawnString(30);
     this.ItemTrans.GetChild(0).SetAsLastSibling();
     this.ItemBtn           = transform.GetChild(1).GetComponent <UIButton>();
     this.ItemBtn.m_Handler = clickHandle;
     this.ItemBtn.m_BtnID1  = 1;
     this.PetBtn            = transform.GetChild(0).GetComponent <UIButton>();
     this.PetBtn.m_Handler  = clickHandle;
     this.PetBtn.m_BtnID1   = 2;
     this.PetStoneID        = (this.ID = 0);
     this.sortIndex         = 0;
     this.PetNotice         = new GameObject[4];
     this.PetNoticeShow     = new bool[4];
     for (int i = 0; i < 4; i++)
     {
         this.PetNotice[i] = transform.GetChild(0).GetChild(1).GetChild(i).gameObject;
     }
     this.NewObj       = transform.GetChild(0).GetChild(3).gameObject;
     this.NewText      = transform.GetChild(0).GetChild(3).GetChild(0).GetComponent <UIText>();
     this.NewText.text = DataManager.Instance.mStringTable.GetStringByID(6048u);
     this.PM           = PetManager.Instance;
 }
Пример #7
0
 // Token: 0x06001BE9 RID: 7145 RVA: 0x003191D4 File Offset: 0x003173D4
 public void Show(IUIButtonClickHandler hint)
 {
     this.HideBtn.m_Handler = hint;
     this.m_RectTransform.gameObject.SetActive(true);
 }