修正文字颜色和现实顺序
parent
e580d93434
commit
b208119fcf
|
|
@ -168,10 +168,10 @@ function this.SwitchView(index)
|
|||
icon.sprite=this.spLoader:LoadSprite(GetResourcePath(itemConfig.ResourceID))
|
||||
local haveNum=BagManager.GetItemCountById(cost[1])
|
||||
if haveNum>=cost[2] then
|
||||
num.text=string.format("<color=#FCF5D3FF>%s</color>/%s", cost[2],haveNum)
|
||||
num.text=string.format("<color=#FCF5D3FF>%s</color>/%s",haveNum, cost[2])
|
||||
else
|
||||
isCan=false
|
||||
num.text=string.format("<color=#FF0011>%s</color>/%s",cost[2],haveNum)
|
||||
num.text=string.format("<color=#FF0011>%s</color>/%s",haveNum,cost[2])
|
||||
end
|
||||
|
||||
Util.AddClick(icon.gameObject,function()
|
||||
|
|
|
|||
Loading…
Reference in New Issue