This commit is contained in:
puxuan 2025-05-22 22:53:07 +08:00
parent 1e89701644
commit faa94296f7
2 changed files with 9 additions and 7 deletions

View File

@ -21,7 +21,8 @@ end
-- icon图标资源路径,为空时不显示 -- icon图标资源路径,为空时不显示
function SideBarBaseCellComp:getIconRes() function SideBarBaseCellComp:getIconRes()
return nil -- return nil
return "maincity_gm"
end end
-- 图标动画资源路径,为空时不显示 -- 图标动画资源路径,为空时不显示
@ -83,7 +84,8 @@ function SideBarBaseCellComp:refreshIcon()
end end
function SideBarBaseCellComp:refreshSpine() function SideBarBaseCellComp:refreshSpine()
if not self:getSpineName() then -- if not self:getSpineName() then
if true then
self.spine:getSkeletonGraphic().enabled = false self.spine:getSkeletonGraphic().enabled = false
return return
end end

View File

@ -315,11 +315,11 @@ function MainCityUI:initBottomUI()
BIReport:postHomeBtnCilck(BIReport.CLICK_BTN_TYPE[MainCityUI.CLICK_BTN_TYPE[i]]) BIReport:postHomeBtnCilck(BIReport.CLICK_BTN_TYPE[MainCityUI.CLICK_BTN_TYPE[i]])
end end
self.bottomBtnSpines[i]:playAnimComplete("born1", false, false, function() -- self.bottomBtnSpines[i]:playAnimComplete("born1", false, false, function()
self.bottomBtnSpines[i]:playAnimComplete("born2", false, false, function() -- self.bottomBtnSpines[i]:playAnimComplete("born2", false, false, function()
self.bottomBtnSpines[i]:playAnim("idle", false, false) -- self.bottomBtnSpines[i]:playAnim("idle", false, false)
end) -- end)
end) -- end)
self:refreshBottom(i, true) self:refreshBottom(i, true)
end) end)
table.insert(self.bottomBtnCells, cellCom) table.insert(self.bottomBtnCells, cellCom)