# WeeklyActiveQuest_View_WeeklyActiveQuestRewardBox_1317.luac
; fn @WeeklyActiveQuestRewardBox.lua  line 0-0 np=0 va=1 ms=3 code=32 consts=9 upvals=1 protos=6
;   K[0]='WeeklyActiveQuestRewardBox'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='UpdateRewards'
;   K[5]='ShowTick'
;   K[6]='WeeklyActiveQuestFinalRewardBox'
;   K[7]='setmetatable'
;   K[8]='OnClicked'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('WeeklyActiveQuestRewardBox')] = R0
0002  GETTABUP  R0 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0003  GETTABUP  R1 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdateRewards')] = R1
0014  GETTABUP  R0 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('ShowTick')] = R1
0017  GETTABUP  R0 = _ENV[K7('setmetatable')]
0018  NEWTABLE  R1 = {} (0 items)
0019  GETTABUP  R2 = _ENV[K0('WeeklyActiveQuestRewardBox')]
0020  CALL      R0 = call(R0, 1 args, 2 rets)
0021  SETTABUP  _ENV[K6('WeeklyActiveQuestFinalRewardBox')] = R0
0022  GETTABUP  R0 = _ENV[K6('WeeklyActiveQuestFinalRewardBox')]
0023  GETTABUP  R1 = _ENV[K6('WeeklyActiveQuestFinalRewardBox')]
0024  SETTABLE  R0[K1('__index')] = R1
0025  GETTABUP  R0 = _ENV[K6('WeeklyActiveQuestFinalRewardBox')]
0026  CLOSURE   R1 = closure proto4
0027  SETTABLE  R0[K4('UpdateRewards')] = R1
0028  GETTABUP  R0 = _ENV[K6('WeeklyActiveQuestFinalRewardBox')]
0029  CLOSURE   R1 = closure proto5
0030  SETTABLE  R0[K8('OnClicked')] = R1
0031  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-33 np=7 va=0 ms=10 code=29 consts=19 upvals=1 protos=0
  ;   K[0]='m_bCollected'
  ;   K[1]='m_tick'
  ;   K[2]='SetActive'
  ;   K[3]='m_rewardCanvas'
  ;   K[4]='alpha'
  ;   K[5]=0
  ;   K[6]='interactable'
  ;   K[7]=false
  ;   K[8]='m_rewardInfo'
  ;   K[9]='UpdateRewards'
  ;   K[10]='m_targetScoreText'
  ;   K[11]='text'
  ;   K[12]='transform'
  ;   K[13]='localScale'
  ;   K[14]='Vector3'
  ;   K[15]='one'
  ;   K[16]=1.12
  ;   K[17]='RewardApi'
  ;   K[18]='AddFilterRewardEventListener'
  ;   upvals: _ENV
  ;   locals: self(0-29), id(0-29), rewardInfo(0-29), targetScore(0-29), collected(0-29), isLast(0-29), window(0-29)
  0000  SETTABLE  R0[K0('m_bCollected')] = R4
  0001  GETTABLE  R7 = R0[K1('m_tick')]
  0002  SELF      R8 = R7[K2('SetActive')] (self)
  0003  MOVE      R9 = R0
  0004  CALL      R7 = call(R7, 0 args, 2 rets)
  0005  TEST      if not R4 then   -> -131065
  0006  JMP       (jump)   -> 11
  0007  GETTABLE  R7 = R0[K3('m_rewardCanvas')]
  0008  SETTABLE  R7[K4('alpha')] = K5(0)
  0009  GETTABLE  R7 = R0[K3('m_rewardCanvas')]
  0010  SETTABLE  R7[K6('interactable')] = K7(false)
  0011  SETTABLE  R0[K8('m_rewardInfo')] = R2
  0012  SELF      R8 = R0[K9('UpdateRewards')] (self)
  0013  CALL      R7 = call(R7, 0 args, 1 rets)
  0014  GETTABLE  R7 = R0[K10('m_targetScoreText')]
  0015  SETTABLE  R7[K11('text')] = R3
  0016  TEST      if not R5 then   -> -131053
  0017  JMP       (jump)   -> 23
  0018  GETTABLE  R7 = R0[K12('transform')]
  0019  GETTABUP  R8 = _ENV[K14('Vector3')]
  0020  GETTABLE  R8 = R8[K15('one')]
  0021  MUL       R8 = K16(1.12) mul R8
  0022  SETTABLE  R7[K13('localScale')] = R8
  0023  GETTABUP  R7 = _ENV[K17('RewardApi')]
  0024  GETTABLE  R7 = R7[K18('AddFilterRewardEventListener')]
  0025  MOVE      R8 = R0
  0026  GETTABLE  R9 = R0[K9('UpdateRewards')]
  0027  CALL      R7 = call(R7, 0 args, 2 rets)
  0028  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 35-37 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
; ---------- proto2 [UpdateRewards] ----------
  ; fn ?  line 39-47 np=1 va=0 ms=5 code=30 consts=13 upvals=1 protos=0
  ;   K[0]='RewardApi'
  ;   K[1]='FilterRewards'
  ;   K[2]='m_rewardInfo'
  ;   K[3]='ERewardScene'
  ;   K[4]='Other'
  ;   K[5]='Table'
  ;   K[6]='IsEmpty'
  ;   K[7]='UIUtil'
  ;   K[8]='SetActive'
  ;   K[9]='m_rewardLua'
  ;   K[10]='gameObject'
  ;   K[11]='Init'
  ;   K[12]=1
  ;   upvals: _ENV
  ;   locals: self(0-30), validRewards(6-30)
  0000  GETTABUP  R1 = _ENV[K0('RewardApi')]
  0001  GETTABLE  R1 = R1[K1('FilterRewards')]
  0002  GETTABLE  R2 = R0[K2('m_rewardInfo')]
  0003  GETTABUP  R3 = _ENV[K3('ERewardScene')]
  0004  GETTABLE  R3 = R3[K4('Other')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  GETTABUP  R2 = _ENV[K5('Table')]
  0007  GETTABLE  R2 = R2[K6('IsEmpty')]
  0008  MOVE      R3 = R0
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 23
  0012  GETTABUP  R2 = _ENV[K7('UIUtil')]
  0013  GETTABLE  R2 = R2[K8('SetActive')]
  0014  GETTABLE  R3 = R0[K9('m_rewardLua')]
  0015  GETTABLE  R3 = R3[K10('gameObject')]
  0016  LOADBOOL  R4 = true
  0017  CALL      R2 = call(R2, 0 args, 2 rets)
  0018  GETTABLE  R2 = R0[K9('m_rewardLua')]
  0019  SELF      R3 = R2[K11('Init')] (self)
  0020  GETTABLE  R4 = R1[K12(1)]
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  JMP       (jump)   -> 29
  0023  GETTABUP  R2 = _ENV[K7('UIUtil')]
  0024  GETTABLE  R2 = R2[K8('SetActive')]
  0025  GETTABLE  R3 = R0[K9('m_rewardLua')]
  0026  GETTABLE  R3 = R3[K10('gameObject')]
  0027  LOADBOOL  R4 = false
  0028  CALL      R2 = call(R2, 0 args, 2 rets)
  0029  RETURN    return R0..R-1
; ---------- proto3 [ShowTick] ----------
  ; fn ?  line 49-58 np=1 va=0 ms=6 code=26 consts=14 upvals=1 protos=1
  ;   K[0]=0.4
  ;   K[1]='m_tick'
  ;   K[2]='transform'
  ;   K[3]='localScale'
  ;   K[4]='Vector3'
  ;   K[5]='zero'
  ;   K[6]='SetActive'
  ;   K[7]='DelayExecuteFuncInView'
  ;   K[8]=0.15
  ;   K[9]='DOScale'
  ;   K[10]=0.6
  ;   K[11]='SetEase'
  ;   K[12]='Ease'
  ;   K[13]='OutBack'
  ;   upvals: _ENV
  ;   locals: self(0-26), tim1(1-26)
  0000  LOADK     R1 = K0 0.4
  0001  GETTABLE  R2 = R0[K1('m_tick')]
  0002  GETTABLE  R2 = R2[K2('transform')]
  0003  GETTABUP  R3 = _ENV[K4('Vector3')]
  0004  GETTABLE  R3 = R3[K5('zero')]
  0005  SETTABLE  R2[K3('localScale')] = R3
  0006  GETTABLE  R2 = R0[K1('m_tick')]
  0007  SELF      R3 = R2[K6('SetActive')] (self)
  0008  LOADBOOL  R4 = true
  0009  CALL      R2 = call(R2, 0 args, 2 rets)
  0010  GETTABUP  R2 = _ENV[K7('DelayExecuteFuncInView')]
  0011  CLOSURE   R3 = closure proto0
  0012  LOADK     R4 = K8 0.15
  0013  MOVE      R5 = R0
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  GETTABLE  R2 = R0[K1('m_tick')]
  0016  GETTABLE  R2 = R2[K2('transform')]
  0017  SELF      R3 = R2[K9('DOScale')] (self)
  0018  LOADK     R4 = K10 0.6
  0019  MOVE      R5 = R0
  0020  CALL      R2 = call(R2, 1 args, 3 rets)
  0021  SELF      R3 = R2[K11('SetEase')] (self)
  0022  GETTABUP  R4 = _ENV[K12('Ease')]
  0023  GETTABLE  R4 = R4[K13('OutBack')]
  0024  CALL      R2 = call(R2, 0 args, 2 rets)
  0025  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 53-56 np=0 va=0 ms=4 code=8 consts=6 upvals=1 protos=0
    ;   K[0]='m_rewardCanvas'
    ;   K[1]='DOFade'
    ;   K[2]=0
    ;   K[3]=0.2
    ;   K[4]='interactable'
    ;   K[5]=false
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_rewardCanvas')]
    0001  SELF      R1 = R0[K1('DOFade')] (self)
    0002  LOADK     R2 = K2 0
    0003  LOADK     R3 = K3 0.2
    0004  CALL      R0 = call(R0, 0 args, 3 rets)
    0005  GETTABUP  R0 = self[K0('m_rewardCanvas')]
    0006  SETTABLE  R0[K4('interactable')] = K5(false)
    0007  RETURN    return R0..R-1
; ---------- proto4 [UpdateRewards] ----------
  ; fn ?  line 65-66 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto5 [OnClicked] ----------
  ; fn ?  line 68-73 np=1 va=0 ms=10 code=16 consts=9 upvals=1 protos=0
  ;   K[0]='m_bCollected'
  ;   K[1]='m_rewardTip'
  ;   K[2]='Show'
  ;   K[3]='m_rewardInfo'
  ;   K[4]='ERewardScene'
  ;   K[5]='Other'
  ;   K[6]='m_iconRect'
  ;   K[7]=0
  ;   K[8]=40
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABLE  R1 = R0[K0('m_bCollected')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K1('m_rewardTip')]
  0005  SELF      R2 = R1[K2('Show')] (self)
  0006  GETTABLE  R3 = R0[K3('m_rewardInfo')]
  0007  GETTABUP  R4 = _ENV[K4('ERewardScene')]
  0008  GETTABLE  R4 = R4[K5('Other')]
  0009  GETTABLE  R5 = R0[K6('m_iconRect')]
  0010  LOADK     R6 = K7 0
  0011  LOADK     R7 = K8 40
  0012  LOADBOOL  R8 = true
  0013  LOADBOOL  R9 = true
  0014  CALL      R1 = call(R1, 0 args, 8 rets)
  0015  RETURN    return R0..R-1
