# UI_Button_GemHudButton_285.luac
; fn @GemHudButton.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=10 upvals=1 protos=3
;   K[0]='GemHudButton'
;   K[1]='setmetatable'
;   K[2]='HitAudio'
;   K[3]='AudioFileConfigName'
;   K[4]='SfxGemCrush'
;   K[5]='HudPropertyButton'
;   K[6]='__index'
;   K[7]='Awake'
;   K[8]='OnClicked'
;   K[9]='ShowGemDetailBubble'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('AudioFileConfigName')]
0003  GETTABLE  R2 = R2[K4('SfxGemCrush')]
0004  SETTABLE  R1[K2('HitAudio')] = R2
0005  GETTABUP  R2 = _ENV[K5('HudPropertyButton')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('GemHudButton')] = R0
0008  GETTABUP  R0 = _ENV[K0('GemHudButton')]
0009  GETTABUP  R1 = _ENV[K0('GemHudButton')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('GemHudButton')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Awake')] = R1
0014  GETTABUP  R0 = _ENV[K0('GemHudButton')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K8('OnClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('GemHudButton')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K9('ShowGemDetailBubble')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 10-13 np=1 va=0 ms=4 code=11 consts=5 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='Awake'
  ;   K[2]='Init'
  ;   K[3]='EPropertyType'
  ;   K[4]='Gem'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0005  GETTABLE  R1 = R1[K2('Init')]
  0006  MOVE      R2 = R0
  0007  GETTABUP  R3 = _ENV[K3('EPropertyType')]
  0008  GETTABLE  R3 = R3[K4('Gem')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  RETURN    return R0..R-1
; ---------- proto1 [OnClicked] ----------
  ; fn ?  line 15-27 np=1 va=0 ms=7 code=31 consts=12 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='GetOpenedViewByName'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='ShopWindow'
  ;   K[5]='LocateShopType'
  ;   K[6]='EShopType'
  ;   K[7]='Diamonds'
  ;   K[8]='ConfigModel'
  ;   K[9]='IsGemDetailShow'
  ;   K[10]='ShowGemDetailBubble'
  ;   K[11]='OpenView'
  ;   upvals: _ENV
  ;   locals: self(0-31), shopWindow(6-31)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('GetOpenedViewByName')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('ShopWindow')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 21
  0008  SELF      R3 = R1[K5('LocateShopType')] (self)
  0009  GETTABUP  R4 = _ENV[K6('EShopType')]
  0010  GETTABLE  R4 = R4[K7('Diamonds')]
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  GETTABUP  R2 = _ENV[K0('GM')]
  0013  GETTABLE  R2 = R2[K8('ConfigModel')]
  0014  SELF      R3 = R2[K9('IsGemDetailShow')] (self)
  0015  CALL      R2 = call(R2, 1 args, 1 rets)
  0016  TEST      if not R2 then   -> -131054
  0017  JMP       (jump)   -> 20
  0018  SELF      R3 = R0[K10('ShowGemDetailBubble')] (self)
  0019  CALL      R2 = call(R2, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
  0021  GETTABUP  R2 = _ENV[K0('GM')]
  0022  GETTABLE  R2 = R2[K1('UIManager')]
  0023  SELF      R3 = R2[K11('OpenView')] (self)
  0024  GETTABUP  R4 = _ENV[K3('UIPrefabConfigName')]
  0025  GETTABLE  R4 = R4[K4('ShopWindow')]
  0026  GETTABUP  R5 = _ENV[K6('EShopType')]
  0027  GETTABLE  R5 = R5[K7('Diamonds')]
  0028  LOADBOOL  R6 = false
  0029  CALL      R2 = call(R2, 0 args, 4 rets)
  0030  RETURN    return R0..R-1
; ---------- proto2 [ShowGemDetailBubble] ----------
  ; fn ?  line 30-32 np=1 va=0 ms=8 code=12 consts=8 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenTip'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='GemDetailBubble'
  ;   K[5]='m_bubblePlaceholder'
  ;   K[6]='ESpecialViewSortingOrder'
  ;   K[7]='HudHighlight'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenTip')] (self)
  0003  MOVE      R3 = R0
  0004  GETTABUP  R4 = _ENV[K3('UIPrefabConfigName')]
  0005  GETTABLE  R4 = R4[K4('GemDetailBubble')]
  0006  LOADNIL   R5..R5 = nil
  0007  GETTABLE  R6 = R0[K5('m_bubblePlaceholder')]
  0008  GETTABUP  R7 = _ENV[K6('ESpecialViewSortingOrder')]
  0009  GETTABLE  R7 = R7[K7('HudHighlight')]
  0010  CALL      R1 = call(R1, 0 args, 6 rets)
  0011  RETURN    return R0..R-1
