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