fix bug
This commit is contained in:
parent
e3e87eefe0
commit
e1e39a020c
@ -917,6 +917,7 @@ function BattleBaseController:battleStart()
|
|||||||
self.atkTeam:prepare()
|
self.atkTeam:prepare()
|
||||||
self.defTeam:prepare()
|
self.defTeam:prepare()
|
||||||
self.isBattleStart = true
|
self.isBattleStart = true
|
||||||
|
self.battleUI:refreshSkill(nil, nil, SIDE_ATK)
|
||||||
self.tickSid = BattleScheduler:scheduleGlobal(function(dt, originDt)
|
self.tickSid = BattleScheduler:scheduleGlobal(function(dt, originDt)
|
||||||
self:_tick(dt, originDt)
|
self:_tick(dt, originDt)
|
||||||
end, 0)
|
end, 0)
|
||||||
|
|||||||
@ -31,7 +31,7 @@ function BattleControllerDungeonGold:enterRoundBegin(...)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount - nextWaveRound + 1, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount - nextWaveRound + 1, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
BattleController.enterRoundBegin(self, ...)
|
BattleController.enterRoundBegin(self, ...)
|
||||||
end
|
end
|
||||||
@ -41,7 +41,7 @@ function BattleControllerDungeonGold:initOther()
|
|||||||
self.dungeonGoldMaxRoundCount = self:getChapterConfig()[self.chapterId].wave_limit or 1
|
self.dungeonGoldMaxRoundCount = self:getChapterConfig()[self.chapterId].wave_limit or 1
|
||||||
|
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
self.battleUI:refreshWave(self.dungeonGoldMaxRoundCount, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ function BattleControllerDungeonRune:initOther()
|
|||||||
|
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount
|
local desc = self.dungeonRuneRemainRoundCount
|
||||||
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
|
|
||||||
self.runeMaxLv = runeData:getBattleMaxlv() or 1
|
self.runeMaxLv = runeData:getBattleMaxlv() or 1
|
||||||
@ -177,7 +177,7 @@ function BattleControllerDungeonRune:enterRoundBegin()
|
|||||||
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
|
self.dungeonRuneRemainRoundCount = self.dungeonRuneRemainRoundCount - 1
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount + 1
|
local desc = self.dungeonRuneRemainRoundCount + 1
|
||||||
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
BattleController.enterRoundBegin(self)
|
BattleController.enterRoundBegin(self)
|
||||||
end, function()
|
end, function()
|
||||||
@ -199,7 +199,7 @@ function BattleControllerDungeonRune:enterRoundBegin()
|
|||||||
end
|
end
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount + 1
|
local desc = self.dungeonRuneRemainRoundCount + 1
|
||||||
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
BattleController.enterRoundBegin(self)
|
BattleController.enterRoundBegin(self)
|
||||||
end
|
end
|
||||||
@ -254,7 +254,7 @@ function BattleControllerDungeonRune:refreshWave()
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- local desc = self.dungeonRuneRemainRoundCount + 1
|
-- local desc = self.dungeonRuneRemainRoundCount + 1
|
||||||
-- self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
-- self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleControllerDungeonRune:getRandomGridInfo()
|
function BattleControllerDungeonRune:getRandomGridInfo()
|
||||||
@ -371,7 +371,7 @@ function BattleControllerDungeonRune:tryShowRebirth(callback)
|
|||||||
self.dungeonRuneMaxRoundCount = self.dungeonRuneMaxRoundCount + self.addRoundCount
|
self.dungeonRuneMaxRoundCount = self.dungeonRuneMaxRoundCount + self.addRoundCount
|
||||||
if self.battleUI then
|
if self.battleUI then
|
||||||
local desc = self.dungeonRuneRemainRoundCount + 1
|
local desc = self.dungeonRuneRemainRoundCount + 1
|
||||||
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.COMMON, "common_dec_15")
|
self.battleUI:refreshWave(desc, GConst.ATLAS_PATH.BATTLE, "battle_dec_2")
|
||||||
end
|
end
|
||||||
if callback then
|
if callback then
|
||||||
callback()
|
callback()
|
||||||
|
|||||||
@ -172,7 +172,7 @@ function BattleSkillSelectComp:refreshRogueSkill()
|
|||||||
self.selectSkillCells[i]:refresh(skillId, function(value)
|
self.selectSkillCells[i]:refresh(skillId, function(value)
|
||||||
if i == 4 then
|
if i == 4 then
|
||||||
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.BATTLE_SKILL_DEITY, function()
|
SDKManager:showFullScreenAds(BIReport.ADS_CLICK_TYPE.BATTLE_SKILL_DEITY, function()
|
||||||
ModuleManager.BattleManager:reqSkillRefresh(nil, i)
|
self:onClickSkill(skillId, value, SKILL_ICON_POS[i])
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
self:onClickSkill(skillId, value, SKILL_ICON_POS[i])
|
self:onClickSkill(skillId, value, SKILL_ICON_POS[i])
|
||||||
|
|||||||
@ -491,8 +491,8 @@ function BattleUI:refreshWave(wave, iconAtlas, iconName)
|
|||||||
desc:setText(wave)
|
desc:setText(wave)
|
||||||
GFunc.centerImgAndTx(icon, desc, 10)
|
GFunc.centerImgAndTx(icon, desc, 10)
|
||||||
|
|
||||||
iconAtlas = iconAtlas or GConst.ATLAS_PATH.COMMON
|
iconAtlas = iconAtlas or GConst.ATLAS_PATH.BATTLE
|
||||||
iconName = iconName or "common_dec_3"
|
iconName = iconName or "battle_dec_1"
|
||||||
icon:setSprite(iconAtlas, iconName)
|
icon:setSprite(iconAtlas, iconName)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -172,9 +172,10 @@ function GridCell:showHighLight(show, mainElementType)
|
|||||||
local skillEntity = self:getSkillEntity()
|
local skillEntity = self:getSkillEntity()
|
||||||
local ignoreElementType = skillEntity:getIgnoreElementType()
|
local ignoreElementType = skillEntity:getIgnoreElementType()
|
||||||
local skillBg
|
local skillBg
|
||||||
if show and not mainElementType then
|
-- if show and not mainElementType then
|
||||||
skillBg = GConst.BattleConst.SKILL_ELEMENT_BG_2.universal
|
-- skillBg = GConst.BattleConst.SKILL_ELEMENT_BG_2.universal
|
||||||
elseif ignoreElementType and not mainElementType then
|
-- else
|
||||||
|
if ignoreElementType and not mainElementType then
|
||||||
skillBg = GConst.BattleConst.SKILL_ELEMENT_BG_2.skill
|
skillBg = GConst.BattleConst.SKILL_ELEMENT_BG_2.skill
|
||||||
else
|
else
|
||||||
mainElementType = mainElementType or skillEntity:getPosition()
|
mainElementType = mainElementType or skillEntity:getPosition()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user