Exemplo n.º 1
0
 private void Start()
 {
     if (Object.op_Equality((Object)this.mCardObjectTemplate, (Object)null) && Object.op_Equality((Object)this.mCardObjectParent, (Object)null))
     {
         Debug.LogWarning((object)"mCardObject is null");
     }
     else
     {
         this.mCardObjectTemplate.SetActive(false);
         ConceptCardManager instance = ConceptCardManager.Instance;
         if (Object.op_Equality((Object)instance, (Object)null))
         {
             return;
         }
         using (List <ConceptCardData> .Enumerator enumerator = instance.SelectedMaterials.GetList().GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 ConceptCardData current = enumerator.Current;
                 if (current.Param.not_sale)
                 {
                     GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.mCardObjectTemplate);
                     gameObject.get_transform().SetParent((Transform)this.mCardObjectParent, false);
                     ConceptCardIcon component = (ConceptCardIcon)gameObject.GetComponent <ConceptCardIcon>();
                     if (Object.op_Inequality((Object)component, (Object)null))
                     {
                         component.Setup(current);
                     }
                     gameObject.SetActive(true);
                 }
             }
         }
     }
 }
        public void Activated(int pinID)
        {
            switch (pinID)
            {
            case 0:
                ConceptCardManager instance = ConceptCardManager.Instance;
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object)instance, (UnityEngine.Object)null) && instance.IsEnhanceListActive)
                {
                    instance.ToggleSameSelectCard = false;
                }
                this.Save();
                FlowNode_GameObject.ActivateOutputLinks((Component)this, 10);
                break;

            case 1:
                this.OnSelectAll(true);
                break;

            case 2:
                this.OnSelectAll(false);
                break;

            case 3:
                this.ResetType();
                FlowNode_GameObject.ActivateOutputLinks((Component)this, 11);
                break;
            }
        }
Exemplo n.º 3
0
        public void SetType()
        {
            switch (this.parent_type)
            {
            case ConceptCardListSortWindow.ParentType.Manager:
                ConceptCardManager instance1 = ConceptCardManager.Instance;
                if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance1, (UnityEngine.Object)null))
                {
                    break;
                }
                instance1.SortType      = this.CurrentType & (ConceptCardListSortWindow.Type) 16777215;
                instance1.SortOrderType = this.CurrentType & (ConceptCardListSortWindow.Type) 251658240;
                break;

            case ConceptCardListSortWindow.ParentType.Equip:
                ConceptCardEquipWindow instance2 = ConceptCardEquipWindow.Instance;
                if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance2, (UnityEngine.Object)null))
                {
                    break;
                }
                instance2.SortType      = this.CurrentType & (ConceptCardListSortWindow.Type) 16777215;
                instance2.SortOrderType = this.CurrentType & (ConceptCardListSortWindow.Type) 251658240;
                break;
            }
        }
        public override void OnActivate(int pinID)
        {
            if (pinID != 10 && pinID != 11)
            {
                return;
            }
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (Object.op_Equality((Object)instance, (Object)null))
            {
                return;
            }
            int totalMixZeny = 0;

            if (pinID == 10)
            {
                ConceptCardManager.GalcTotalMixZeny(instance.SelectedMaterials, out totalMixZeny);
            }
            else
            {
                ConceptCardManager.GalcTotalMixZenyMaterialData(out totalMixZeny);
            }
            if (totalMixZeny > MonoSingleton <GameManager> .Instance.Player.Gold)
            {
                this.ActivateOutputLinks(1001);
            }
            else
            {
                this.ActivateOutputLinks(1000);
            }
        }
        public override void OnActivate(int pinID)
        {
            if (pinID != 10)
            {
                return;
            }
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (Object.op_Equality((Object)instance, (Object)null))
            {
                return;
            }
            using (List <ConceptCardData> .Enumerator enumerator = instance.SelectedMaterials.GetList().GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    if (enumerator.Current.Param.not_sale)
                    {
                        this.ActivateOutputLinks(1000);
                        return;
                    }
                }
            }
            this.ActivateOutputLinks(1001);
        }
Exemplo n.º 6
0
        public void RefreshEnhanceBulkButton()
        {
            if (Object.op_Equality((Object)this.EnhanceBulkButton, (Object)null))
            {
                return;
            }
            bool flag1 = true;

            if (!MonoSingleton <GameManager> .Instance.Player.IsHaveConceptCardExpMaterial() && !MonoSingleton <GameManager> .Instance.Player.IsHaveConceptCardTrustMaterial())
            {
                flag1 = false;
            }
            ConceptCardManager componentInParent = (ConceptCardManager)((Component)this).GetComponentInParent <ConceptCardManager>();

            if (Object.op_Inequality((Object)componentInParent, (Object)null) && componentInParent.SelectedConceptCardData != null)
            {
                bool flag2 = false;
                bool flag3 = false;
                if ((int)componentInParent.SelectedConceptCardData.Lv == (int)componentInParent.SelectedConceptCardData.CurrentLvCap || !MonoSingleton <GameManager> .Instance.Player.IsHaveConceptCardExpMaterial())
                {
                    flag2 = true;
                }
                if (componentInParent.SelectedConceptCardData.GetReward() == null || (int)componentInParent.SelectedConceptCardData.Trust == (int)MonoSingleton <GameManager> .Instance.MasterParam.FixParam.CardTrustMax || !MonoSingleton <GameManager> .Instance.Player.IsHaveConceptCardTrustMaterial())
                {
                    flag3 = true;
                }
                if (flag2 && flag3)
                {
                    flag1 = false;
                }
            }
            ((Selectable)this.EnhanceBulkButton).set_interactable(flag1);
        }
Exemplo n.º 7
0
        private void SetupText()
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (Object.op_Equality((Object)instance, (Object)null) || instance.BulkSelectedMaterialList.Count == 0)
            {
                return;
            }
            int mixTotalExp;
            int mixTrustExp;

            ConceptCardManager.CalcTotalExpTrustMaterialData(out mixTotalExp, out mixTrustExp);
            if (Object.op_Inequality((Object)this.GetExp, (Object)null))
            {
                this.GetExp.set_text(mixTotalExp.ToString());
            }
            if (Object.op_Inequality((Object)this.GetTrust, (Object)null))
            {
                ConceptCardManager.SubstituteTrustFormat(instance.SelectedConceptCardData, this.GetTrust, mixTrustExp, false);
            }
            int totalMixZeny = 0;

            ConceptCardManager.GalcTotalMixZenyMaterialData(out totalMixZeny);
            if (!Object.op_Inequality((Object)this.UsedZenny, (Object)null))
            {
                return;
            }
            this.UsedZenny.set_text(totalMixZeny.ToString());
        }
Exemplo n.º 8
0
        public void SetupBulkLevelupAnimation()
        {
            int mixTotalExp;
            int mixTrustExp;

            ConceptCardManager.CalcTotalExpTrustMaterialData(out mixTotalExp, out mixTrustExp);
            this.mLevelObject.SetupLevelupAnimation(mixTotalExp, mixTrustExp);
        }
Exemplo n.º 9
0
 public void SetTrustText(int trust)
 {
     if (Object.op_Equality((Object)this.mTrustText, (Object)null))
     {
         return;
     }
     ConceptCardManager.SubstituteTrustFormat(this.mConceptCard, this.mTrustText, trust, false);
 }
Exemplo n.º 10
0
        public void SetupLevelupAnimation()
        {
            int mixTotalExp;
            int mixTrustExp;
            int mixTotalAwakeLv;

            ConceptCardManager.CalcTotalExpTrust(this.SelectedConceptCardData, this.SelectedMaterials, out mixTotalExp, out mixTrustExp, out mixTotalAwakeLv);
            this.mLevelObject.SetupLevelupAnimation(mixTotalExp, mixTrustExp);
        }
        public void SetType()
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                return;
            }
            instance.FilterType = this.CurrentType;
        }
Exemplo n.º 12
0
        private void RefreshTextMixCost()
        {
            if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.TextMixCost, (UnityEngine.Object)null))
            {
                return;
            }
            int totalMixZeny = 0;

            ConceptCardManager.GalcTotalMixZeny(this.mSelectedMaterials, out totalMixZeny);
            this.TextMixCost.set_text(totalMixZeny.ToString());
        }
Exemplo n.º 13
0
        private void RefreshIcons(MultiConceptCard drawicons, MultiConceptCard materials)
        {
            if (drawicons == null)
            {
                return;
            }
            ConceptCardManager ccManager = this.CCManager;
            bool AcceptableExp           = true;
            bool AcceptableTrust         = true;
            bool flag = true;

            if (this.mListType == ConceptCardList.ListType.ENHANCE && ccManager.SelectedConceptCardData != null)
            {
                int mixTotalExp;
                int mixTrustExp;
                int mixTotalAwakeLv;
                ConceptCardManager.CalcTotalExpTrust(ccManager.SelectedConceptCardData, materials, out mixTotalExp, out mixTrustExp, out mixTotalAwakeLv);
                AcceptableExp   = mixTotalExp < ccManager.SelectedConceptCardData.GetExpToLevelMax();
                AcceptableTrust = mixTrustExp < ccManager.SelectedConceptCardData.GetTrustToLevelMax();
                if (ccManager.SelectedConceptCardData.GetReward() == null)
                {
                    AcceptableTrust = false;
                }
                if ((int)ccManager.SelectedConceptCardData.AwakeCount >= ccManager.SelectedConceptCardData.AwakeCountCap)
                {
                    flag = false;
                }
            }
            for (int index1 = 0; index1 < this.mCardIcons.Count; ++index1)
            {
                int index2 = this.mPage * this.mPageSize + index1;
                this.mCardIcons[index1].SetActive(true);
                ConceptCardIcon component1 = (ConceptCardIcon)this.mCardIcons[index1].GetComponent <ConceptCardIcon>();
                if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component1, (UnityEngine.Object)null))
                {
                    component1.Setup(drawicons.GetItem(index2));
                }
                if (0 <= index2 && index2 < drawicons.Count)
                {
                    ConceptCardIconMultiSelect component2 = (ConceptCardIconMultiSelect)this.mCardIcons[index1].GetComponent <ConceptCardIconMultiSelect>();
                    if (UnityEngine.Object.op_Inequality((UnityEngine.Object)component2, (UnityEngine.Object)null))
                    {
                        bool CanAwake = true;
                        if (this.mListType == ConceptCardList.ListType.ENHANCE && ccManager.SelectedConceptCardData != null)
                        {
                            CanAwake = flag && ccManager.SelectedConceptCardData.Param.iname == component2.ConceptCard.Param.iname;
                        }
                        this.RefreshSelectParam(component2, materials);
                        this.RefreshEnableParam(component2, materials, AcceptableExp, AcceptableTrust, CanAwake);
                    }
                }
            }
        }
        public void SetSellParam()
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                return;
            }
            ConceptCardManager.GalcTotalSellZeny(instance.SelectedMaterials, out this.totalSellZeny);
            this.sellCardIDs = instance.SelectedMaterials.GetUniqueIDs().ToArray();
            instance.SelectedMaterials.Clear();
        }
Exemplo n.º 15
0
 public static void CalcTotalExpTrust(out int mixTotalExp, out int mixTrustExp, out int mixTotalAwakeLv)
 {
     if (UnityEngine.Object.op_Equality((UnityEngine.Object)ConceptCardManager.Instance, (UnityEngine.Object)null))
     {
         mixTotalExp     = 0;
         mixTrustExp     = 0;
         mixTotalAwakeLv = 0;
     }
     else
     {
         ConceptCardManager.CalcTotalExpTrust(ConceptCardManager.Instance.SelectedConceptCardData, ConceptCardManager.Instance.SelectedMaterials, out mixTotalExp, out mixTrustExp, out mixTotalAwakeLv);
     }
 }
Exemplo n.º 16
0
        public void SetMixParam()
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                return;
            }
            ConceptCardManager.GalcTotalMixZeny(instance.SelectedMaterials, out this.totalMixZeny);
            instance.SetupLevelupAnimation();
            this.mBaseCardId = (long)instance.SelectedConceptCardData.UniqueID;
            this.mMixCardIds = instance.SelectedMaterials.GetUniqueIDs().ToArray();
            instance.SelectedMaterials.Clear();
        }
Exemplo n.º 17
0
 private void Start()
 {
     if (Object.op_Equality((Object)this.mCardObjectTemplate, (Object)null) && Object.op_Equality((Object)this.mCardObjectParent, (Object)null))
     {
         Debug.LogWarning((object)"mCardObject is null");
     }
     else
     {
         this.mCardObjectTemplate.SetActive(false);
         ConceptCardManager instance = ConceptCardManager.Instance;
         if (Object.op_Equality((Object)instance, (Object)null))
         {
             return;
         }
         this.mLText.set_text(string.Format(LocalizedText.Get(this.mLText.get_text()), (object)instance.CostConceptCardRare.ToString()));
         if (instance.IsDetailActive)
         {
             this.mButtonEnhance.SetActive(true);
             this.mButtonSell.SetActive(false);
         }
         else if (instance.IsSellListActive)
         {
             this.mButtonEnhance.SetActive(false);
             this.mButtonSell.SetActive(true);
         }
         else
         {
             Debug.LogWarning((object)"Must be from Sell or Enhance");
             return;
         }
         using (List <ConceptCardData> .Enumerator enumerator = instance.SelectedMaterials.GetList().GetEnumerator())
         {
             while (enumerator.MoveNext())
             {
                 ConceptCardData current = enumerator.Current;
                 if ((int)current.Rarity + 1 >= instance.CostConceptCardRare)
                 {
                     GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.mCardObjectTemplate);
                     gameObject.get_transform().SetParent((Transform)this.mCardObjectParent, false);
                     ConceptCardIcon component = (ConceptCardIcon)gameObject.GetComponent <ConceptCardIcon>();
                     if (Object.op_Inequality((Object)component, (Object)null))
                     {
                         component.Setup(current);
                     }
                     gameObject.SetActive(true);
                 }
             }
         }
     }
 }
Exemplo n.º 18
0
        private void SetParam(ConceptCardData card_data, UnitData unit, int job_index)
        {
            if (card_data == null || unit == null || unit.Jobs.Length <= job_index)
            {
                return;
            }
            JobData job = unit.Jobs[job_index];

            this.mName.set_text(card_data.Param.name);
            this.mLvText.set_text(card_data.Lv.ToString());
            this.mLvMaxText.set_text(card_data.CurrentLvCap.ToString());
            if (Object.op_Inequality((Object)this.mTrustObject, (Object)null))
            {
                this.mTrustObject.SetActive(card_data.GetReward() != null);
            }
            ConceptCardManager.SubstituteTrustFormat(card_data, this.mTrustText, (int)card_data.Trust, false);
            int   num1 = 0;
            float num2 = 1f;

            if ((int)card_data.Lv < (int)card_data.CurrentLvCap)
            {
                int conceptCardLevelExp1 = MonoSingleton <GameManager> .Instance.MasterParam.GetConceptCardLevelExp((int)card_data.Rarity, (int)card_data.Lv);

                int conceptCardLevelExp2 = MonoSingleton <GameManager> .Instance.MasterParam.GetConceptCardLevelExp((int)card_data.Rarity, (int)card_data.Lv + 1);

                num2 = (float)((int)card_data.Exp - conceptCardLevelExp1) / (float)(conceptCardLevelExp2 - conceptCardLevelExp1);
                num1 = conceptCardLevelExp2 - (int)card_data.Exp;
            }
            this.mExpText.set_text(num1.ToString());
            this.mExpSlider.set_value(num2);
            if (Object.op_Inequality((Object)this.mIcon, (Object)null))
            {
                this.mIcon.Setup(card_data);
            }
            this.mBaseAdd.Clear();
            this.mBaseMul.Clear();
            this.mUnitAdd.Clear();
            this.mUnitMul.Clear();
            BaseStatus fixed_status = new BaseStatus();
            BaseStatus scale_status = new BaseStatus();
            List <ConceptCardEquipEffect> enableEquipEffects = card_data.GetEnableEquipEffects(unit, job);

            for (int index = 0; index < enableEquipEffects.Count; ++index)
            {
                enableEquipEffects[index].GetStatus(ref fixed_status, ref scale_status);
                this.mBaseAdd.Add(fixed_status);
                this.mBaseMul.Add(scale_status);
            }
            this.mStatus.SetValues(this.mBaseAdd, this.mBaseMul, this.mUnitAdd, this.mUnitMul, false);
        }
        public void SetMixParam()
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                return;
            }
            ConceptCardManager.GalcTotalMixZenyMaterialData(out this.totalMixZeny);
            instance.SetupBulkLevelupAnimation();
            this.mBaseCardId = (long)instance.SelectedConceptCardData.UniqueID;
            this.mMaterials  = new List <SelecteConceptCardMaterial>((IEnumerable <SelecteConceptCardMaterial>)instance.BulkSelectedMaterialList);
            instance.BulkSelectedMaterialList.Clear();
        }
Exemplo n.º 20
0
        public void CheckTrsutMaster()
        {
            if (this.mConceptCardData == null || (int)this.mConceptCardData.Trust < (int)MonoSingleton <GameManager> .Instance.MasterParam.FixParam.CardTrustMax || (this.mConceptCardData.TrustBonus || this.mConceptCardData.GetReward() == null))
            {
                return;
            }
            ConceptCardManager componentInParent = (ConceptCardManager)((Component)this).GetComponentInParent <ConceptCardManager>();

            if (!Object.op_Inequality((Object)componentInParent, (Object)null))
            {
                return;
            }
            FlowNode_TriggerLocalEvent.TriggerLocalEvent((Component)componentInParent, "TRUST_MASTER");
        }
Exemplo n.º 21
0
        private void Start()
        {
            if (Object.op_Equality((Object)ConceptCardManager.Instance, (Object)null))
            {
                return;
            }
            ConceptCardManager instance        = ConceptCardManager.Instance;
            ConceptCardData    conceptCardData = instance.SelectedConceptCardMaterialData == null ? instance.SelectedConceptCardData : instance.SelectedConceptCardMaterialData;

            if (!Object.op_Inequality((Object)this.Image, (Object)null))
            {
                return;
            }
            MonoSingleton <GameManager> .Instance.ApplyTextureAsync((RawImage)this.Image, AssetPath.ConceptCard(conceptCardData.Param));
        }
Exemplo n.º 22
0
        public override void OnActivate(int pinID)
        {
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null))
            {
                return;
            }
            if (pinID == 100)
            {
                this.ExecRequest((WebAPI) new ReqTrustMasterConceptCard((long)instance.SelectedConceptCardData.UniqueID, true, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback)));
                this.mOutPutPinId = 1000;
            }
            ((Behaviour)this).set_enabled(true);
        }
Exemplo n.º 23
0
        private void RefreshEnableParam(ConceptCardIconMultiSelect drawicons, MultiConceptCard materials, bool AcceptableExp, bool AcceptableTrust, bool CanAwake)
        {
            if (UnityEngine.Object.op_Equality((UnityEngine.Object)drawicons, (UnityEngine.Object)null))
            {
                return;
            }
            bool enable = true;

            if (!materials.IsSelected(drawicons.ConceptCard))
            {
                UnitData unitData = MonoSingleton <GameManager> .Instance.Player.Units.Find((Predicate <UnitData>)(u =>
                {
                    if (u.ConceptCard != null)
                    {
                        return((long)u.ConceptCard.UniqueID == (long)drawicons.ConceptCard.UniqueID);
                    }
                    return(false);
                }));

                if (materials.Count >= this.MAX_MULTI_SELECT || drawicons.ConceptCard.Favorite || unitData != null)
                {
                    enable = false;
                }
                else if (this.CCManager.SelectedConceptCardData != null)
                {
                    MultiConceptCard materials1 = new MultiConceptCard();
                    materials1.Add(drawicons.ConceptCard);
                    int mixTotalExp;
                    int mixTrustExp;
                    int mixTotalAwakeLv;
                    ConceptCardManager.CalcTotalExpTrust(this.CCManager.SelectedConceptCardData, materials1, out mixTotalExp, out mixTrustExp, out mixTotalAwakeLv);
                    if ((0 >= mixTotalExp || !AcceptableExp) && (0 >= mixTrustExp || !AcceptableTrust) && !CanAwake)
                    {
                        enable = false;
                    }
                }
            }
            if (this.mListType == ConceptCardList.ListType.SELL && drawicons.ConceptCard.Param.not_sale)
            {
                drawicons.SetNotSellFlag(true);
                enable = false;
            }
            else
            {
                drawicons.SetNotSellFlag(false);
            }
            drawicons.RefreshEnableParam(enable);
        }
Exemplo n.º 24
0
        private void RefreshTextExpAndTrust()
        {
            int mixTotalExp;
            int mixTrustExp;
            int mixTotalAwakeLv;

            ConceptCardManager.CalcTotalExpTrust(this.CCManager.SelectedConceptCardData, this.mSelectedMaterials, out mixTotalExp, out mixTrustExp, out mixTotalAwakeLv);
            if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.TextExp, (UnityEngine.Object)null))
            {
                this.TextExp.set_text(mixTotalExp.ToString());
            }
            if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.TextTrust, (UnityEngine.Object)null))
            {
                return;
            }
            this.TextTrust.set_text(ConceptCardManager.ParseTrustFormat(mixTrustExp));
        }
Exemplo n.º 25
0
        public static void GalcTotalMixZenyMaterialData(out int totalMixZeny)
        {
            totalMixZeny = 0;
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null) || instance.BulkSelectedMaterialList.Count == 0)
            {
                return;
            }
            using (List <SelecteConceptCardMaterial> .Enumerator enumerator = instance.BulkSelectedMaterialList.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    SelecteConceptCardMaterial current = enumerator.Current;
                    totalMixZeny += current.mSelectedData.Param.en_cost * current.mSelectNum;
                }
            }
        }
Exemplo n.º 26
0
        public void SetConceptCardData(ConceptCardData data, GameObject ability_detail_parent, bool bEnhance, bool is_first_get_unit = false, UnitData unitData = null)
        {
            this.mConceptCardData = data;
            if (this.mConceptCardData == null)
            {
                return;
            }
            this.m_UnitData = unitData;
            this.mIsEnhance = bEnhance;
            int mixTotalExp;
            int mixTrustExp;
            int mixTotalAwakeLv;

            ConceptCardManager.CalcTotalExpTrust(out mixTotalExp, out mixTrustExp, out mixTotalAwakeLv);
            this.mEnhanceInfo = new ConceptCardDescription.ConceptCardEnhanceInfo(data, mixTotalExp, mixTrustExp, mixTotalAwakeLv);
            this.CreatePrefab(ability_detail_parent);
            this.SetParam((ConceptCardDetailBase)this.Level, this.mConceptCardData, mixTotalExp, mixTrustExp, mixTotalAwakeLv);
            this.SetParam((ConceptCardDetailBase)this.Status, this.mConceptCardData, mixTotalExp, mixTrustExp, mixTotalAwakeLv);
            if (this.Skin != null)
            {
                for (int index = 0; index < this.Skin.Count; ++index)
                {
                    this.SetParam((ConceptCardDetailBase)this.Skin[index], this.mConceptCardData);
                }
            }
            if (Object.op_Inequality((Object)this.GetUnit, (Object)null))
            {
                if (!is_first_get_unit)
                {
                    ((Component)this.GetUnit).get_gameObject().SetActive(false);
                }
                this.SetParam((ConceptCardDetailBase)this.GetUnit, this.mConceptCardData);
            }
            if (Object.op_Inequality((Object)this.OpenBonusButton, (Object)null))
            {
                bool flag = this.mConceptCardData.IsEnableAwake;
                if (!this.mConceptCardData.Param.IsExistAddCardSkillBuffAwake() && !this.mConceptCardData.Param.IsExistAddCardSkillBuffLvMax())
                {
                    flag = false;
                }
                ((Selectable)this.OpenBonusButton).set_interactable(flag);
            }
            this.Refresh();
        }
Exemplo n.º 27
0
        public void SetParam(bool bEnhance)
        {
            ConceptCardManager componentInParent = (ConceptCardManager)((Component)this).GetComponentInParent <ConceptCardManager>();

            if (Object.op_Equality((Object)componentInParent, (Object)null))
            {
                return;
            }
            this.mConceptCardData = componentInParent.SelectedConceptCardData;
            if (this.mConceptCardData == null)
            {
                return;
            }
            this.mConceptCardDescription.SetConceptCardData(this.mConceptCardData, ((Component)this).get_gameObject(), bEnhance, false, (UnitData)null);
            this.Refresh();
            this.RefreshEnhanceButton();
            this.RefreshEnhanceExecButton();
            this.RefreshEnhanceBulkButton();
        }
Exemplo n.º 28
0
        public void RefreshEnhanceExecButton()
        {
            if (Object.op_Equality((Object)this.EnhanceExecButton, (Object)null) || this.mConceptCardData == null)
            {
                return;
            }
            ConceptCardManager componentInParent = (ConceptCardManager)((Component)this).GetComponentInParent <ConceptCardManager>();

            if (Object.op_Equality((Object)componentInParent, (Object)null))
            {
                return;
            }
            bool flag = true;

            if (0 >= componentInParent.SelectedMaterials.Count)
            {
                flag = false;
            }
            ((Selectable)this.EnhanceExecButton).set_interactable(flag);
        }
Exemplo n.º 29
0
        public static void CalcTotalExpTrustMaterialData(out int mixTotalExp, out int mixTrustExp)
        {
            mixTotalExp = 0;
            mixTrustExp = 0;
            ConceptCardManager instance = ConceptCardManager.Instance;

            if (UnityEngine.Object.op_Equality((UnityEngine.Object)instance, (UnityEngine.Object)null) || instance.BulkSelectedMaterialList.Count == 0)
            {
                return;
            }
            using (List <SelecteConceptCardMaterial> .Enumerator enumerator = instance.BulkSelectedMaterialList.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    SelecteConceptCardMaterial current = enumerator.Current;
                    mixTotalExp += current.mSelectedData.MixExp * current.mSelectNum;
                    mixTrustExp += current.mSelectedData.Param.en_trust * current.mSelectNum;
                }
            }
        }
        public void Activated(int pinID)
        {
            if (Object.op_Equality((Object)ConceptCardManager.Instance, (Object)null))
            {
                return;
            }
            ConceptCardManager instance = ConceptCardManager.Instance;

            switch (pinID)
            {
            case 0:
                instance.SelectedConceptCardMaterialData = this.mConceptCardData;
                FlowNode_GameObject.ActivateOutputLinks((Component)this, 100);
                break;

            case 1:
                instance.SelectedConceptCardMaterialData = (ConceptCardData)null;
                break;
            }
        }