# UI_Window_BoxRewardWindow_438.luac
; fn @BoxRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=39 consts=26 upvals=1 protos=7
;   K[0]='BoxRewardWindow'
;   K[1]='setmetatable'
;   K[2]='disableWindowMaskOnOpenView'
;   K[3]=2
;   K[4]='disableEffectWhenCloseView'
;   K[5]=false
;   K[6]='RewardWindow'
;   K[7]='__index'
;   K[8]='EBoxRewardType'
;   K[9]='Green'
;   K[10]=1
;   K[11]='Blue'
;   K[12]='Red'
;   K[13]=3
;   K[14]='Purple'
;   K[15]=4
;   K[16]='Box'
;   K[17]=5
;   K[18]='Open'
;   K[19]='BoxRewardWindow'
;   K[20]='OpenRigid'
;   K[21]='Init'
;   K[22]='PlayEnterAnim'
;   K[23]='SetSprite'
;   K[24]='OnDestroy'
;   K[25]='SetBoxFinalScale'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('disableWindowMaskOnOpenView')] = K3(2)
0003  SETTABLE  R1[K4('disableEffectWhenCloseView')] = K5(false)
0004  GETTABUP  R2 = _ENV[K6('RewardWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('BoxRewardWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('BoxRewardWindow')]
0008  GETTABUP  R1 = _ENV[K0('BoxRewardWindow')]
0009  SETTABLE  R0[K7('__index')] = R1
0010  NEWTABLE  R0 = {} (0 items)
0011  SETTABLE  R0[K9('Green')] = K10(1)
0012  SETTABLE  R0[K11('Blue')] = K3(2)
0013  SETTABLE  R0[K12('Red')] = K13(3)
0014  SETTABLE  R0[K14('Purple')] = K15(4)
0015  SETTABLE  R0[K16('Box')] = K17(5)
0016  SETTABUP  _ENV[K8('EBoxRewardType')] = R0
0017  GETTABUP  R0 = _ENV[K0('BoxRewardWindow')]
0018  CLOSURE   R1 = closure proto0
0019  SETTABLE  R0[K18('Open')] = R1
0020  GETTABUP  R0 = _ENV[K19('BoxRewardWindow')]
0021  CLOSURE   R1 = closure proto1
0022  SETTABLE  R0[K20('OpenRigid')] = R1
0023  GETTABUP  R0 = _ENV[K19('BoxRewardWindow')]
0024  CLOSURE   R1 = closure proto2
0025  SETTABLE  R0[K21('Init')] = R1
0026  GETTABUP  R0 = _ENV[K19('BoxRewardWindow')]
0027  CLOSURE   R1 = closure proto3
0028  SETTABLE  R0[K22('PlayEnterAnim')] = R1
0029  GETTABUP  R0 = _ENV[K19('BoxRewardWindow')]
0030  CLOSURE   R1 = closure proto4
0031  SETTABLE  R0[K23('SetSprite')] = R1
0032  GETTABUP  R0 = _ENV[K19('BoxRewardWindow')]
0033  CLOSURE   R1 = closure proto5
0034  SETTABLE  R0[K24('OnDestroy')] = R1
0035  GETTABUP  R0 = _ENV[K19('BoxRewardWindow')]
0036  CLOSURE   R1 = closure proto6
0037  SETTABLE  R0[K25('SetBoxFinalScale')] = R1
0038  RETURN    return R0..R-1
; ---------- proto0 [Open] ----------
  ; fn ?  line 28-30 np=10 va=0 ms=23 code=17 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='BoxRewardWindow'
  ;   upvals: _ENV
  ;   locals: position(0-17), scaleX(0-17), eBoxRewardType(0-17), arrRewards(0-17), titleTextKey(0-17), playRewardAnim(0-17), rewardScene(0-17), initCallback(0-17), closeCallback(0-17), bLockEventDuringAnimation(0-17)
  0000  GETTABUP  R10 = _ENV[K0('GM')]
  0001  GETTABLE  R10 = R10[K1('UIManager')]
  0002  SELF      R11 = R10[K2('OpenView')] (self)
  0003  GETTABUP  R12 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R12 = R12[K4('BoxRewardWindow')]
  0005  MOVE      R13 = R0
  0006  MOVE      R14 = R0
  0007  MOVE      R15 = R0
  0008  MOVE      R16 = R0
  0009  MOVE      R17 = R0
  0010  MOVE      R18 = R0
  0011  MOVE      R19 = R0
  0012  MOVE      R20 = R0
  0013  MOVE      R21 = R0
  0014  MOVE      R22 = R0
  0015  CALL      R10 = call(R10, 0 args, 12 rets)
  0016  RETURN    return R0..R-1
; ---------- proto1 [OpenRigid] ----------
  ; fn ?  line 32-34 np=10 va=0 ms=23 code=17 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='RigidBoxRewardWindow'
  ;   upvals: _ENV
  ;   locals: position(0-17), scaleX(0-17), eBoxRewardType(0-17), arrRewards(0-17), titleTextKey(0-17), playRewardAnim(0-17), rewardScene(0-17), initCallback(0-17), closeCallback(0-17), bLockEventDuringAnimation(0-17)
  0000  GETTABUP  R10 = _ENV[K0('GM')]
  0001  GETTABLE  R10 = R10[K1('UIManager')]
  0002  SELF      R11 = R10[K2('OpenView')] (self)
  0003  GETTABUP  R12 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R12 = R12[K4('RigidBoxRewardWindow')]
  0005  MOVE      R13 = R0
  0006  MOVE      R14 = R0
  0007  MOVE      R15 = R0
  0008  MOVE      R16 = R0
  0009  MOVE      R17 = R0
  0010  MOVE      R18 = R0
  0011  MOVE      R19 = R0
  0012  MOVE      R20 = R0
  0013  MOVE      R21 = R0
  0014  MOVE      R22 = R0
  0015  CALL      R10 = call(R10, 0 args, 12 rets)
  0016  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 36-51 np=11 va=0 ms=20 code=36 consts=15 upvals=1 protos=1
  ;   K[0]='m_boxFinalScale'
  ;   K[1]='V3One'
  ;   K[2]='RewardWindow'
  ;   K[3]='Init'
  ;   K[4]='PlayEnterAnim'
  ;   K[5]='SetSprite'
  ;   K[6]='GM'
  ;   K[7]='AudioModel'
  ;   K[8]='PlayEffect'
  ;   K[9]='AudioFileConfigName'
  ;   K[10]='SfxSilverOrderGift'
  ;   K[11]='IsAutoRun'
  ;   K[12]='DOVirtual'
  ;   K[13]='DelayedCall'
  ;   K[14]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-36), position(0-36), scaleX(0-36), eBoxRewardType(0-36), arrRewards(0-36), titleTextKey(0-36), playRewardAnim(0-36), rewardScene(0-36), initCallback(0-36), closeCallback(0-36), bLockEventDuringAnimation(0-36)
  0000  GETTABUP  R11 = _ENV[K1('V3One')]
  0001  SETTABLE  R0[K0('m_boxFinalScale')] = R11
  0002  GETTABUP  R11 = _ENV[K2('RewardWindow')]
  0003  GETTABLE  R11 = R11[K3('Init')]
  0004  MOVE      R12 = R0
  0005  MOVE      R13 = R0
  0006  MOVE      R14 = R0
  0007  MOVE      R15 = R0
  0008  MOVE      R16 = R0
  0009  MOVE      R17 = R0
  0010  MOVE      R18 = R0
  0011  MOVE      R19 = R0
  0012  CALL      R11 = call(R11, 0 args, 8 rets)
  0013  SELF      R12 = R0[K4('PlayEnterAnim')] (self)
  0014  MOVE      R13 = R0
  0015  MOVE      R14 = R0
  0016  CALL      R11 = call(R11, 0 args, 3 rets)
  0017  SELF      R12 = R0[K5('SetSprite')] (self)
  0018  MOVE      R13 = R0
  0019  CALL      R11 = call(R11, 0 args, 2 rets)
  0020  GETTABUP  R11 = _ENV[K6('GM')]
  0021  GETTABLE  R11 = R11[K7('AudioModel')]
  0022  SELF      R12 = R11[K8('PlayEffect')] (self)
  0023  GETTABUP  R13 = _ENV[K9('AudioFileConfigName')]
  0024  GETTABLE  R13 = R13[K10('SfxSilverOrderGift')]
  0025  CALL      R11 = call(R11, 0 args, 2 rets)
  0026  GETTABUP  R11 = _ENV[K11('IsAutoRun')]
  0027  CALL      R11 = call(R11, 1 args, 0 rets)
  0028  TEST      if not R11 then   -> -131042
  0029  JMP       (jump)   -> 35
  0030  GETTABUP  R11 = _ENV[K12('DOVirtual')]
  0031  GETTABLE  R11 = R11[K13('DelayedCall')]
  0032  LOADK     R12 = K14 0.2
  0033  CLOSURE   R13 = closure proto0
  0034  CALL      R11 = call(R11, 0 args, 2 rets)
  0035  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 49-49 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='OnWindowMaskClicked'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('OnWindowMaskClicked')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto3 [PlayEnterAnim] ----------
  ; fn ?  line 53-59 np=3 va=0 ms=8 code=25 consts=10 upvals=0 protos=0
  ;   K[0]='m_boxRoot'
  ;   K[1]='anchoredPosition'
  ;   K[2]='position'
  ;   K[3]='SetLocalScaleXY'
  ;   K[4]='DOAnchorPos'
  ;   K[5]=0.3
  ;   K[6]='SetDelay'
  ;   K[7]=0.2
  ;   K[8]='DOScale'
  ;   K[9]='m_boxFinalScale'
  ;   locals: self(0-25), position(0-25), scaleX(0-25), originalPos(2-25)
  0000  GETTABLE  R3 = R0[K0('m_boxRoot')]
  0001  GETTABLE  R3 = R3[K1('anchoredPosition')]
  0002  GETTABLE  R4 = R0[K0('m_boxRoot')]
  0003  SETTABLE  R4[K2('position')] = R1
  0004  GETTABLE  R4 = R0[K0('m_boxRoot')]
  0005  SELF      R5 = R4[K3('SetLocalScaleXY')] (self)
  0006  MOVE      R6 = R0
  0007  CALL      R4 = call(R4, 0 args, 2 rets)
  0008  GETTABLE  R4 = R0[K0('m_boxRoot')]
  0009  SELF      R5 = R4[K4('DOAnchorPos')] (self)
  0010  MOVE      R6 = R0
  0011  LOADK     R7 = K5 0.3
  0012  CALL      R4 = call(R4, 1 args, 3 rets)
  0013  SELF      R5 = R4[K6('SetDelay')] (self)
  0014  LOADK     R6 = K7 0.2
  0015  CALL      R4 = call(R4, 0 args, 2 rets)
  0016  GETTABLE  R4 = R0[K0('m_boxRoot')]
  0017  SELF      R5 = R4[K8('DOScale')] (self)
  0018  GETTABLE  R6 = R0[K9('m_boxFinalScale')]
  0019  LOADK     R7 = K5 0.3
  0020  CALL      R4 = call(R4, 1 args, 3 rets)
  0021  SELF      R5 = R4[K6('SetDelay')] (self)
  0022  LOADK     R6 = K7 0.2
  0023  CALL      R4 = call(R4, 0 args, 2 rets)
  0024  RETURN    return R0..R-1
; ---------- proto4 [SetSprite] ----------
  ; fn ?  line 61-70 np=2 va=0 ms=7 code=21 consts=8 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='Contain'
  ;   K[2]='EBoxRewardType'
  ;   K[3]='task_gift'
  ;   K[4]='SpriteUtil'
  ;   K[5]='SetImage'
  ;   K[6]='m_boxImg'
  ;   K[7]='ImageFileConfigName'
  ;   upvals: _ENV
  ;   locals: self(0-21), eBoxRewardType(0-21), spriteName(1-21)
  0000  LOADNIL   R2..R2 = nil
  0001  GETTABUP  R3 = _ENV[K0('Table')]
  0002  GETTABLE  R3 = R3[K1('Contain')]
  0003  GETTABUP  R4 = _ENV[K2('EBoxRewardType')]
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 1 args, 2 rets)
  0006  TEST      if not R3 then   -> -131064
  0007  JMP       (jump)   -> 12
  0008  LOADK     R3 = K3 'task_gift'
  0009  MOVE      R4 = R0
  0010  CONCAT    R2 = concat(R2..R3)
  0011  JMP       (jump)   -> 13
  0012  MOVE      R2 = R0
  0013  GETTABUP  R3 = _ENV[K4('SpriteUtil')]
  0014  GETTABLE  R3 = R3[K5('SetImage')]
  0015  GETTABLE  R4 = R0[K6('m_boxImg')]
  0016  GETTABUP  R5 = _ENV[K7('ImageFileConfigName')]
  0017  GETTABLE  R5 = R5[R2]
  0018  LOADBOOL  R6 = true
  0019  CALL      R3 = call(R3, 0 args, 3 rets)
  0020  RETURN    return R0..R-1
; ---------- proto5 [OnDestroy] ----------
  ; fn ?  line 72-75 np=1 va=0 ms=4 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='RewardWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='GM'
  ;   K[3]='UIManager'
  ;   K[4]='RemoveAllEventLocks'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('RewardWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  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
; ---------- proto6 [SetBoxFinalScale] ----------
  ; fn ?  line 79-81 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_boxFinalScale'
  ;   locals: self(0-2), scale(0-2)
  0000  SETTABLE  R0[K0('m_boxFinalScale')] = R1
  0001  RETURN    return R0..R-1
