# CrownLevelUp_View_CrownLevelUpTip_1280.luac
; fn @CrownLevelUpTip.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='CrownLevelUpTip'
;   K[1]='setmetatable'
;   K[2]='CommonTip'
;   K[3]='__index'
;   K[4]='GetMapInteractableObjs'
;   K[5]='Show'
;   K[6]='RefreshScrollView'
;   K[7]='OnBtnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('CommonTip')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('CrownLevelUpTip')] = R0
0005  GETTABUP  R0 = _ENV[K0('CrownLevelUpTip')]
0006  GETTABUP  R1 = _ENV[K0('CrownLevelUpTip')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrownLevelUpTip')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('GetMapInteractableObjs')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrownLevelUpTip')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Show')] = R1
0014  GETTABUP  R0 = _ENV[K0('CrownLevelUpTip')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('RefreshScrollView')] = R1
0017  GETTABUP  R0 = _ENV[K0('CrownLevelUpTip')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnBtnClicked')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [GetMapInteractableObjs] ----------
  ; fn ?  line 5-10 np=1 va=0 ms=3 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='gameObject'
  ;   K[1]=true
  ;   K[2]='m_tipGo'
  ;   locals: self(0-7)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABLE  R2 = R0[K0('gameObject')]
  0002  SETTABLE  R1[R2] = K1(true)
  0003  GETTABLE  R2 = R0[K2('m_tipGo')]
  0004  SETTABLE  R1[R2] = K1(true)
  0005  RETURN    return R1..R0
  0006  RETURN    return R0..R-1
; ---------- proto1 [Show] ----------
  ; fn ?  line 12-50 np=8 va=0 ms=17 code=78 consts=28 upvals=1 protos=1
  ;   K[0]='UIUtil'
  ;   K[1]='IsEmptyComponent'
  ;   K[2]='m_scrollRect'
  ;   K[3]='enabled'
  ;   K[4]=false
  ;   K[5]='StopMovement'
  ;   K[6]='m_titleText'
  ;   K[7]='text'
  ;   K[8]='GM'
  ;   K[9]='GameTextModel'
  ;   K[10]='GetText'
  ;   K[11]='crownlevelup_title_2'
  ;   K[12]='CrownLevelUpModel'
  ;   K[13]='GetActiveModel'
  ;   K[14]='GetMaxOrderNum'
  ;   K[15]=1
  ;   K[16]='SetActive'
  ;   K[17]='m_crown'
  ;   K[18]='m_rewardContent'
  ;   K[19]='Init'
  ;   K[20]=2
  ;   K[21]='gameObject'
  ;   K[22]='LayoutRebuilder'
  ;   K[23]='ForceRebuildLayoutImmediate'
  ;   K[24]='m_listRectTrans'
  ;   K[25]='RefreshScrollView'
  ;   K[26]='CommonTip'
  ;   K[27]='Show'
  ;   upvals: _ENV
  ;   locals: self(0-78), rewards(0-78), eRewardScene(0-78), crownId(0-78), pos(0-78), halfY(0-78), delay(0-78), callback(0-78), model(22-78), maxNum(24-78), (for index)(27-37), (for limit)(27-37), (for step)(27-37), id(28-36), wrappedCallback(69-78)
  0000  GETTABUP  R8 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R8 = R8[K1('IsEmptyComponent')]
  0002  GETTABLE  R9 = R0[K2('m_scrollRect')]
  0003  CALL      R8 = call(R8, 1 args, 1 rets)
  0004  TEST      if not R8 then   -> -131065
  0005  JMP       (jump)   -> 11
  0006  GETTABLE  R8 = R0[K2('m_scrollRect')]
  0007  SETTABLE  R8[K3('enabled')] = K4(false)
  0008  GETTABLE  R8 = R0[K2('m_scrollRect')]
  0009  SELF      R9 = R8[K5('StopMovement')] (self)
  0010  CALL      R8 = call(R8, 0 args, 1 rets)
  0011  GETTABLE  R8 = R0[K6('m_titleText')]
  0012  GETTABUP  R9 = _ENV[K8('GM')]
  0013  GETTABLE  R9 = R9[K9('GameTextModel')]
  0014  SELF      R10 = R9[K10('GetText')] (self)
  0015  LOADK     R11 = K11 'crownlevelup_title_2'
  0016  MOVE      R12 = R0
  0017  CALL      R9 = call(R9, 1 args, 3 rets)
  0018  SETTABLE  R8[K7('text')] = R9
  0019  GETTABUP  R8 = _ENV[K12('CrownLevelUpModel')]
  0020  GETTABLE  R8 = R8[K13('GetActiveModel')]
  0021  CALL      R8 = call(R8, 1 args, 0 rets)
  0022  SELF      R10 = R8[K14('GetMaxOrderNum')] (self)
  0023  CALL      R9 = call(R9, 1 args, 1 rets)
  0024  LOADK     R10 = K15 1
  0025  MOVE      R11 = R0
  0026  LOADK     R12 = K15 1
  0027  FORPREP   forprep R10(sBx=8)   -> 36
  0028  GETTABUP  R14 = _ENV[K0('UIUtil')]
  0029  GETTABLE  R14 = R14[K16('SetActive')]
  0030  LOADK     R15 = K17 'm_crown'
  0031  MOVE      R16 = R0
  0032  CONCAT    R15 = concat(R15..R15)
  0033  GETTABLE  R15 = R0[R15]
  0034  LOADBOOL  R16 = false
  0035  CALL      R14 = call(R14, 0 args, 2 rets)
  0036  FORLOOP   forloop R10(sBx=-9)   -> 28
  0037  GETTABUP  R10 = _ENV[K0('UIUtil')]
  0038  GETTABLE  R10 = R10[K16('SetActive')]
  0039  LOADK     R11 = K17 'm_crown'
  0040  MOVE      R12 = R0
  0041  CONCAT    R11 = concat(R11..R11)
  0042  GETTABLE  R11 = R0[R11]
  0043  LOADBOOL  R12 = true
  0044  CALL      R10 = call(R10, 0 args, 2 rets)
  0045  GETTABLE  R10 = R0[K18('m_rewardContent')]
  0046  SELF      R11 = R10[K19('Init')] (self)
  0047  MOVE      R12 = R0
  0048  MOVE      R13 = R0
  0049  LOADNIL   R14..R14 = nil
  0050  LOADK     R15 = K20 2
  0051  CALL      R10 = call(R10, 0 args, 5 rets)
  0052  GETTABUP  R10 = _ENV[K0('UIUtil')]
  0053  GETTABLE  R10 = R10[K16('SetActive')]
  0054  GETTABLE  R11 = R0[K21('gameObject')]
  0055  LOADBOOL  R12 = true
  0056  CALL      R10 = call(R10, 0 args, 2 rets)
  0057  GETTABUP  R10 = _ENV[K22('LayoutRebuilder')]
  0058  GETTABLE  R10 = R10[K23('ForceRebuildLayoutImmediate')]
  0059  GETTABLE  R11 = R0[K24('m_listRectTrans')]
  0060  CALL      R10 = call(R10, 0 args, 1 rets)
  0061  SELF      R11 = R0[K25('RefreshScrollView')] (self)
  0062  CALL      R10 = call(R10, 0 args, 1 rets)
  0063  GETTABUP  R10 = _ENV[K0('UIUtil')]
  0064  GETTABLE  R10 = R10[K16('SetActive')]
  0065  GETTABLE  R11 = R0[K21('gameObject')]
  0066  LOADBOOL  R12 = false
  0067  CALL      R10 = call(R10, 0 args, 2 rets)
  0068  CLOSURE   R10 = closure proto0
  0069  GETTABUP  R11 = _ENV[K26('CommonTip')]
  0070  GETTABLE  R11 = R11[K27('Show')]
  0071  MOVE      R12 = R0
  0072  MOVE      R13 = R0
  0073  MOVE      R14 = R0
  0074  MOVE      R15 = R0
  0075  MOVE      R16 = R0
  0076  CALL      R11 = call(R11, 0 args, 5 rets)
  0077  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 38-47 np=0 va=0 ms=2 code=17 consts=7 upvals=3 protos=0
    ;   K[0]='RefreshScrollView'
    ;   K[1]='UIUtil'
    ;   K[2]='IsEmptyComponent'
    ;   K[3]='m_scrollRect'
    ;   K[4]='enabled'
    ;   K[5]=true
    ;   K[6]=nil
    ;   upvals: self, _ENV, callback
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('RefreshScrollView')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  GETTABUP  R0 = _ENV[K1('UIUtil')]
    0004  GETTABLE  R0 = R0[K2('IsEmptyComponent')]
    0005  GETTABUP  R1 = self[K3('m_scrollRect')]
    0006  CALL      R0 = call(R0, 1 args, 1 rets)
    0007  TEST      if not R0 then   -> -131062
    0008  JMP       (jump)   -> 11
    0009  GETTABUP  R0 = self[K3('m_scrollRect')]
    0010  SETTABLE  R0[K4('enabled')] = K5(true)
    0011  GETUPVAL  R0 = self
    0012  EQ        if R1 eq K6(nil)   -> -130796
    0013  JMP       (jump)   -> 16
    0014  GETUPVAL  R0 = self
    0015  CALL      R0 = call(R0, 0 args, 0 rets)
    0016  RETURN    return R0..R-1
; ---------- proto2 [RefreshScrollView] ----------
  ; fn ?  line 52-54 np=1 va=0 ms=4 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetLocalPosition'
  ;   K[2]='m_listRectTrans'
  ;   K[3]=0
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetLocalPosition')]
  0002  GETTABLE  R2 = R0[K2('m_listRectTrans')]
  0003  LOADK     R3 = K3 0
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 56-60 np=1 va=0 ms=5 code=7 consts=3 upvals=1 protos=0
  ;   K[0]='CrownLevelUpModel'
  ;   K[1]='GetActiveModel'
  ;   K[2]='OpenMainWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7), model(3-7)
  0000  GETTABUP  R1 = _ENV[K0('CrownLevelUpModel')]
  0001  GETTABLE  R1 = R1[K1('GetActiveModel')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  SELF      R3 = R1[K2('OpenMainWindow')] (self)
  0004  LOADBOOL  R4 = false
  0005  CALL      R2 = call(R2, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
