# UI_Window_InputConfirmWindow_452.luac
; fn @InputConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='InputConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='TwoButtonWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnInputEditing'
;   K[6]='_UpdateConfirmButton'
;   K[7]='_AdjustSize'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('TwoButtonWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('InputConfirmWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('InputConfirmWindow')]
0006  GETTABUP  R1 = _ENV[K0('InputConfirmWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('InputConfirmWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('InputConfirmWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnInputEditing')] = R1
0014  GETTABUP  R0 = _ENV[K0('InputConfirmWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_UpdateConfirmButton')] = R1
0017  GETTABUP  R0 = _ENV[K0('InputConfirmWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('_AdjustSize')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-10 np=7 va=0 ms=16 code=16 consts=4 upvals=1 protos=0
  ;   K[0]='TwoButtonWindow'
  ;   K[1]='_InitWithText'
  ;   K[2]='m_confirmText'
  ;   K[3]='_UpdateConfirmButton'
  ;   upvals: _ENV
  ;   locals: self(0-16), titleText(0-16), descText(0-16), confirmInputText(0-16), confirmButtonText(0-16), cancelButtonText(0-16), confirmCallback(0-16)
  0000  GETTABUP  R7 = _ENV[K0('TwoButtonWindow')]
  0001  GETTABLE  R7 = R7[K1('_InitWithText')]
  0002  MOVE      R8 = R0
  0003  MOVE      R9 = R0
  0004  MOVE      R10 = R0
  0005  MOVE      R11 = R0
  0006  MOVE      R12 = R0
  0007  MOVE      R13 = R0
  0008  LOADNIL   R14..R14 = nil
  0009  LOADBOOL  R15 = true
  0010  CALL      R7 = call(R7, 0 args, 8 rets)
  0011  SETTABLE  R0[K2('m_confirmText')] = R3
  0012  SELF      R8 = R0[K3('_UpdateConfirmButton')] (self)
  0013  LOADBOOL  R9 = false
  0014  CALL      R7 = call(R7, 0 args, 2 rets)
  0015  RETURN    return R0..R-1
; ---------- proto1 [OnInputEditing] ----------
  ; fn ?  line 12-14 np=1 va=0 ms=5 code=10 consts=4 upvals=0 protos=0
  ;   K[0]='_UpdateConfirmButton'
  ;   K[1]='m_inputField'
  ;   K[2]='text'
  ;   K[3]='m_confirmText'
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('_UpdateConfirmButton')] (self)
  0001  GETTABLE  R3 = R0[K1('m_inputField')]
  0002  GETTABLE  R3 = R3[K2('text')]
  0003  GETTABLE  R4 = R0[K3('m_confirmText')]
  0004  EQ        if R1 eq R4   -> -129526
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R3 = false
  0007  LOADBOOL  R3 = true
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [_UpdateConfirmButton] ----------
  ; fn ?  line 16-18 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_redButtonTb'
  ;   K[1]='SetEnabled'
  ;   locals: self(0-5), enable(0-5)
  0000  GETTABLE  R2 = R0[K0('m_redButtonTb')]
  0001  SELF      R3 = R2[K1('SetEnabled')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [_AdjustSize] ----------
  ; fn ?  line 20-33 np=1 va=0 ms=6 code=27 consts=8 upvals=1 protos=0
  ;   K[0]='m_descText'
  ;   K[1]='preferredHeight'
  ;   K[2]='transform'
  ;   K[3]='sizeDelta'
  ;   K[4]='y'
  ;   K[5]='m_contentRect'
  ;   K[6]='TwoButtonWindow'
  ;   K[7]='_AdjustSize'
  ;   upvals: _ENV
  ;   locals: self(0-27), preferredHeight(2-27), defaultTextSizeDelta(5-27), defaultSizeDelta(10-21)
  0000  GETTABLE  R1 = R0[K0('m_descText')]
  0001  GETTABLE  R1 = R1[K1('preferredHeight')]
  0002  GETTABLE  R2 = R0[K0('m_descText')]
  0003  GETTABLE  R2 = R2[K2('transform')]
  0004  GETTABLE  R2 = R2[K3('sizeDelta')]
  0005  GETTABLE  R3 = R2[K4('y')]
  0006  LT        if R0 lt R3   -> -130549
  0007  JMP       (jump)   -> 22
  0008  GETTABLE  R3 = R0[K5('m_contentRect')]
  0009  GETTABLE  R3 = R3[K3('sizeDelta')]
  0010  GETTABLE  R4 = R3[K4('y')]
  0011  ADD       R4 = R1 add R4
  0012  GETTABLE  R5 = R2[K4('y')]
  0013  SUB       R4 = R5 sub R4
  0014  SETTABLE  R3[K4('y')] = R4
  0015  GETTABLE  R4 = R0[K5('m_contentRect')]
  0016  SETTABLE  R4[K3('sizeDelta')] = R3
  0017  SETTABLE  R2[K4('y')] = R1
  0018  GETTABLE  R4 = R0[K0('m_descText')]
  0019  GETTABLE  R4 = R4[K2('transform')]
  0020  SETTABLE  R4[K3('sizeDelta')] = R2
  0021  JMP       (jump)   -> 26
  0022  GETTABUP  R3 = _ENV[K6('TwoButtonWindow')]
  0023  GETTABLE  R3 = R3[K7('_AdjustSize')]
  0024  MOVE      R4 = R0
  0025  CALL      R3 = call(R3, 0 args, 1 rets)
  0026  RETURN    return R0..R-1
