Major Update - 2.0.0.143
EN: 2.0.0.143 CN: 2.0.0.142 JP: 2.0.0.145 KR: 2.0.0.150
This commit is contained in:
@@ -4,6 +4,7 @@ local AvgManager = {}
|
||||
local objAvgPanel, objAvgBubblePanel
|
||||
local nTransitionType = 0
|
||||
local bInAvg = false
|
||||
local bKeepEndTransition = false
|
||||
local OnEvent_AvgBBEnd = function(_)
|
||||
if objAvgBubblePanel ~= nil then
|
||||
objAvgBubblePanel:_PreExit()
|
||||
@@ -30,8 +31,9 @@ local OnEvent_AvgBBStart = function(_, sAvgId, sGroupId, sLanguage, sVoLan)
|
||||
objAvgBubblePanel:_PreEnter()
|
||||
objAvgBubblePanel:_Enter()
|
||||
end
|
||||
local OnEvent_AvgSTStart = function(_, sAvgId, sLanguage, sVoLan, sGroupId, nStartCMDID, sTransStyle)
|
||||
local OnEvent_AvgSTStart = function(_, sAvgId, sLanguage, sVoLan, sGroupId, nStartCMDID, sTransStyle, bKeepTransitionOnEnd)
|
||||
local nStyle = 11
|
||||
bKeepEndTransition = bKeepTransitionOnEnd == true
|
||||
if type(sTransStyle) == "string" and sTransStyle ~= "" then
|
||||
local sStyle = string.gsub(sTransStyle, "style_", "")
|
||||
local _n = tonumber(sStyle)
|
||||
@@ -98,7 +100,10 @@ local OnEvent_AvgSTEnd = function(_)
|
||||
bInAvg = false
|
||||
end
|
||||
local func_OnEvent_TransAnimInClear = function()
|
||||
EventManager.Hit(EventId.SetTransition)
|
||||
if bKeepEndTransition ~= true then
|
||||
EventManager.Hit(EventId.SetTransition)
|
||||
end
|
||||
bKeepEndTransition = false
|
||||
func_DoEnd()
|
||||
func_AvgSTEnd()
|
||||
end
|
||||
@@ -106,6 +111,7 @@ local OnEvent_AvgSTEnd = function(_)
|
||||
EventManager.Hit(EventId.SetTransition, nTransitionType, func_OnEvent_TransAnimInClear)
|
||||
nTransitionType = 0
|
||||
else
|
||||
bKeepEndTransition = false
|
||||
func_DoEnd()
|
||||
func_AvgSTEnd()
|
||||
end
|
||||
@@ -120,6 +126,7 @@ function AvgManager.ForceCloseAll(_)
|
||||
OnEvent_AvgBBEnd(_)
|
||||
bInAvg = false
|
||||
nTransitionType = 0
|
||||
bKeepEndTransition = false
|
||||
NovaAPI.SetScreenSleepTimeout(false)
|
||||
end
|
||||
local function Uninit(_)
|
||||
|
||||
Reference in New Issue
Block a user