# DoubleWheelActivity_View_DoubleWheelActivityTwoButtonWindow_2010.luac
; fn @DoubleWheelActivityTwoButtonWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='DoubleWheelActivityTwoButtonWindow'
;   K[1]='setmetatable'
;   K[2]='DoubleWheelActivityBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='_InitModelData'
;   K[6]='_InitView'
;   K[7]='OnRedClick'
;   K[8]='OnGreenClick'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('DoubleWheelActivityBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('DoubleWheelActivityTwoButtonWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0006  GETTABUP  R1 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_InitModelData')] = R1
0014  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_InitView')] = R1
0017  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnRedClick')] = R1
0020  GETTABUP  R0 = _ENV[K0('DoubleWheelActivityTwoButtonWindow')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnGreenClick')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 14-18 np=6 va=0 ms=11 code=10 consts=4 upvals=1 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='m_greenButtonCallback'
  ;   K[2]='DoubleWheelActivityBaseWindow'
  ;   K[3]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-10), activityType(0-10), id(0-10), bAutoPop(0-10), redButtonCallback(0-10), greenButtonCallback(0-10)
  0000  SETTABLE  R0[K0('m_redButtonCallback')] = R4
  0001  SETTABLE  R0[K1('m_greenButtonCallback')] = R5
  0002  GETTABUP  R6 = _ENV[K2('DoubleWheelActivityBaseWindow')]
  0003  GETTABLE  R6 = R6[K3('Init')]
  0004  MOVE      R7 = R0
  0005  MOVE      R8 = R0
  0006  MOVE      R9 = R0
  0007  MOVE      R10 = R0
  0008  CALL      R6 = call(R6, 0 args, 4 rets)
  0009  RETURN    return R0..R-1
; ---------- proto1 [_InitModelData] ----------
  ; fn ?  line 21-25 np=1 va=0 ms=4 code=10 consts=6 upvals=0 protos=0
  ;   K[0]='GetModel'
  ;   K[1]='m_tokenCount'
  ;   K[2]='GetTokenCount'
  ;   K[3]='m_iconName'
  ;   K[4]='GetActivityDefinition'
  ;   K[5]='ActivityTokenIconName'
  ;   locals: self(0-10), model(2-10)
  0000  SELF      R2 = R0[K0('GetModel')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K2('GetTokenCount')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_tokenCount')] = R2
  0005  SELF      R3 = R1[K4('GetActivityDefinition')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  GETTABLE  R2 = R2[K5('ActivityTokenIconName')]
  0008  SETTABLE  R0[K3('m_iconName')] = R2
  0009  RETURN    return R0..R-1
; ---------- proto2 [_InitView] ----------
  ; fn ?  line 28-31 np=1 va=0 ms=8 code=18 consts=12 upvals=1 protos=0
  ;   K[0]='m_descText'
  ;   K[1]='text'
  ;   K[2]='GM'
  ;   K[3]='GameTextModel'
  ;   K[4]='GetText'
  ;   K[5]='doubleWheel_lastspin_desc'
  ;   K[6]='m_tokenCount'
  ;   K[7]='m_iconName'
  ;   K[8]='m_tokenNumText'
  ;   K[9]='string'
  ;   K[10]='format'
  ;   K[11]='x%d'
  ;   upvals: _ENV
  ;   locals: self(0-18)
  0000  GETTABLE  R1 = R0[K0('m_descText')]
  0001  GETTABUP  R2 = _ENV[K2('GM')]
  0002  GETTABLE  R2 = R2[K3('GameTextModel')]
  0003  SELF      R3 = R2[K4('GetText')] (self)
  0004  LOADK     R4 = K5 'doubleWheel_lastspin_desc'
  0005  GETTABLE  R5 = R0[K6('m_tokenCount')]
  0006  GETTABLE  R6 = R0[K7('m_iconName')]
  0007  GETTABLE  R7 = R0[K7('m_iconName')]
  0008  CALL      R2 = call(R2, 1 args, 5 rets)
  0009  SETTABLE  R1[K1('text')] = R2
  0010  GETTABLE  R1 = R0[K8('m_tokenNumText')]
  0011  GETTABUP  R2 = _ENV[K9('string')]
  0012  GETTABLE  R2 = R2[K10('format')]
  0013  LOADK     R3 = K11 'x%d'
  0014  GETTABLE  R4 = R0[K6('m_tokenCount')]
  0015  CALL      R2 = call(R2, 1 args, 2 rets)
  0016  SETTABLE  R1[K1('text')] = R2
  0017  RETURN    return R0..R-1
; ---------- proto3 [OnRedClick] ----------
  ; fn ?  line 33-40 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_redButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_redButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
; ---------- proto4 [OnGreenClick] ----------
  ; fn ?  line 42-49 np=1 va=0 ms=3 code=10 consts=2 upvals=0 protos=0
  ;   K[0]='m_greenButtonCallback'
  ;   K[1]='Close'
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_greenButtonCallback')]
  0004  MOVE      R2 = R0
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  JMP       (jump)   -> 9
  0007  SELF      R2 = R0[K1('Close')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
