fix bug
This commit is contained in:
parent
a99eb5bd25
commit
cc7f94da7d
@ -323,7 +323,7 @@ end
|
||||
--@region 红点
|
||||
function EquipGrowthUI:refreshRedPoint()
|
||||
if DataManager.EquipData:hasEquipUnWearRedPoint() then
|
||||
self.resolveBtn:addRedPoint(85, 37, 1)
|
||||
self.resolveBtn:addRedPoint(-70, 30, 1)
|
||||
else
|
||||
self.resolveBtn:removeRedPoint()
|
||||
end
|
||||
|
||||
@ -263,6 +263,10 @@ function MainCityUI:_bind()
|
||||
self:refreshBottomRp()
|
||||
end)
|
||||
|
||||
self:bind(DataManager.DungeonDailyData, "isDirty", function()
|
||||
self:refreshBottomRp()
|
||||
end)
|
||||
|
||||
self:bind(DataManager.ShopData, "isDirty", function()
|
||||
if self.selectedIndex == GConst.MainCityConst.BOTTOM_PAGE.SHOP and self.subComps[self.selectedIndex] then
|
||||
if self.subComps[self.selectedIndex] then
|
||||
@ -611,6 +615,12 @@ function MainCityUI:refreshBottomRp()
|
||||
else
|
||||
companyRpObj:removeRedPoint()
|
||||
end
|
||||
local dungeonRpObj = uiMap["main_ui.bottom_node.icons.ui_spine_obj_5.rp_node"]
|
||||
if DataManager.DungeonData:hasRedPoint() then
|
||||
dungeonRpObj:addRedPoint(0, 0, 1)
|
||||
else
|
||||
dungeonRpObj:removeRedPoint()
|
||||
end
|
||||
end
|
||||
|
||||
function MainCityUI:refreshSettingBtn()
|
||||
|
||||
@ -85,6 +85,7 @@ function DungeonDailyData:onSweepDungeonDailyFinish(chapterId)
|
||||
elseif dungeonDailyType == GConst.DungeonConst.DUNGEON_DAILY_TYPE.MATERIAL then
|
||||
self.MaterialData:onSweepDungeonDailyFinish(chapterId)
|
||||
end
|
||||
self:setDirty()
|
||||
end
|
||||
|
||||
function DungeonDailyData:getIsShowRedPoint()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user