# UI_Button_PropertyButton_300.luac
; fn @PropertyButton.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='PropertyButton'
;   K[1]='setmetatable'
;   K[2]='SimpleButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='_MiddleIconAndText'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('SimpleButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('PropertyButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('PropertyButton')]
0006  GETTABUP  R1 = _ENV[K0('PropertyButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('PropertyButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('PropertyButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_MiddleIconAndText')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-17 np=4 va=0 ms=9 code=27 consts=10 upvals=1 protos=1
  ;   K[0]='SimpleButton'
  ;   K[1]='Init'
  ;   K[2]='m_propertyType'
  ;   K[3]='m_iconImg'
  ;   K[4]='gameObject'
  ;   K[5]='SetActive'
  ;   K[6]='SpriteUtil'
  ;   K[7]='SetImage'
  ;   K[8]='EPropertySpriteBig'
  ;   K[9]='_MiddleIconAndText'
  ;   upvals: _ENV
  ;   locals: self(0-27), propertyType(0-27), count(0-27), callback(0-27)
  0000  GETTABUP  R4 = _ENV[K0('SimpleButton')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  CALL      R4 = call(R4, 0 args, 3 rets)
  0006  GETTABLE  R4 = R0[K2('m_propertyType')]
  0007  EQ        if R1 eq R1   -> -129014
  0008  JMP       (jump)   -> 24
  0009  GETTABLE  R4 = R0[K3('m_iconImg')]
  0010  GETTABLE  R4 = R4[K4('gameObject')]
  0011  SELF      R5 = R4[K5('SetActive')] (self)
  0012  LOADBOOL  R6 = false
  0013  CALL      R4 = call(R4, 0 args, 2 rets)
  0014  SETTABLE  R0[K2('m_propertyType')] = R1
  0015  GETTABUP  R4 = _ENV[K6('SpriteUtil')]
  0016  GETTABLE  R4 = R4[K7('SetImage')]
  0017  GETTABLE  R5 = R0[K3('m_iconImg')]
  0018  GETTABUP  R6 = _ENV[K8('EPropertySpriteBig')]
  0019  GETTABLE  R6 = R6[R1]
  0020  LOADBOOL  R7 = true
  0021  CLOSURE   R8 = closure proto0
  0022  CALL      R4 = call(R4, 0 args, 4 rets)
  0023  JMP       (jump)   -> 26
  0024  SELF      R5 = R0[K9('_MiddleIconAndText')] (self)
  0025  CALL      R4 = call(R4, 0 args, 1 rets)
  0026  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 9-12 np=0 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
    ;   K[0]='m_iconImg'
    ;   K[1]='gameObject'
    ;   K[2]='SetActive'
    ;   K[3]='_MiddleIconAndText'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_iconImg')]
    0001  GETTABLE  R0 = R0[K1('gameObject')]
    0002  SELF      R1 = R0[K2('SetActive')] (self)
    0003  LOADBOOL  R2 = true
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  GETUPVAL  R0 = self
    0006  SELF      R1 = R0[K3('_MiddleIconAndText')] (self)
    0007  CALL      R0 = call(R0, 0 args, 1 rets)
    0008  RETURN    return R0..R-1
; ---------- proto1 [_MiddleIconAndText] ----------
  ; fn ?  line 19-22 np=1 va=0 ms=6 code=23 consts=13 upvals=1 protos=0
  ;   K[0]='m_text'
  ;   K[1]='transform'
  ;   K[2]='sizeDelta'
  ;   K[3]='Vector2'
  ;   K[4]='math'
  ;   K[5]='min'
  ;   K[6]='x'
  ;   K[7]=150
  ;   K[8]='preferredWidth'
  ;   K[9]='y'
  ;   K[10]='LayoutRebuilder'
  ;   K[11]='ForceRebuildLayoutImmediate'
  ;   K[12]='m_wrapTrans'
  ;   upvals: _ENV
  ;   locals: self(0-23)
  0000  GETTABLE  R1 = R0[K0('m_text')]
  0001  GETTABLE  R1 = R1[K1('transform')]
  0002  GETTABUP  R2 = _ENV[K3('Vector2')]
  0003  GETTABUP  R3 = _ENV[K4('math')]
  0004  GETTABLE  R3 = R3[K5('min')]
  0005  GETTABLE  R4 = R0[K1('transform')]
  0006  GETTABLE  R4 = R4[K2('sizeDelta')]
  0007  GETTABLE  R4 = R4[K6('x')]
  0008  SUB       R4 = K7(150) sub R4
  0009  GETTABLE  R5 = R0[K0('m_text')]
  0010  GETTABLE  R5 = R5[K8('preferredWidth')]
  0011  CALL      R3 = call(R3, 1 args, 2 rets)
  0012  GETTABLE  R4 = R0[K0('m_text')]
  0013  GETTABLE  R4 = R4[K1('transform')]
  0014  GETTABLE  R4 = R4[K2('sizeDelta')]
  0015  GETTABLE  R4 = R4[K9('y')]
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  SETTABLE  R1[K2('sizeDelta')] = R2
  0018  GETTABUP  R1 = _ENV[K10('LayoutRebuilder')]
  0019  GETTABLE  R1 = R1[K11('ForceRebuildLayoutImmediate')]
  0020  GETTABLE  R2 = R0[K12('m_wrapTrans')]
  0021  CALL      R1 = call(R1, 0 args, 1 rets)
  0022  RETURN    return R0..R-1
