战斗内相应安卓返回键
This commit is contained in:
parent
c1fb666388
commit
f2047f1833
@ -9,6 +9,11 @@ local HIDE_ID = {
|
|||||||
[29] = true
|
[29] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- 响应安卓后退事件
|
||||||
|
function BattlePauseUI:onPressBackspace()
|
||||||
|
self:closeUI()
|
||||||
|
end
|
||||||
|
|
||||||
function BattlePauseUI:isFullScreen()
|
function BattlePauseUI:isFullScreen()
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
@ -23,6 +23,18 @@ local MAX_LASTSIBLING_TYPE = {
|
|||||||
[11] = true,
|
[11] = true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- 响应安卓后退事件
|
||||||
|
function BattleUI:onPressBackspace()
|
||||||
|
if self.battleBuffTipsRoot then
|
||||||
|
if self.battleBuffTipsRoot:getTransform().localScale.x > 0 then
|
||||||
|
self:hideBuffTips()
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
ModuleManager.BattleManager:showPauseUI(self.battleController.battleType)
|
||||||
|
end
|
||||||
|
|
||||||
function BattleUI:getPrefabPath()
|
function BattleUI:getPrefabPath()
|
||||||
return "assets/prefabs/ui/battle/battle_ui.prefab"
|
return "assets/prefabs/ui/battle/battle_ui.prefab"
|
||||||
end
|
end
|
||||||
@ -383,6 +395,11 @@ function BattleUI:showBuffTips(buffList, autoClose)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleUI:hideBuffTips()
|
function BattleUI:hideBuffTips()
|
||||||
|
if self.autoCloseBuffSid then
|
||||||
|
self:unscheduleGlobal(self.autoCloseBuffSid)
|
||||||
|
self.autoCloseBuffSid = nil
|
||||||
|
end
|
||||||
|
|
||||||
if not self.battleBuffTipsRoot then
|
if not self.battleBuffTipsRoot then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
@ -6,6 +6,11 @@ local MIN_HEIGHT = 248
|
|||||||
local MAX_HEIGHT = 348
|
local MAX_HEIGHT = 348
|
||||||
local NO_SKILL_HRIGHT = 136
|
local NO_SKILL_HRIGHT = 136
|
||||||
|
|
||||||
|
-- 响应安卓后退事件
|
||||||
|
function BattleBoardSkillTips:onPressBackspace()
|
||||||
|
self:closeUI()
|
||||||
|
end
|
||||||
|
|
||||||
function BattleBoardSkillTips:ctor(params)
|
function BattleBoardSkillTips:ctor(params)
|
||||||
local elementType = params.elementType
|
local elementType = params.elementType
|
||||||
self.params = params
|
self.params = params
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user