修改头像框界面布局、竞技场赛季刷新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 if EDITOR_MODE then
Logger.logHighlight("赛季改变") Logger.logHighlight("赛季改变")
end end
if not self.isResetting then if self.isResetting then
return return
end end

View File

@ -142,7 +142,8 @@ function BattleResultUI:onLoadRootComplete()
end) end)
self:addEventListener(EventManager.CUSTOM_EVENT.ARENA_AD_BOX_SUCCESS, function() self:addEventListener(EventManager.CUSTOM_EVENT.ARENA_AD_BOX_SUCCESS, function()
self.getedArenaAdBox = true self.getedArenaAdBox = true
self.arenaBoxBtnGet:setActive(false) self:refreshRewards()
self:refreshArenaBoxNode()
end) end)
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 if not self.isWin and self.arenaTotalCount and (self.arenaTotalCount % GFunc.getConstIntValue("arena_lose_adbox")) ~= 0 then
return false return false
end end
if self.getedArenaAdBox then
return false
end
return true return true
end end

View File

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

View File

@ -27,7 +27,9 @@ function FrameCell:refresh(id, isSelect)
end end
self.select:setActive(isSelect) 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.lock:setActive(not DataManager.PlayerData:isFrameUnlock(self.id))
self.use:setActive(DataManager.PlayerData:getUsingFrameId() == self.id) self.use:setActive(DataManager.PlayerData:getUsingFrameId() == self.id)
end end