Example #1
0
        public override void SetMenuData(object param)
        {
            base.SetMenuData(param);

            infoId          = (int?)param ?? infoId;
            data            = LTPartnerDataManager.Instance.GetPartnerByInfoId(infoId);
            templateNow     = CharacterTemplateManager.Instance.GetArtifactEquipmentByLevel(infoId, data.ArtifactLevel, true);
            templateNext    = CharacterTemplateManager.Instance.GetArtifactEquipmentByLevel(infoId, data.ArtifactLevel + 1);
            Icon.spriteName = templateNow.iconId;
            Shadow.gameObject.CustomSetActive(data.ArtifactLevel < 0);
            Shadow.GetComponent <DynamicUISprite>().spriteName = templateNow.iconId;
            ArtifactName.text = templateNow.name;
            SetShowItem(templateNext);
            DetailBehaviour.Init(infoId);
            if (data.ArtifactLevel == CharacterTemplateManager.Instance.GetArtifactEquipmentMaxLevel(infoId))
            {
                button.gameObject.CustomSetActive(false);
                MaxTip.gameObject.CustomSetActive(true);
            }
            else
            {
                button.gameObject.CustomSetActive(true);
                MaxTip.gameObject.CustomSetActive(false);
            }
        }
Example #2
0
        public override void SetMenuData(object param)
        {
            base.SetMenuData(param);
            //TODO 传入伙伴Id数据
            infoId = (int)param;
            DetailBehaviour.Init(infoId);
            LTPartnerData             data = LTPartnerDataManager.Instance.GetPartnerByInfoId(infoId);
            ArtifactEquipmentTemplate artifactEquipmentTemplate = CharacterTemplateManager.Instance.GetArtifactEquipmentByLevel(infoId, data.ArtifactLevel, true);
            UILabel  levelLabel = Template.GetComponent <UILabel>();
            UILabel  descLabel  = Template.GetComponent <UILabel>("Desc");
            UISprite sprite     = Template.GetComponent <UISprite>("Sprite");

            levelLabel.text = $"[44fe7c]+{artifactEquipmentTemplate.enhancementLevel}";
            descLabel.text  = $"[44fe7c]{artifactEquipmentTemplate.desc}";
            sprite.color    = Color.yellow;
        }
Example #3
0
 private void ArtifactRefresh()
 {
     DetailBehaviour.OnDisable();
     DetailBehaviour.Init(infoId);
 }