no message
parent
952a2b5280
commit
795beb3e59
|
@ -87,18 +87,18 @@ function PracticeStatePreview:SetSingleData(index,_go,_data)
|
|||
Text.text = string
|
||||
num.text = string2
|
||||
if _data.IsActive == 2 then
|
||||
Text.text = string.format("<color=#00ff00>%s</color>",string)
|
||||
num.text = string.format("<color=#00ff00>%s</color>",string2)
|
||||
Text.text = string.format("<color=#39BF39>%s</color>",string)
|
||||
num.text = string.format("<color=#39BF39>%s</color>",string2)
|
||||
elseif _data.IsActive == 1 and not XiuXianConfig[PracticeManager.PracticeLevel].LevelUpCost then
|
||||
Text.text = string.format("<color=#00ff00>%s</color>",string)
|
||||
num.text = string.format("<color=#00ff00>%s</color>",string2)
|
||||
Text.text = string.format("<color=#39BF39>%s</color>",string)
|
||||
num.text = string.format("<color=#39BF39>%s</color>",string2)
|
||||
end
|
||||
end
|
||||
if _data.RealmDesc then
|
||||
specialText.gameObject:SetActive(true)
|
||||
specialText.text = _data.RealmDesc
|
||||
if _data.IsActive == 1 or _data.IsActive == 2 then
|
||||
specialText.text = string.format("<color=#00ff00>%s</color>",_data.RealmDesc)
|
||||
specialText.text = string.format("<color=#39BF39>%s</color>",_data.RealmDesc)
|
||||
end
|
||||
else
|
||||
specialText.gameObject:SetActive(false)
|
||||
|
@ -110,7 +110,7 @@ function PracticeStatePreview:SetSingleData(index,_go,_data)
|
|||
if _data.NeedStarNum > PracticeManager.StarNum then
|
||||
star.text = string.format("<color=red>需要%s</color>",_data.NeedStarNum)
|
||||
else
|
||||
star.text = string.format("<color=#00ff00>需要%s</color>",_data.NeedStarNum)
|
||||
star.text = string.format("<color=#39BF39>需要%s</color>",_data.NeedStarNum)
|
||||
end
|
||||
else
|
||||
star.gameObject:SetActive(false)
|
||||
|
|
Loading…
Reference in New Issue