# SurpriseChest_View_SurpriseChestRewardBubble_778.luac
; fn @SurpriseChestRewardBubble.lua  line 0-0 np=0 va=1 ms=3 code=29 consts=13 upvals=1 protos=6
;   K[0]='SurpriseChestRewardBubble'
;   K[1]='setmetatable'
;   K[2]='bQuickHide'
;   K[3]=true
;   K[4]='BaseTip'
;   K[5]='__index'
;   K[6]=190
;   K[7]='Show'
;   K[8]='Hide'
;   K[9]='_HideImmediately'
;   K[10]='_ShowWhenAllLoaded'
;   K[11]='OnHelpClick'
;   K[12]='GetMapInteractableObjs'
;   upvals: _ENV
;   locals: X_OFFSET(10-29)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('bQuickHide')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseTip')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('SurpriseChestRewardBubble')] = R0
0006  GETTABUP  R0 = _ENV[K0('SurpriseChestRewardBubble')]
0007  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  LOADK     R0 = K6 190
0010  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0011  CLOSURE   R2 = closure proto0
0012  SETTABLE  R1[K7('Show')] = R2
0013  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0014  CLOSURE   R2 = closure proto1
0015  SETTABLE  R1[K8('Hide')] = R2
0016  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0017  CLOSURE   R2 = closure proto2
0018  SETTABLE  R1[K9('_HideImmediately')] = R2
0019  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0020  CLOSURE   R2 = closure proto3
0021  SETTABLE  R1[K10('_ShowWhenAllLoaded')] = R2
0022  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0023  CLOSURE   R2 = closure proto4
0024  SETTABLE  R1[K11('OnHelpClick')] = R2
0025  GETTABUP  R1 = _ENV[K0('SurpriseChestRewardBubble')]
0026  CLOSURE   R2 = closure proto5
0027  SETTABLE  R1[K12('GetMapInteractableObjs')] = R2
0028  RETURN    return R0..R-1
; ---------- proto0 [Show] ----------
  ; fn ?  line 25-74 np=4 va=0 ms=15 code=87 consts=40 upvals=2 protos=1
  ;   K[0]='m_activityType'
  ;   K[1]='pos'
  ;   K[2]=nil
  ;   K[3]='transform'
  ;   K[4]='position'
  ;   K[5]='bLeft'
  ;   K[6]='UIUtil'
  ;   K[7]='SetLocalPosition'
  ;   K[8]='m_bgTrans'
  ;   K[9]='m_contentRootTrans'
  ;   K[10]='m_loadCount'
  ;   K[11]=0
  ;   K[12]='uiCode'
  ;   K[13]='SurpriseChestUIConfig'
  ;   K[14]='m_backgroundImage'
  ;   K[15]='enabled'
  ;   K[16]=false
  ;   K[17]='m_arrowImage'
  ;   K[18]='m_loadCount'
  ;   K[19]=2
  ;   K[20]='SpriteUtil'
  ;   K[21]='SetImage'
  ;   K[22]='BubbleBackground'
  ;   K[23]='BubbleArrow'
  ;   K[24]='m_descUIOutline'
  ;   K[25]='outlineColor'
  ;   K[26]='BubbleDescOutlineColor'
  ;   K[27]='m_rewardBoardImage'
  ;   K[28]='color'
  ;   K[29]='RewardBackgroundColor'
  ;   K[30]='m_rewardContent'
  ;   K[31]='ClearRewards'
  ;   K[32]='Init'
  ;   K[33]='ERewardScene'
  ;   K[34]='Other'
  ;   K[35]='_Reset'
  ;   K[36]='_TryKillTween'
  ;   K[37]='m_bCanCallLoadedCallback'
  ;   K[38]=true
  ;   K[39]='_ShowWhenAllLoaded'
  ;   upvals: X_OFFSET, _ENV
  ;   locals: self(0-87), activityType(0-87), rewards(0-87), viewData(0-87), bLeft(15-87), x(22-87), funcLoadOneItem(34-87), uiCode(35-87), uiConfig(39-87)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  TEST      if not R3 then   -> -131068
  0002  JMP       (jump)   -> 5
  0003  NEWTABLE  R4 = {} (0 items)
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R3[K1('pos')]
  0006  EQ        if R1 eq K2(nil)   -> -128758
  0007  JMP       (jump)   -> 11
  0008  GETTABLE  R4 = R0[K3('transform')]
  0009  GETTABLE  R5 = R3[K1('pos')]
  0010  SETTABLE  R4[K4('position')] = R5
  0011  GETTABLE  R4 = R3[K5('bLeft')]
  0012  TEST      if not R4 then   -> -131057
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R4 = false
  0015  TEST      if not R4 then   -> -131055
  0016  JMP       (jump)   -> 20
  0017  GETUPVAL  R5 = X_OFFSET
  0018  TEST      if not R5 then   -> -131051
  0019  JMP       (jump)   -> 22
  0020  GETUPVAL  R5 = X_OFFSET
  0021  UNM       R5 = unm R0
  0022  GETTABUP  R6 = _ENV[K6('UIUtil')]
  0023  GETTABLE  R6 = R6[K7('SetLocalPosition')]
  0024  GETTABLE  R7 = R0[K8('m_bgTrans')]
  0025  MOVE      R8 = R0
  0026  CALL      R6 = call(R6, 0 args, 2 rets)
  0027  GETTABUP  R6 = _ENV[K6('UIUtil')]
  0028  GETTABLE  R6 = R6[K7('SetLocalPosition')]
  0029  GETTABLE  R7 = R0[K9('m_contentRootTrans')]
  0030  MOVE      R8 = R0
  0031  CALL      R6 = call(R6, 0 args, 2 rets)
  0032  SETTABLE  R0[K10('m_loadCount')] = K11(0)
  0033  CLOSURE   R6 = closure proto0
  0034  GETTABLE  R7 = R3[K12('uiCode')]
  0035  TESTSET   if R0 then R8   -> -127451
  0036  JMP       (jump)   -> 39
  0037  GETTABUP  R8 = _ENV[K13('SurpriseChestUIConfig')]
  0038  GETTABLE  R8 = R8[R7]
  0039  EQ        if R1 eq K2(nil)   -> -126677
  0040  JMP       (jump)   -> 70
  0041  GETTABLE  R9 = R0[K14('m_backgroundImage')]
  0042  SETTABLE  R9[K15('enabled')] = K16(false)
  0043  GETTABLE  R9 = R0[K17('m_arrowImage')]
  0044  SETTABLE  R9[K15('enabled')] = K16(false)
  0045  GETTABLE  R9 = R0[K18('m_loadCount')]
  0046  ADD       R9 = K19(2) add R9
  0047  SETTABLE  R0[K18('m_loadCount')] = R9
  0048  GETTABUP  R9 = _ENV[K20('SpriteUtil')]
  0049  GETTABLE  R9 = R9[K21('SetImage')]
  0050  GETTABLE  R10 = R0[K14('m_backgroundImage')]
  0051  GETTABLE  R11 = R8[K22('BubbleBackground')]
  0052  LOADBOOL  R12 = false
  0053  MOVE      R13 = R0
  0054  MOVE      R14 = R0
  0055  CALL      R9 = call(R9, 0 args, 5 rets)
  0056  GETTABUP  R9 = _ENV[K20('SpriteUtil')]
  0057  GETTABLE  R9 = R9[K21('SetImage')]
  0058  GETTABLE  R10 = R0[K17('m_arrowImage')]
  0059  GETTABLE  R11 = R8[K23('BubbleArrow')]
  0060  LOADBOOL  R12 = false
  0061  MOVE      R13 = R0
  0062  MOVE      R14 = R0
  0063  CALL      R9 = call(R9, 0 args, 5 rets)
  0064  GETTABLE  R9 = R0[K24('m_descUIOutline')]
  0065  GETTABLE  R10 = R8[K26('BubbleDescOutlineColor')]
  0066  SETTABLE  R9[K25('outlineColor')] = R10
  0067  GETTABLE  R9 = R0[K27('m_rewardBoardImage')]
  0068  GETTABLE  R10 = R8[K29('RewardBackgroundColor')]
  0069  SETTABLE  R9[K28('color')] = R10
  0070  GETTABLE  R9 = R0[K30('m_rewardContent')]
  0071  SELF      R10 = R9[K31('ClearRewards')] (self)
  0072  CALL      R9 = call(R9, 0 args, 1 rets)
  0073  GETTABLE  R9 = R0[K30('m_rewardContent')]
  0074  SELF      R10 = R9[K32('Init')] (self)
  0075  MOVE      R11 = R0
  0076  GETTABUP  R12 = _ENV[K33('ERewardScene')]
  0077  GETTABLE  R12 = R12[K34('Other')]
  0078  CALL      R9 = call(R9, 0 args, 3 rets)
  0079  SELF      R10 = R0[K35('_Reset')] (self)
  0080  CALL      R9 = call(R9, 0 args, 1 rets)
  0081  SELF      R10 = R0[K36('_TryKillTween')] (self)
  0082  CALL      R9 = call(R9, 0 args, 1 rets)
  0083  SETTABLE  R0[K37('m_bCanCallLoadedCallback')] = K38(true)
  0084  SELF      R10 = R0[K39('_ShowWhenAllLoaded')] (self)
  0085  CALL      R9 = call(R9, 0 args, 1 rets)
  0086  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 43-46 np=0 va=0 ms=2 code=7 consts=3 upvals=1 protos=0
    ;   K[0]='m_loadCount'
    ;   K[1]=1
    ;   K[2]='_ShowWhenAllLoaded'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_loadCount')]
    0001  SUB       R0 = K1(1) sub R0
    0002  SETTABUP  self[K0('m_loadCount')] = R0
    0003  GETUPVAL  R0 = self
    0004  SELF      R1 = R0[K2('_ShowWhenAllLoaded')] (self)
    0005  CALL      R0 = call(R0, 0 args, 1 rets)
    0006  RETURN    return R0..R-1
; ---------- proto1 [Hide] ----------
  ; fn ?  line 79-83 np=4 va=0 ms=9 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='m_bCanCallLoadedCallback'
  ;   K[1]=nil
  ;   K[2]='BaseTip'
  ;   K[3]='Hide'
  ;   upvals: _ENV
  ;   locals: self(0-9), bIgnoreAnim(0-9), delay(0-9), callback(0-9)
  0000  SETTABLE  R0[K0('m_bCanCallLoadedCallback')] = K1(nil)
  0001  GETTABUP  R4 = _ENV[K2('BaseTip')]
  0002  GETTABLE  R4 = R4[K3('Hide')]
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  MOVE      R7 = R0
  0006  MOVE      R8 = R0
  0007  CALL      R4 = call(R4, 0 args, 4 rets)
  0008  RETURN    return R0..R-1
; ---------- proto2 [_HideImmediately] ----------
  ; fn ?  line 85-89 np=1 va=0 ms=3 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='m_bCanCallLoadedCallback'
  ;   K[1]=nil
  ;   K[2]='BaseTip'
  ;   K[3]='_HideImmediately'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  SETTABLE  R0[K0('m_bCanCallLoadedCallback')] = K1(nil)
  0001  GETTABUP  R1 = _ENV[K2('BaseTip')]
  0002  GETTABLE  R1 = R1[K3('_HideImmediately')]
  0003  MOVE      R2 = R0
  0004  CALL      R1 = call(R1, 0 args, 1 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [_ShowWhenAllLoaded] ----------
  ; fn ?  line 91-96 np=1 va=0 ms=3 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='m_bCanCallLoadedCallback'
  ;   K[1]='m_loadCount'
  ;   K[2]=0
  ;   K[3]=nil
  ;   K[4]='BaseTip'
  ;   K[5]='Show'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_bCanCallLoadedCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 11
  0003  GETTABLE  R1 = R0[K1('m_loadCount')]
  0004  LE        if R0 le K2(0)   -> -130296
  0005  JMP       (jump)   -> 11
  0006  SETTABLE  R0[K0('m_bCanCallLoadedCallback')] = K3(nil)
  0007  GETTABUP  R1 = _ENV[K4('BaseTip')]
  0008  GETTABLE  R1 = R1[K5('Show')]
  0009  MOVE      R2 = R0
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto4 [OnHelpClick] ----------
  ; fn ?  line 98-100 np=1 va=0 ms=6 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='SurpriseChestManagerDefinition'
  ;   K[4]='HelpWindowPrefabName'
  ;   K[5]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('SurpriseChestManagerDefinition')]
  0004  GETTABLE  R3 = R3[K4('HelpWindowPrefabName')]
  0005  GETTABLE  R4 = R0[K5('m_activityType')]
  0006  LOADBOOL  R5 = true
  0007  CALL      R1 = call(R1, 0 args, 4 rets)
  0008  RETURN    return R0..R-1
; ---------- proto5 [GetMapInteractableObjs] ----------
  ; fn ?  line 102-106 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_tipBtnGo'
  ;   K[1]=true
  ;   locals: self(0-5)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K0('m_tipBtnGo')]
  0002  SETTABLE  R1[R2] = K1(true)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
