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 end
function ActSprintManager:showActSprintMainUI(params) 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) UIManager:showUI("app/ui/activity/act_sprint_summon_all/act_main_ui", params)
end 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) function ActSprintManager:reqExchange(id, count)

View File

@ -41,10 +41,9 @@ function ActMainUI:currencyParams()
return self.params, true return self.params, true
end end
function ActMainUI:ctor(params) function ActMainUI:ctor()
self.params = params or {} self.actId = DataManager[self:getActDataType()]:getActId()
self.actId = params.actId self.curPage = self:getRpPage()
self.curPage = params.page or self:getRpPage()
end end
function ActMainUI:getPrefabPath() 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" local ACT_PAGE_BTNS_COMP = "app/ui/activity/common/comp/act_page_btns_comp"
function ActBaseUI:ctor(params) function ActBaseUI:ctor(params)
params = params or {}
self.page = params.page or 1 self.page = params.page or 1
self.ActConst = self:getActConst() self.ActConst = self:getActConst()
end end

View File

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

View File

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

View File

@ -26,6 +26,9 @@ function SummonRewardCell:refresh(reward, index, parentUI)
self.effectQlts[4]:setActive(false) self.effectQlts[4]:setActive(false)
self.effectQlts[3]:setActive(false) self.effectQlts[3]:setActive(false)
local cfg = DataManager.HeroData:getHeroConfig(reward.item.id) 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.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.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) self.bg1:setSprite(GConst.ATLAS_PATH.UI_SUMMON, "summon_card_" .. cfg.qlt)