DESKTOP-MMO982B\User 2025-08-06 00:31:05 +07:00
parent aa994d7b42
commit 298570b3fe
1 changed files with 4 additions and 4 deletions

View File

@ -196,12 +196,12 @@ function this.SetScrollPre2(root,data)
mask:SetActive(true)
if data.state==0 then
mask:GetComponent("Image").sprite = this.spLoader:LoadSprite("g_ghhb_weidacheng_zh")
local stateText = Util.GetGameObject(mask,"text"):GetComponent("Text")
stateText.text = "未达成"
local stateText = Util.GetGameObject(mask,"Text"):GetComponent("Text")
stateText.text = "<color=#FF0000>未达成</color>"
elseif data.state==1 then
mask:GetComponent("Image").sprite = this.spLoader:LoadSprite("g_ghhb_yidacheng_zh")
local stateText = Util.GetGameObject(mask,"text"):GetComponent("Text")
stateText.text = "已达成"
local stateText = Util.GetGameObject(mask,"Text"):GetComponent("Text")
stateText.text = "<color=#3AAB09>已达成</color>"
end
end