private void Refresh() { LTUIUtil.SetLevelText(LevelLabSprite, levelLab, mData.level + mData.peak); int quality = 0; int addLevel = 0; LTPartnerDataManager.GetPartnerQuality(mData.awakeLevel, out quality, out addLevel); frameSp.spriteName = LTPartnerConfig.OUT_LINE_SPRITE_NAME_DIC[quality]; GameItemUtil.SetColorfulPartnerCellFrame(quality, frameBGSp); if (addLevel > 0) { breskLevelLab.gameObject.SetActive(true); breskLevelLab.text = "+" + addLevel.ToString(); } else { breskLevelLab.gameObject.SetActive(false); } parentTypeSp.spriteName = LTPartnerConfig.LEVEL_SPRITE_NAME_DIC[(Hotfix_LT.Data.eRoleAttr)mData.charType]; starController.SetSrarList(mData.star, mData.isAwaken); Hotfix_LT.Data.HeroStatTemplate tempHeroStat = Hotfix_LT.Data.CharacterTemplateManager.Instance.GetHeroStat(mData.templateId); if (tempHeroStat != null) { Hotfix_LT.Data.HeroInfoTemplate tempHeroInfo = Hotfix_LT.Data.CharacterTemplateManager.Instance.GetHeroInfo(tempHeroStat.character_id, mData.skin); if (tempHeroInfo != null) { iconSp.spriteName = tempHeroInfo.icon; HotfixCreateFX.ShowCharTypeFX(charFx, efClip, parentTypeSp.transform, (PartnerGrade)tempHeroInfo.role_grade, (Hotfix_LT.Data.eRoleAttr)mData.charType); HotfixCreateFX.ShowUpgradeQualityFX(upgradeFx, frameSp.transform, quality, upgradeefclip); } } }
public void SetData(UIWorldBossRankScrollItemData data) { LTUIUtil.SetText(Percent, data.damage > 0 ? string.Format("({0}%)", (data.damage / (float)LTWorldBossDataManager.Instance.GetMaxBossHp() * 100).ToString("F1")) : string.Empty); LTUIUtil.SetText(Damage, data.damage > 0 ? GetDamageStr(data.damage) : string.Empty); LTUIUtil.SetText(Name, data.name); }
public void SetText(string text) { mDMono.gameObject.SetActive(true); LTUIUtil.SetText(m_Title, text); SetSpriteStateByNum(); }