This commit is contained in:
xiekaidong 2023-06-06 11:32:10 +08:00
commit 1128b8853b
5 changed files with 12 additions and 14 deletions

View File

@ -29,17 +29,13 @@ AudioManager.EFFECT_ID = {
LINK_SKILL = "assets/arts/sounds/sfx/battle/link_skill.wav", LINK_SKILL = "assets/arts/sounds/sfx/battle/link_skill.wav",
BATTLE_VICTORY = "assets/arts/sounds/sfx/ui/battle_victory.wav", BATTLE_VICTORY = "assets/arts/sounds/sfx/ui/battle_victory.wav",
BATTLE_DEFEAT = "assets/arts/sounds/sfx/ui/battle_defeat.wav", BATTLE_DEFEAT = "assets/arts/sounds/sfx/ui/battle_defeat.wav",
SUMMON_START = "assets/arts/sounds/sfx/ui/ui_summon_start.wav", SUMMON_START = "assets/arts/sounds/sfx/ui/summon_start.wav",
REWARD = "assets/arts/sounds/sfx/ui/reward.wav", REWARD = "assets/arts/sounds/sfx/ui/reward.wav",
HERO_UP = "assets/arts/sounds/sfx/ui/hero_up.wav", HERO_UP = "assets/arts/sounds/sfx/ui/hero_up.wav",
PLAYER_UP = "assets/arts/sounds/sfx/ui/player_up.wav", PLAYER_UP = "assets/arts/sounds/sfx/ui/player_up.wav",
BOSS_WARNING = "assets/arts/sounds/sfx/battle/warning_boss.wav", BOSS_WARNING = "assets/arts/sounds/sfx/battle/warning_boss.wav",
LINK_CANCEL = "assets/arts/sounds/sfx/battle/link_cancel.wav", LINK_CANCEL = "assets/arts/sounds/sfx/battle/link_cancel.wav",
UI_FUNC_OPEN = "assets/arts/sounds/sfx/ui/ui_func_open.wav", -- 功能解锁 FUNC_OPEN = "assets/arts/sounds/sfx/ui/func_open.wav",
UI_HERO_LV_UP = "assets/arts/sounds/sfx/ui/ui_hero_lv_up.wav", -- 英雄升级
UI_PLAYER_LV_UP = "assets/arts/sounds/sfx/ui/ui_player_lv_up.wav", -- 角色升级
UI_REWARD_GET = "assets/arts/sounds/sfx/ui/ui_reward_get.wav", -- 奖励获取
UI_SUMMON_START = "assets/arts/sounds/sfx/ui/ui_summon_start.wav", -- 抽卡
} }
AudioManager.BO_EFFECT_ID = { AudioManager.BO_EFFECT_ID = {

View File

@ -2560,7 +2560,9 @@ function BattleController:battleEnd()
self.battleUI:enableUITouch() self.battleUI:enableUITouch()
end end
self:controllBattleEnd() self:controllBattleEnd()
if self.victory then
ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_BATTLE_VICTORY) ModuleManager.TaskManager:addTaskProgress(GConst.TaskConst.TASK_TYPE.X_BATTLE_VICTORY)
end
end, 1) end, 1)
end end

View File

@ -20,7 +20,6 @@ function HeroManager:upgradeHero(heroId, heroEntity)
if state == GConst.HeroConst.CHECK_LV_UP_STATE.COIN_NOT_ENOUGH then if state == GConst.HeroConst.CHECK_LV_UP_STATE.COIN_NOT_ENOUGH then
ModuleManager.ShopManager:tryTriggerCoinGift() ModuleManager.ShopManager:tryTriggerCoinGift()
end end
return return
end end

View File

@ -85,6 +85,7 @@ function ModuleUnlockUI:checkShowNext()
end end
end end
self:showModuleUnlockAppearAnim() self:showModuleUnlockAppearAnim()
AudioManager:playEffect(AudioManager.EFFECT_ID.FUNC_OPEN)
end end
-- 出现 -- 出现

View File

@ -93,7 +93,7 @@ function BoxSellCell:refreshCost()
self.boxBuyBtnCoin1:setSprite(GFunc.getIconRes(costItem1.id)) self.boxBuyBtnCoin1:setSprite(GFunc.getIconRes(costItem1.id))
local totalCount = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_BOX_KEY_LV_1) local totalCount = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_BOX_KEY_LV_1)
local totalCountStr = totalCount <= 99 and tostring(totalCount) or "99" local totalCountStr = totalCount <= 99 and tostring(totalCount) or "99"
self.boxBuyBtnTx1:setText(tostring(costItem1.num) .. "/" .. totalCountStr) self.boxBuyBtnTx1:setText(totalCountStr .. "/" .. tostring(costItem1.num))
else else
self.boxBuyBtnCoin1:setSprite(GFunc.getIconRes(cost1.id)) self.boxBuyBtnCoin1:setSprite(GFunc.getIconRes(cost1.id))
self.boxBuyBtnTx1:setText(cost1.num) self.boxBuyBtnTx1:setText(cost1.num)
@ -104,7 +104,7 @@ function BoxSellCell:refreshCost()
self.boxBuyBtnCoin2:setSprite(GFunc.getIconRes(costItem2.id)) self.boxBuyBtnCoin2:setSprite(GFunc.getIconRes(costItem2.id))
local totalCount = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_BOX_KEY_LV_2) local totalCount = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_BOX_KEY_LV_2)
local totalCountStr = totalCount <= 99 and tostring(totalCount) or "99" local totalCountStr = totalCount <= 99 and tostring(totalCount) or "99"
self.boxBuyBtnTx2:setText(tostring(costItem2.num) .. "/" .. totalCountStr) self.boxBuyBtnTx2:setText(totalCountStr .. "/" .. tostring(costItem2.num))
else else
self.boxBuyBtnCoin2:setSprite(GFunc.getIconRes(cost2.id)) self.boxBuyBtnCoin2:setSprite(GFunc.getIconRes(cost2.id))
self.boxBuyBtnTx2:setText(cost2.num) self.boxBuyBtnTx2:setText(cost2.num)
@ -115,7 +115,7 @@ function BoxSellCell:refreshCost()
self.boxBuyBtnCoin3:setSprite(GFunc.getIconRes(costItem3.id)) self.boxBuyBtnCoin3:setSprite(GFunc.getIconRes(costItem3.id))
local totalCount = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_BOX_KEY_LV_3) local totalCount = DataManager.BagData.ItemData:getItemNumById(GConst.ItemConst.ITEM_ID_BOX_KEY_LV_3)
local totalCountStr = totalCount <= 99 and tostring(totalCount) or "99" local totalCountStr = totalCount <= 99 and tostring(totalCount) or "99"
self.boxBuyBtnTx3:setText(tostring(costItem3.num) .. "/" .. totalCountStr) self.boxBuyBtnTx3:setText(totalCountStr .. "/" .. tostring(costItem3.num))
else else
self.boxBuyBtnCoin3:setSprite(GFunc.getIconRes(cost3.id)) self.boxBuyBtnCoin3:setSprite(GFunc.getIconRes(cost3.id))
self.boxBuyBtnTx3:setText(cost3.num) self.boxBuyBtnTx3:setText(cost3.num)