【关卡】应该改成按钮

dev_chengFeng
ZhangBiao 2021-03-19 16:18:10 +08:00
parent fb7ef778b1
commit f30186c57e
1 changed files with 13 additions and 2 deletions

View File

@ -108,6 +108,7 @@ function this.SingleDataShow(go,rewardData)
end
end
local lingquButton = Util.GetGameObject(activityRewardGo.gameObject, "lingquButton")
local text = Util.GetGameObject(activityRewardGo.gameObject, "lingquButton/Text"):GetComponent("Text")
Util.GetGameObject(lingquButton.gameObject, "redPoint"):SetActive(false)
local qianwangButton = Util.GetGameObject(activityRewardGo.gameObject, "qianwangButton")
local getFinishText = Util.GetGameObject(activityRewardGo.gameObject, "getFinishText")
@ -116,9 +117,19 @@ function this.SingleDataShow(go,rewardData)
local state = rewardData.state
local value = sConFigData.Values[1][1]
local isPass = FightPointPassManager.IsFightPointPass(value)
lingquButton:SetActive(state == 0 and isPass)
lingquButton:SetActive(isPass)
qianwangButton:SetActive(state == 0 and not isPass)
getFinishText:SetActive(state == 1)
if state == 1 then
text.text = Language[10101]
Util.SetGray(lingquButton,true)
lingquButton:GetComponent("Button").interactable = false
else
text.text = Language[11948]
Util.SetGray(lingquButton,false)
lingquButton:GetComponent("Button").interactable = true
end
-- getFinishText:SetActive(state == 1)
getFinishText:SetActive(false)
needGetUpText:SetActive(state == 0)
if isShowNeedGetUpTextId == 0 and state == 0 or isShowNeedGetUpTextId == rewardData.missionId then
isShowNeedGetUpTextId = rewardData.missionId