# UI_Button_ItemTipButton_294.luac
; fn @ItemTipButton.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='ItemTipButton'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='UpdateItemType'
;   K[4]='SetEnabled'
;   K[5]='OnClicked'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ItemTipButton')] = R0
0002  GETTABUP  R0 = _ENV[K0('ItemTipButton')]
0003  GETTABUP  R1 = _ENV[K0('ItemTipButton')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ItemTipButton')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('ItemTipButton')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateItemType')] = R1
0011  GETTABUP  R0 = _ENV[K0('ItemTipButton')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('SetEnabled')] = R1
0014  GETTABUP  R0 = _ENV[K0('ItemTipButton')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnClicked')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-6 np=1 va=0 ms=2 code=2 consts=2 upvals=0 protos=0
  ;   K[0]='bRewardHelpBtn'
  ;   K[1]=true
  ;   locals: self(0-2)
  0000  SETTABLE  R0[K0('bRewardHelpBtn')] = K1(true)
  0001  RETURN    return R0..R-1
; ---------- proto1 [UpdateItemType] ----------
  ; fn ?  line 9-15 np=5 va=0 ms=8 code=14 consts=9 upvals=1 protos=0
  ;   K[0]='m_itemType'
  ;   K[1]='m_iapMode'
  ;   K[2]='m_detailWinRefer'
  ;   K[3]='m_callback'
  ;   K[4]='Log'
  ;   K[5]='Assert'
  ;   K[6]='StringUtil'
  ;   K[7]='IsNilOrEmpty'
  ;   K[8]='ItemDetailWindow 需要指定refer，见 EItemDetailWindowRefer'
  ;   upvals: _ENV
  ;   locals: self(0-14), itemType(0-14), iapMode(0-14), detailWinRefer(0-14), callback(0-14)
  0000  SETTABLE  R0[K0('m_itemType')] = R1
  0001  SETTABLE  R0[K1('m_iapMode')] = R2
  0002  SETTABLE  R0[K2('m_detailWinRefer')] = R3
  0003  SETTABLE  R0[K3('m_callback')] = R4
  0004  GETTABUP  R5 = _ENV[K4('Log')]
  0005  GETTABLE  R5 = R5[K5('Assert')]
  0006  GETTABUP  R6 = _ENV[K6('StringUtil')]
  0007  GETTABLE  R6 = R6[K7('IsNilOrEmpty')]
  0008  MOVE      R7 = R0
  0009  CALL      R6 = call(R6, 1 args, 1 rets)
  0010  NOT       R6 = not R0
  0011  LOADK     R7 = K8 'ItemDetailWindow 需要指定refer，见 EItemDetailWindowRefer'
  0012  CALL      R5 = call(R5, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto2 [SetEnabled] ----------
  ; fn ?  line 17-19 np=2 va=0 ms=3 code=3 consts=2 upvals=0 protos=0
  ;   K[0]='m_btn'
  ;   K[1]='enabled'
  ;   locals: self(0-3), enabled(0-3)
  0000  GETTABLE  R2 = R0[K0('m_btn')]
  0001  SETTABLE  R2[K1('enabled')] = R1
  0002  RETURN    return R0..R-1
; ---------- proto3 [OnClicked] ----------
  ; fn ?  line 21-29 np=1 va=0 ms=5 code=22 consts=11 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]='m_itemType'
  ;   K[3]=nil
  ;   K[4]='ItemTipButton:OnClicked'
  ;   K[5]='ItemDetailWindow'
  ;   K[6]='Open'
  ;   K[7]='ItemDetailWindowMode'
  ;   K[8]='Normal'
  ;   K[9]='m_detailWinRefer'
  ;   K[10]='m_callback'
  ;   upvals: _ENV
  ;   locals: self(0-22)
  0000  GETTABUP  R1 = _ENV[K0('Log')]
  0001  GETTABLE  R1 = R1[K1('Assert')]
  0002  GETTABLE  R2 = R0[K2('m_itemType')]
  0003  EQ        if R0 eq K3(nil)   -> -129784
  0004  JMP       (jump)   -> 6
  0005  LOADBOOL  R2 = false
  0006  LOADBOOL  R2 = true
  0007  LOADK     R3 = K4 'ItemTipButton:OnClicked'
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  GETTABUP  R1 = _ENV[K5('ItemDetailWindow')]
  0010  GETTABLE  R1 = R1[K6('Open')]
  0011  GETTABLE  R2 = R0[K2('m_itemType')]
  0012  GETTABUP  R3 = _ENV[K7('ItemDetailWindowMode')]
  0013  GETTABLE  R3 = R3[K8('Normal')]
  0014  GETTABLE  R4 = R0[K9('m_detailWinRefer')]
  0015  CALL      R1 = call(R1, 0 args, 3 rets)
  0016  GETTABLE  R1 = R0[K10('m_callback')]
  0017  TEST      if not R1 then   -> -131053
  0018  JMP       (jump)   -> 21
  0019  GETTABLE  R1 = R0[K10('m_callback')]
  0020  CALL      R1 = call(R1, 0 args, 0 rets)
  0021  RETURN    return R0..R-1
