# ExtraBoardActivity_View_ExtraBoardActivityBaseWindow_1010.luac
; fn @ExtraBoardActivityBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=28 consts=12 upvals=1 protos=6
;   K[0]='ExtraBoardActivityBaseWindow'
;   K[1]='setmetatable'
;   K[2]='bIgnoreCloseByState'
;   K[3]=false
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='_LogWindowOpen'
;   K[8]='UpdatePerSecond'
;   K[9]='OnCloseView'
;   K[10]='OnDestroy'
;   K[11]='UpdateCommonSortingOrder'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bIgnoreCloseByState')] = K3(false)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('ExtraBoardActivityBaseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0007  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('_LogWindowOpen')] = R1
0015  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('UpdatePerSecond')] = R1
0018  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('OnCloseView')] = R1
0021  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('OnDestroy')] = R1
0024  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityBaseWindow')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K11('UpdateCommonSortingOrder')] = R1
0027  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-39 np=3 va=0 ms=8 code=56 consts=29 upvals=1 protos=1
  ;   K[0]='m_activityType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='SetWindowOpened'
  ;   K[8]='bIgnoreCloseByState'
  ;   K[9]='AddHandlerAndRecordMap'
  ;   K[10]='event'
  ;   K[11]='ExtraBoardActivityEventType'
  ;   K[12]='StateChanged'
  ;   K[13]='obj'
  ;   K[14]='method'
  ;   K[15]='Close'
  ;   K[16]='_LogWindowOpen'
  ;   K[17]='m_countDownText'
  ;   K[18]=nil
  ;   K[19]='m_finishTime'
  ;   K[20]='GetNextStateTime'
  ;   K[21]='UpdatePerSecond'
  ;   K[22]='UpdateCommonSortingOrder'
  ;   K[23]='m_commonEffectRoot'
  ;   K[24]='UIUtil'
  ;   K[25]='SetActive'
  ;   K[26]='gameObject'
  ;   K[27]='DelayExecuteFuncInView'
  ;   K[28]=0.1
  ;   upvals: _ENV
  ;   locals: self(0-56), activityType(0-56), bUserClick(0-56)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('ActivityManager')]
  0003  SELF      R4 = R3[K4('GetModel')] (self)
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R3
  0007  GETTABLE  R3 = R0[K1('m_model')]
  0008  SELF      R4 = R3[K6('GetActivityDefinition')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  SETTABLE  R0[K5('m_activityDefinition')] = R3
  0011  GETTABLE  R3 = R0[K1('m_model')]
  0012  SELF      R4 = R3[K7('SetWindowOpened')] (self)
  0013  CALL      R3 = call(R3, 0 args, 1 rets)
  0014  GETTABLE  R3 = R0[K8('bIgnoreCloseByState')]
  0015  TEST      if not R3 then   -> -131054
  0016  JMP       (jump)   -> 27
  0017  GETTABUP  R3 = _ENV[K9('AddHandlerAndRecordMap')]
  0018  GETTABLE  R4 = R0[K1('m_model')]
  0019  GETTABLE  R4 = R4[K10('event')]
  0020  GETTABUP  R5 = _ENV[K11('ExtraBoardActivityEventType')]
  0021  GETTABLE  R5 = R5[K12('StateChanged')]
  0022  NEWTABLE  R6 = {} (0 items)
  0023  SETTABLE  R6[K13('obj')] = R0
  0024  GETTABLE  R7 = R0[K15('Close')]
  0025  SETTABLE  R6[K14('method')] = R7
  0026  CALL      R3 = call(R3, 0 args, 3 rets)
  0027  SELF      R4 = R0[K16('_LogWindowOpen')] (self)
  0028  MOVE      R5 = R0
  0029  CALL      R3 = call(R3, 0 args, 2 rets)
  0030  GETTABLE  R3 = R0[K17('m_countDownText')]
  0031  EQ        if R1 eq K18(nil)   -> -129229
  0032  JMP       (jump)   -> 37
  0033  GETTABLE  R3 = R0[K1('m_model')]
  0034  SELF      R4 = R3[K20('GetNextStateTime')] (self)
  0035  CALL      R3 = call(R3, 1 args, 1 rets)
  0036  SETTABLE  R0[K19('m_finishTime')] = R3
  0037  SELF      R4 = R0[K21('UpdatePerSecond')] (self)
  0038  CALL      R3 = call(R3, 0 args, 1 rets)
  0039  SELF      R4 = R0[K22('UpdateCommonSortingOrder')] (self)
  0040  CALL      R3 = call(R3, 0 args, 1 rets)
  0041  GETTABLE  R3 = R0[K23('m_commonEffectRoot')]
  0042  EQ        if R1 eq K18(nil)   -> -129218
  0043  JMP       (jump)   -> 55
  0044  GETTABUP  R3 = _ENV[K24('UIUtil')]
  0045  GETTABLE  R3 = R3[K25('SetActive')]
  0046  GETTABLE  R4 = R0[K23('m_commonEffectRoot')]
  0047  GETTABLE  R4 = R4[K26('gameObject')]
  0048  LOADBOOL  R5 = false
  0049  CALL      R3 = call(R3, 0 args, 2 rets)
  0050  GETTABUP  R3 = _ENV[K27('DelayExecuteFuncInView')]
  0051  CLOSURE   R4 = closure proto0
  0052  LOADK     R5 = K28 0.1
  0053  MOVE      R6 = R0
  0054  CALL      R3 = call(R3, 0 args, 3 rets)
  0055  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 35-37 np=0 va=0 ms=3 code=7 consts=4 upvals=2 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='SetActive'
    ;   K[2]='m_commonEffectRoot'
    ;   K[3]='gameObject'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('SetActive')]
    0002  GETTABUP  R1 = self[K2('m_commonEffectRoot')]
    0003  GETTABLE  R1 = R1[K3('gameObject')]
    0004  LOADBOOL  R2 = true
    0005  CALL      R0 = call(R0, 0 args, 2 rets)
    0006  RETURN    return R0..R-1
; ---------- proto1 [_LogWindowOpen] ----------
  ; fn ?  line 41-43 np=2 va=0 ms=7 code=16 consts=7 upvals=1 protos=0
  ;   K[0]='LogWindowAction'
  ;   K[1]='EBIType'
  ;   K[2]='UIActionType'
  ;   K[3]='Open'
  ;   K[4]='EBIReferType'
  ;   K[5]='UserClick'
  ;   K[6]='AutoPopup'
  ;   upvals: _ENV
  ;   locals: self(0-16), bUserClick(0-16)
  0000  SELF      R3 = R0[K0('LogWindowAction')] (self)
  0001  GETTABUP  R4 = _ENV[K1('EBIType')]
  0002  GETTABLE  R4 = R4[K2('UIActionType')]
  0003  GETTABLE  R4 = R4[K3('Open')]
  0004  NEWTABLE  R5 = {} (1 items)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 11
  0007  GETTABUP  R6 = _ENV[K4('EBIReferType')]
  0008  GETTABLE  R6 = R6[K5('UserClick')]
  0009  TEST      if not R6 then   -> -131060
  0010  JMP       (jump)   -> 13
  0011  GETTABUP  R6 = _ENV[K4('EBIReferType')]
  0012  GETTABLE  R6 = R6[K6('AutoPopup')]
  0013  SETLIST   setlist R5[B=1,C=1]
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  RETURN    return R0..R-1
; ---------- proto2 [UpdatePerSecond] ----------
  ; fn ?  line 45-49 np=1 va=0 ms=8 code=25 consts=13 upvals=1 protos=0
  ;   K[0]='m_countDownText'
  ;   K[1]='m_finishTime'
  ;   K[2]=nil
  ;   K[3]='text'
  ;   K[4]='TimeUtil'
  ;   K[5]='ParseTimeDescription'
  ;   K[6]='math'
  ;   K[7]='max'
  ;   K[8]=0
  ;   K[9]='GM'
  ;   K[10]='GameModel'
  ;   K[11]='GetServerTime'
  ;   K[12]=2
  ;   upvals: _ENV
  ;   locals: self(0-25)
  0000  GETTABLE  R1 = R0[K0('m_countDownText')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 24
  0003  GETTABLE  R1 = R0[K1('m_finishTime')]
  0004  EQ        if R1 eq K2(nil)   -> -130296
  0005  JMP       (jump)   -> 24
  0006  GETTABLE  R1 = R0[K0('m_countDownText')]
  0007  GETTABUP  R2 = _ENV[K4('TimeUtil')]
  0008  GETTABLE  R2 = R2[K5('ParseTimeDescription')]
  0009  GETTABUP  R3 = _ENV[K6('math')]
  0010  GETTABLE  R3 = R3[K7('max')]
  0011  LOADK     R4 = K8 0
  0012  GETTABLE  R5 = R0[K1('m_finishTime')]
  0013  GETTABUP  R6 = _ENV[K9('GM')]
  0014  GETTABLE  R6 = R6[K10('GameModel')]
  0015  SELF      R7 = R6[K11('GetServerTime')] (self)
  0016  CALL      R6 = call(R6, 1 args, 1 rets)
  0017  SUB       R5 = R6 sub R5
  0018  CALL      R3 = call(R3, 1 args, 2 rets)
  0019  LOADK     R4 = K12 2
  0020  LOADBOOL  R5 = false
  0021  LOADBOOL  R6 = false
  0022  CALL      R2 = call(R2, 1 args, 4 rets)
  0023  SETTABLE  R1[K3('text')] = R2
  0024  RETURN    return R0..R-1
; ---------- proto3 [OnCloseView] ----------
  ; fn ?  line 51-58 np=2 va=0 ms=5 code=20 consts=11 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='LogWindowAction'
  ;   K[3]='EBIType'
  ;   K[4]='UIActionType'
  ;   K[5]='Close'
  ;   K[6]='m_commonEffectRoot'
  ;   K[7]=nil
  ;   K[8]='UIUtil'
  ;   K[9]='SetActive'
  ;   K[10]='gameObject'
  ;   upvals: _ENV
  ;   locals: self(0-20), bWithoutAnimation(0-20)
  0000  GETTABUP  R2 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R2 = R2[K1('OnCloseView')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  SELF      R3 = R0[K2('LogWindowAction')] (self)
  0006  GETTABUP  R4 = _ENV[K3('EBIType')]
  0007  GETTABLE  R4 = R4[K4('UIActionType')]
  0008  GETTABLE  R4 = R4[K5('Close')]
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  GETTABLE  R2 = R0[K6('m_commonEffectRoot')]
  0011  EQ        if R1 eq K7(nil)   -> -129772
  0012  JMP       (jump)   -> 19
  0013  GETTABUP  R2 = _ENV[K8('UIUtil')]
  0014  GETTABLE  R2 = R2[K9('SetActive')]
  0015  GETTABLE  R3 = R0[K6('m_commonEffectRoot')]
  0016  GETTABLE  R3 = R3[K10('gameObject')]
  0017  LOADBOOL  R4 = false
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  RETURN    return R0..R-1
; ---------- proto4 [OnDestroy] ----------
  ; fn ?  line 60-65 np=1 va=0 ms=4 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
; ---------- proto5 [UpdateCommonSortingOrder] ----------
  ; fn ?  line 67-76 np=1 va=0 ms=9 code=27 consts=10 upvals=1 protos=0
  ;   K[0]='GetSortingOrder'
  ;   K[1]='m_commonEffectRoot'
  ;   K[2]=nil
  ;   K[3]='GetComponentsInChildren'
  ;   K[4]='typeof'
  ;   K[5]='Renderer'
  ;   K[6]=0
  ;   K[7]='Length'
  ;   K[8]=1
  ;   K[9]='sortingOrder'
  ;   upvals: _ENV
  ;   locals: self(0-27), baseSortingOrder(2-27), arrRenderer(12-26), (for index)(16-26), (for limit)(16-26), (for step)(16-26), i(17-25)
  0000  SELF      R2 = R0[K0('GetSortingOrder')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABLE  R2 = R0[K1('m_commonEffectRoot')]
  0003  EQ        if R1 eq K2(nil)   -> -129785
  0004  JMP       (jump)   -> 26
  0005  GETTABLE  R2 = R0[K1('m_commonEffectRoot')]
  0006  SELF      R3 = R2[K3('GetComponentsInChildren')] (self)
  0007  GETTABUP  R4 = _ENV[K4('typeof')]
  0008  GETTABUP  R5 = _ENV[K5('Renderer')]
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  LOADBOOL  R5 = true
  0011  CALL      R2 = call(R2, 1 args, 3 rets)
  0012  LOADK     R3 = K6 0
  0013  GETTABLE  R4 = R2[K7('Length')]
  0014  SUB       R4 = K8(1) sub R4
  0015  LOADK     R5 = K8 1
  0016  FORPREP   forprep R3(sBx=8)   -> 25
  0017  GETTABLE  R7 = R2[R6]
  0018  GETTABLE  R8 = R2[R6]
  0019  GETTABLE  R8 = R8[K9('sortingOrder')]
  0020  TEST      if not R8 then   -> -131049
  0021  JMP       (jump)   -> 23
  0022  LOADK     R8 = K6 0
  0023  ADD       R8 = R1 add R8
  0024  SETTABLE  R7[K9('sortingOrder')] = R8
  0025  FORLOOP   forloop R3(sBx=-9)   -> 17
  0026  RETURN    return R0..R-1
