# UI_Window_Chapter_ChapterUnlockWindow_707.luac
; fn @ChapterUnlockWindow.lua  line 0-0 np=0 va=1 ms=5 code=25 consts=14 upvals=1 protos=2
;   K[0]='ChapterUnlockWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='windowMaskAlpha'
;   K[5]='EWindowMaskAlpha'
;   K[6]='Dark'
;   K[7]='BaseWindow'
;   K[8]='__index'
;   K[9]='CSColor'
;   K[10]=0.6
;   K[11]=1
;   K[12]='Init'
;   K[13]='OnClickNext'
;   upvals: _ENV
;   locals: DRAK_COLOR(18-25)
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  GETTABUP  R2 = _ENV[K5('EWindowMaskAlpha')]
0004  GETTABLE  R2 = R2[K6('Dark')]
0005  SETTABLE  R1[K4('windowMaskAlpha')] = R2
0006  GETTABUP  R2 = _ENV[K7('BaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('ChapterUnlockWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('ChapterUnlockWindow')]
0010  GETTABUP  R1 = _ENV[K0('ChapterUnlockWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K9('CSColor')]
0013  LOADK     R1 = K10 0.6
0014  LOADK     R2 = K10 0.6
0015  LOADK     R3 = K10 0.6
0016  LOADK     R4 = K11 1
0017  CALL      R0 = call(R0, 1 args, 4 rets)
0018  GETTABUP  R1 = _ENV[K0('ChapterUnlockWindow')]
0019  CLOSURE   R2 = closure proto0
0020  SETTABLE  R1[K12('Init')] = R2
0021  GETTABUP  R1 = _ENV[K0('ChapterUnlockWindow')]
0022  CLOSURE   R2 = closure proto1
0023  SETTABLE  R1[K13('OnClickNext')] = R2
0024  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-30 np=2 va=0 ms=10 code=50 consts=24 upvals=2 protos=2
  ;   K[0]='chapterName'
  ;   K[1]='GM'
  ;   K[2]='TaskManager'
  ;   K[3]='GetOngoingChapterName'
  ;   K[4]='m_titleText'
  ;   K[5]='text'
  ;   K[6]='ChapterDataModel'
  ;   K[7]='GetChapterNameText'
  ;   K[8]='GetChapterImageKey'
  ;   K[9]='SpriteUtil'
  ;   K[10]='SetImage'
  ;   K[11]='m_image'
  ;   K[12]='m_boxGo'
  ;   K[13]='SetActive'
  ;   K[14]=nil
  ;   K[15]='color'
  ;   K[16]='DelayExecuteFuncInView'
  ;   K[17]=0.7
  ;   K[18]='LogWindowAction'
  ;   K[19]='EBIType'
  ;   K[20]='UIActionType'
  ;   K[21]='Open'
  ;   K[22]='EBIReferType'
  ;   K[23]='AutoPopup'
  ;   upvals: _ENV, DRAK_COLOR
  ;   locals: self(0-50), arrChapterUnlockRewards(0-50), imageName(17-50)
  0000  GETTABUP  R2 = _ENV[K1('GM')]
  0001  GETTABLE  R2 = R2[K2('TaskManager')]
  0002  SELF      R3 = R2[K3('GetOngoingChapterName')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SETTABLE  R0[K0('chapterName')] = R2
  0005  GETTABLE  R2 = R0[K4('m_titleText')]
  0006  GETTABUP  R3 = _ENV[K1('GM')]
  0007  GETTABLE  R3 = R3[K6('ChapterDataModel')]
  0008  SELF      R4 = R3[K7('GetChapterNameText')] (self)
  0009  GETTABLE  R5 = R0[K0('chapterName')]
  0010  CALL      R3 = call(R3, 1 args, 2 rets)
  0011  SETTABLE  R2[K5('text')] = R3
  0012  GETTABUP  R2 = _ENV[K1('GM')]
  0013  GETTABLE  R2 = R2[K6('ChapterDataModel')]
  0014  SELF      R3 = R2[K8('GetChapterImageKey')] (self)
  0015  GETTABLE  R4 = R0[K0('chapterName')]
  0016  CALL      R2 = call(R2, 1 args, 2 rets)
  0017  GETTABUP  R3 = _ENV[K9('SpriteUtil')]
  0018  GETTABLE  R3 = R3[K10('SetImage')]
  0019  GETTABLE  R4 = R0[K11('m_image')]
  0020  MOVE      R5 = R0
  0021  LOADBOOL  R6 = true
  0022  CLOSURE   R7 = closure proto0
  0023  LOADNIL   R8..R8 = nil
  0024  LOADBOOL  R9 = true
  0025  CALL      R3 = call(R3, 0 args, 6 rets)
  0026  GETTABLE  R3 = R0[K12('m_boxGo')]
  0027  SELF      R4 = R3[K13('SetActive')] (self)
  0028  EQ        if R0 eq K14(nil)   -> -130260
  0029  JMP       (jump)   -> 31
  0030  LOADBOOL  R5 = false
  0031  LOADBOOL  R5 = true
  0032  CALL      R3 = call(R3, 0 args, 2 rets)
  0033  GETTABLE  R3 = R0[K11('m_image')]
  0034  GETUPVAL  R4 = _ENV
  0035  SETTABLE  R3[K15('color')] = R4
  0036  GETTABUP  R3 = _ENV[K16('DelayExecuteFuncInView')]
  0037  CLOSURE   R4 = closure proto1
  0038  LOADK     R5 = K17 0.7
  0039  MOVE      R6 = R0
  0040  LOADBOOL  R7 = true
  0041  CALL      R3 = call(R3, 0 args, 4 rets)
  0042  SELF      R4 = R0[K18('LogWindowAction')] (self)
  0043  GETTABUP  R5 = _ENV[K19('EBIType')]
  0044  GETTABLE  R5 = R5[K20('UIActionType')]
  0045  GETTABLE  R5 = R5[K21('Open')]
  0046  GETTABUP  R6 = _ENV[K22('EBIReferType')]
  0047  GETTABLE  R6 = R6[K23('AutoPopup')]
  0048  CALL      R3 = call(R3, 0 args, 3 rets)
  0049  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 12-16 np=0 va=0 ms=3 code=13 consts=3 upvals=1 protos=0
    ;   K[0]='m_loadingGo'
    ;   K[1]='IsNull'
    ;   K[2]='SetActive'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_loadingGo')]
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 12
    0003  GETTABUP  R0 = self[K0('m_loadingGo')]
    0004  SELF      R1 = R0[K1('IsNull')] (self)
    0005  CALL      R0 = call(R0, 1 args, 1 rets)
    0006  TEST      if not R0 then   -> -131063
    0007  JMP       (jump)   -> 12
    0008  GETTABUP  R0 = self[K0('m_loadingGo')]
    0009  SELF      R1 = R0[K2('SetActive')] (self)
    0010  LOADBOOL  R2 = false
    0011  CALL      R0 = call(R0, 0 args, 2 rets)
    0012  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 20-27 np=0 va=0 ms=4 code=21 consts=11 upvals=2 protos=0
    ;   K[0]='m_lockAnimator'
    ;   K[1]='SetTrigger'
    ;   K[2]='Start'
    ;   K[3]='m_image'
    ;   K[4]='DOColor'
    ;   K[5]='CSColor'
    ;   K[6]='white'
    ;   K[7]=0.2
    ;   K[8]='SetDelay'
    ;   K[9]='IsAutoRun'
    ;   K[10]='OnClickNext'
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = self[K0('m_lockAnimator')]
    0001  SELF      R1 = R0[K1('SetTrigger')] (self)
    0002  LOADK     R2 = K2 'Start'
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  GETTABUP  R0 = self[K3('m_image')]
    0005  SELF      R1 = R0[K4('DOColor')] (self)
    0006  GETTABUP  R2 = _ENV[K5('CSColor')]
    0007  GETTABLE  R2 = R2[K6('white')]
    0008  LOADK     R3 = K7 0.2
    0009  CALL      R0 = call(R0, 1 args, 3 rets)
    0010  SELF      R1 = R0[K8('SetDelay')] (self)
    0011  LOADK     R2 = K7 0.2
    0012  CALL      R0 = call(R0, 0 args, 2 rets)
    0013  GETTABUP  R0 = _ENV[K9('IsAutoRun')]
    0014  CALL      R0 = call(R0, 1 args, 0 rets)
    0015  TEST      if not R0 then   -> -131055
    0016  JMP       (jump)   -> 20
    0017  GETUPVAL  R0 = self
    0018  SELF      R1 = R0[K10('OnClickNext')] (self)
    0019  CALL      R0 = call(R0, 0 args, 1 rets)
    0020  RETURN    return R0..R-1
; ---------- proto1 [OnClickNext] ----------
  ; fn ?  line 32-37 np=1 va=0 ms=4 code=13 consts=7 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='TaskManager'
  ;   K[3]='SetAutoChangingChapter'
  ;   K[4]='SceneManager'
  ;   K[5]='ChangeChapterWithTransition'
  ;   K[6]='chapterName'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('GM')]
  0003  GETTABLE  R1 = R1[K2('TaskManager')]
  0004  SELF      R2 = R1[K3('SetAutoChangingChapter')] (self)
  0005  LOADBOOL  R3 = true
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  GETTABUP  R1 = _ENV[K1('GM')]
  0008  GETTABLE  R1 = R1[K4('SceneManager')]
  0009  SELF      R2 = R1[K5('ChangeChapterWithTransition')] (self)
  0010  GETTABLE  R3 = R0[K6('chapterName')]
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  RETURN    return R0..R-1
