Пример #1
0
    // Token: 0x06002C02 RID: 11266 RVA: 0x004857F0 File Offset: 0x004839F0
    public override void OnOpen(int arg1, int arg2)
    {
        GUIManager instance = GUIManager.Instance;

        UIBag.ClickType clickType = (UIBag.ClickType)(instance.BagTagSaved[0] & 3);
        if (clickType != UIBag.ClickType.ShopTag)
        {
            instance.BagTagSaved[0] = 1;
        }
        base.OnOpen(arg1, arg2);
        this.MainTitle.text = DataManager.Instance.mStringTable.GetStringByID(9092u);
        this.ThisTransform.GetChild(2).gameObject.SetActive(false);
        RectTransform component = this.ThisTransform.GetChild(3).GetComponent <RectTransform>();

        for (int i = 0; i < component.childCount; i++)
        {
            component.GetChild(i).GetComponent <RectTransform>().anchoredPosition = new Vector2(-329f + (float)(149 * i), 146.5f);
        }
        component = this.ThisTransform.GetChild(4).GetComponent <RectTransform>();
        component.anchoredPosition = new Vector2(-31f, 116.5f);
        component = this.ThisTransform.GetChild(5).GetComponent <RectTransform>();
        component.anchoredPosition = new Vector2(-31f, -97f);
        component                  = this.ThisTransform.GetChild(6).GetChild(0).GetComponent <RectTransform>();
        component.sizeDelta        = new Vector2(776f, 426f);
        component.anchoredPosition = new Vector2(-30.78f, -98.3f);
        this.TitleText             = this.ThisTransform.GetChild(6).GetChild(1).GetComponent <UIText>();
        this.TitleText.font        = instance.GetTTFFont();
        this.TitleText.gameObject.SetActive(true);
        base.AddRefreshText(this.TitleText);
        this.ThisTransform.GetChild(8).GetChild(1).gameObject.SetActive(false);
        this.ReceiveName = StringManager.Instance.SpawnString(100);
        this.SendName    = StringManager.Instance.SpawnString(30);
        this.SetReceiveName(instance.SendTag, instance.SendName);
    }
Пример #2
0
    // Token: 0x06002C04 RID: 11268 RVA: 0x00485A78 File Offset: 0x00483C78
    protected override void ChangeBagTag(UIBag.ClickType Tag)
    {
        base.ChangeBagTag(Tag);
        this.MainTitle.text = DataManager.Instance.mStringTable.GetStringByID(9092u);
        byte b = 0;

        while ((int)b < this.ScrollItem.Length)
        {
            this.ScrollItem[(int)b].BuyUseBtn.m_BtnID1 = 14;
            b += 1;
        }
    }