# ExtraBoardActivity_View_ExtraBoardActivityReadyWindow_1020.luac
; fn @ExtraBoardActivityReadyWindow.lua  line 0-0 np=0 va=1 ms=3 code=19 consts=9 upvals=1 protos=3
;   K[0]='ExtraBoardActivityReadyWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='ExtraBoardActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnCloseBtnClick'
;   K[8]='OnButtonClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('ExtraBoardActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('ExtraBoardActivityReadyWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityReadyWindow')]
0007  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityReadyWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityReadyWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityReadyWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnCloseBtnClick')] = R1
0015  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityReadyWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnButtonClick')] = R1
0018  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-10 np=3 va=0 ms=7 code=7 consts=2 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-7), activityType(0-7), bUserClick(0-7)
  0000  GETTABUP  R3 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  RETURN    return R0..R-1
; ---------- proto1 [OnCloseBtnClick] ----------
  ; fn ?  line 12-19 np=1 va=0 ms=5 code=22 consts=13 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='OnCloseBtnClick'
  ;   K[2]='GM'
  ;   K[3]='TutorialModel'
  ;   K[4]='IsTutorialFinished'
  ;   K[5]='ETutorialId'
  ;   K[6]='ExtraBoardStart'
  ;   K[7]='UIManager'
  ;   K[8]='OpenView'
  ;   K[9]='m_model'
  ;   K[10]='m_activityDefinition'
  ;   K[11]='MainWindowPrefabName'
  ;   K[12]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  0000  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseBtnClick')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('TutorialModel')]
  0006  SELF      R2 = R1[K4('IsTutorialFinished')] (self)
  0007  GETTABUP  R3 = _ENV[K5('ETutorialId')]
  0008  GETTABLE  R3 = R3[K6('ExtraBoardStart')]
  0009  CALL      R1 = call(R1, 1 args, 2 rets)
  0010  TEST      if not R1 then   -> -131060
  0011  JMP       (jump)   -> 21
  0012  GETTABUP  R1 = _ENV[K2('GM')]
  0013  GETTABLE  R1 = R1[K7('UIManager')]
  0014  SELF      R2 = R1[K8('OpenView')] (self)
  0015  GETTABLE  R3 = R0[K9('m_model')]
  0016  GETTABLE  R3 = R3[K10('m_activityDefinition')]
  0017  GETTABLE  R3 = R3[K11('MainWindowPrefabName')]
  0018  GETTABLE  R4 = R0[K9('m_model')]
  0019  GETTABLE  R4 = R4[K12('m_type')]
  0020  CALL      R1 = call(R1, 0 args, 3 rets)
  0021  RETURN    return R0..R-1
; ---------- proto2 [OnButtonClick] ----------
  ; fn ?  line 21-25 np=1 va=0 ms=5 code=12 consts=8 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='OpenView'
  ;   K[4]='m_model'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='MainWindowPrefabName'
  ;   K[7]='m_type'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('GM')]
  0003  GETTABLE  R1 = R1[K2('UIManager')]
  0004  SELF      R2 = R1[K3('OpenView')] (self)
  0005  GETTABLE  R3 = R0[K4('m_model')]
  0006  GETTABLE  R3 = R3[K5('m_activityDefinition')]
  0007  GETTABLE  R3 = R3[K6('MainWindowPrefabName')]
  0008  GETTABLE  R4 = R0[K4('m_model')]
  0009  GETTABLE  R4 = R4[K7('m_type')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
