# AdventureBoardActivity_View_AdventureBoardActivityMainWindow_1388.luac
; fn @AdventureBoardActivityMainWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='AdventureBoardActivityMainWindow'
;   K[1]='setmetatable'
;   K[2]='ExtraBoardActivityMainWindow'
;   K[3]='__index'
;   K[4]='BeforeOpenCheck'
;   K[5]='Init'
;   K[6]='OnBoardViewLoaded'
;   K[7]='GetBoardContainerTrans'
;   K[8]='OnHelpButtonClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('ExtraBoardActivityMainWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AdventureBoardActivityMainWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityMainWindow')]
0006  GETTABUP  R1 = _ENV[K0('AdventureBoardActivityMainWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityMainWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('BeforeOpenCheck')] = R1
0011  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityMainWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityMainWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnBoardViewLoaded')] = R1
0017  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityMainWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('GetBoardContainerTrans')] = R1
0020  GETTABUP  R0 = _ENV[K0('AdventureBoardActivityMainWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnHelpButtonClick')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 6-15 np=1 va=0 ms=10 code=26 consts=8 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='AdventureBoardDefinition'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='GetState'
  ;   K[6]='ActivityState'
  ;   K[7]='Started'
  ;   upvals: _ENV
  ;   locals: self(0-26), model(1-26), (for generator)(4-23), (for state)(4-23), (for control)(4-23), activityType(5-21), _(5-21)
  0000  LOADNIL   R1..R1 = nil
  0001  GETTABUP  R2 = _ENV[K0('pairs')]
  0002  GETTABUP  R3 = _ENV[K1('AdventureBoardDefinition')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 21
  0005  GETTABUP  R7 = _ENV[K2('GM')]
  0006  GETTABLE  R7 = R7[K3('ActivityManager')]
  0007  SELF      R8 = R7[K4('GetModel')] (self)
  0008  MOVE      R9 = R0
  0009  CALL      R7 = call(R7, 1 args, 2 rets)
  0010  MOVE      R1 = R0
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 21
  0013  SELF      R8 = R1[K5('GetState')] (self)
  0014  CALL      R7 = call(R7, 1 args, 1 rets)
  0015  GETTABUP  R8 = _ENV[K6('ActivityState')]
  0016  GETTABLE  R8 = R8[K7('Started')]
  0017  EQ        if R0 eq R8   -> -127461
  0018  JMP       (jump)   -> 21
  0019  LOADBOOL  R7 = true
  0020  RETURN    return R7..R6
  0021  TFORCALL  tforcall R2
  0022  TFORLOOP  tforloop R4(sBx=-18)   -> 5
  0023  LOADBOOL  R2 = false
  0024  RETURN    return R2..R1
  0025  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 17-20 np=1 va=1 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_boardBgImg'
  ;   K[3]='gameObject'
  ;   K[4]='ExtraBoardActivityMainWindow'
  ;   K[5]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_boardBgImg')]
  0003  GETTABLE  R2 = R2[K3('gameObject')]
  0004  LOADBOOL  R3 = false
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  GETTABUP  R1 = _ENV[K4('ExtraBoardActivityMainWindow')]
  0007  GETTABLE  R1 = R1[K5('Init')]
  0008  MOVE      R2 = R0
  0009  VARARG    R3 = vararg(0)
  0010  CALL      R1 = call(R1, 0 args, -1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto2 [OnBoardViewLoaded] ----------
  ; fn ?  line 22-39 np=2 va=0 ms=9 code=40 consts=21 upvals=1 protos=1
  ;   K[0]='ExtraBoardActivityMainWindow'
  ;   K[1]='OnBoardViewLoaded'
  ;   K[2]='m_boardScrollComponent'
  ;   K[3]='Init'
  ;   K[4]='m_boardRowImage'
  ;   K[5]='m_boardContainer'
  ;   K[6]='m_activityType'
  ;   K[7]='TryScroll'
  ;   K[8]='UIUtil'
  ;   K[9]='SetActive'
  ;   K[10]='m_boardBgImg'
  ;   K[11]='gameObject'
  ;   K[12]='GetBoardRealUISize'
  ;   K[13]='SetSizeDelta'
  ;   K[14]='transform'
  ;   K[15]=23
  ;   K[16]=24
  ;   K[17]='EventDispatcher'
  ;   K[18]='AddListener'
  ;   K[19]='EEventType'
  ;   K[20]='FogUnlock'
  ;   upvals: _ENV
  ;   locals: self(0-40), boardView(0-40), width(25-40), height(25-40)
  0000  GETTABUP  R2 = _ENV[K0('ExtraBoardActivityMainWindow')]
  0001  GETTABLE  R2 = R2[K1('OnBoardViewLoaded')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABLE  R2 = R0[K2('m_boardScrollComponent')]
  0006  SELF      R3 = R2[K3('Init')] (self)
  0007  MOVE      R4 = R0
  0008  MOVE      R5 = R0
  0009  GETTABLE  R6 = R0[K4('m_boardRowImage')]
  0010  GETTABLE  R7 = R0[K5('m_boardContainer')]
  0011  GETTABLE  R8 = R0[K6('m_activityType')]
  0012  CALL      R2 = call(R2, 0 args, 6 rets)
  0013  GETTABLE  R2 = R0[K2('m_boardScrollComponent')]
  0014  SELF      R3 = R2[K7('TryScroll')] (self)
  0015  CALL      R2 = call(R2, 0 args, 1 rets)
  0016  GETTABUP  R2 = _ENV[K8('UIUtil')]
  0017  GETTABLE  R2 = R2[K9('SetActive')]
  0018  GETTABLE  R3 = R0[K10('m_boardBgImg')]
  0019  GETTABLE  R3 = R3[K11('gameObject')]
  0020  LOADBOOL  R4 = true
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  GETTABLE  R2 = R0[K2('m_boardScrollComponent')]
  0023  SELF      R3 = R2[K12('GetBoardRealUISize')] (self)
  0024  CALL      R2 = call(R2, 2 args, 1 rets)
  0025  GETTABUP  R4 = _ENV[K8('UIUtil')]
  0026  GETTABLE  R4 = R4[K13('SetSizeDelta')]
  0027  GETTABLE  R5 = R0[K10('m_boardBgImg')]
  0028  GETTABLE  R5 = R5[K14('transform')]
  0029  ADD       R6 = K15(23) add R2
  0030  ADD       R7 = K16(24) add R3
  0031  CALL      R4 = call(R4, 0 args, 3 rets)
  0032  GETTABUP  R4 = _ENV[K17('EventDispatcher')]
  0033  GETTABLE  R4 = R4[K18('AddListener')]
  0034  GETTABUP  R5 = _ENV[K19('EEventType')]
  0035  GETTABLE  R5 = R5[K20('FogUnlock')]
  0036  MOVE      R6 = R0
  0037  CLOSURE   R7 = closure proto0
  0038  CALL      R4 = call(R4, 0 args, 3 rets)
  0039  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 32-38 np=0 va=0 ms=4 code=8 consts=3 upvals=2 protos=1
    ;   K[0]='DelayExecuteFuncInView'
    ;   K[1]='BaseUIBoardView'
    ;   K[2]='GetUnlockFogDelayTime'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('DelayExecuteFuncInView')]
    0001  CLOSURE   R1 = closure proto0
    0002  GETTABUP  R2 = _ENV[K1('BaseUIBoardView')]
    0003  GETTABLE  R2 = R2[K2('GetUnlockFogDelayTime')]
    0004  CALL      R2 = call(R2, 1 args, 0 rets)
    0005  GETUPVAL  R3 = _ENV
    0006  CALL      R0 = call(R0, 0 args, 3 rets)
    0007  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 33-37 np=0 va=0 ms=2 code=10 consts=4 upvals=2 protos=0
      ;   K[0]='UIUtil'
      ;   K[1]='IsEmptyComponent'
      ;   K[2]='m_boardScrollComponent'
      ;   K[3]='TryScroll'
      ;   upvals: _ENV, self
      0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
      0001  GETTABLE  R0 = R0[K1('IsEmptyComponent')]
      0002  GETTABUP  R1 = self[K2('m_boardScrollComponent')]
      0003  CALL      R0 = call(R0, 1 args, 1 rets)
      0004  TEST      if not R0 then   -> -131065
      0005  JMP       (jump)   -> 9
      0006  GETTABUP  R0 = self[K2('m_boardScrollComponent')]
      0007  SELF      R1 = R0[K3('TryScroll')] (self)
      0008  CALL      R0 = call(R0, 0 args, 1 rets)
      0009  RETURN    return R0..R-1
; ---------- proto3 [GetBoardContainerTrans] ----------
  ; fn ?  line 41-43 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_boardRootRect'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_boardRootRect')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto4 [OnHelpButtonClick] ----------
  ; fn ?  line 45-48 np=1 va=0 ms=6 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='AdventureBoardActivityHelpWindow'
  ;   K[5]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('AdventureBoardActivityHelpWindow')]
  0005  GETTABLE  R4 = R0[K5('m_activityType')]
  0006  LOADBOOL  R5 = true
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  RETURN    return R0..R-1
