# UI_Window_Task_TaskGroupFinishWindow_461.luac
; fn @TaskGroupFinishWindow.lua  line 0-0 np=0 va=1 ms=3 code=14 consts=9 upvals=1 protos=1
;   K[0]='TaskGroupFinishWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='windowMaskAlpha'
;   K[5]=0
;   K[6]='BaseWindow'
;   K[7]='__index'
;   K[8]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  SETTABLE  R1[K4('windowMaskAlpha')] = K5(0)
0004  GETTABUP  R2 = _ENV[K6('BaseWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('TaskGroupFinishWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('TaskGroupFinishWindow')]
0008  GETTABUP  R1 = _ENV[K0('TaskGroupFinishWindow')]
0009  SETTABLE  R0[K7('__index')] = R1
0010  GETTABUP  R0 = _ENV[K0('TaskGroupFinishWindow')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K8('Init')] = R1
0013  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-28 np=1 va=0 ms=21 code=44 consts=22 upvals=1 protos=2
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='GetOpenedTopViewByType'
  ;   K[3]='EViewType'
  ;   K[4]='SceneView'
  ;   K[5]='GetHudButton'
  ;   K[6]='ESceneViewHudButtonKey'
  ;   K[7]='Task'
  ;   K[8]='GetBoxPosAndScale'
  ;   K[9]='TaskManager'
  ;   K[10]='GetOngoingGroupId'
  ;   K[11]=1
  ;   K[12]='GetProgressReward'
  ;   K[13]='EBoxRewardType'
  ;   K[14]='Box'
  ;   K[15]='claim_task_group_reward'
  ;   K[16]='OpenView'
  ;   K[17]='UIPrefabConfigName'
  ;   K[18]='BoxRewardWindow'
  ;   K[19]='ERewardScene'
  ;   K[20]='Other'
  ;   K[21]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-44), sceneView(6-44), taskButton(10-44), position(12-44), scaleX(12-44), lastProgressId(17-44), rewards(22-44), eBoxRewardType(24-44), title(25-44)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('GetOpenedTopViewByType')] (self)
  0003  GETTABUP  R3 = _ENV[K3('EViewType')]
  0004  GETTABLE  R3 = R3[K4('SceneView')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  SELF      R3 = R1[K5('GetHudButton')] (self)
  0007  GETTABUP  R4 = _ENV[K6('ESceneViewHudButtonKey')]
  0008  GETTABLE  R4 = R4[K7('Task')]
  0009  CALL      R2 = call(R2, 1 args, 2 rets)
  0010  SELF      R4 = R2[K8('GetBoxPosAndScale')] (self)
  0011  CALL      R3 = call(R3, 2 args, 1 rets)
  0012  GETTABUP  R5 = _ENV[K0('GM')]
  0013  GETTABLE  R5 = R5[K9('TaskManager')]
  0014  SELF      R6 = R5[K10('GetOngoingGroupId')] (self)
  0015  CALL      R5 = call(R5, 1 args, 1 rets)
  0016  SUB       R5 = K11(1) sub R5
  0017  GETTABUP  R6 = _ENV[K0('GM')]
  0018  GETTABLE  R6 = R6[K9('TaskManager')]
  0019  SELF      R7 = R6[K12('GetProgressReward')] (self)
  0020  MOVE      R8 = R0
  0021  CALL      R6 = call(R6, 1 args, 2 rets)
  0022  GETTABUP  R7 = _ENV[K13('EBoxRewardType')]
  0023  GETTABLE  R7 = R7[K14('Box')]
  0024  LOADK     R8 = K15 'claim_task_group_reward'
  0025  GETTABUP  R9 = _ENV[K0('GM')]
  0026  GETTABLE  R9 = R9[K1('UIManager')]
  0027  SELF      R10 = R9[K16('OpenView')] (self)
  0028  GETTABUP  R11 = _ENV[K17('UIPrefabConfigName')]
  0029  GETTABLE  R11 = R11[K18('BoxRewardWindow')]
  0030  MOVE      R12 = R0
  0031  MOVE      R13 = R0
  0032  MOVE      R14 = R0
  0033  MOVE      R15 = R0
  0034  MOVE      R16 = R0
  0035  LOADBOOL  R17 = true
  0036  GETTABUP  R18 = _ENV[K19('ERewardScene')]
  0037  GETTABLE  R18 = R18[K20('Other')]
  0038  CLOSURE   R19 = closure proto0
  0039  CLOSURE   R20 = closure proto1
  0040  CALL      R9 = call(R9, 0 args, 11 rets)
  0041  SELF      R10 = R0[K21('Close')] (self)
  0042  CALL      R9 = call(R9, 0 args, 1 rets)
  0043  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 20-24 np=0 va=0 ms=3 code=5 consts=2 upvals=1 protos=1
    ;   K[0]='DelayExecuteFunc'
    ;   K[1]=1
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('DelayExecuteFunc')]
    0001  CLOSURE   R1 = closure proto0
    0002  LOADK     R2 = K1 1
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 21-23 np=0 va=0 ms=3 code=7 consts=5 upvals=1 protos=0
      ;   K[0]='GM'
      ;   K[1]='AudioModel'
      ;   K[2]='PlayEffect'
      ;   K[3]='AudioFileConfigName'
      ;   K[4]='SfxTaskChest'
      ;   upvals: _ENV
      0000  GETTABUP  R0 = _ENV[K0('GM')]
      0001  GETTABLE  R0 = R0[K1('AudioModel')]
      0002  SELF      R1 = R0[K2('PlayEffect')] (self)
      0003  GETTABUP  R2 = _ENV[K3('AudioFileConfigName')]
      0004  GETTABLE  R2 = R2[K4('SfxTaskChest')]
      0005  CALL      R0 = call(R0, 0 args, 2 rets)
      0006  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 24-26 np=0 va=0 ms=2 code=6 consts=4 upvals=1 protos=0
    ;   K[0]='EventDispatcher'
    ;   K[1]='DispatchEvent'
    ;   K[2]='EEventType'
    ;   K[3]='TaskProgressRewardClaimed'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('EventDispatcher')]
    0001  GETTABLE  R0 = R0[K1('DispatchEvent')]
    0002  GETTABUP  R1 = _ENV[K2('EEventType')]
    0003  GETTABLE  R1 = R1[K3('TaskProgressRewardClaimed')]
    0004  CALL      R0 = call(R0, 0 args, 1 rets)
    0005  RETURN    return R0..R-1
