This commit is contained in:
puxuan 2025-10-23 18:10:44 +08:00
parent 248e9720be
commit 8d3de2f643
7 changed files with 74 additions and 93 deletions

View File

@ -11,30 +11,8 @@ function ActSprintManager:showActSprintShopUI(params)
end
function ActSprintManager:showActSprintMainUI(params)
local actId = params.actId
if actId == GConst.ActSprintConst.ACT_ID.SUMMON_ALL then
UIManager:showUI("app/ui/activity/act_sprint_summon_all/act_main_ui", params)
end
-- if actId == GConst.ActSprintConst.ACT_ID.SUMMON then
-- UIManager:showUI("app/ui/activity/act_sprint_summon/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.CORE_SOUL_BOX then
-- UIManager:showUI("app/ui/activity/act_sprint_box/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.SUMMON_V2 then
-- UIManager:showUI("app/ui/activity/act_sprint_summon_v2/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.CORE_SOUL_BOX_V2 then
-- UIManager:showUI("app/ui/activity/act_sprint_box_v2/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.SUMMON_ALL then
-- UIManager:showUI("app/ui/activity/act_sprint_summon_all/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.CORE_SOUL_BOX_ALL then
-- UIManager:showUI("app/ui/activity/act_sprint_box_all/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.SUMMON_LOOP then
-- UIManager:showUI("app/ui/activity/act_sprint_summon_rp/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.CORE_SOUL_BOX_LOOP then
-- UIManager:showUI("app/ui/activity/act_sprint_box_rp/act_sprint_main_ui", params)
-- elseif actId == GConst.ActSprintConst.ACT_ID.TREE_LOOP then
-- UIManager:showUI("app/ui/activity/act_sprint_tree_rp/act_sprint_main_ui", params)
-- end
end
-- 冲刺活动 商店兑换
function ActSprintManager:reqExchange(id, count)

View File

@ -41,10 +41,9 @@ function ActMainUI:currencyParams()
return self.params, true
end
function ActMainUI:ctor(params)
self.params = params or {}
self.actId = params.actId
self.curPage = params.page or self:getRpPage()
function ActMainUI:ctor()
self.actId = DataManager[self:getActDataType()]:getActId()
self.curPage = self:getRpPage()
end
function ActMainUI:getPrefabPath()

View File

@ -3,6 +3,7 @@ local ActBaseUI = class("ActBaseUI", BaseUI)
local ACT_PAGE_BTNS_COMP = "app/ui/activity/common/comp/act_page_btns_comp"
function ActBaseUI:ctor(params)
params = params or {}
self.page = params.page or 1
self.ActConst = self:getActConst()
end

View File

@ -93,9 +93,9 @@ function EquipCell:_refresh(entity, showMask, showCheck, showLock)
end
function EquipCell:refreshEmpty(part, showSelect)
self.qltImg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "frame_0")
-- self.iconImg:setActive(true)
self.iconImg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "force_frame_" .. part)
-- self.qltImg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "frame_0")
self.iconImg:setActive(false)
self.qltImg:setSprite(GConst.ATLAS_PATH.ICON_EQUIP, "force_frame_" .. part)
self.lvTx:setText("")
self.refineBg:setActive(false)

View File

@ -16,7 +16,7 @@ function SideBarActSprintCell:getSpineName()
end
function SideBarActSprintCell:onClick()
ModuleManager.ActSprintManager:showActSprintListUI()
ModuleManager.ActSprintManager:showActSprintMainUI()
end
function SideBarActSprintCell:getIsShowRedPoint()

View File

@ -26,6 +26,9 @@ function SummonRewardCell:refresh(reward, index, parentUI)
self.effectQlts[4]:setActive(false)
self.effectQlts[3]:setActive(false)
local cfg = DataManager.HeroData:getHeroConfig(reward.item.id)
if not cfg then
return
end
self.imgIcon:setSprite(GConst.ATLAS_PATH.ICON_HERO_SUMMON, tostring(cfg.icon))
self.bg:setSprite(GConst.ATLAS_PATH.ICON_HERO_SUMMON, "summon_card_b_" .. cfg.qlt)
self.bg1:setSprite(GConst.ATLAS_PATH.UI_SUMMON, "summon_card_" .. cfg.qlt)