# LuckyDay_View_LuckyDayEntry_1249.luac
; fn @LuckyDayEntry.lua  line 0-0 np=0 va=1 ms=2 code=27 consts=9 upvals=1 protos=7
;   K[0]='LuckyDayEntry'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnEnable'
;   K[4]='UpdateContent'
;   K[5]='UpdatePerSecond'
;   K[6]='OnClicked'
;   K[7]='ToggleVisibility'
;   K[8]='OnHit'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('LuckyDayEntry')] = R0
0002  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0003  GETTABUP  R1 = _ENV[K0('LuckyDayEntry')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnEnable')] = R1
0011  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdateContent')] = R1
0014  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('UpdatePerSecond')] = R1
0017  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('OnClicked')] = R1
0020  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('ToggleVisibility')] = R1
0023  GETTABUP  R0 = _ENV[K0('LuckyDayEntry')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('OnHit')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-20 np=5 va=0 ms=8 code=17 consts=6 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='UpdateContent'
  ;   K[2]='UpdatePerSecond'
  ;   K[3]='IsWindowSkipped'
  ;   K[4]='SetWindowSkipped'
  ;   K[5]='OnHit'
  ;   locals: self(0-17), model(0-17), orderCell(0-17), orderArea(0-17), order(0-17)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  SELF      R6 = R0[K1('UpdateContent')] (self)
  0002  CALL      R5 = call(R5, 0 args, 1 rets)
  0003  SELF      R6 = R0[K2('UpdatePerSecond')] (self)
  0004  CALL      R5 = call(R5, 0 args, 1 rets)
  0005  GETTABLE  R5 = R0[K0('m_model')]
  0006  SELF      R6 = R5[K3('IsWindowSkipped')] (self)
  0007  CALL      R5 = call(R5, 1 args, 1 rets)
  0008  TEST      if not R5 then   -> -131062
  0009  JMP       (jump)   -> 16
  0010  GETTABLE  R5 = R0[K0('m_model')]
  0011  SELF      R6 = R5[K4('SetWindowSkipped')] (self)
  0012  LOADBOOL  R7 = false
  0013  CALL      R5 = call(R5, 0 args, 2 rets)
  0014  SELF      R6 = R0[K5('OnHit')] (self)
  0015  CALL      R5 = call(R5, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
; ---------- proto1 [OnEnable] ----------
  ; fn ?  line 22-26 np=1 va=0 ms=3 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='UpdatePerSecond'
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  SELF      R2 = R0[K1('UpdatePerSecond')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto2 [UpdateContent] ----------
  ; fn ?  line 28-33 np=1 va=0 ms=9 code=19 consts=6 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetFinishCount'
  ;   K[2]=1
  ;   K[3]=3
  ;   K[4]='m_leafGo'
  ;   K[5]='SetActive'
  ;   locals: self(0-19), finishCount(3-19), (for index)(6-18), (for limit)(6-18), (for step)(6-18), i(7-17)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetFinishCount')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  LOADK     R2 = K2 1
  0004  LOADK     R3 = K3 3
  0005  LOADK     R4 = K2 1
  0006  FORPREP   forprep R2(sBx=10)   -> 17
  0007  LOADK     R6 = K4 'm_leafGo'
  0008  MOVE      R7 = R0
  0009  CONCAT    R6 = concat(R6..R6)
  0010  GETTABLE  R6 = R0[R6]
  0011  SELF      R7 = R6[K5('SetActive')] (self)
  0012  LE        if R1 le R1   -> -128497
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R8 = false
  0015  LOADBOOL  R8 = true
  0016  CALL      R6 = call(R6, 0 args, 2 rets)
  0017  FORLOOP   forloop R2(sBx=-11)   -> 7
  0018  RETURN    return R0..R-1
; ---------- proto3 [UpdatePerSecond] ----------
  ; fn ?  line 35-38 np=1 va=0 ms=5 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetLeftDuration'
  ;   K[2]='m_timeText'
  ;   K[3]='text'
  ;   K[4]='TimeUtil'
  ;   K[5]='ToMSOrHMS'
  ;   upvals: _ENV
  ;   locals: self(0-10), leftDuration(3-10)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetLeftDuration')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABLE  R2 = R0[K2('m_timeText')]
  0004  GETTABUP  R3 = _ENV[K4('TimeUtil')]
  0005  GETTABLE  R3 = R3[K5('ToMSOrHMS')]
  0006  MOVE      R4 = R0
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  SETTABLE  R2[K3('text')] = R3
  0009  RETURN    return R0..R-1
; ---------- proto4 [OnClicked] ----------
  ; fn ?  line 40-46 np=1 va=0 ms=7 code=17 consts=7 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetType'
  ;   K[2]='LuckyDayDefinition'
  ;   K[3]='MainWindowPrefabName'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   upvals: _ENV
  ;   locals: self(0-17), activityType(3-17), definition(5-17)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetType')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('LuckyDayDefinition')]
  0004  GETTABLE  R2 = R2[R1]
  0005  TEST      if not R2 then   -> -131065
  0006  JMP       (jump)   -> 16
  0007  GETTABLE  R3 = R2[K3('MainWindowPrefabName')]
  0008  TEST      if not R3 then   -> -131062
  0009  JMP       (jump)   -> 16
  0010  GETTABUP  R3 = _ENV[K4('GM')]
  0011  GETTABLE  R3 = R3[K5('UIManager')]
  0012  SELF      R4 = R3[K6('OpenView')] (self)
  0013  GETTABLE  R5 = R2[K3('MainWindowPrefabName')]
  0014  MOVE      R6 = R0
  0015  CALL      R3 = call(R3, 0 args, 3 rets)
  0016  RETURN    return R0..R-1
; ---------- proto5 [ToggleVisibility] ----------
  ; fn ?  line 48-50 np=2 va=0 ms=4 code=9 consts=4 upvals=0 protos=0
  ;   K[0]='m_canvasGroup'
  ;   K[1]='alpha'
  ;   K[2]=1
  ;   K[3]=0
  ;   locals: self(0-9), visible(0-9)
  0000  GETTABLE  R2 = R0[K0('m_canvasGroup')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 6
  0003  LOADK     R3 = K2 1
  0004  TEST      if not R3 then   -> -131065
  0005  JMP       (jump)   -> 7
  0006  LOADK     R3 = K3 0
  0007  SETTABLE  R2[K1('alpha')] = R3
  0008  RETURN    return R0..R-1
; ---------- proto6 [OnHit] ----------
  ; fn ?  line 52-55 np=1 va=0 ms=5 code=19 consts=13 upvals=1 protos=0
  ;   K[0]='m_hitEffectGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_shineImg'
  ;   K[3]='DOFade'
  ;   K[4]=1
  ;   K[5]=0.4
  ;   K[6]='SetLoops'
  ;   K[7]=2
  ;   K[8]='LoopType'
  ;   K[9]='Yoyo'
  ;   K[10]='SetEase'
  ;   K[11]='Ease'
  ;   K[12]='OutSine'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABLE  R1 = R0[K0('m_hitEffectGo')]
  0001  SELF      R2 = R1[K1('SetActive')] (self)
  0002  LOADBOOL  R3 = true
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  GETTABLE  R1 = R0[K2('m_shineImg')]
  0005  SELF      R2 = R1[K3('DOFade')] (self)
  0006  LOADK     R3 = K4 1
  0007  LOADK     R4 = K5 0.4
  0008  CALL      R1 = call(R1, 1 args, 3 rets)
  0009  SELF      R2 = R1[K6('SetLoops')] (self)
  0010  LOADK     R3 = K7 2
  0011  GETTABUP  R4 = _ENV[K8('LoopType')]
  0012  GETTABLE  R4 = R4[K9('Yoyo')]
  0013  CALL      R1 = call(R1, 1 args, 3 rets)
  0014  SELF      R2 = R1[K10('SetEase')] (self)
  0015  GETTABUP  R3 = _ENV[K11('Ease')]
  0016  GETTABLE  R3 = R3[K12('OutSine')]
  0017  CALL      R1 = call(R1, 0 args, 2 rets)
  0018  RETURN    return R0..R-1
