# BlockActivity_View_BlockFinishedWindow_1552.luac
; fn @BlockFinishedWindow.lua  line 0-0 np=0 va=1 ms=3 code=34 consts=9 upvals=1 protos=3
;   K[0]='BlockFinishedWindow'
;   K[1]='setmetatable'
;   K[2]='BlockActivityBaseWindow'
;   K[3]='__index'
;   K[4]='BlockEndWindow'
;   K[5]='BlockTwoButtonWindow'
;   K[6]='Init'
;   K[7]='OnRedClick'
;   K[8]='OnGreenClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BlockActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BlockFinishedWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('BlockFinishedWindow')]
0006  GETTABUP  R1 = _ENV[K0('BlockFinishedWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K1('setmetatable')]
0009  NEWTABLE  R1 = {} (0 items)
0010  GETTABUP  R2 = _ENV[K2('BlockActivityBaseWindow')]
0011  CALL      R0 = call(R0, 1 args, 2 rets)
0012  SETTABUP  _ENV[K4('BlockEndWindow')] = R0
0013  GETTABUP  R0 = _ENV[K4('BlockEndWindow')]
0014  GETTABUP  R1 = _ENV[K4('BlockEndWindow')]
0015  SETTABLE  R0[K3('__index')] = R1
0016  GETTABUP  R0 = _ENV[K1('setmetatable')]
0017  NEWTABLE  R1 = {} (0 items)
0018  GETTABUP  R2 = _ENV[K2('BlockActivityBaseWindow')]
0019  CALL      R0 = call(R0, 1 args, 2 rets)
0020  SETTABUP  _ENV[K5('BlockTwoButtonWindow')] = R0
0021  GETTABUP  R0 = _ENV[K5('BlockTwoButtonWindow')]
0022  GETTABUP  R1 = _ENV[K5('BlockTwoButtonWindow')]
0023  SETTABLE  R0[K3('__index')] = R1
0024  GETTABUP  R0 = _ENV[K5('BlockTwoButtonWindow')]
0025  CLOSURE   R1 = closure proto0
0026  SETTABLE  R0[K6('Init')] = R1
0027  GETTABUP  R0 = _ENV[K5('BlockTwoButtonWindow')]
0028  CLOSURE   R1 = closure proto1
0029  SETTABLE  R0[K7('OnRedClick')] = R1
0030  GETTABUP  R0 = _ENV[K5('BlockTwoButtonWindow')]
0031  CLOSURE   R1 = closure proto2
0032  SETTABLE  R0[K8('OnGreenClick')] = R1
0033  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 16-22 np=5 va=0 ms=10 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='BlockActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_redButtonCallback'
  ;   K[3]='m_greenButtonCallback'
  ;   K[4]='m_descText'
  ;   K[5]='text'
  ;   K[6]=''
  ;   K[7]='m_tokenNumText'
  ;   K[8]='X'
  ;   K[9]='tostring'
  ;   K[10]='m_model'
  ;   K[11]='GetBlockToken'
  ;   upvals: _ENV
  ;   locals: self(0-22), activityType(0-22), descStr(0-22), redButtonCallback(0-22), greenButtonCallback(0-22)
  0000  GETTABUP  R5 = _ENV[K0('BlockActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('Init')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  CALL      R5 = call(R5, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_redButtonCallback')] = R3
  0006  SETTABLE  R0[K3('m_greenButtonCallback')] = R4
  0007  GETTABLE  R5 = R0[K4('m_descText')]
  0008  TESTSET   if R1 then R6   -> -130037
  0009  JMP       (jump)   -> 11
  0010  LOADK     R6 = K6 ''
  0011  SETTABLE  R5[K5('text')] = R6
  0012  GETTABLE  R5 = R0[K7('m_tokenNumText')]
  0013  LOADK     R6 = K8 'X'
  0014  GETTABUP  R7 = _ENV[K9('tostring')]
  0015  GETTABLE  R8 = R0[K10('m_model')]
  0016  SELF      R9 = R8[K11('GetBlockToken')] (self)
  0017  CALL      R8 = call(R8, -1 args, 1 rets)
  0018  CALL      R7 = call(R7, 1 args, -1 rets)
  0019  CONCAT    R6 = concat(R6..R6)
  0020  SETTABLE  R5[K5('text')] = R6
  0021  RETURN    return R0..R-1
; ---------- proto1 [OnRedClick] ----------
  ; fn ?  line 24-31 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [OnGreenClick] ----------
  ; fn ?  line 33-40 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_greenButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
