修改头像框界面布局、竞技场赛季刷新fix等

This commit is contained in:
Fang 2023-07-05 17:48:36 +08:00
parent 61b76292c9
commit 73b3a451e9
4 changed files with 16 additions and 7 deletions

View File

@ -25,7 +25,7 @@ function ArenaManager:onSeasonChanged()
if EDITOR_MODE then
Logger.logHighlight("赛季改变")
end
if not self.isResetting then
if self.isResetting then
return
end

View File

@ -142,7 +142,8 @@ function BattleResultUI:onLoadRootComplete()
end)
self:addEventListener(EventManager.CUSTOM_EVENT.ARENA_AD_BOX_SUCCESS, function()
self.getedArenaAdBox = true
self.arenaBoxBtnGet:setActive(false)
self:refreshRewards()
self:refreshArenaBoxNode()
end)
end
@ -293,6 +294,9 @@ function BattleResultUI:hasArenaBoxNode()
if not self.isWin and self.arenaTotalCount and (self.arenaTotalCount % GFunc.getConstIntValue("arena_lose_adbox")) ~= 0 then
return false
end
if self.getedArenaAdBox then
return false
end
return true
end

View File

@ -155,10 +155,13 @@ function ArenaComp:refreshShow()
self.imgProg:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_SLIDER).value = 1
end
if self.spineGrading then
self.spineGrading:destroy()
self.spineGrading = nil
if DataManager.ArenaData:hasSeasonReward() then
self.btnReward:addRedPoint(30, 25, 0.6)
else
self.btnReward:removeRedPoint()
end
self.spineRoot:removeAllChildren()
SpineManager:loadUISpineWidgetAsync(gradingIconName.."_spine", self.spineRoot, function(spineObject)
self.spineGrading = spineObject
self.spineGrading:setSkin(gradingNumName)

View File

@ -27,7 +27,9 @@ function FrameCell:refresh(id, isSelect)
end
self.select:setActive(isSelect)
self.imgFrame:setSprite(GConst.ATLAS_PATH.ICON_AVATAR, DataManager.PlayerData:getFrameIconId(self.id))
local iconId = DataManager.PlayerData:getFrameIconId(self.id)
self.imgFrame:setSprite(GConst.ATLAS_PATH.ICON_AVATAR, iconId)
self.lock:setSprite(GConst.ATLAS_PATH.ICON_AVATAR, iconId)
self.lock:setActive(not DataManager.PlayerData:isFrameUnlock(self.id))
self.use:setActive(DataManager.PlayerData:getUsingFrameId() == self.id)
end