# UI_Window_Setting_FramePreviewWindow_581.luac
; fn @FramePreviewWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=11 upvals=1 protos=4
;   K[0]='FramePreviewWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='BaseWindow'
;   K[6]='__index'
;   K[7]='BeforeOpenCheck'
;   K[8]='Init'
;   K[9]='OnBtnClick'
;   K[10]='OnPreviewBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('BaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('FramePreviewWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('FramePreviewWindow')]
0009  GETTABUP  R1 = _ENV[K0('FramePreviewWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('FramePreviewWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('BeforeOpenCheck')] = R1
0014  GETTABUP  R0 = _ENV[K0('FramePreviewWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K8('Init')] = R1
0017  GETTABUP  R0 = _ENV[K0('FramePreviewWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K9('OnBtnClick')] = R1
0020  GETTABUP  R0 = _ENV[K0('FramePreviewWindow')]
0021  CLOSURE   R1 = closure proto3
0022  SETTABLE  R0[K10('OnPreviewBtnClicked')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 11-17 np=2 va=0 ms=4 code=11 consts=2 upvals=1 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='IsNilOrEmpty'
  ;   upvals: _ENV
  ;   locals: self(0-11), frameId(0-11)
  0000  GETTABUP  R2 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R2 = R2[K1('IsNilOrEmpty')]
  0002  MOVE      R3 = R0
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 8
  0006  LOADBOOL  R2 = false
  0007  RETURN    return R2..R1
  0008  LOADBOOL  R2 = true
  0009  RETURN    return R2..R1
  0010  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 20-25 np=2 va=0 ms=9 code=18 consts=10 upvals=1 protos=0
  ;   K[0]='m_frameId'
  ;   K[1]='m_userAvatar'
  ;   K[2]='SetAvatar'
  ;   K[3]='EAvatarFrame'
  ;   K[4]='Normal'
  ;   K[5]='GM'
  ;   K[6]='UserProfileModel'
  ;   K[7]='GetAvatar'
  ;   K[8]='m_frameTitle'
  ;   K[9]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-18), frameId(0-18)
  0000  SETTABLE  R0[K0('m_frameId')] = R1
  0001  GETTABLE  R2 = R0[K1('m_userAvatar')]
  0002  SELF      R3 = R2[K2('SetAvatar')] (self)
  0003  GETTABUP  R4 = _ENV[K3('EAvatarFrame')]
  0004  GETTABLE  R4 = R4[K4('Normal')]
  0005  GETTABUP  R5 = _ENV[K5('GM')]
  0006  GETTABLE  R5 = R5[K6('UserProfileModel')]
  0007  SELF      R6 = R5[K7('GetAvatar')] (self)
  0008  CALL      R5 = call(R5, 1 args, 1 rets)
  0009  LOADNIL   R6..R6 = nil
  0010  MOVE      R7 = R0
  0011  LOADBOOL  R8 = true
  0012  CALL      R2 = call(R2, 0 args, 6 rets)
  0013  GETTABLE  R2 = R0[K8('m_frameTitle')]
  0014  SELF      R3 = R2[K9('Init')] (self)
  0015  MOVE      R4 = R0
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  RETURN    return R0..R-1
; ---------- proto2 [OnBtnClick] ----------
  ; fn ?  line 27-36 np=1 va=0 ms=5 code=25 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UserProfileModel'
  ;   K[2]='GetFrame'
  ;   K[3]='m_frameId'
  ;   K[4]='ChangeFrame'
  ;   K[5]=''
  ;   K[6]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-25), bAlreadyWearing(9-25)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UserProfileModel')]
  0002  SELF      R2 = R1[K2('GetFrame')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABLE  R2 = R0[K3('m_frameId')]
  0005  EQ        if R1 eq R2   -> -130551
  0006  JMP       (jump)   -> 8
  0007  LOADBOOL  R1 = false
  0008  LOADBOOL  R1 = true
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 17
  0011  GETTABUP  R2 = _ENV[K0('GM')]
  0012  GETTABLE  R2 = R2[K1('UserProfileModel')]
  0013  SELF      R3 = R2[K4('ChangeFrame')] (self)
  0014  LOADK     R4 = K5 ''
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  JMP       (jump)   -> 22
  0017  GETTABUP  R2 = _ENV[K0('GM')]
  0018  GETTABLE  R2 = R2[K1('UserProfileModel')]
  0019  SELF      R3 = R2[K4('ChangeFrame')] (self)
  0020  GETTABLE  R4 = R0[K3('m_frameId')]
  0021  CALL      R2 = call(R2, 0 args, 2 rets)
  0022  SELF      R3 = R0[K6('Close')] (self)
  0023  CALL      R2 = call(R2, 0 args, 1 rets)
  0024  RETURN    return R0..R-1
; ---------- proto3 [OnPreviewBtnClicked] ----------
  ; fn ?  line 38-40 np=1 va=0 ms=5 code=8 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='FrameDetailWindow'
  ;   K[5]='m_frameId'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('FrameDetailWindow')]
  0005  GETTABLE  R4 = R0[K5('m_frameId')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
