fix bug
This commit is contained in:
parent
425cff0eea
commit
f4635789f7
@ -36,6 +36,13 @@ ShopConst.PRIVILEGE_SHOW_PAGE = {
|
||||
-- CHALLEGE_CARD = 5,
|
||||
}
|
||||
|
||||
ShopConst.BOX_REWARD_TYPE = {
|
||||
SUMMON = 1,
|
||||
BOUNTY = 2,
|
||||
ARENA_BOUNTY = 3,
|
||||
ARENA_AD_BOX = 4,
|
||||
}
|
||||
|
||||
-- 脚本路径
|
||||
ShopConst.PRIVILEGE_COMP = {
|
||||
FREE_DAILY_REWARDS = "app/ui/privilege/comp/free_daily_rewards_comp",
|
||||
|
||||
@ -103,7 +103,7 @@ function ShopManager:rspBuyCoreSoulBox(result)
|
||||
|
||||
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.OPEN_CORE_SOUL_BOX, result.reqData, goldKeyCost)
|
||||
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()
|
||||
DataManager.ShopData:setDirty()
|
||||
end)
|
||||
|
||||
@ -59,7 +59,7 @@ function BoxOpenUI:onLoadRootComplete()
|
||||
|
||||
self.spineObj = self.uiMap["box_open_ui.ui_spine_obj"]
|
||||
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]
|
||||
end
|
||||
if not spineName then
|
||||
@ -130,7 +130,7 @@ function BoxOpenUI:showNextReward(targetIndex)
|
||||
self.spineObj:getSkeletonGraphic().enabled = true
|
||||
|
||||
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)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user