|
@@ -115,6 +115,8 @@ namespace GFGGame
|
|
|
|
|
|
private void UpdateView()
|
|
|
{
|
|
|
+ SuitCfg cfg = SuitCfgArray.Instance.GetCfg(_suitId);
|
|
|
+ _ui.m_loaRarity.url = ResPathUtil.GetCommonGameResPath("hd_sxicon_" + (5 - cfg.rarity));// "ui://LuckyBox/;
|
|
|
UpdateArrows();
|
|
|
UpdateSuitView();
|
|
|
UpdateFoster();
|
|
@@ -305,8 +307,15 @@ namespace GFGGame
|
|
|
{
|
|
|
int suitrarity = SuitCfgArray.Instance.GetCfg(_suitId).rarity;
|
|
|
SuitRenewCfg renewCfg = SuitRenewCfgArray.Instance.GetCfg(suitrarity);
|
|
|
- SuitFosterListCfg cfg = SuitFosterListCfgArray.Instance.GetCfg(_suitId);
|
|
|
_ui.m_txtRenewShow.text = string.Format("套装所有部件属性+{0}%", renewCfg.addition * 100 / 10000);
|
|
|
+ _ui.m_comRenewRewardGet.target.visible = true;
|
|
|
+ SuitFosterListCfg cfg = SuitFosterListCfgArray.Instance.GetCfg(_suitId);
|
|
|
+ if (cfg.renewRewardsArr.Length <= 0)
|
|
|
+ {
|
|
|
+ _ui.m_comRenewRewardGet.target.visible = false;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg.renewRewardsArr[0][0]);
|
|
|
_ui.m_comRenewRewardGet.m_loaReward.url = ResPathUtil.GetIconPath(itemCfg);
|
|
|
|