# UI_Button_HudBaseButton_277.luac
; fn @HudBaseButton.lua  line 0-0 np=0 va=1 ms=5 code=51 consts=19 upvals=1 protos=14
;   K[0]=1.25
;   K[1]=0.1
;   K[2]=20
;   K[3]='HudBaseButton'
;   K[4]='__index'
;   K[5]='Awake'
;   K[6]='OnEnable'
;   K[7]='UpdateScale'
;   K[8]='SetFlyTargetPosition'
;   K[9]='GetFlyTargetPosition'
;   K[10]='SetInBoardView'
;   K[11]='IsInBoardView'
;   K[12]='OnHighlight'
;   K[13]='IconScaleAnimation'
;   K[14]='UpdateTextAnimation'
;   K[15]='GetScaleTrans'
;   K[16]='OnTutorialHighlight'
;   K[17]='_HighlightCallback'
;   K[18]='OnDestroy'
;   upvals: _ENV
;   locals: ICON_SCALE(1-51), ICON_SCALE_TIME(2-51), SCALE_EFFECT_DEFAULT_SORTING_ORDER(3-51)
0000  LOADK     R0 = K0 1.25
0001  LOADK     R1 = K1 0.1
0002  LOADK     R2 = K2 20
0003  NEWTABLE  R3 = {} (0 items)
0004  SETTABUP  _ENV[K3('HudBaseButton')] = R3
0005  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0006  GETTABUP  R4 = _ENV[K3('HudBaseButton')]
0007  SETTABLE  R3[K4('__index')] = R4
0008  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0009  CLOSURE   R4 = closure proto0
0010  SETTABLE  R3[K5('Awake')] = R4
0011  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0012  CLOSURE   R4 = closure proto1
0013  SETTABLE  R3[K6('OnEnable')] = R4
0014  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0015  CLOSURE   R4 = closure proto2
0016  SETTABLE  R3[K7('UpdateScale')] = R4
0017  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0018  CLOSURE   R4 = closure proto3
0019  SETTABLE  R3[K8('SetFlyTargetPosition')] = R4
0020  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0021  CLOSURE   R4 = closure proto4
0022  SETTABLE  R3[K9('GetFlyTargetPosition')] = R4
0023  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0024  CLOSURE   R4 = closure proto5
0025  SETTABLE  R3[K10('SetInBoardView')] = R4
0026  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0027  CLOSURE   R4 = closure proto6
0028  SETTABLE  R3[K11('IsInBoardView')] = R4
0029  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0030  CLOSURE   R4 = closure proto7
0031  SETTABLE  R3[K12('OnHighlight')] = R4
0032  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0033  CLOSURE   R4 = closure proto8
0034  SETTABLE  R3[K13('IconScaleAnimation')] = R4
0035  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0036  CLOSURE   R4 = closure proto9
0037  SETTABLE  R3[K14('UpdateTextAnimation')] = R4
0038  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0039  CLOSURE   R4 = closure proto10
0040  SETTABLE  R3[K15('GetScaleTrans')] = R4
0041  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0042  CLOSURE   R4 = closure proto11
0043  SETTABLE  R3[K16('OnTutorialHighlight')] = R4
0044  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0045  CLOSURE   R4 = closure proto12
0046  SETTABLE  R3[K17('_HighlightCallback')] = R4
0047  GETTABUP  R3 = _ENV[K3('HudBaseButton')]
0048  CLOSURE   R4 = closure proto13
0049  SETTABLE  R3[K18('OnDestroy')] = R4
0050  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 10-15 np=1 va=0 ms=2 code=8 consts=8 upvals=0 protos=0
  ;   K[0]='m_bScaled'
  ;   K[1]=false
  ;   K[2]='m_scale'
  ;   K[3]='m_scaleTrans'
  ;   K[4]='localScale'
  ;   K[5]='m_name'
  ;   K[6]='gameObject'
  ;   K[7]='name'
  ;   locals: self(0-8)
  0000  SETTABLE  R0[K0('m_bScaled')] = K1(false)
  0001  GETTABLE  R1 = R0[K3('m_scaleTrans')]
  0002  GETTABLE  R1 = R1[K4('localScale')]
  0003  SETTABLE  R0[K2('m_scale')] = R1
  0004  GETTABLE  R1 = R0[K6('gameObject')]
  0005  GETTABLE  R1 = R1[K7('name')]
  0006  SETTABLE  R0[K5('m_name')] = R1
  0007  RETURN    return R0..R-1
; ---------- proto1 [OnEnable] ----------
  ; fn ?  line 17-22 np=1 va=0 ms=3 code=6 consts=1 upvals=0 protos=0
  ;   K[0]='UpdatePerSecond'
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('UpdatePerSecond')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  SELF      R2 = R0[K0('UpdatePerSecond')] (self)
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto2 [UpdateScale] ----------
  ; fn ?  line 24-26 np=1 va=0 ms=2 code=4 consts=3 upvals=0 protos=0
  ;   K[0]='m_scale'
  ;   K[1]='m_scaleTrans'
  ;   K[2]='localScale'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K1('m_scaleTrans')]
  0001  GETTABLE  R1 = R1[K2('localScale')]
  0002  SETTABLE  R0[K0('m_scale')] = R1
  0003  RETURN    return R0..R-1
; ---------- proto3 [SetFlyTargetPosition] ----------
  ; fn ?  line 28-34 np=1 va=0 ms=2 code=11 consts=4 upvals=0 protos=0
  ;   K[0]='flyTarget'
  ;   K[1]='flyTargetPosition'
  ;   K[2]='position'
  ;   K[3]='transform'
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('flyTarget')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('flyTarget')]
  0004  GETTABLE  R1 = R1[K2('position')]
  0005  SETTABLE  R0[K1('flyTargetPosition')] = R1
  0006  JMP       (jump)   -> 10
  0007  GETTABLE  R1 = R0[K3('transform')]
  0008  GETTABLE  R1 = R1[K2('position')]
  0009  SETTABLE  R0[K1('flyTargetPosition')] = R1
  0010  RETURN    return R0..R-1
; ---------- proto4 [GetFlyTargetPosition] ----------
  ; fn ?  line 36-38 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='flyTargetPosition'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('flyTargetPosition')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto5 [SetInBoardView] ----------
  ; fn ?  line 40-42 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='m_bInBoardView'
  ;   K[1]=true
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('m_bInBoardView')] = K1(true)
  0001  RETURN    return R0..R-1
; ---------- proto6 [IsInBoardView] ----------
  ; fn ?  line 44-46 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bInBoardView'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bInBoardView')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto7 [OnHighlight] ----------
  ; fn ?  line 48-50 np=2 va=0 ms=5 code=14 consts=7 upvals=2 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='UpdateSortingOrder'
  ;   K[2]='m_scaleEffect'
  ;   K[3]='gameObject'
  ;   K[4]='ESpecialViewSortingOrder'
  ;   K[5]='HudHighlight'
  ;   K[6]=1
  ;   upvals: _ENV, SCALE_EFFECT_DEFAULT_SORTING_ORDER
  ;   locals: self(0-14), highlight(0-14)
  0000  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R2 = R2[K1('UpdateSortingOrder')]
  0002  GETTABLE  R3 = R0[K2('m_scaleEffect')]
  0003  GETTABLE  R3 = R3[K3('gameObject')]
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 11
  0006  GETTABUP  R4 = _ENV[K4('ESpecialViewSortingOrder')]
  0007  GETTABLE  R4 = R4[K5('HudHighlight')]
  0008  ADD       R4 = K6(1) add R4
  0009  TEST      if not R4 then   -> -131060
  0010  JMP       (jump)   -> 12
  0011  GETUPVAL  R4 = _ENV
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto8 [IconScaleAnimation] ----------
  ; fn ?  line 54-82 np=2 va=0 ms=10 code=60 consts=17 upvals=3 protos=3
  ;   K[0]='m_scaleEffect'
  ;   K[1]='Play'
  ;   K[2]='m_scale'
  ;   K[3]=nil
  ;   K[4]='m_bScaled'
  ;   K[5]='m_seqScale'
  ;   K[6]='Kill'
  ;   K[7]='m_scaleTrans'
  ;   K[8]='localScale'
  ;   K[9]='x'
  ;   K[10]=1
  ;   K[11]='DOTween'
  ;   K[12]='Sequence'
  ;   K[13]='AppendCallback'
  ;   K[14]='Append'
  ;   K[15]='DOScale'
  ;   K[16]='m_seqScale'
  ;   upvals: ICON_SCALE, _ENV, ICON_SCALE_TIME
  ;   locals: self(0-60), needEffect(0-60), scaleFactor(29-60), seq(32-60)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 5
  0002  GETTABLE  R2 = R0[K0('m_scaleEffect')]
  0003  SELF      R3 = R2[K1('Play')] (self)
  0004  CALL      R2 = call(R2, 0 args, 1 rets)
  0005  GETTABLE  R2 = R0[K2('m_scale')]
  0006  EQ        if R1 eq K3(nil)   -> -129781
  0007  JMP       (jump)   -> 11
  0008  GETTABLE  R2 = R0[K4('m_bScaled')]
  0009  TEST      if not R2 then   -> -131061
  0010  JMP       (jump)   -> 12
  0011  RETURN    return R0..R-1
  0012  GETTABLE  R2 = R0[K5('m_seqScale')]
  0013  TEST      if not R2 then   -> -131057
  0014  JMP       (jump)   -> 19
  0015  GETTABLE  R2 = R0[K5('m_seqScale')]
  0016  SELF      R3 = R2[K6('Kill')] (self)
  0017  CALL      R2 = call(R2, 0 args, 1 rets)
  0018  SETTABLE  R0[K5('m_seqScale')] = K3(nil)
  0019  GETTABLE  R2 = R0[K7('m_scaleTrans')]
  0020  GETTABLE  R2 = R2[K8('localScale')]
  0021  GETTABLE  R2 = R2[K9('x')]
  0022  GETTABLE  R3 = R0[K2('m_scale')]
  0023  GETTABLE  R3 = R3[K9('x')]
  0024  SUB       R2 = R3 sub R2
  0025  GETUPVAL  R3 = ICON_SCALE
  0026  SUB       R3 = K10(1) sub R3
  0027  DIV       R2 = R3 div R2
  0028  SUB       R2 = R2 sub K10(1)
  0029  GETTABUP  R3 = _ENV[K11('DOTween')]
  0030  GETTABLE  R3 = R3[K12('Sequence')]
  0031  CALL      R3 = call(R3, 1 args, 0 rets)
  0032  SELF      R5 = R3[K13('AppendCallback')] (self)
  0033  CLOSURE   R6 = closure proto0
  0034  CALL      R4 = call(R4, 0 args, 2 rets)
  0035  SELF      R5 = R3[K14('Append')] (self)
  0036  GETTABLE  R6 = R0[K7('m_scaleTrans')]
  0037  SELF      R7 = R6[K15('DOScale')] (self)
  0038  GETTABLE  R8 = R0[K2('m_scale')]
  0039  GETUPVAL  R9 = ICON_SCALE
  0040  MUL       R8 = R9 mul R8
  0041  GETUPVAL  R9 = ICON_SCALE
  0042  MUL       R9 = R2 mul R9
  0043  CALL      R6 = call(R6, -1 args, 3 rets)
  0044  CALL      R4 = call(R4, 0 args, -1 rets)
  0045  SELF      R5 = R3[K13('AppendCallback')] (self)
  0046  CLOSURE   R6 = closure proto1
  0047  CALL      R4 = call(R4, 0 args, 2 rets)
  0048  SELF      R5 = R3[K14('Append')] (self)
  0049  GETTABLE  R6 = R0[K7('m_scaleTrans')]
  0050  SELF      R7 = R6[K15('DOScale')] (self)
  0051  GETTABLE  R8 = R0[K2('m_scale')]
  0052  GETUPVAL  R9 = ICON_SCALE
  0053  CALL      R6 = call(R6, -1 args, 3 rets)
  0054  CALL      R4 = call(R4, 0 args, -1 rets)
  0055  SELF      R5 = R3[K13('AppendCallback')] (self)
  0056  CLOSURE   R6 = closure proto2
  0057  CALL      R4 = call(R4, 0 args, 2 rets)
  0058  SETTABLE  R0[K16('m_seqScale')] = R3
  0059  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 70-72 np=0 va=0 ms=2 code=2 consts=2 upvals=1 protos=0
    ;   K[0]='m_bScaled'
    ;   K[1]=true
    ;   upvals: self
    0000  SETTABUP  self[K0('m_bScaled')] = K1(true)
    0001  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 74-76 np=0 va=0 ms=2 code=2 consts=2 upvals=1 protos=0
    ;   K[0]='m_bScaled'
    ;   K[1]=false
    ;   upvals: self
    0000  SETTABUP  self[K0('m_bScaled')] = K1(false)
    0001  RETURN    return R0..R-1
  ; ---------- proto2 [m_seqScale] ----------
    ; fn ?  line 78-80 np=0 va=0 ms=2 code=2 consts=2 upvals=1 protos=0
    ;   K[0]='m_seqScale'
    ;   K[1]=nil
    ;   upvals: self
    0000  SETTABUP  self[K0('m_seqScale')] = K1(nil)
    0001  RETURN    return R0..R-1
; ---------- proto9 [UpdateTextAnimation] ----------
  ; fn ?  line 90-92 np=5 va=0 ms=5 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1), checkType(0-1), valueChange(0-1), isMiddleStep(0-1), bEndStep(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto10 [GetScaleTrans] ----------
  ; fn ?  line 94-96 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_scaleTrans'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_scaleTrans')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto11 [OnTutorialHighlight] ----------
  ; fn ?  line 98-101 np=3 va=0 ms=5 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_callback'
  ;   K[1]='_HighlightCallback'
  ;   locals: self(0-4), bHighlight(0-4), callback(0-4)
  0000  SETTABLE  R0[K0('m_callback')] = R2
  0001  SELF      R4 = R0[K1('_HighlightCallback')] (self)
  0002  CALL      R3 = call(R3, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto12 [_HighlightCallback] ----------
  ; fn ?  line 103-109 np=1 va=0 ms=3 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='m_callback'
  ;   K[1]=nil
  ;   locals: self(0-8), callback(4-7)
  0000  GETTABLE  R1 = R0[K0('m_callback')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_callback')]
  0004  SETTABLE  R0[K0('m_callback')] = K1(nil)
  0005  MOVE      R2 = R0
  0006  CALL      R2 = call(R2, 0 args, 0 rets)
  0007  RETURN    return R0..R-1
; ---------- proto13 [OnDestroy] ----------
  ; fn ?  line 111-116 np=1 va=0 ms=3 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='m_seqScale'
  ;   K[1]=nil
  ;   K[2]='Kill'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_seqScale')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_seqScale')]
  0004  SELF      R2 = R1[K2('Kill')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SETTABLE  R0[K0('m_seqScale')] = K1(nil)
  0007  RETURN    return R0..R-1
