体力上限显示
This commit is contained in:
parent
cb87e896e6
commit
01f34843e8
@ -72,7 +72,7 @@ function ResourceCell:refreshTextRightNow()
|
|||||||
local count = obj:getNum()
|
local count = obj:getNum()
|
||||||
if count < 0 then
|
if count < 0 then
|
||||||
self.numTx:setText("0")
|
self.numTx:setText("0")
|
||||||
elseif obj:getItemType() == GConst.ItemConst.ITEM_ID_VIT then
|
elseif obj:getId() == GConst.ItemConst.ITEM_ID_VIT then
|
||||||
self.numTx:setText(GFunc.num2Str(count) .. "/" .. DataManager.PlayerData:getMaxVit())
|
self.numTx:setText(GFunc.num2Str(count) .. "/" .. DataManager.PlayerData:getMaxVit())
|
||||||
else
|
else
|
||||||
self.numTx:setText(GFunc.num2Str(count))
|
self.numTx:setText(GFunc.num2Str(count))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user