修正文字颜色和现实顺序

TCX_LongZhu
PC-202302260912\Administrator 2025-09-09 03:34:06 +08:00
parent e580d93434
commit b208119fcf
1 changed files with 2 additions and 2 deletions

View File

@ -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()