Beispiel #1
0
        private void SetUIShow()
        {
            if (currentStategyInfo == null)
            {
                EB.Debug.LogError("PartnerStrategyInfo is null");
                return;
            }
            Portrait.spriteName = curHeroinfo.skin;
            string sp = "";

            if (LTPartnerConfig.PARTNER_GRADE_SPRITE_NAME_DIC.TryGetValue((PartnerGrade)curHeroinfo.role_grade, out sp))
            {
                PartnerQualitySp.spriteName = sp;
            }
            PartnerName.text = PartnerNameShadow.text = curHeroinfo.name;
            int NameLength = curHeroinfo.name.Length;

            if (LTPartnerConfig.PARTNER_STRATEGY_LEVEL_SPRITE.TryGetValue(currentStategyInfo.dmglevel, out sp))
            {
                DmgLevelSp.spriteName = sp;
                DmgParmSp.color       = LTPartnerConfig.PARTNER_STRATEGY_LEVEL_COLOR[currentStategyInfo.dmglevel];
                DmgParmSp.width       = MaxWidth * currentStategyInfo.dmglevel / 5;
            }
            if (LTPartnerConfig.PARTNER_STRATEGY_LEVEL_SPRITE.TryGetValue(currentStategyInfo.existlevel, out sp))
            {
                ExsitLevelSp.spriteName = sp;
                ExsitParmSp.color       = LTPartnerConfig.PARTNER_STRATEGY_LEVEL_COLOR[currentStategyInfo.existlevel];
                ExsitParmSp.width       = MaxWidth * currentStategyInfo.existlevel / 5;
            }
            if (LTPartnerConfig.PARTNER_STRATEGY_LEVEL_SPRITE.TryGetValue(currentStategyInfo.controllevel, out sp))
            {
                ControlLevelSp.spriteName = sp;
                ControlParmSp.color       = LTPartnerConfig.PARTNER_STRATEGY_LEVEL_COLOR[currentStategyInfo.controllevel];
                ControlParmSp.width       = MaxWidth * currentStategyInfo.controllevel / 5;
            }
            if (LTPartnerConfig.PARTNER_STRATEGY_LEVEL_SPRITE.TryGetValue(currentStategyInfo.assistlevel, out sp))
            {
                AssistLevelSp.spriteName = sp;
                AssistParmSp.color       = LTPartnerConfig.PARTNER_STRATEGY_LEVEL_COLOR[currentStategyInfo.assistlevel];
                AssistParmSp.width       = MaxWidth * currentStategyInfo.assistlevel / 5;
            }
            SuitTypeInfo info = EconemyTemplateManager.Instance.GetSuitTypeInfoByEcidSuitType(currentStategyInfo.recommondedsuit);

            if (info != null)
            {
                RecommendSuit.text         = RSuitShadow.text = info.TypeName;
                RecommondSuitSp.spriteName = info.SuitIcon;
            }
            RecommendAttr.text          = RAttrShadow.text = AttrTypeTrans(currentStategyInfo.recommondedAttr);
            RecommondAttriSp.spriteName = AttrTypeSprite(currentStategyInfo.recommondedAttr);
            RecommendDes.text           = currentStategyInfo.matchDes;
        }
Beispiel #2
0
        public void RefreshWishIcon(int itemId)
        {
            string       iconName = string.Empty;
            int          suit     = itemId % 100;
            SuitTypeInfo suitInfo = EconemyTemplateManager.Instance.GetSuitTypeInfoByEcidSuitType(suit);

            if (suitInfo != null)
            {
                iconName = suitInfo.SuitIcon;
            }

            SetWishButtonIcon(iconName);

            if (title != null)
            {
                title.UpdateRedPoint();
            }
        }