# ExtraBoardActivity_View_ExtraBoardConsumeButtonAndTip_1031.luac
; fn @ExtraBoardConsumeButtonAndTip.lua  line 0-0 np=0 va=1 ms=3 code=32 consts=11 upvals=1 protos=6
;   K[0]='ExtraBoardConsumeButton'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='SetHandEffectActive'
;   K[5]='ShowTip'
;   K[6]='OnBtnClicked'
;   K[7]='ExtraBoardLackScoreTip'
;   K[8]='setmetatable'
;   K[9]='CommonTip'
;   K[10]='_UpdateImg'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ExtraBoardConsumeButton')] = R0
0002  GETTABUP  R0 = _ENV[K0('ExtraBoardConsumeButton')]
0003  GETTABUP  R1 = _ENV[K0('ExtraBoardConsumeButton')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ExtraBoardConsumeButton')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('ExtraBoardConsumeButton')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('ExtraBoardConsumeButton')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('SetHandEffectActive')] = R1
0014  GETTABUP  R0 = _ENV[K0('ExtraBoardConsumeButton')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('ShowTip')] = R1
0017  GETTABUP  R0 = _ENV[K0('ExtraBoardConsumeButton')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('OnBtnClicked')] = R1
0020  GETTABUP  R0 = _ENV[K8('setmetatable')]
0021  NEWTABLE  R1 = {} (0 items)
0022  GETTABUP  R2 = _ENV[K9('CommonTip')]
0023  CALL      R0 = call(R0, 1 args, 2 rets)
0024  SETTABUP  _ENV[K7('ExtraBoardLackScoreTip')] = R0
0025  GETTABUP  R0 = _ENV[K7('ExtraBoardLackScoreTip')]
0026  GETTABUP  R1 = _ENV[K7('ExtraBoardLackScoreTip')]
0027  SETTABLE  R0[K1('__index')] = R1
0028  GETTABUP  R0 = _ENV[K7('ExtraBoardLackScoreTip')]
0029  CLOSURE   R1 = closure proto5
0030  SETTABLE  R0[K10('_UpdateImg')] = R1
0031  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-8 np=2 va=0 ms=8 code=18 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_tip'
  ;   K[2]='_UpdateImg'
  ;   K[3]='GM'
  ;   K[4]='ItemDataModel'
  ;   K[5]='GetSpriteName'
  ;   K[6]='GetCommonPropertyType'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='EEventType'
  ;   K[10]='ToggleConsumeButtonHandEffect'
  ;   K[11]='SetHandEffectActive'
  ;   upvals: _ENV
  ;   locals: self(0-18), model(0-18)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R2 = R0[K1('m_tip')]
  0002  SELF      R3 = R2[K2('_UpdateImg')] (self)
  0003  GETTABUP  R4 = _ENV[K3('GM')]
  0004  GETTABLE  R4 = R4[K4('ItemDataModel')]
  0005  SELF      R5 = R4[K5('GetSpriteName')] (self)
  0006  SELF      R7 = R1[K6('GetCommonPropertyType')] (self)
  0007  CALL      R6 = call(R6, -1 args, 1 rets)
  0008  CALL      R4 = call(R4, -1 args, -1 rets)
  0009  CALL      R2 = call(R2, 0 args, -1 rets)
  0010  GETTABUP  R2 = _ENV[K7('EventDispatcher')]
  0011  GETTABLE  R2 = R2[K8('AddListener')]
  0012  GETTABUP  R3 = _ENV[K9('EEventType')]
  0013  GETTABLE  R3 = R3[K10('ToggleConsumeButtonHandEffect')]
  0014  MOVE      R4 = R0
  0015  GETTABLE  R5 = R0[K11('SetHandEffectActive')]
  0016  CALL      R2 = call(R2, 0 args, 3 rets)
  0017  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 10-12 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [SetHandEffectActive] ----------
  ; fn ?  line 14-16 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_handEffectGo'
  ;   K[1]='SetActive'
  ;   locals: self(0-5), active(0-5)
  0000  GETTABLE  R2 = R0[K0('m_handEffectGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [ShowTip] ----------
  ; fn ?  line 18-20 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_tip'
  ;   K[1]='Show'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_tip')]
  0001  SELF      R2 = R1[K1('Show')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto4 [OnBtnClicked] ----------
  ; fn ?  line 22-37 np=1 va=0 ms=9 code=40 consts=20 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]='IsTokenMode'
  ;   K[3]='ConsumeAndAcquireItem'
  ;   K[4]='EExtraBoardConsumeResult'
  ;   K[5]='BoardFull'
  ;   K[6]='GM'
  ;   K[7]='UIManager'
  ;   K[8]='ShowPromptWithKey'
  ;   K[9]='hint_board_full'
  ;   K[10]='Vector3'
  ;   K[11]=500
  ;   K[12]=0
  ;   K[13]=0.5
  ;   K[14]='LackToken'
  ;   K[15]='ShowTip'
  ;   K[16]='EventDispatcher'
  ;   K[17]='DispatchEvent'
  ;   K[18]='EEventType'
  ;   K[19]='RefreshPrompt'
  ;   upvals: _ENV
  ;   locals: self(0-40), result(12-40)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K2('IsTokenMode')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  TEST      if not R1 then   -> -131063
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  GETTABLE  R1 = R0[K0('m_model')]
  0010  SELF      R2 = R1[K3('ConsumeAndAcquireItem')] (self)
  0011  CALL      R1 = call(R1, 1 args, 1 rets)
  0012  GETTABUP  R2 = _ENV[K4('EExtraBoardConsumeResult')]
  0013  GETTABLE  R2 = R2[K5('BoardFull')]
  0014  EQ        if R0 eq R2   -> -130542
  0015  JMP       (jump)   -> 28
  0016  GETTABUP  R2 = _ENV[K6('GM')]
  0017  GETTABLE  R2 = R2[K7('UIManager')]
  0018  SELF      R3 = R2[K8('ShowPromptWithKey')] (self)
  0019  LOADK     R4 = K9 'hint_board_full'
  0020  GETTABUP  R5 = _ENV[K10('Vector3')]
  0021  LOADK     R6 = K11 500
  0022  LOADK     R7 = K11 500
  0023  LOADK     R8 = K12 0
  0024  CALL      R5 = call(R5, 1 args, 3 rets)
  0025  LOADK     R6 = K13 0.5
  0026  CALL      R2 = call(R2, 0 args, 4 rets)
  0027  JMP       (jump)   -> 34
  0028  GETTABUP  R2 = _ENV[K4('EExtraBoardConsumeResult')]
  0029  GETTABLE  R2 = R2[K14('LackToken')]
  0030  EQ        if R0 eq R2   -> -130526
  0031  JMP       (jump)   -> 34
  0032  SELF      R3 = R0[K15('ShowTip')] (self)
  0033  CALL      R2 = call(R2, 0 args, 1 rets)
  0034  GETTABUP  R2 = _ENV[K16('EventDispatcher')]
  0035  GETTABLE  R2 = R2[K17('DispatchEvent')]
  0036  GETTABUP  R3 = _ENV[K18('EEventType')]
  0037  GETTABLE  R3 = R3[K19('RefreshPrompt')]
  0038  CALL      R2 = call(R2, 0 args, 1 rets)
  0039  RETURN    return R0..R-1
; ---------- proto5 [_UpdateImg] ----------
  ; fn ?  line 43-46 np=2 va=0 ms=8 code=15 consts=9 upvals=1 protos=0
  ;   K[0]='StringUtil'
  ;   K[1]='Format'
  ;   K[2]='<sprite="%s" name="%s">'
  ;   K[3]='m_descText'
  ;   K[4]='text'
  ;   K[5]='GM'
  ;   K[6]='GameTextModel'
  ;   K[7]='GetText'
  ;   K[8]='extraboard_notoken_desc'
  ;   upvals: _ENV
  ;   locals: self(0-15), imgName(0-15), spriteParm(6-15)
  0000  GETTABUP  R2 = _ENV[K0('StringUtil')]
  0001  GETTABLE  R2 = R2[K1('Format')]
  0002  LOADK     R3 = K2 '<sprite="%s" name="%s">'
  0003  MOVE      R4 = R0
  0004  MOVE      R5 = R0
  0005  CALL      R2 = call(R2, 1 args, 3 rets)
  0006  GETTABLE  R3 = R0[K3('m_descText')]
  0007  GETTABUP  R4 = _ENV[K5('GM')]
  0008  GETTABLE  R4 = R4[K6('GameTextModel')]
  0009  SELF      R5 = R4[K7('GetText')] (self)
  0010  LOADK     R6 = K8 'extraboard_notoken_desc'
  0011  MOVE      R7 = R0
  0012  CALL      R4 = call(R4, 1 args, 3 rets)
  0013  SETTABLE  R3[K4('text')] = R4
  0014  RETURN    return R0..R-1
