英雄信息

This commit is contained in:
puxuan 2025-08-13 16:27:10 +08:00
parent 027b50b152
commit 6b9e3b9ded
3 changed files with 16 additions and 15 deletions

View File

@ -71,9 +71,9 @@ HeroConst.ATTR_SHOW_SKIN = {
-- 需要显示属性的模块 -- 需要显示属性的模块
HeroConst.SHOW_NODE = { HeroConst.SHOW_NODE = {
HeroConst.ATTR_SHOW_TOTAL, HeroConst.ATTR_SHOW_TOTAL,
HeroConst.ATTR_SHOW_BASE, -- HeroConst.ATTR_SHOW_BASE,
HeroConst.ATTR_SHOW_STAR, -- HeroConst.ATTR_SHOW_STAR,
HeroConst.ATTR_SHOW_SKIN, -- HeroConst.ATTR_SHOW_SKIN,
} }
HeroConst.STAR_TYPE = { HeroConst.STAR_TYPE = {

View File

@ -8,13 +8,14 @@ function BottomBtnCell:refresh(index, selected, showAni)
local iconScale = 1 local iconScale = 1
local descContent = selected and I18N:getGlobalText("MAIN_BTN_" .. index) or GConst.EMPTY_STRING local descContent = selected and I18N:getGlobalText("MAIN_BTN_" .. index) or GConst.EMPTY_STRING
descObj:setText(descContent) descObj:setText(descContent)
local pos = -66 local pos = -56
if index == GConst.MainCityConst.BOTTOM_PAGE.HERO then icon:setLocalPositionY(pos)
-- 英雄页图标下移6像素特殊处理 -- if index == GConst.MainCityConst.BOTTOM_PAGE.HERO then
icon:setLocalPositionY(pos - 6) -- -- 英雄页图标下移6像素特殊处理
else -- icon:setLocalPositionY(pos - 6)
icon:setLocalPositionY(pos) -- else
end -- icon:setLocalPositionY(pos)
-- end
if selected then if selected then
if showAni then if showAni then
GFunc.goTargetElasticityY(icon,nil, 21,0.6) GFunc.goTargetElasticityY(icon,nil, 21,0.6)

View File

@ -271,11 +271,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)