# UI_Window_Board_DeleteItemConfirmWindow_612.luac
; fn @DeleteItemConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='DeleteItemConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnRedClick'
;   K[6]='OnGreenClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DeleteItemConfirmWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('DeleteItemConfirmWindow')]
0006  GETTABUP  R1 = _ENV[K0('DeleteItemConfirmWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DeleteItemConfirmWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DeleteItemConfirmWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnRedClick')] = R1
0014  GETTABUP  R0 = _ENV[K0('DeleteItemConfirmWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnGreenClick')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-28 np=3 va=0 ms=11 code=74 consts=30 upvals=1 protos=0
  ;   K[0]='m_titleText'
  ;   K[1]='text'
  ;   K[2]='GM'
  ;   K[3]='GameTextModel'
  ;   K[4]='GetText'
  ;   K[5]='sell_confirm_title'
  ;   K[6]='GetSellPrice'
  ;   K[7]='PROPERTY_TYPE'
  ;   K[8]='DELETE_TAG'
  ;   K[9]='m_descText'
  ;   K[10]='sell_confirm_desc_sell'
  ;   K[11]='m_redText'
  ;   K[12]='btn_sell'
  ;   K[13]='sell_confirm_desc_remove'
  ;   K[14]='btn_remove'
  ;   K[15]='m_greenText'
  ;   K[16]='common_button_cancel'
  ;   K[17]='ItemDataModel'
  ;   K[18]='GetSpriteName'
  ;   K[19]='GetType'
  ;   K[20]='SpriteUtil'
  ;   K[21]='SetImage'
  ;   K[22]='m_itemImg'
  ;   K[23]='m_redButtonCallback'
  ;   K[24]='LogWindowAction'
  ;   K[25]='EBIType'
  ;   K[26]='UIActionType'
  ;   K[27]='Open'
  ;   K[28]='EBIReferType'
  ;   K[29]='UserClick'
  ;   upvals: _ENV
  ;   locals: self(0-74), itemModel(0-74), okCallback(0-74), price(9-74), spriteName(56-74)
  0000  GETTABLE  R3 = R0[K0('m_titleText')]
  0001  GETTABUP  R4 = _ENV[K2('GM')]
  0002  GETTABLE  R4 = R4[K3('GameTextModel')]
  0003  SELF      R5 = R4[K4('GetText')] (self)
  0004  LOADK     R6 = K5 'sell_confirm_title'
  0005  CALL      R4 = call(R4, 1 args, 2 rets)
  0006  SETTABLE  R3[K1('text')] = R4
  0007  SELF      R4 = R1[K6('GetSellPrice')] (self)
  0008  CALL      R3 = call(R3, 1 args, 1 rets)
  0009  GETTABUP  R4 = _ENV[K7('PROPERTY_TYPE')]
  0010  GETTABLE  R4 = R3[R4]
  0011  GETTABUP  R5 = _ENV[K8('DELETE_TAG')]
  0012  EQ        if R1 eq R5   -> -129005
  0013  JMP       (jump)   -> 29
  0014  GETTABLE  R4 = R0[K9('m_descText')]
  0015  GETTABUP  R5 = _ENV[K2('GM')]
  0016  GETTABLE  R5 = R5[K3('GameTextModel')]
  0017  SELF      R6 = R5[K4('GetText')] (self)
  0018  LOADK     R7 = K10 'sell_confirm_desc_sell'
  0019  CALL      R5 = call(R5, 1 args, 2 rets)
  0020  SETTABLE  R4[K1('text')] = R5
  0021  GETTABLE  R4 = R0[K11('m_redText')]
  0022  GETTABUP  R5 = _ENV[K2('GM')]
  0023  GETTABLE  R5 = R5[K3('GameTextModel')]
  0024  SELF      R6 = R5[K4('GetText')] (self)
  0025  LOADK     R7 = K12 'btn_sell'
  0026  CALL      R5 = call(R5, 1 args, 2 rets)
  0027  SETTABLE  R4[K1('text')] = R5
  0028  JMP       (jump)   -> 43
  0029  GETTABLE  R4 = R0[K9('m_descText')]
  0030  GETTABUP  R5 = _ENV[K2('GM')]
  0031  GETTABLE  R5 = R5[K3('GameTextModel')]
  0032  SELF      R6 = R5[K4('GetText')] (self)
  0033  LOADK     R7 = K13 'sell_confirm_desc_remove'
  0034  CALL      R5 = call(R5, 1 args, 2 rets)
  0035  SETTABLE  R4[K1('text')] = R5
  0036  GETTABLE  R4 = R0[K11('m_redText')]
  0037  GETTABUP  R5 = _ENV[K2('GM')]
  0038  GETTABLE  R5 = R5[K3('GameTextModel')]
  0039  SELF      R6 = R5[K4('GetText')] (self)
  0040  LOADK     R7 = K14 'btn_remove'
  0041  CALL      R5 = call(R5, 1 args, 2 rets)
  0042  SETTABLE  R4[K1('text')] = R5
  0043  GETTABLE  R4 = R0[K15('m_greenText')]
  0044  GETTABUP  R5 = _ENV[K2('GM')]
  0045  GETTABLE  R5 = R5[K3('GameTextModel')]
  0046  SELF      R6 = R5[K4('GetText')] (self)
  0047  LOADK     R7 = K16 'common_button_cancel'
  0048  CALL      R5 = call(R5, 1 args, 2 rets)
  0049  SETTABLE  R4[K1('text')] = R5
  0050  GETTABUP  R4 = _ENV[K2('GM')]
  0051  GETTABLE  R4 = R4[K17('ItemDataModel')]
  0052  SELF      R5 = R4[K18('GetSpriteName')] (self)
  0053  SELF      R7 = R1[K19('GetType')] (self)
  0054  CALL      R6 = call(R6, -1 args, 1 rets)
  0055  CALL      R4 = call(R4, 1 args, -1 rets)
  0056  GETTABUP  R5 = _ENV[K20('SpriteUtil')]
  0057  GETTABLE  R5 = R5[K21('SetImage')]
  0058  GETTABLE  R6 = R0[K22('m_itemImg')]
  0059  MOVE      R7 = R0
  0060  CALL      R5 = call(R5, 0 args, 2 rets)
  0061  SETTABLE  R0[K23('m_redButtonCallback')] = R2
  0062  SELF      R6 = R0[K24('LogWindowAction')] (self)
  0063  GETTABUP  R7 = _ENV[K25('EBIType')]
  0064  GETTABLE  R7 = R7[K26('UIActionType')]
  0065  GETTABLE  R7 = R7[K27('Open')]
  0066  NEWTABLE  R8 = {} (1 items)
  0067  GETTABUP  R9 = _ENV[K28('EBIReferType')]
  0068  GETTABLE  R9 = R9[K29('UserClick')]
  0069  SETLIST   setlist R8[B=1,C=1]
  0070  SELF      R10 = R1[K19('GetType')] (self)
  0071  CALL      R9 = call(R9, -1 args, 1 rets)
  0072  CALL      R5 = call(R5, 0 args, -1 rets)
  0073  RETURN    return R0..R-1
; ---------- proto1 [OnRedClick] ----------
  ; fn ?  line 30-35 np=1 va=0 ms=3 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 5
  0003  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0004  CALL      R1 = call(R1, 0 args, 0 rets)
  0005  SELF      R2 = R0[K1('Close')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto2 [OnGreenClick] ----------
  ; fn ?  line 37-39 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
