Update - 1.9.0.107
EN: 1.9.0.107 CN: 1.9.0.108 JP: 1.9.0.112 KR: 1.9.0.112
This commit is contained in:
@@ -168,13 +168,12 @@ function MatCraftingCtrl:RefreshCraftingCount()
|
||||
self._mapNode.btnAddGray.gameObject:SetActive(self.nCraftingCount >= self.nMaxCraftingCount)
|
||||
self._mapNode.btnReduceCount.gameObject:SetActive(self.nCraftingCount > 1)
|
||||
self._mapNode.btnReduceGray.gameObject:SetActive(self.nCraftingCount <= 1)
|
||||
if self.nProductionId == nil or self.nProductionId == 0 then
|
||||
return
|
||||
end
|
||||
local nHasCount = PlayerData.Item:GetItemCountByID(self.nProductionId)
|
||||
NovaAPI.SetTMPText(self._mapNode.txtBeforeValue, nHasCount)
|
||||
local tbCfgData = PlayerData.Crafting:GetProductionById(self.nSelectPId)
|
||||
local nPerCount = 0
|
||||
if nil ~= tbCfgData then
|
||||
nPerCount = tbCfgData.ShowProductionId == 0 and tbCfgData.ProductionPerBatch or tbCfgData.ShowProductionPerBatch
|
||||
end
|
||||
local nPerCount = tbCfgData.ShowProductionId == 0 and tbCfgData.ProductionPerBatch or tbCfgData.ShowProductionPerBatch
|
||||
local nAfterCount = nHasCount + self.nCraftingCount * nPerCount
|
||||
NovaAPI.SetTMPText(self._mapNode.txtAfterValue, nAfterCount)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user