# PassActivity_Common_View_Window_PassActivityBaseWindow_832.luac
; fn @PassActivityBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=33 consts=15 upvals=1 protos=5
;   K[0]='PassActivityBaseWindow'
;   K[1]='setmetatable'
;   K[2]='bNeedSetWindowOpened'
;   K[3]=true
;   K[4]='bWithoutCloseAnim'
;   K[5]='disableEffectWhenCloseView'
;   K[6]='disableSpriteRendererWhenCloseView'
;   K[7]='BaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='OnCloseBtnClick'
;   K[11]='OnDestroy'
;   K[12]='OnCloseView'
;   K[13]='PassActivityAnimationComponent'
;   K[14]='Start'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bNeedSetWindowOpened')] = K3(true)
0003  SETTABLE  R1[K4('bWithoutCloseAnim')] = K3(true)
0004  SETTABLE  R1[K5('disableEffectWhenCloseView')] = K3(true)
0005  SETTABLE  R1[K6('disableSpriteRendererWhenCloseView')] = K3(true)
0006  GETTABUP  R2 = _ENV[K7('BaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('PassActivityBaseWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('PassActivityBaseWindow')]
0010  GETTABUP  R1 = _ENV[K0('PassActivityBaseWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('PassActivityBaseWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('PassActivityBaseWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('OnCloseBtnClick')] = R1
0018  GETTABUP  R0 = _ENV[K0('PassActivityBaseWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K11('OnDestroy')] = R1
0021  GETTABUP  R0 = _ENV[K0('PassActivityBaseWindow')]
0022  CLOSURE   R1 = closure proto3
0023  SETTABLE  R0[K12('OnCloseView')] = R1
0024  NEWTABLE  R0 = {} (0 items)
0025  SETTABUP  _ENV[K13('PassActivityAnimationComponent')] = R0
0026  GETTABUP  R0 = _ENV[K13('PassActivityAnimationComponent')]
0027  GETTABUP  R1 = _ENV[K13('PassActivityAnimationComponent')]
0028  SETTABLE  R0[K8('__index')] = R1
0029  GETTABUP  R0 = _ENV[K13('PassActivityAnimationComponent')]
0030  CLOSURE   R1 = closure proto4
0031  SETTABLE  R0[K14('Start')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 13-45 np=4 va=0 ms=9 code=84 consts=42 upvals=1 protos=0
  ;   K[0]='m_activityType'
  ;   K[1]='m_activityDefinition'
  ;   K[2]='PassActivityDefinition'
  ;   K[3]='m_model'
  ;   K[4]='GM'
  ;   K[5]='ActivityManager'
  ;   K[6]='GetModel'
  ;   K[7]='bNeedSetWindowOpened'
  ;   K[8]='SetWindowOpened'
  ;   K[9]='SceneManager'
  ;   K[10]='GetGameMode'
  ;   K[11]='EGameMode'
  ;   K[12]='Main'
  ;   K[13]='ChangeGameMode'
  ;   K[14]='AddHandlerAndRecordMap'
  ;   K[15]='event'
  ;   K[16]='PassActivityEventType'
  ;   K[17]='StateChanged'
  ;   K[18]='obj'
  ;   K[19]='method'
  ;   K[20]='Close'
  ;   K[21]='LogWindowAction'
  ;   K[22]='EBIType'
  ;   K[23]='UIActionType'
  ;   K[24]='Open'
  ;   K[25]='EBIReferType'
  ;   K[26]='UserClick'
  ;   K[27]='m_effectSortingGroup'
  ;   K[28]=nil
  ;   K[29]='sortingOrder'
  ;   K[30]='m_canvas'
  ;   K[31]=1
  ;   K[32]='m_frontCanvas'
  ;   K[33]=2
  ;   K[34]='windowMaskAlpha'
  ;   K[35]='UIManager'
  ;   K[36]='GetOpenedViewCountByType'
  ;   K[37]='EViewType'
  ;   K[38]='Window'
  ;   K[39]='EWindowMaskAlpha'
  ;   K[40]='Dark'
  ;   K[41]='Default'
  ;   upvals: _ENV
  ;   locals: self(0-84), activityType(0-84), shouldJumpToMap(0-84), ext(0-84)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R4 = _ENV[K2('PassActivityDefinition')]
  0002  GETTABLE  R4 = R4[R1]
  0003  SETTABLE  R0[K1('m_activityDefinition')] = R4
  0004  GETTABUP  R4 = _ENV[K4('GM')]
  0005  GETTABLE  R4 = R4[K5('ActivityManager')]
  0006  SELF      R5 = R4[K6('GetModel')] (self)
  0007  MOVE      R6 = R0
  0008  CALL      R4 = call(R4, 1 args, 2 rets)
  0009  SETTABLE  R0[K3('m_model')] = R4
  0010  GETTABLE  R4 = R0[K7('bNeedSetWindowOpened')]
  0011  TEST      if not R4 then   -> -131059
  0012  JMP       (jump)   -> 16
  0013  GETTABLE  R4 = R0[K3('m_model')]
  0014  SELF      R5 = R4[K8('SetWindowOpened')] (self)
  0015  CALL      R4 = call(R4, 0 args, 1 rets)
  0016  TEST      if not R2 then   -> -131054
  0017  JMP       (jump)   -> 32
  0018  GETTABUP  R4 = _ENV[K4('GM')]
  0019  GETTABLE  R4 = R4[K9('SceneManager')]
  0020  SELF      R5 = R4[K10('GetGameMode')] (self)
  0021  CALL      R4 = call(R4, 1 args, 1 rets)
  0022  GETTABUP  R5 = _ENV[K11('EGameMode')]
  0023  GETTABLE  R5 = R5[K12('Main')]
  0024  EQ        if R1 eq R5   -> -128993
  0025  JMP       (jump)   -> 32
  0026  GETTABUP  R4 = _ENV[K4('GM')]
  0027  GETTABLE  R4 = R4[K9('SceneManager')]
  0028  SELF      R5 = R4[K13('ChangeGameMode')] (self)
  0029  GETTABUP  R6 = _ENV[K11('EGameMode')]
  0030  GETTABLE  R6 = R6[K12('Main')]
  0031  CALL      R4 = call(R4, 0 args, 2 rets)
  0032  GETTABUP  R4 = _ENV[K14('AddHandlerAndRecordMap')]
  0033  GETTABLE  R5 = R0[K3('m_model')]
  0034  GETTABLE  R5 = R5[K15('event')]
  0035  GETTABUP  R6 = _ENV[K16('PassActivityEventType')]
  0036  GETTABLE  R6 = R6[K17('StateChanged')]
  0037  NEWTABLE  R7 = {} (0 items)
  0038  SETTABLE  R7[K18('obj')] = R0
  0039  GETTABLE  R8 = R0[K20('Close')]
  0040  SETTABLE  R7[K19('method')] = R8
  0041  CALL      R4 = call(R4, 0 args, 3 rets)
  0042  SELF      R5 = R0[K21('LogWindowAction')] (self)
  0043  GETTABUP  R6 = _ENV[K22('EBIType')]
  0044  GETTABLE  R6 = R6[K23('UIActionType')]
  0045  GETTABLE  R6 = R6[K24('Open')]
  0046  NEWTABLE  R7 = {} (1 items)
  0047  GETTABUP  R8 = _ENV[K25('EBIReferType')]
  0048  GETTABLE  R8 = R8[K26('UserClick')]
  0049  SETLIST   setlist R7[B=1,C=1]
  0050  MOVE      R8 = R0
  0051  CALL      R4 = call(R4, 0 args, 4 rets)
  0052  GETTABLE  R4 = R0[K27('m_effectSortingGroup')]
  0053  EQ        if R1 eq K28(nil)   -> -128685
  0054  JMP       (jump)   -> 60
  0055  GETTABLE  R4 = R0[K27('m_effectSortingGroup')]
  0056  GETTABLE  R5 = R0[K30('m_canvas')]
  0057  GETTABLE  R5 = R5[K29('sortingOrder')]
  0058  ADD       R5 = K31(1) add R5
  0059  SETTABLE  R4[K29('sortingOrder')] = R5
  0060  GETTABLE  R4 = R0[K32('m_frontCanvas')]
  0061  EQ        if R1 eq K28(nil)   -> -128677
  0062  JMP       (jump)   -> 68
  0063  GETTABLE  R4 = R0[K32('m_frontCanvas')]
  0064  GETTABLE  R5 = R0[K30('m_canvas')]
  0065  GETTABLE  R5 = R5[K29('sortingOrder')]
  0066  ADD       R5 = K33(2) add R5
  0067  SETTABLE  R4[K29('sortingOrder')] = R5
  0068  GETTABUP  R4 = _ENV[K4('GM')]
  0069  GETTABLE  R4 = R4[K35('UIManager')]
  0070  SELF      R5 = R4[K36('GetOpenedViewCountByType')] (self)
  0071  GETTABUP  R6 = _ENV[K37('EViewType')]
  0072  GETTABLE  R6 = R6[K38('Window')]
  0073  CALL      R4 = call(R4, 1 args, 2 rets)
  0074  LT        if R0 lt R4   -> 15952
  0075  JMP       (jump)   -> 80
  0076  GETTABUP  R4 = _ENV[K39('EWindowMaskAlpha')]
  0077  GETTABLE  R4 = R4[K40('Dark')]
  0078  TEST      if not R4 then   -> -130991
  0079  JMP       (jump)   -> 82
  0080  GETTABUP  R4 = _ENV[K39('EWindowMaskAlpha')]
  0081  GETTABLE  R4 = R4[K41('Default')]
  0082  SETTABLE  R0[K34('windowMaskAlpha')] = R4
  0083  RETURN    return R0..R-1
; ---------- proto1 [OnCloseBtnClick] ----------
  ; fn ?  line 47-49 np=1 va=0 ms=4 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='Close'
  ;   K[1]='bWithoutCloseAnim'
  ;   locals: self(0-4)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  GETTABLE  R3 = R0[K1('bWithoutCloseAnim')]
  0002  CALL      R1 = call(R1, 0 args, 2 rets)
  0003  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 51-56 np=1 va=0 ms=4 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='RemoveAllHandlers'
  ;   K[3]='event'
  ;   K[4]='EventDispatcher'
  ;   K[5]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABUP  R1 = _ENV[K2('RemoveAllHandlers')]
  0004  GETTABLE  R2 = R0[K0('m_model')]
  0005  GETTABLE  R2 = R2[K3('event')]
  0006  MOVE      R3 = R0
  0007  CALL      R1 = call(R1, 0 args, 2 rets)
  0008  GETTABUP  R1 = _ENV[K4('EventDispatcher')]
  0009  GETTABLE  R1 = R1[K5('RemoveTarget')]
  0010  MOVE      R2 = R0
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto3 [OnCloseView] ----------
  ; fn ?  line 58-66 np=2 va=0 ms=5 code=22 consts=8 upvals=1 protos=0
  ;   K[0]='m_effectSortingGroup'
  ;   K[1]=nil
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='gameObject'
  ;   K[5]='m_flashGo'
  ;   K[6]='BaseWindow'
  ;   K[7]='OnCloseView'
  ;   upvals: _ENV
  ;   locals: self(0-22), bWithoutAnimation(0-22)
  0000  GETTABLE  R2 = R0[K0('m_effectSortingGroup')]
  0001  EQ        if R1 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 9
  0003  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0004  GETTABLE  R2 = R2[K3('SetActive')]
  0005  GETTABLE  R3 = R0[K0('m_effectSortingGroup')]
  0006  GETTABLE  R3 = R3[K4('gameObject')]
  0007  LOADBOOL  R4 = false
  0008  CALL      R2 = call(R2, 0 args, 2 rets)
  0009  GETTABLE  R2 = R0[K5('m_flashGo')]
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 16
  0012  GETTABLE  R2 = R0[K5('m_flashGo')]
  0013  SELF      R3 = R2[K3('SetActive')] (self)
  0014  LOADBOOL  R4 = false
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  GETTABUP  R2 = _ENV[K6('BaseWindow')]
  0017  GETTABLE  R2 = R2[K7('OnCloseView')]
  0018  MOVE      R3 = R0
  0019  MOVE      R4 = R0
  0020  CALL      R2 = call(R2, 0 args, 2 rets)
  0021  RETURN    return R0..R-1
; ---------- proto4 [Start] ----------
  ; fn ?  line 78-88 np=1 va=0 ms=6 code=40 consts=17 upvals=1 protos=0
  ;   K[0]='m_frontCanvas'
  ;   K[1]=nil
  ;   K[2]='IsNull'
  ;   K[3]='Log'
  ;   K[4]='Error'
  ;   K[5]='[PassActivityAnimationComponent] 组件缺少m_frontCanvas引用, 请检查!'
  ;   K[6]='m_frontOrderNum'
  ;   K[7]='tonumber'
  ;   K[8]=4
  ;   K[9]='m_canvas'
  ;   K[10]='gameObject'
  ;   K[11]='GetComponentInParent'
  ;   K[12]='typeof'
  ;   K[13]='CS'
  ;   K[14]='UnityEngine'
  ;   K[15]='Canvas'
  ;   K[16]='sortingOrder'
  ;   upvals: _ENV
  ;   locals: self(0-40), orderDelta(22-40)
  0000  GETTABLE  R1 = R0[K0('m_frontCanvas')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_frontCanvas')]
  0004  SELF      R2 = R1[K2('IsNull')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 13
  0008  GETTABUP  R1 = _ENV[K3('Log')]
  0009  GETTABLE  R1 = R1[K4('Error')]
  0010  LOADK     R2 = K5 '[PassActivityAnimationComponent] 组件缺少m_frontCanvas引用, 请检查!'
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
  0013  GETTABLE  R1 = R0[K6('m_frontOrderNum')]
  0014  TEST      if not R1 then   -> -131056
  0015  JMP       (jump)   -> 21
  0016  GETTABUP  R1 = _ENV[K7('tonumber')]
  0017  GETTABLE  R2 = R0[K6('m_frontOrderNum')]
  0018  CALL      R1 = call(R1, 1 args, 1 rets)
  0019  TEST      if not R1 then   -> -131050
  0020  JMP       (jump)   -> 22
  0021  LOADK     R1 = K8 4
  0022  GETTABLE  R2 = R0[K10('gameObject')]
  0023  SELF      R3 = R2[K11('GetComponentInParent')] (self)
  0024  GETTABUP  R4 = _ENV[K12('typeof')]
  0025  GETTABUP  R5 = _ENV[K13('CS')]
  0026  GETTABLE  R5 = R5[K14('UnityEngine')]
  0027  GETTABLE  R5 = R5[K15('Canvas')]
  0028  CALL      R4 = call(R4, -1 args, 1 rets)
  0029  CALL      R2 = call(R2, 1 args, -1 rets)
  0030  SETTABLE  R0[K9('m_canvas')] = R2
  0031  GETTABLE  R2 = R0[K9('m_canvas')]
  0032  EQ        if R1 eq K1(nil)   -> -129757
  0033  JMP       (jump)   -> 39
  0034  GETTABLE  R2 = R0[K0('m_frontCanvas')]
  0035  GETTABLE  R3 = R0[K9('m_canvas')]
  0036  GETTABLE  R3 = R3[K16('sortingOrder')]
  0037  ADD       R3 = R1 add R3
  0038  SETTABLE  R2[K16('sortingOrder')] = R3
  0039  RETURN    return R0..R-1
