This commit is contained in:
puxuan 2025-10-31 12:03:36 +08:00
parent 425cff0eea
commit f4635789f7
3 changed files with 10 additions and 3 deletions

View File

@ -36,6 +36,13 @@ ShopConst.PRIVILEGE_SHOW_PAGE = {
-- CHALLEGE_CARD = 5, -- CHALLEGE_CARD = 5,
} }
ShopConst.BOX_REWARD_TYPE = {
SUMMON = 1,
BOUNTY = 2,
ARENA_BOUNTY = 3,
ARENA_AD_BOX = 4,
}
-- 脚本路径 -- 脚本路径
ShopConst.PRIVILEGE_COMP = { ShopConst.PRIVILEGE_COMP = {
FREE_DAILY_REWARDS = "app/ui/privilege/comp/free_daily_rewards_comp", FREE_DAILY_REWARDS = "app/ui/privilege/comp/free_daily_rewards_comp",

View File

@ -103,7 +103,7 @@ function ShopManager:rspBuyCoreSoulBox(result)
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.OPEN_CORE_SOUL_BOX, result.reqData, goldKeyCost) ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.OPEN_CORE_SOUL_BOX, result.reqData, goldKeyCost)
if result.reqData.id then if result.reqData.id then
local uiObj = self:showBoxOpenUI({type = GConst.BOX_REWARD_TYPE.SUMMON, openType = result.reqData.id, count = result.reqData.times, rewards = rewards}) local uiObj = self:showBoxOpenUI({type = GConst.ShopConst.BOX_REWARD_TYPE.SUMMON, openType = result.reqData.id, count = result.reqData.times, rewards = rewards})
uiObj:addEnterAniCompleteListener(function() uiObj:addEnterAniCompleteListener(function()
DataManager.ShopData:setDirty() DataManager.ShopData:setDirty()
end) end)

View File

@ -59,7 +59,7 @@ function BoxOpenUI:onLoadRootComplete()
self.spineObj = self.uiMap["box_open_ui.ui_spine_obj"] self.spineObj = self.uiMap["box_open_ui.ui_spine_obj"]
local spineName local spineName
if self.type == GConst.BOX_REWARD_TYPE.SUMMON then if self.type == GConst.ShopConst.BOX_REWARD_TYPE.SUMMON then
spineName = SUMMON_SPINE_NAME[self.index] spineName = SUMMON_SPINE_NAME[self.index]
end end
if not spineName then if not spineName then
@ -130,7 +130,7 @@ function BoxOpenUI:showNextReward(targetIndex)
self.spineObj:getSkeletonGraphic().enabled = true self.spineObj:getSkeletonGraphic().enabled = true
self.aniName = "born02" self.aniName = "born02"
if self.type == GConst.BOX_REWARD_TYPE.SUMMON then if self.type == GConst.ShopConst.BOX_REWARD_TYPE.SUMMON then
self.aniName = "born0" .. (qlt+1) self.aniName = "born0" .. (qlt+1)
end end