# NewRecipeReward_View_NewRecipeRewardWindow_1427.luac
; fn @NewRecipeRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=29 consts=16 upvals=1 protos=5
;   K[0]='NewRecipeRewardWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='canClickWindowMask'
;   K[5]=true
;   K[6]='windowMaskAlpha'
;   K[7]='EWindowMaskAlpha'
;   K[8]='Dark'
;   K[9]='BaseWindow'
;   K[10]='__index'
;   K[11]='Init'
;   K[12]='OnDestroy'
;   K[13]='OnWindowMaskClicked'
;   K[14]='_PlayRecipeAnimation'
;   K[15]='_PlayGemAnimation'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  SETTABLE  R1[K4('canClickWindowMask')] = K5(true)
0004  GETTABUP  R2 = _ENV[K7('EWindowMaskAlpha')]
0005  GETTABLE  R2 = R2[K8('Dark')]
0006  SETTABLE  R1[K6('windowMaskAlpha')] = R2
0007  GETTABUP  R2 = _ENV[K9('BaseWindow')]
0008  CALL      R0 = call(R0, 1 args, 2 rets)
0009  SETTABUP  _ENV[K0('NewRecipeRewardWindow')] = R0
0010  GETTABUP  R0 = _ENV[K0('NewRecipeRewardWindow')]
0011  GETTABUP  R1 = _ENV[K0('NewRecipeRewardWindow')]
0012  SETTABLE  R0[K10('__index')] = R1
0013  GETTABUP  R0 = _ENV[K0('NewRecipeRewardWindow')]
0014  CLOSURE   R1 = closure proto0
0015  SETTABLE  R0[K11('Init')] = R1
0016  GETTABUP  R0 = _ENV[K0('NewRecipeRewardWindow')]
0017  CLOSURE   R1 = closure proto1
0018  SETTABLE  R0[K12('OnDestroy')] = R1
0019  GETTABUP  R0 = _ENV[K0('NewRecipeRewardWindow')]
0020  CLOSURE   R1 = closure proto2
0021  SETTABLE  R0[K13('OnWindowMaskClicked')] = R1
0022  GETTABUP  R0 = _ENV[K0('NewRecipeRewardWindow')]
0023  CLOSURE   R1 = closure proto3
0024  SETTABLE  R0[K14('_PlayRecipeAnimation')] = R1
0025  GETTABUP  R0 = _ENV[K0('NewRecipeRewardWindow')]
0026  CLOSURE   R1 = closure proto4
0027  SETTABLE  R0[K15('_PlayGemAnimation')] = R1
0028  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-19 np=3 va=0 ms=8 code=23 consts=12 upvals=1 protos=1
  ;   K[0]='m_recipeType'
  ;   K[1]='m_gemRewardCount'
  ;   K[2]='GM'
  ;   K[3]='ItemDataModel'
  ;   K[4]='GetSpriteName'
  ;   K[5]='SpriteUtil'
  ;   K[6]='SetImage'
  ;   K[7]='m_itemImg'
  ;   K[8]='IsAutoRun'
  ;   K[9]='DOVirtual'
  ;   K[10]='DelayedCall'
  ;   K[11]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-23), recipeType(0-23), gemRewardCount(0-23), spriteName(7-23)
  0000  SETTABLE  R0[K0('m_recipeType')] = R1
  0001  SETTABLE  R0[K1('m_gemRewardCount')] = R2
  0002  GETTABUP  R3 = _ENV[K2('GM')]
  0003  GETTABLE  R3 = R3[K3('ItemDataModel')]
  0004  SELF      R4 = R3[K4('GetSpriteName')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 1 args, 2 rets)
  0007  GETTABUP  R4 = _ENV[K5('SpriteUtil')]
  0008  GETTABLE  R4 = R4[K6('SetImage')]
  0009  GETTABLE  R5 = R0[K7('m_itemImg')]
  0010  MOVE      R6 = R0
  0011  LOADBOOL  R7 = true
  0012  CALL      R4 = call(R4, 0 args, 3 rets)
  0013  GETTABUP  R4 = _ENV[K8('IsAutoRun')]
  0014  CALL      R4 = call(R4, 1 args, 0 rets)
  0015  TEST      if not R4 then   -> -131055
  0016  JMP       (jump)   -> 22
  0017  GETTABUP  R4 = _ENV[K9('DOVirtual')]
  0018  GETTABLE  R4 = R4[K10('DelayedCall')]
  0019  LOADK     R5 = K11 0.2
  0020  CLOSURE   R6 = closure proto0
  0021  CALL      R4 = call(R4, 0 args, 2 rets)
  0022  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 17-17 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='Close'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('Close')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 21-24 np=1 va=0 ms=4 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='Scheduler'
  ;   K[1]='UnscheduleTarget'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='RemoveAllEventLocks'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('Scheduler')]
  0001  GETTABLE  R1 = R1[K1('UnscheduleTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('GM')]
  0005  GETTABLE  R1 = R1[K3('UIManager')]
  0006  SELF      R2 = R1[K4('RemoveAllEventLocks')] (self)
  0007  MOVE      R3 = R0
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [OnWindowMaskClicked] ----------
  ; fn ?  line 26-33 np=1 va=0 ms=3 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='m_bClosing'
  ;   K[1]=true
  ;   K[2]='_PlayRecipeAnimation'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_bClosing')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bClosing')] = K1(true)
  0005  SELF      R2 = R0[K2('_PlayRecipeAnimation')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto3 [_PlayRecipeAnimation] ----------
  ; fn ?  line 35-67 np=1 va=0 ms=14 code=37 consts=22 upvals=1 protos=2
  ;   K[0]='m_continueCanvasGroup'
  ;   K[1]='DOFade'
  ;   K[2]=0
  ;   K[3]=0.2
  ;   K[4]='TutorialHelper'
  ;   K[5]='GetHudButton'
  ;   K[6]='ESceneViewHudButtonKey'
  ;   K[7]='Discoveries'
  ;   K[8]='ForceDisplay'
  ;   K[9]='HighlightForUI'
  ;   K[10]='transform'
  ;   K[11]='PropertyAnimationManager'
  ;   K[12]='PlayFlyElementAnimation'
  ;   K[13]='m_recipeType'
  ;   K[14]=0.4
  ;   K[15]='V3Zero'
  ;   K[16]='position'
  ;   K[17]=1.5
  ;   K[18]=0.5
  ;   K[19]='ESpecialViewSortingOrder'
  ;   K[20]='TutorialHighlight'
  ;   K[21]=1
  ;   upvals: _ENV
  ;   locals: self(0-37), hudButton(10-37)
  0000  GETTABLE  R1 = R0[K0('m_continueCanvasGroup')]
  0001  SELF      R2 = R1[K1('DOFade')] (self)
  0002  LOADK     R3 = K2 0
  0003  LOADK     R4 = K3 0.2
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  GETTABUP  R1 = _ENV[K4('TutorialHelper')]
  0006  GETTABLE  R1 = R1[K5('GetHudButton')]
  0007  GETTABUP  R2 = _ENV[K6('ESceneViewHudButtonKey')]
  0008  GETTABLE  R2 = R2[K7('Discoveries')]
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  TEST      if not R1 then   -> -131060
  0011  JMP       (jump)   -> 36
  0012  SELF      R3 = R1[K8('ForceDisplay')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  GETTABUP  R2 = _ENV[K4('TutorialHelper')]
  0015  GETTABLE  R2 = R2[K9('HighlightForUI')]
  0016  GETTABLE  R3 = R1[K10('transform')]
  0017  LOADBOOL  R4 = true
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  GETTABUP  R2 = _ENV[K11('PropertyAnimationManager')]
  0020  GETTABLE  R2 = R2[K12('PlayFlyElementAnimation')]
  0021  GETTABLE  R3 = R0[K13('m_recipeType')]
  0022  LOADK     R4 = K14 0.4
  0023  GETTABUP  R5 = _ENV[K15('V3Zero')]
  0024  GETTABLE  R6 = R1[K10('transform')]
  0025  GETTABLE  R6 = R6[K16('position')]
  0026  LOADK     R7 = K17 1.5
  0027  LOADK     R8 = K18 0.5
  0028  LOADBOOL  R9 = false
  0029  LOADBOOL  R10 = true
  0030  GETTABUP  R11 = _ENV[K19('ESpecialViewSortingOrder')]
  0031  GETTABLE  R11 = R11[K20('TutorialHighlight')]
  0032  ADD       R11 = K21(1) add R11
  0033  CLOSURE   R12 = closure proto0
  0034  CLOSURE   R13 = closure proto1
  0035  CALL      R2 = call(R2, 0 args, 11 rets)
  0036  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 43-53 np=0 va=0 ms=4 code=17 consts=10 upvals=1 protos=0
    ;   K[0]='gameObject'
    ;   K[1]='IsNull'
    ;   K[2]='m_itemImg'
    ;   K[3]='enabled'
    ;   K[4]=false
    ;   K[5]='m_itemEffectCanvasGroup'
    ;   K[6]='DOFade'
    ;   K[7]=0
    ;   K[8]=0.2
    ;   K[9]='_PlayGemAnimation'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('gameObject')]
    0001  SELF      R1 = R0[K1('IsNull')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  TEST      if not R0 then   -> -131067
    0004  JMP       (jump)   -> 6
    0005  RETURN    return R0..R-1
    0006  GETTABUP  R0 = self[K2('m_itemImg')]
    0007  SETTABLE  R0[K3('enabled')] = K4(false)
    0008  GETTABUP  R0 = self[K5('m_itemEffectCanvasGroup')]
    0009  SELF      R1 = R0[K6('DOFade')] (self)
    0010  LOADK     R2 = K7 0
    0011  LOADK     R3 = K8 0.2
    0012  CALL      R0 = call(R0, 0 args, 3 rets)
    0013  GETUPVAL  R0 = self
    0014  SELF      R1 = R0[K9('_PlayGemAnimation')] (self)
    0015  CALL      R0 = call(R0, 0 args, 1 rets)
    0016  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 53-65 np=0 va=0 ms=5 code=21 consts=7 upvals=2 protos=1
    ;   K[0]='TutorialHelper'
    ;   K[1]='GetHudButton'
    ;   K[2]='ESceneViewHudButtonKey'
    ;   K[3]='Discoveries'
    ;   K[4]='IconScaleAnimation'
    ;   K[5]='DelayExecuteFuncInView'
    ;   K[6]=0.5
    ;   upvals: hudButton, _ENV
    0000  GETTABUP  R0 = _ENV[K0('TutorialHelper')]
    0001  GETTABLE  R0 = R0[K1('GetHudButton')]
    0002  GETTABUP  R1 = _ENV[K2('ESceneViewHudButtonKey')]
    0003  GETTABLE  R1 = R1[K3('Discoveries')]
    0004  CALL      R0 = call(R0, 1 args, 1 rets)
    0005  SETUPVAL  hudButton = R0
    0006  GETUPVAL  R0 = hudButton
    0007  TEST      if not R0 then   -> -131062
    0008  JMP       (jump)   -> 10
    0009  RETURN    return R0..R-1
    0010  GETUPVAL  R0 = hudButton
    0011  SELF      R1 = R0[K4('IconScaleAnimation')] (self)
    0012  LOADBOOL  R2 = true
    0013  CALL      R0 = call(R0, 0 args, 2 rets)
    0014  GETTABUP  R0 = _ENV[K5('DelayExecuteFuncInView')]
    0015  CLOSURE   R1 = closure proto0
    0016  LOADK     R2 = K6 0.5
    0017  GETUPVAL  R3 = hudButton
    0018  LOADBOOL  R4 = false
    0019  CALL      R0 = call(R0, 0 args, 4 rets)
    0020  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 61-64 np=0 va=0 ms=2 code=8 consts=4 upvals=2 protos=0
      ;   K[0]='TutorialHelper'
      ;   K[1]='DehighlightForUI'
      ;   K[2]='transform'
      ;   K[3]='UpdateDisplay'
      ;   upvals: _ENV, hudButton
      0000  GETTABUP  R0 = _ENV[K0('TutorialHelper')]
      0001  GETTABLE  R0 = R0[K1('DehighlightForUI')]
      0002  GETTABUP  R1 = hudButton[K2('transform')]
      0003  CALL      R0 = call(R0, 0 args, 1 rets)
      0004  GETUPVAL  R0 = _ENV
      0005  SELF      R1 = R0[K3('UpdateDisplay')] (self)
      0006  CALL      R0 = call(R0, 0 args, 1 rets)
      0007  RETURN    return R0..R-1
; ---------- proto4 [_PlayGemAnimation] ----------
  ; fn ?  line 69-92 np=1 va=0 ms=8 code=48 consts=22 upvals=1 protos=2
  ;   K[0]='gameObject'
  ;   K[1]='IsNull'
  ;   K[2]='m_newText'
  ;   K[3]='text'
  ;   K[4]='x'
  ;   K[5]='m_gemRewardCount'
  ;   K[6]='m_rewardAnimator'
  ;   K[7]='SetTrigger'
  ;   K[8]='Gem'
  ;   K[9]='m_itemEffectCanvasGroup'
  ;   K[10]='DOFade'
  ;   K[11]=1
  ;   K[12]=0.2
  ;   K[13]='SetDelay'
  ;   K[14]=0.15
  ;   K[15]='PROPERTY_TYPE'
  ;   K[16]='EPropertyType'
  ;   K[17]='PROPERTY_COUNT'
  ;   K[18]='GM'
  ;   K[19]='UIManager'
  ;   K[20]='SetEventLock'
  ;   K[21]='DelayExecuteFuncInView'
  ;   upvals: _ENV
  ;   locals: self(0-48), rewards(33-48), funcSpeedUp(34-48)
  0000  GETTABLE  R1 = R0[K0('gameObject')]
  0001  SELF      R2 = R1[K1('IsNull')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 6
  0005  RETURN    return R0..R-1
  0006  GETTABLE  R1 = R0[K2('m_newText')]
  0007  LOADK     R2 = K4 'x'
  0008  GETTABLE  R3 = R0[K5('m_gemRewardCount')]
  0009  CONCAT    R2 = concat(R2..R2)
  0010  SETTABLE  R1[K3('text')] = R2
  0011  GETTABLE  R1 = R0[K6('m_rewardAnimator')]
  0012  SELF      R2 = R1[K7('SetTrigger')] (self)
  0013  LOADK     R3 = K8 'Gem'
  0014  CALL      R1 = call(R1, 0 args, 2 rets)
  0015  GETTABLE  R1 = R0[K9('m_itemEffectCanvasGroup')]
  0016  SELF      R2 = R1[K10('DOFade')] (self)
  0017  LOADK     R3 = K11 1
  0018  LOADK     R4 = K12 0.2
  0019  CALL      R1 = call(R1, 1 args, 3 rets)
  0020  SELF      R2 = R1[K13('SetDelay')] (self)
  0021  LOADK     R3 = K14 0.15
  0022  CALL      R1 = call(R1, 0 args, 2 rets)
  0023  NEWTABLE  R1 = {} (1 items)
  0024  NEWTABLE  R2 = {} (0 items)
  0025  GETTABUP  R3 = _ENV[K15('PROPERTY_TYPE')]
  0026  GETTABUP  R4 = _ENV[K16('EPropertyType')]
  0027  GETTABLE  R4 = R4[K8('Gem')]
  0028  SETTABLE  R2[R3] = R4
  0029  GETTABUP  R3 = _ENV[K17('PROPERTY_COUNT')]
  0030  GETTABLE  R4 = R0[K5('m_gemRewardCount')]
  0031  SETTABLE  R2[R3] = R4
  0032  SETLIST   setlist R1[B=1,C=1]
  0033  CLOSURE   R2 = closure proto0
  0034  GETTABUP  R3 = _ENV[K18('GM')]
  0035  GETTABLE  R3 = R3[K19('UIManager')]
  0036  SELF      R4 = R3[K20('SetEventLock')] (self)
  0037  LOADBOOL  R5 = true
  0038  MOVE      R6 = R0
  0039  MOVE      R7 = R0
  0040  CALL      R3 = call(R3, 0 args, 4 rets)
  0041  GETTABUP  R3 = _ENV[K21('DelayExecuteFuncInView')]
  0042  CLOSURE   R4 = closure proto1
  0043  LOADK     R5 = K11 1
  0044  MOVE      R6 = R0
  0045  LOADBOOL  R7 = false
  0046  CALL      R3 = call(R3, 0 args, 4 rets)
  0047  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 83-85 np=0 va=0 ms=2 code=5 consts=2 upvals=2 protos=0
    ;   K[0]='Scheduler'
    ;   K[1]='FireAndUnscheduleTarget'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('Scheduler')]
    0001  GETTABLE  R0 = R0[K1('FireAndUnscheduleTarget')]
    0002  GETUPVAL  R1 = _ENV
    0003  CALL      R0 = call(R0, 0 args, 1 rets)
    0004  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 87-91 np=0 va=0 ms=5 code=18 consts=8 upvals=4 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='Close'
    ;   K[4]='RewardApi'
    ;   K[5]='AcquireRewardsInView'
    ;   K[6]='ERewardScene'
    ;   K[7]='Other'
    ;   upvals: _ENV, self, funcSpeedUp, rewards
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  GETUPVAL  R3 = _ENV
    0005  GETUPVAL  R4 = _ENV
    0006  CALL      R0 = call(R0, 0 args, 4 rets)
    0007  GETUPVAL  R0 = _ENV
    0008  SELF      R1 = R0[K3('Close')] (self)
    0009  CALL      R0 = call(R0, 0 args, 1 rets)
    0010  GETTABUP  R0 = _ENV[K4('RewardApi')]
    0011  GETTABLE  R0 = R0[K5('AcquireRewardsInView')]
    0012  GETUPVAL  R1 = _ENV
    0013  LOADNIL   R2..R2 = nil
    0014  GETTABUP  R3 = _ENV[K6('ERewardScene')]
    0015  GETTABLE  R3 = R3[K7('Other')]
    0016  CALL      R0 = call(R0, 0 args, 3 rets)
    0017  RETURN    return R0..R-1
