山河社稷图引导卡死修改

dev_chengFeng hotfix/mht_china/xq/cdn_xq_test/0.1.94
jiaoyangna 2021-09-08 18:14:06 +08:00 committed by zhangshanxue
parent 3ea9b7740b
commit ef469e7ce7
1 changed files with 10 additions and 1 deletions

View File

@ -66,7 +66,16 @@ function this.SingleDataShow(_go,_rewardData,_index)
local index = _index - 1
local reward = RewardGroup[_rewardData].ShowItem
local condition = fightLevelData.config.ConditionValue or {}
local des = condition and HardStageCondition[condition[index]].Describe or ""
local des = ""
if index == 0 then
des = HardStageCondition[100].Describe
else
if condition and condition[index] and HardStageCondition[condition[index]] then
des = HardStageCondition[condition[index]].Describe
else
des = ""
end
end
Util.GetGameObject(_go, "titleImage/titleText"):GetComponent("Text").text = index == 0 and "首通奖励" or des
Util.GetGameObject(_go, "titleImage/Text"):GetComponent("Text").text = index
Util.GetGameObject(_go, "okButton"):GetComponent("Image").sprite = this.spLoader:LoadSprite("g_ghhb_yidacheng_zh")