# AlbumActivity_View_AlbumUpgradeRewardWindow_1154.luac
; fn @AlbumUpgradeRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=13 upvals=1 protos=3
;   K[0]='AlbumUpgradeRewardWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='canCloseByAndroidBack'
;   K[5]=false
;   K[6]='windowMaskAlpha'
;   K[7]=0.85
;   K[8]='AlbumActivityBaseWindow'
;   K[9]='__index'
;   K[10]='Init'
;   K[11]='Close'
;   K[12]='OnCloseFinish'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  SETTABLE  R1[K4('canCloseByAndroidBack')] = K5(false)
0004  SETTABLE  R1[K6('windowMaskAlpha')] = K7(0.85)
0005  GETTABUP  R2 = _ENV[K8('AlbumActivityBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('AlbumUpgradeRewardWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('AlbumUpgradeRewardWindow')]
0009  GETTABUP  R1 = _ENV[K0('AlbumUpgradeRewardWindow')]
0010  SETTABLE  R0[K9('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumUpgradeRewardWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K10('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('AlbumUpgradeRewardWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K11('Close')] = R1
0017  GETTABUP  R0 = _ENV[K0('AlbumUpgradeRewardWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K12('OnCloseFinish')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 11-31 np=3 va=0 ms=12 code=73 consts=26 upvals=1 protos=0
  ;   K[0]='AlbumActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_parentWnd'
  ;   K[3]='m_rewards'
  ;   K[4]=1
  ;   K[5]='m_rewardItemSimpleLuaTable'
  ;   K[6]='m_arrRewards'
  ;   K[7]='m_model'
  ;   K[8]='GetAlbumConfig'
  ;   K[9]='upgradeBonus'
  ;   K[10]='ipairs'
  ;   K[11]=nil
  ;   K[12]='Object'
  ;   K[13]='Instantiate'
  ;   K[14]='gameObject'
  ;   K[15]='transform'
  ;   K[16]='parent'
  ;   K[17]='GetLuaTable'
  ;   K[18]='SetAmountText'
  ;   K[19]='X'
  ;   K[20]='PROPERTY_COUNT'
  ;   K[21]='localScale'
  ;   K[22]='Vector3'
  ;   K[23]=3
  ;   K[24]='m_amountRectTrans'
  ;   K[25]=0.6
  ;   upvals: _ENV
  ;   locals: self(0-73), activityType(0-73), parentWnd(0-73), (for generator)(19-51), (for state)(19-51), (for control)(19-51), i(20-49), v(20-49)
  0000  GETTABUP  R3 = _ENV[K0('AlbumActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_parentWnd')] = R2
  0006  NEWTABLE  R3 = {} (0 items)
  0007  SETTABLE  R0[K3('m_rewards')] = R3
  0008  GETTABLE  R3 = R0[K3('m_rewards')]
  0009  GETTABLE  R4 = R0[K5('m_rewardItemSimpleLuaTable')]
  0010  SETTABLE  R3[K4(1)] = R4
  0011  GETTABLE  R3 = R0[K7('m_model')]
  0012  SELF      R4 = R3[K8('GetAlbumConfig')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  GETTABLE  R3 = R3[K9('upgradeBonus')]
  0015  SETTABLE  R0[K6('m_arrRewards')] = R3
  0016  GETTABUP  R3 = _ENV[K10('ipairs')]
  0017  GETTABLE  R4 = R0[K6('m_arrRewards')]
  0018  CALL      R3 = call(R3, 3 args, 1 rets)
  0019  JMP       (jump)   -> 49
  0020  GETTABLE  R8 = R0[K3('m_rewards')]
  0021  GETTABLE  R8 = R8[R6]
  0022  EQ        if R0 eq K11(nil)   -> -126685
  0023  JMP       (jump)   -> 36
  0024  GETTABLE  R8 = R0[K3('m_rewards')]
  0025  GETTABUP  R9 = _ENV[K12('Object')]
  0026  GETTABLE  R9 = R9[K13('Instantiate')]
  0027  GETTABLE  R10 = R0[K5('m_rewardItemSimpleLuaTable')]
  0028  GETTABLE  R10 = R10[K14('gameObject')]
  0029  GETTABLE  R11 = R0[K5('m_rewardItemSimpleLuaTable')]
  0030  GETTABLE  R11 = R11[K15('transform')]
  0031  GETTABLE  R11 = R11[K16('parent')]
  0032  CALL      R9 = call(R9, 1 args, 2 rets)
  0033  SELF      R10 = R9[K17('GetLuaTable')] (self)
  0034  CALL      R9 = call(R9, 1 args, 1 rets)
  0035  SETTABLE  R8[R6] = R9
  0036  GETTABLE  R8 = R0[K3('m_rewards')]
  0037  GETTABLE  R8 = R8[R6]
  0038  SELF      R9 = R8[K1('Init')] (self)
  0039  MOVE      R10 = R0
  0040  CALL      R8 = call(R8, 0 args, 2 rets)
  0041  GETTABLE  R8 = R0[K3('m_rewards')]
  0042  GETTABLE  R8 = R8[R6]
  0043  SELF      R9 = R8[K18('SetAmountText')] (self)
  0044  LOADK     R10 = K19 'X'
  0045  GETTABUP  R11 = _ENV[K20('PROPERTY_COUNT')]
  0046  GETTABLE  R11 = R7[R11]
  0047  CONCAT    R10 = concat(R10..R10)
  0048  CALL      R8 = call(R8, 0 args, 2 rets)
  0049  TFORCALL  tforcall R3
  0050  TFORLOOP  tforloop R5(sBx=-31)   -> 20
  0051  GETTABLE  R3 = R0[K6('m_arrRewards')]
  0052  LEN       R3 = len R0
  0053  EQ        if R0 eq K4(1)   -> -129221
  0054  JMP       (jump)   -> 72
  0055  GETTABLE  R3 = R0[K3('m_rewards')]
  0056  GETTABLE  R3 = R3[K4(1)]
  0057  GETTABLE  R3 = R3[K14('gameObject')]
  0058  GETTABLE  R3 = R3[K15('transform')]
  0059  GETTABUP  R4 = _ENV[K22('Vector3')]
  0060  LOADK     R5 = K23 3
  0061  LOADK     R6 = K23 3
  0062  LOADK     R7 = K23 3
  0063  CALL      R4 = call(R4, 1 args, 3 rets)
  0064  SETTABLE  R3[K21('localScale')] = R4
  0065  GETTABLE  R3 = R0[K24('m_amountRectTrans')]
  0066  GETTABUP  R4 = _ENV[K22('Vector3')]
  0067  LOADK     R5 = K25 0.6
  0068  LOADK     R6 = K25 0.6
  0069  LOADK     R7 = K25 0.6
  0070  CALL      R4 = call(R4, 1 args, 3 rets)
  0071  SETTABLE  R3[K21('localScale')] = R4
  0072  RETURN    return R0..R-1
; ---------- proto1 [Close] ----------
  ; fn ?  line 33-38 np=1 va=0 ms=3 code=11 consts=3 upvals=1 protos=0
  ;   K[0]='AlbumActivityBaseWindow'
  ;   K[1]='Close'
  ;   K[2]='m_parentWnd'
  ;   upvals: _ENV
  ;   locals: self(0-11)
  0000  GETTABUP  R1 = _ENV[K0('AlbumActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Close')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_parentWnd')]
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 10
  0007  GETTABLE  R1 = R0[K2('m_parentWnd')]
  0008  SELF      R2 = R1[K1('Close')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [OnCloseFinish] ----------
  ; fn ?  line 40-45 np=1 va=0 ms=7 code=19 consts=11 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseFinish'
  ;   K[2]='m_model'
  ;   K[3]='IsActivityOpen'
  ;   K[4]='GM'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='m_activityDefinition'
  ;   K[8]='MainWindowPrefabName'
  ;   K[9]='m_activityType'
  ;   K[10]='album_upgrade_congrat_title'
  ;   upvals: _ENV
  ;   locals: self(0-19)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseFinish')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  SELF      R2 = R1[K3('IsActivityOpen')] (self)
  0006  CALL      R1 = call(R1, 1 args, 1 rets)
  0007  TEST      if not R1 then   -> -131063
  0008  JMP       (jump)   -> 18
  0009  GETTABUP  R1 = _ENV[K4('GM')]
  0010  GETTABLE  R1 = R1[K5('UIManager')]
  0011  SELF      R2 = R1[K6('OpenView')] (self)
  0012  GETTABLE  R3 = R0[K7('m_activityDefinition')]
  0013  GETTABLE  R3 = R3[K8('MainWindowPrefabName')]
  0014  GETTABLE  R4 = R0[K9('m_activityType')]
  0015  LOADNIL   R5..R5 = nil
  0016  LOADK     R6 = K10 'album_upgrade_congrat_title'
  0017  CALL      R1 = call(R1, 0 args, 5 rets)
  0018  RETURN    return R0..R-1
