# ExtraBoardActivity_View_ExtraBoardActivityLevelProgress_1026.luac
; fn @ExtraBoardActivityLevelProgress.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=15 upvals=1 protos=9
;   K[0]='ExtraBoardActivityLevelProgress'
;   K[1]='setmetatable'
;   K[2]='ProgressCellGap'
;   K[3]=100
;   K[4]='LevelProgress'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='InitMaxLevelRewardTip'
;   K[8]='OnDestroy'
;   K[9]='CreateProgressCell'
;   K[10]='GetCurrentLevel'
;   K[11]='GetProgressLevel'
;   K[12]='OnScrollValueChanged'
;   K[13]='UpdateMaxLevelRewardTip'
;   K[14]='Update'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('ProgressCellGap')] = K3(100)
0003  GETTABUP  R2 = _ENV[K4('LevelProgress')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('ExtraBoardActivityLevelProgress')] = R0
0006  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0007  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('InitMaxLevelRewardTip')] = R1
0015  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnDestroy')] = R1
0018  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0019  CLOSURE   R1 = closure proto3
0020  SETTABLE  R0[K9('CreateProgressCell')] = R1
0021  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0022  CLOSURE   R1 = closure proto4
0023  SETTABLE  R0[K10('GetCurrentLevel')] = R1
0024  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0025  CLOSURE   R1 = closure proto5
0026  SETTABLE  R0[K11('GetProgressLevel')] = R1
0027  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0028  CLOSURE   R1 = closure proto6
0029  SETTABLE  R0[K12('OnScrollValueChanged')] = R1
0030  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0031  CLOSURE   R1 = closure proto7
0032  SETTABLE  R0[K13('UpdateMaxLevelRewardTip')] = R1
0033  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityLevelProgress')]
0034  CLOSURE   R1 = closure proto8
0035  SETTABLE  R0[K14('Update')] = R1
0036  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-20 np=5 va=0 ms=9 code=28 consts=17 upvals=1 protos=0
  ;   K[0]='ProgressCellGap'
  ;   K[1]='tonumber'
  ;   K[2]='m_model'
  ;   K[3]='m_window'
  ;   K[4]='m_bEnd'
  ;   K[5]='LevelProgress'
  ;   K[6]='Init'
  ;   K[7]='m_bInit'
  ;   K[8]=true
  ;   K[9]='InitMaxLevelRewardTip'
  ;   K[10]='RewardApi'
  ;   K[11]='AddFilterRewardEventListener'
  ;   K[12]='EventDispatcher'
  ;   K[13]='AddListener'
  ;   K[14]='EEventType'
  ;   K[15]='ExtraBoardActivityItemUnlocked'
  ;   K[16]='UpdateMaxLevelRewardTip'
  ;   upvals: _ENV
  ;   locals: self(0-28), maxLevel(0-28), model(0-28), window(0-28), bEnd(0-28)
  0000  GETTABUP  R5 = _ENV[K1('tonumber')]
  0001  GETTABLE  R6 = R0[K0('ProgressCellGap')]
  0002  CALL      R5 = call(R5, 1 args, 1 rets)
  0003  SETTABLE  R0[K0('ProgressCellGap')] = R5
  0004  SETTABLE  R0[K2('m_model')] = R2
  0005  SETTABLE  R0[K3('m_window')] = R3
  0006  SETTABLE  R0[K4('m_bEnd')] = R4
  0007  GETTABUP  R5 = _ENV[K5('LevelProgress')]
  0008  GETTABLE  R5 = R5[K6('Init')]
  0009  MOVE      R6 = R0
  0010  MOVE      R7 = R0
  0011  CALL      R5 = call(R5, 0 args, 2 rets)
  0012  SETTABLE  R0[K7('m_bInit')] = K8(true)
  0013  SELF      R6 = R0[K9('InitMaxLevelRewardTip')] (self)
  0014  CALL      R5 = call(R5, 0 args, 1 rets)
  0015  GETTABUP  R5 = _ENV[K10('RewardApi')]
  0016  GETTABLE  R5 = R5[K11('AddFilterRewardEventListener')]
  0017  MOVE      R6 = R0
  0018  GETTABLE  R7 = R0[K9('InitMaxLevelRewardTip')]
  0019  CALL      R5 = call(R5, 0 args, 2 rets)
  0020  GETTABUP  R5 = _ENV[K12('EventDispatcher')]
  0021  GETTABLE  R5 = R5[K13('AddListener')]
  0022  GETTABUP  R6 = _ENV[K14('EEventType')]
  0023  GETTABLE  R6 = R6[K15('ExtraBoardActivityItemUnlocked')]
  0024  MOVE      R7 = R0
  0025  GETTABLE  R8 = R0[K16('UpdateMaxLevelRewardTip')]
  0026  CALL      R5 = call(R5, 0 args, 3 rets)
  0027  RETURN    return R0..R-1
; ---------- proto1 [InitMaxLevelRewardTip] ----------
  ; fn ?  line 22-26 np=1 va=0 ms=4 code=13 consts=8 upvals=1 protos=0
  ;   K[0]='m_maxReward'
  ;   K[1]='m_model'
  ;   K[2]='GetMaxLevelReward'
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_rewardTip'
  ;   K[6]='gameObject'
  ;   K[7]='UpdateMaxLevelRewardTip'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K1('m_model')]
  0001  SELF      R2 = R1[K2('GetMaxLevelReward')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  SETTABLE  R0[K0('m_maxReward')] = R1
  0004  GETTABUP  R1 = _ENV[K3('UIUtil')]
  0005  GETTABLE  R1 = R1[K4('SetActive')]
  0006  GETTABLE  R2 = R0[K5('m_rewardTip')]
  0007  GETTABLE  R2 = R2[K6('gameObject')]
  0008  LOADBOOL  R3 = false
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  SELF      R2 = R0[K7('UpdateMaxLevelRewardTip')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 28-30 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [CreateProgressCell] ----------
  ; fn ?  line 32-37 np=2 va=0 ms=10 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='Object'
  ;   K[1]='Instantiate'
  ;   K[2]='m_progressCellPrefab'
  ;   K[3]='m_sliderNode'
  ;   K[4]='GetLuaTable'
  ;   K[5]='Init'
  ;   K[6]='m_model'
  ;   K[7]='m_window'
  ;   K[8]='m_bEnd'
  ;   upvals: _ENV
  ;   locals: self(0-15), level(0-15), cellObject(5-15), cell(7-15)
  0000  GETTABUP  R2 = _ENV[K0('Object')]
  0001  GETTABLE  R2 = R2[K1('Instantiate')]
  0002  GETTABLE  R3 = R0[K2('m_progressCellPrefab')]
  0003  GETTABLE  R4 = R0[K3('m_sliderNode')]
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  SELF      R4 = R2[K4('GetLuaTable')] (self)
  0006  CALL      R3 = call(R3, 1 args, 1 rets)
  0007  SELF      R5 = R3[K5('Init')] (self)
  0008  MOVE      R6 = R0
  0009  GETTABLE  R7 = R0[K6('m_model')]
  0010  GETTABLE  R8 = R0[K7('m_window')]
  0011  GETTABLE  R9 = R0[K8('m_bEnd')]
  0012  CALL      R4 = call(R4, 0 args, 5 rets)
  0013  RETURN    return R3..R2
  0014  RETURN    return R0..R-1
; ---------- proto4 [GetCurrentLevel] ----------
  ; fn ?  line 39-41 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetLevel'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetLevel')] (self)
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto5 [GetProgressLevel] ----------
  ; fn ?  line 43-45 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetLevel'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetLevel')] (self)
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto6 [OnScrollValueChanged] ----------
  ; fn ?  line 47-51 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='m_bInit'
  ;   K[1]='UpdateMaxLevelRewardTip'
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('m_bInit')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  SELF      R2 = R0[K1('UpdateMaxLevelRewardTip')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto7 [UpdateMaxLevelRewardTip] ----------
  ; fn ?  line 53-91 np=1 va=0 ms=16 code=99 consts=32 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_maxReward'
  ;   K[3]='m_model'
  ;   K[4]='GetMaxLevel'
  ;   K[5]='GetLevel'
  ;   K[6]='UIUtil'
  ;   K[7]='SetActive'
  ;   K[8]='m_completeGo'
  ;   K[9]='transform'
  ;   K[10]='sizeDelta'
  ;   K[11]='x'
  ;   K[12]='m_contentNode'
  ;   K[13]=30
  ;   K[14]='anchoredPosition'
  ;   K[15]='GetCellByLevel'
  ;   K[16]='m_bShowTip'
  ;   K[17]='m_rewardTip'
  ;   K[18]='Show'
  ;   K[19]='ERewardScene'
  ;   K[20]='Other'
  ;   K[21]=0
  ;   K[22]=true
  ;   K[23]='Hide'
  ;   K[24]=false
  ;   K[25]='GetRewardItem'
  ;   K[26]=1
  ;   K[27]=nil
  ;   K[28]='GetIcon'
  ;   K[29]='SetColor'
  ;   K[30]=0.5
  ;   K[31]='GetText'
  ;   upvals: _ENV
  ;   locals: self(0-99), bMaxLevel(17-99), viewportWidth(25-99), contentWidth(28-99), cellWidth(29-99), contentX(32-99), cell(37-99), rewardItem(66-99), icon(70-98), text(85-98)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_maxReward')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABLE  R1 = R0[K3('m_model')]
  0008  SELF      R2 = R1[K4('GetMaxLevel')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  GETTABLE  R2 = R0[K3('m_model')]
  0011  SELF      R3 = R2[K5('GetLevel')] (self)
  0012  CALL      R2 = call(R2, 1 args, 1 rets)
  0013  EQ        if R1 eq R2   -> -130543
  0014  JMP       (jump)   -> 16
  0015  LOADBOOL  R1 = false
  0016  LOADBOOL  R1 = true
  0017  GETTABUP  R2 = _ENV[K6('UIUtil')]
  0018  GETTABLE  R2 = R2[K7('SetActive')]
  0019  GETTABLE  R3 = R0[K8('m_completeGo')]
  0020  MOVE      R4 = R0
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  GETTABLE  R2 = R0[K9('transform')]
  0023  GETTABLE  R2 = R2[K10('sizeDelta')]
  0024  GETTABLE  R2 = R2[K11('x')]
  0025  GETTABLE  R3 = R0[K12('m_contentNode')]
  0026  GETTABLE  R3 = R3[K10('sizeDelta')]
  0027  GETTABLE  R3 = R3[K11('x')]
  0028  LOADK     R4 = K13 30
  0029  GETTABLE  R5 = R0[K12('m_contentNode')]
  0030  GETTABLE  R5 = R5[K14('anchoredPosition')]
  0031  GETTABLE  R5 = R5[K11('x')]
  0032  SELF      R7 = R0[K15('GetCellByLevel')] (self)
  0033  GETTABLE  R8 = R0[K3('m_model')]
  0034  SELF      R9 = R8[K4('GetMaxLevel')] (self)
  0035  CALL      R8 = call(R8, -1 args, 1 rets)
  0036  CALL      R6 = call(R6, 1 args, -1 rets)
  0037  SUB       R7 = R3 sub R2
  0038  ADD       R7 = R4 add R7
  0039  LT        if R0 lt R7   -> -128464
  0040  JMP       (jump)   -> 55
  0041  GETTABLE  R7 = R0[K16('m_bShowTip')]
  0042  TEST      if not R7 then   -> -131027
  0043  JMP       (jump)   -> 62
  0044  GETTABLE  R7 = R0[K17('m_rewardTip')]
  0045  SELF      R8 = R7[K18('Show')] (self)
  0046  GETTABLE  R9 = R0[K2('m_maxReward')]
  0047  GETTABUP  R10 = _ENV[K19('ERewardScene')]
  0048  GETTABLE  R10 = R10[K20('Other')]
  0049  GETTABLE  R11 = R6[K9('transform')]
  0050  LOADK     R12 = K21 0
  0051  LOADK     R13 = K21 0
  0052  CALL      R7 = call(R7, 0 args, 6 rets)
  0053  SETTABLE  R0[K16('m_bShowTip')] = K22(true)
  0054  JMP       (jump)   -> 62
  0055  GETTABLE  R7 = R0[K16('m_bShowTip')]
  0056  TEST      if not R7 then   -> -131014
  0057  JMP       (jump)   -> 62
  0058  GETTABLE  R7 = R0[K17('m_rewardTip')]
  0059  SELF      R8 = R7[K23('Hide')] (self)
  0060  CALL      R7 = call(R7, 0 args, 1 rets)
  0061  SETTABLE  R0[K16('m_bShowTip')] = K24(false)
  0062  GETTABLE  R7 = R0[K17('m_rewardTip')]
  0063  SELF      R8 = R7[K25('GetRewardItem')] (self)
  0064  LOADK     R9 = K26 1
  0065  CALL      R7 = call(R7, 1 args, 2 rets)
  0066  EQ        if R1 eq K27(nil)   -> -127137
  0067  JMP       (jump)   -> 98
  0068  SELF      R9 = R7[K28('GetIcon')] (self)
  0069  CALL      R8 = call(R8, 1 args, 1 rets)
  0070  EQ        if R1 eq K27(nil)   -> -126621
  0071  JMP       (jump)   -> 83
  0072  GETTABUP  R9 = _ENV[K6('UIUtil')]
  0073  GETTABLE  R9 = R9[K29('SetColor')]
  0074  MOVE      R10 = R0
  0075  LOADNIL   R11..R11 = nil
  0076  TEST      if not R1 then   -> -130994
  0077  JMP       (jump)   -> 81
  0078  LOADK     R14 = K30 0.5
  0079  TEST      if not R14 then   -> -130990
  0080  JMP       (jump)   -> 82
  0081  LOADK     R14 = K26 1
  0082  CALL      R9 = call(R9, 0 args, 5 rets)
  0083  SELF      R10 = R7[K31('GetText')] (self)
  0084  CALL      R9 = call(R9, 1 args, 1 rets)
  0085  EQ        if R1 eq K27(nil)   -> -126094
  0086  JMP       (jump)   -> 98
  0087  GETTABUP  R10 = _ENV[K6('UIUtil')]
  0088  GETTABLE  R10 = R10[K29('SetColor')]
  0089  MOVE      R11 = R0
  0090  LOADNIL   R12..R12 = nil
  0091  TEST      if not R1 then   -> -130979
  0092  JMP       (jump)   -> 96
  0093  LOADK     R15 = K30 0.5
  0094  TEST      if not R15 then   -> -130975
  0095  JMP       (jump)   -> 97
  0096  LOADK     R15 = K26 1
  0097  CALL      R10 = call(R10, 0 args, 5 rets)
  0098  RETURN    return R0..R-1
; ---------- proto8 [Update] ----------
  ; fn ?  line 93-97 np=1 va=0 ms=3 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='m_bShowTip'
  ;   K[1]='m_rewardTip'
  ;   K[2]='UpdatePos'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_bShowTip')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  GETTABLE  R1 = R0[K1('m_rewardTip')]
  0004  SELF      R2 = R1[K2('UpdatePos')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
