# WeeklyRank_View_WeeklyRankHelpWindow_1237.luac
; fn @WeeklyRankHelpWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=8 upvals=1 protos=1
;   K[0]='WeeklyRankHelpWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='WeeklyRankBaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('WeeklyRankBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('WeeklyRankHelpWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('WeeklyRankHelpWindow')]
0009  GETTABUP  R1 = _ENV[K0('WeeklyRankHelpWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('WeeklyRankHelpWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-13 np=3 va=0 ms=9 code=27 consts=15 upvals=1 protos=0
  ;   K[0]='WeeklyRankBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetOneActivityModel'
  ;   K[5]='ActivityModelType'
  ;   K[6]='Pass'
  ;   K[7]='ActivityState'
  ;   K[8]='Started'
  ;   K[9]=nil
  ;   K[10]='GetMaxTicketTokenAdd'
  ;   K[11]='m_tokenRatioText'
  ;   K[12]='text'
  ;   K[13]='+'
  ;   K[14]='tostring'
  ;   upvals: _ENV
  ;   locals: self(0-27), activityType(0-27), bUserClick(0-27), passModel(15-27), tokenAdd(19-26)
  0000  GETTABUP  R3 = _ENV[K0('WeeklyRankBaseWindow')]
  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  GETTABUP  R3 = _ENV[K2('GM')]
  0007  GETTABLE  R3 = R3[K3('ActivityManager')]
  0008  SELF      R4 = R3[K4('GetOneActivityModel')] (self)
  0009  GETTABUP  R5 = _ENV[K5('ActivityModelType')]
  0010  GETTABLE  R5 = R5[K6('Pass')]
  0011  GETTABUP  R6 = _ENV[K7('ActivityState')]
  0012  GETTABLE  R6 = R6[K8('Started')]
  0013  LOADBOOL  R7 = false
  0014  CALL      R3 = call(R3, 1 args, 4 rets)
  0015  EQ        if R1 eq K9(nil)   -> -129254
  0016  JMP       (jump)   -> 26
  0017  SELF      R5 = R3[K10('GetMaxTicketTokenAdd')] (self)
  0018  CALL      R4 = call(R4, 1 args, 1 rets)
  0019  GETTABLE  R5 = R0[K11('m_tokenRatioText')]
  0020  LOADK     R6 = K13 '+'
  0021  GETTABUP  R7 = _ENV[K14('tostring')]
  0022  MOVE      R8 = R0
  0023  CALL      R7 = call(R7, 1 args, 1 rets)
  0024  CONCAT    R6 = concat(R6..R6)
  0025  SETTABLE  R5[K12('text')] = R6
  0026  RETURN    return R0..R-1
