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