# UI_Button_BoardEntryHudButton_329.luac
; fn @BoardEntryHudButton.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='BoardEntryHudButton'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='GetContentRect'
;   K[5]='IconScaleAnimation'
;   K[6]='RegisterIconScaleAnimationCallback'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('BoardEntryHudButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('BoardEntryHudButton')]
0006  GETTABUP  R1 = _ENV[K0('BoardEntryHudButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BoardEntryHudButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('GetContentRect')] = R1
0011  GETTABUP  R0 = _ENV[K0('BoardEntryHudButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('IconScaleAnimation')] = R1
0014  GETTABUP  R0 = _ENV[K0('BoardEntryHudButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('RegisterIconScaleAnimationCallback')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [GetContentRect] ----------
  ; fn ?  line 6-8 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_contentRect'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_contentRect')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto1 [IconScaleAnimation] ----------
  ; fn ?  line 10-15 np=2 va=0 ms=5 code=14 consts=4 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='IconScaleAnimation'
  ;   K[2]='IsFunction'
  ;   K[3]='m_iconScaleAnimationCallback'
  ;   upvals: _ENV
  ;   locals: self(0-14), needEffect(0-14)
  0000  GETTABUP  R2 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R2 = R2[K1('IconScaleAnimation')]
  0002  MOVE      R3 = R0
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  GETTABUP  R2 = _ENV[K2('IsFunction')]
  0006  GETTABLE  R3 = R0[K3('m_iconScaleAnimationCallback')]
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131062
  0009  JMP       (jump)   -> 13
  0010  GETTABLE  R2 = R0[K3('m_iconScaleAnimationCallback')]
  0011  MOVE      R3 = R0
  0012  CALL      R2 = call(R2, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto2 [RegisterIconScaleAnimationCallback] ----------
  ; fn ?  line 18-20 np=2 va=0 ms=2 code=2 consts=1 upvals=0 protos=0
  ;   K[0]='m_iconScaleAnimationCallback'
  ;   locals: self(0-2), callback(0-2)
  0000  SETTABLE  R0[K0('m_iconScaleAnimationCallback')] = R1
  0001  RETURN    return R0..R-1
