【命格】提交

dev_chengFeng
ZhangBiao 2021-12-10 18:32:08 +08:00
parent c11848b98a
commit 440c9cdb92
1 changed files with 2 additions and 2 deletions

View File

@ -101,6 +101,7 @@ function Gem:OnShow()
self:Refresh()
end
function Gem:Refresh()
CheckRedPointStatus(RedPointType.Gem)
self:RefreshMid()
self:SetGems()
self:SetStones(GemManager.myGemList[self.curType],self.curType)
@ -189,8 +190,6 @@ function Gem:SetStones(_data,index)
local textPre = Util.GetGameObject(property,"Text")
local name = Util.GetGameObject(stoneGo,"Name"):GetComponent("Text")
local redPoint = Util.GetGameObject(stoneGo,"RedPoint")
local numInBag = BagManager.GetTotalItemNum(data[i])
textPre:GetComponent("Text").text = ""
textPre:SetActive(false)
@ -209,6 +208,7 @@ function Gem:SetStones(_data,index)
name.text = gemConfig[data[i]].Name
self:SetProperty(gemConfig[data[i]],data,property,textPre)
local numInBag = BagManager.GetTotalItemNum(data[i])
--红点
for key, value in pairs(redPointData) do--有更高级的命石红点显示
if value.id > data[i] then