# LineRaceActivity_View_LineRaceActivityBoxWindow_1976.luac
; fn @LineRaceActivityBoxWindow.lua  line 0-0 np=0 va=1 ms=3 code=23 consts=12 upvals=1 protos=4
;   K[0]='LineRaceActivityBoxWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='windowMaskAlpha'
;   K[5]=0
;   K[6]='LineRaceActivityBaseWindow'
;   K[7]='__index'
;   K[8]='BeforeOpenCheck'
;   K[9]='Init'
;   K[10]='_InitMyDatas'
;   K[11]='OnBtnClicked'
;   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('LineRaceActivityBaseWindow')]
0005  CALL      R0 = call(R0, 1 args, 2 rets)
0006  SETTABUP  _ENV[K0('LineRaceActivityBoxWindow')] = R0
0007  GETTABUP  R0 = _ENV[K0('LineRaceActivityBoxWindow')]
0008  GETTABUP  R1 = _ENV[K0('LineRaceActivityBoxWindow')]
0009  SETTABLE  R0[K7('__index')] = R1
0010  GETTABUP  R0 = _ENV[K0('LineRaceActivityBoxWindow')]
0011  CLOSURE   R1 = closure proto0
0012  SETTABLE  R0[K8('BeforeOpenCheck')] = R1
0013  GETTABUP  R0 = _ENV[K0('LineRaceActivityBoxWindow')]
0014  CLOSURE   R1 = closure proto1
0015  SETTABLE  R0[K9('Init')] = R1
0016  GETTABUP  R0 = _ENV[K0('LineRaceActivityBoxWindow')]
0017  CLOSURE   R1 = closure proto2
0018  SETTABLE  R0[K10('_InitMyDatas')] = R1
0019  GETTABUP  R0 = _ENV[K0('LineRaceActivityBoxWindow')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K11('OnBtnClicked')] = R1
0022  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 11-17 np=5 va=0 ms=12 code=25 consts=6 upvals=1 protos=0
  ;   K[0]='LineRaceActivityBaseWindow'
  ;   K[1]='BeforeOpenCheck'
  ;   K[2]='RewardWindow'
  ;   K[3]='Open'
  ;   K[4]='ERewardScene'
  ;   K[5]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-25), activityType(0-25), id(0-25), rewards(0-25), closeCallback(0-25)
  0000  GETTABUP  R5 = _ENV[K0('LineRaceActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('BeforeOpenCheck')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  MOVE      R9 = R0
  0006  MOVE      R10 = R0
  0007  CALL      R5 = call(R5, 1 args, 5 rets)
  0008  TEST      if not R5 then   -> -131061
  0009  JMP       (jump)   -> 22
  0010  GETTABUP  R5 = _ENV[K2('RewardWindow')]
  0011  GETTABLE  R5 = R5[K3('Open')]
  0012  MOVE      R6 = R0
  0013  LOADNIL   R7..R7 = nil
  0014  LOADBOOL  R8 = true
  0015  GETTABUP  R9 = _ENV[K4('ERewardScene')]
  0016  GETTABLE  R9 = R9[K5('Other')]
  0017  LOADNIL   R10..R10 = nil
  0018  MOVE      R11 = R0
  0019  CALL      R5 = call(R5, 0 args, 6 rets)
  0020  LOADBOOL  R5 = false
  0021  RETURN    return R5..R4
  0022  LOADBOOL  R5 = true
  0023  RETURN    return R5..R4
  0024  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 19-26 np=5 va=0 ms=9 code=22 consts=14 upvals=1 protos=0
  ;   K[0]='LineRaceActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_rewards'
  ;   K[3]='m_closeCallback'
  ;   K[4]='_InitMyDatas'
  ;   K[5]='GM'
  ;   K[6]='AudioModel'
  ;   K[7]='PlayEffect'
  ;   K[8]='AudioFileConfigName'
  ;   K[9]='SfxPkRaceActivityFinish1'
  ;   K[10]='PlatformInterface'
  ;   K[11]='Vibrate'
  ;   K[12]='EVibrationType'
  ;   K[13]='Medium'
  ;   upvals: _ENV
  ;   locals: self(0-22), activityType(0-22), id(0-22), rewards(0-22), closeCallback(0-22)
  0000  GETTABUP  R5 = _ENV[K0('LineRaceActivityBaseWindow')]
  0001  GETTABLE  R5 = R5[K1('Init')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  CALL      R5 = call(R5, 0 args, 3 rets)
  0006  SETTABLE  R0[K2('m_rewards')] = R3
  0007  SETTABLE  R0[K3('m_closeCallback')] = R4
  0008  SELF      R6 = R0[K4('_InitMyDatas')] (self)
  0009  CALL      R5 = call(R5, 0 args, 1 rets)
  0010  GETTABUP  R5 = _ENV[K5('GM')]
  0011  GETTABLE  R5 = R5[K6('AudioModel')]
  0012  SELF      R6 = R5[K7('PlayEffect')] (self)
  0013  GETTABUP  R7 = _ENV[K8('AudioFileConfigName')]
  0014  GETTABLE  R7 = R7[K9('SfxPkRaceActivityFinish1')]
  0015  CALL      R5 = call(R5, 0 args, 2 rets)
  0016  GETTABUP  R5 = _ENV[K10('PlatformInterface')]
  0017  GETTABLE  R5 = R5[K11('Vibrate')]
  0018  GETTABUP  R6 = _ENV[K12('EVibrationType')]
  0019  GETTABLE  R6 = R6[K13('Medium')]
  0020  CALL      R5 = call(R5, 0 args, 1 rets)
  0021  RETURN    return R0..R-1
; ---------- proto2 [_InitMyDatas] ----------
  ; fn ?  line 28-31 np=1 va=0 ms=5 code=13 consts=10 upvals=1 protos=0
  ;   K[0]='m_userAvatar'
  ;   K[1]='SetMySelf'
  ;   K[2]='ImageFileConfigName'
  ;   K[3]='head_frame_linerace'
  ;   K[4]='m_nameText'
  ;   K[5]='text'
  ;   K[6]='GM'
  ;   K[7]='GameTextModel'
  ;   K[8]='GetText'
  ;   K[9]='coin_race_main_you'
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_userAvatar')]
  0001  SELF      R2 = R1[K1('SetMySelf')] (self)
  0002  GETTABUP  R3 = _ENV[K2('ImageFileConfigName')]
  0003  GETTABLE  R3 = R3[K3('head_frame_linerace')]
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  GETTABLE  R1 = R0[K4('m_nameText')]
  0006  GETTABUP  R2 = _ENV[K6('GM')]
  0007  GETTABLE  R2 = R2[K7('GameTextModel')]
  0008  SELF      R3 = R2[K8('GetText')] (self)
  0009  LOADK     R4 = K9 'coin_race_main_you'
  0010  CALL      R2 = call(R2, 1 args, 2 rets)
  0011  SETTABLE  R1[K5('text')] = R2
  0012  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 33-38 np=1 va=0 ms=11 code=25 consts=15 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='m_rewards'
  ;   K[3]='BoxRewardWindow'
  ;   K[4]='OpenRigid'
  ;   K[5]='m_boxImg'
  ;   K[6]='transform'
  ;   K[7]='position'
  ;   K[8]=0.5
  ;   K[9]='ImageFileConfigName'
  ;   K[10]='linerace_box'
  ;   K[11]='ERewardScene'
  ;   K[12]='Other'
  ;   K[13]='m_closeCallback'
  ;   K[14]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-25)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('m_rewards')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 22
  0006  GETTABUP  R1 = _ENV[K3('BoxRewardWindow')]
  0007  GETTABLE  R1 = R1[K4('OpenRigid')]
  0008  GETTABLE  R2 = R0[K5('m_boxImg')]
  0009  GETTABLE  R2 = R2[K6('transform')]
  0010  GETTABLE  R2 = R2[K7('position')]
  0011  LOADK     R3 = K8 0.5
  0012  GETTABUP  R4 = _ENV[K9('ImageFileConfigName')]
  0013  GETTABLE  R4 = R4[K10('linerace_box')]
  0014  GETTABLE  R5 = R0[K2('m_rewards')]
  0015  LOADNIL   R6..R6 = nil
  0016  LOADBOOL  R7 = true
  0017  GETTABUP  R8 = _ENV[K11('ERewardScene')]
  0018  GETTABLE  R8 = R8[K12('Other')]
  0019  LOADNIL   R9..R9 = nil
  0020  GETTABLE  R10 = R0[K13('m_closeCallback')]
  0021  CALL      R1 = call(R1, 0 args, 9 rets)
  0022  SELF      R2 = R0[K14('Close')] (self)
  0023  CALL      R1 = call(R1, 0 args, 1 rets)
  0024  RETURN    return R0..R-1
