奥义卡升星升级显示修改
parent
c63a7907ec
commit
54728f432b
|
@ -223,7 +223,7 @@ function this.UpdateWin()
|
||||||
this.costTxt.text=string.format("<color=#FF0000>%s</color>",haveItemNum.."/"..starConfig.PropList[2][2])
|
this.costTxt.text=string.format("<color=#FF0000>%s</color>",haveItemNum.."/"..starConfig.PropList[2][2])
|
||||||
else
|
else
|
||||||
costEnough=true
|
costEnough=true
|
||||||
this.costTxt.text=string.format("<color=#FFFFFF>%s</color>",haveItemNum.."/"..starConfig.PropList[2][2])
|
this.costTxt.text=string.format("<color=#ECB44D>%s</color>",haveItemNum.."/"..starConfig.PropList[2][2])
|
||||||
end
|
end
|
||||||
this.costImg.sprite=this.spLoader:LoadSprite(GetResourcePath(costItemConfig.ResourceID))
|
this.costImg.sprite=this.spLoader:LoadSprite(GetResourcePath(costItemConfig.ResourceID))
|
||||||
end
|
end
|
||||||
|
@ -255,7 +255,7 @@ function this.SetCostItem(costData)
|
||||||
if haveItemNum<costData[2] then
|
if haveItemNum<costData[2] then
|
||||||
this.num.text=string.format("<color=#FF0000>%s</color>",haveItemNum.."/"..costData[2])
|
this.num.text=string.format("<color=#FF0000>%s</color>",haveItemNum.."/"..costData[2])
|
||||||
else
|
else
|
||||||
this.num.text=string.format("<color=#FFFFFF>%s</color>",haveItemNum.."/"..costData[2])
|
this.num.text=string.format("<color=#ECB44D>%s</color>",haveItemNum.."/"..costData[2])
|
||||||
end
|
end
|
||||||
|
|
||||||
this.bianImg.gameObject:SetActive(false)
|
this.bianImg.gameObject:SetActive(false)
|
||||||
|
@ -277,7 +277,7 @@ function this:UpdateUpStarCost(_num,_curSelectList)
|
||||||
if _num<needNum then
|
if _num<needNum then
|
||||||
this.num.text= string.format("<color=#FF0000>%s</color>",_num.."/"..needNum)
|
this.num.text= string.format("<color=#FF0000>%s</color>",_num.."/"..needNum)
|
||||||
else
|
else
|
||||||
this.num.text= string.format("<color=#FFFFFF>%s</color>",_num.."/"..needNum)
|
this.num.text= string.format("<color=#ECB44D>%s</color>",_num.."/"..needNum)
|
||||||
end
|
end
|
||||||
curSelectMat=_curSelectList
|
curSelectMat=_curSelectList
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue