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

View File

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