Beispiel #1
0
        // Token: 0x0600D75A RID: 55130 RVA: 0x003AA2A4 File Offset: 0x003A84A4
        protected override void OnBindFiledsCompleted()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
            {
                this.m_OnBindFiledsCompleted_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.OnBindFiledsCompleted();
            PointDescComponent pointDescComponent  = GameObjectUtility.AddControllerToGameObject <PointDescComponent>(base.gameObject);
            PointDescComponent pointDescComponent2 = pointDescComponent;
            GameObject         gameObject          = base.gameObject;
            bool       isNeedExcuteEvent           = true;
            GameObject boundaryGo = this.m_boundaryGo;

            pointDescComponent2.SetGameObject(gameObject, isNeedExcuteEvent, null, boundaryGo);
            pointDescComponent.EventOnClose += delegate()
            {
                if (this.EventOnClose != null)
                {
                    this.EventOnClose();
                }
                this.ClosePanel();
            };
        }
        // Token: 0x0600D7A0 RID: 55200 RVA: 0x003AAD30 File Offset: 0x003A8F30
        protected override void OnBindFiledsCompleted()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnBindFiledsCompleted_hotfix != null)
            {
                this.m_OnBindFiledsCompleted_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.OnBindFiledsCompleted();
            PointDescComponent pointDescComponent = GameObjectUtility.AddControllerToGameObject <PointDescComponent>(base.gameObject);

            pointDescComponent.SetGameObject(base.gameObject, true, null, null);
            pointDescComponent.EventOnClose += delegate()
            {
                if (this.EventOnClose != null)
                {
                    this.EventOnClose();
                }
                this.ClosePanel();
            };
        }
Beispiel #3
0
 // Token: 0x0600D562 RID: 54626 RVA: 0x003A3620 File Offset: 0x003A1820
 public LuaExportHelper(PointDescComponent owner)
 {
     this.m_owner = owner;
 }
Beispiel #4
0
        // Token: 0x0600D592 RID: 54674 RVA: 0x003A3CD0 File Offset: 0x003A1ED0
        private void InitRewardGoodsDescInfo(GoodsType goodsType, int goodsId, bool isNeedAutoClose)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitRewardGoodsDescInfoGoodsTypeInt32Boolean_hotfix != null)
            {
                this.m_InitRewardGoodsDescInfoGoodsTypeInt32Boolean_hotfix.call(new object[]
                {
                    this,
                    goodsType,
                    goodsId,
                    isNeedAutoClose
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_goodsType = goodsType;
            this.m_goodsId   = goodsId;
            GameObject gameObject  = Utility.FindChildGameObject(base.gameObject, "Item", true);
            GameObject gameObject2 = Utility.FindChildGameObject(base.gameObject, "Hero", true);
            Text       text        = null;
            GameObject gameObject3 = null;
            Text       text2;
            Text       text3;
            Image      image;
            GameObject gameObject4;

            if (this.m_goodsType != GoodsType.GoodsType_Hero)
            {
                gameObject.SetActive(true);
                gameObject2.SetActive(false);
                text2       = Utility.FindChildComponent <Text>(gameObject, "BG/ItemInfoGroup/NameText", true);
                text        = Utility.FindChildComponent <Text>(gameObject, "BG/ItemInfoGroup/Count/CountText", true);
                gameObject3 = Utility.FindChildGameObject(gameObject, "BG/ItemInfoGroup/Count", true);
                text3       = Utility.FindChildComponent <Text>(gameObject, "BG/BGImage/FrameImage/BottomImage2/Desc/Text", true);
                image       = Utility.FindChildComponent <Image>(gameObject, "BG/ItemInfoGroup/IconImage", true);
                gameObject4 = Utility.FindChildGameObject(gameObject, "BG/BGImage", true);
                GameObject gameObject5 = Utility.FindChildGameObject(image.gameObject, "U_crystal", true);
                if (gameObject5 != null)
                {
                    gameObject5.SetActive(this.m_goodsType == GoodsType.GoodsType_Crystal);
                }
                GameObject gameObject6 = Utility.FindChildGameObject(gameObject, "BG/ItemInfoGroup/SSRPieceEffect", true);
                if (gameObject6 != null)
                {
                    gameObject6.SetActive(UIUtility.IsGoodsHeroFragment(this.m_goodsType, this.m_goodsId) && UIUtility.IsRankSSR(UIUtility.GetGoodsRank(this.m_goodsType, this.m_goodsId)));
                }
            }
            else
            {
                gameObject.SetActive(false);
                gameObject2.SetActive(true);
                text2       = Utility.FindChildComponent <Text>(gameObject2, "NameText", true);
                text3       = Utility.FindChildComponent <Text>(gameObject2, "DescText", true);
                image       = Utility.FindChildComponent <Image>(gameObject2, "IconImage", true);
                gameObject4 = Utility.FindChildGameObject(gameObject2, "BG/BGImage", true);
            }
            if (gameObject4 != null)
            {
                PointDescComponent pointDescComponent = base.gameObject.GetComponent <PointDescComponent>();
                if (pointDescComponent == null)
                {
                    pointDescComponent = GameObjectUtility.AddControllerToGameObject <PointDescComponent>(base.gameObject);
                    PointDescComponent pointDescComponent2 = pointDescComponent;
                    GameObject         gameObject7         = base.gameObject;
                    GameObject         gameObject8         = gameObject4;
                    pointDescComponent2.SetGameObject(gameObject7, isNeedAutoClose, null, gameObject8);
                    pointDescComponent.EventOnClose += delegate()
                    {
                        this.ClosePanel();
                    };
                }
                else
                {
                    PointDescComponent pointDescComponent3 = pointDescComponent;
                    GameObject         gameObject8         = base.gameObject;
                    GameObject         gameObject7         = gameObject4;
                    pointDescComponent3.SetGameObject(gameObject8, isNeedAutoClose, null, gameObject7);
                }
                this.m_backgroundTransform = (gameObject4.transform as RectTransform);
            }
            if (text2 != null)
            {
                text2.text = UIUtility.GetGoodsName(this.m_goodsType, this.m_goodsId);
            }
            if (text3 != null)
            {
                text3.text = UIUtility.GetGoodsDesc(this.m_goodsType, this.m_goodsId);
            }
            if (image != null)
            {
                image.gameObject.SetActive(true);
                image.sprite   = AssetUtility.Instance.GetSprite(UIUtility.GetGoodsIconName(this.m_goodsType, this.m_goodsId));
                image.material = AssetUtility.Instance.GetAsset <Material>(UIUtility.GetGoodsIconMaterialName(this.m_goodsType, this.m_goodsId));
            }
            if (gameObject3 != null)
            {
                bool flag = this.m_goodsType != GoodsType.GoodsType_Crystal && this.m_goodsType != GoodsType.GoodsType_Energy && this.m_goodsType != GoodsType.GoodsType_Gold && this.m_goodsType != GoodsType.GoodsType_PlayerExp && this.m_goodsType != GoodsType.GoodsType_MemoryEssence && this.m_goodsType != GoodsType.GoodsType_ArenaHonour && this.m_goodsType != GoodsType.GoodsType_MithralStone && this.m_goodsType != GoodsType.GoodsType_BrillianceMithralStone && this.m_goodsType != GoodsType.GoodsType_FriendshipPoints;
                if (this.m_goodsType == GoodsType.GoodsType_Item)
                {
                    IConfigDataLoader  configDataLoader   = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;
                    ConfigDataItemInfo configDataItemInfo = configDataLoader.GetConfigDataItemInfo(goodsId);
                    if (configDataItemInfo.FuncType == ItemFuncType.ItemFuncType_RandomBox || configDataItemInfo.FuncType == ItemFuncType.ItemFuncType_StaticBox)
                    {
                        flag = false;
                    }
                    else if (configDataItemInfo.DisplayType == ItemDisplayType.ItemDisplayType_Goblin || configDataItemInfo.DisplayType == ItemDisplayType.ItemDisplayType_UnchartedScore)
                    {
                        flag = false;
                    }
                }
                if (flag)
                {
                    gameObject3.SetActive(true);
                    CommonUIStateController component = gameObject3.GetComponent <CommonUIStateController>();
                    if (this.m_goodsType == GoodsType.GoodsType_Equipment)
                    {
                        component.SetToUIState("EquipInfo", false, true);
                        this.SetEquipmentPropInfo(this.m_goodsId);
                    }
                    else
                    {
                        component.SetToUIState("Count", false, true);
                        if (text != null)
                        {
                            text.text = UIUtility.GetGoodsCount(this.m_goodsType, this.m_goodsId).ToString();
                        }
                    }
                }
                else
                {
                    gameObject3.SetActive(false);
                }
            }
        }