# AlbumActivity_View_AlbumUpgradeTipWindow_1155.luac
; fn @AlbumUpgradeTipWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='AlbumUpgradeTipWindow'
;   K[1]='setmetatable'
;   K[2]='AlbumActivityBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnRedClick'
;   K[6]='OnGreenClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('AlbumActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AlbumUpgradeTipWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumUpgradeTipWindow')]
0006  GETTABUP  R1 = _ENV[K0('AlbumUpgradeTipWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumUpgradeTipWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumUpgradeTipWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnRedClick')] = R1
0014  GETTABUP  R0 = _ENV[K0('AlbumUpgradeTipWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnGreenClick')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-16 np=4 va=0 ms=10 code=19 consts=12 upvals=1 protos=0
  ;   K[0]='AlbumActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_redButtonCallback'
  ;   K[3]='m_greenButtonCallback'
  ;   K[4]='m_model'
  ;   K[5]='GetSurplusCardStar'
  ;   K[6]='m_descText'
  ;   K[7]='text'
  ;   K[8]='GM'
  ;   K[9]='GameTextModel'
  ;   K[10]='GetText'
  ;   K[11]='album_upgrade_notice_desc'
  ;   upvals: _ENV
  ;   locals: self(0-19), activityType(0-19), redButtonCallback(0-19), greenButtonCallback(0-19), surplusStars(10-19)
  0000  GETTABUP  R4 = _ENV[K0('AlbumActivityBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  CALL      R4 = call(R4, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_redButtonCallback')] = R2
  0006  SETTABLE  R0[K3('m_greenButtonCallback')] = R3
  0007  GETTABLE  R4 = R0[K4('m_model')]
  0008  SELF      R5 = R4[K5('GetSurplusCardStar')] (self)
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  GETTABLE  R5 = R0[K6('m_descText')]
  0011  GETTABUP  R6 = _ENV[K8('GM')]
  0012  GETTABLE  R6 = R6[K9('GameTextModel')]
  0013  SELF      R7 = R6[K10('GetText')] (self)
  0014  LOADK     R8 = K11 'album_upgrade_notice_desc'
  0015  MOVE      R9 = R0
  0016  CALL      R6 = call(R6, 1 args, 3 rets)
  0017  SETTABLE  R5[K7('text')] = R6
  0018  RETURN    return R0..R-1
; ---------- proto1 [OnRedClick] ----------
  ; fn ?  line 18-25 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 27-34 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
