# UI_Window_Board_ItemChooseCell_607.luac
; fn @ItemChooseCell.lua  line 0-0 np=0 va=1 ms=2 code=24 consts=8 upvals=1 protos=6
;   K[0]='ItemChooseCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='OnClicked'
;   K[5]='SetSelected'
;   K[6]='TurnAround'
;   K[7]='SpeedUp'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('ItemChooseCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0003  GETTABUP  R1 = _ENV[K0('ItemChooseCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnClicked')] = R1
0014  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('SetSelected')] = R1
0017  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('TurnAround')] = R1
0020  GETTABUP  R0 = _ENV[K0('ItemChooseCell')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('SpeedUp')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-22 np=5 va=0 ms=10 code=33 consts=17 upvals=1 protos=0
  ;   K[0]='m_chooseWindow'
  ;   K[1]='m_index'
  ;   K[2]='GM'
  ;   K[3]='ItemDataModel'
  ;   K[4]='GetSpriteName'
  ;   K[5]='SpriteUtil'
  ;   K[6]='SetImage'
  ;   K[7]='m_iconImage'
  ;   K[8]='SetSelected'
  ;   K[9]='m_backGo'
  ;   K[10]='SetActive'
  ;   K[11]='m_frontGo'
  ;   K[12]='m_unselectedImg'
  ;   K[13]='sprite'
  ;   K[14]='m_unselectedGreen'
  ;   K[15]='m_selectedImg'
  ;   K[16]='m_selectedGreen'
  ;   upvals: _ENV
  ;   locals: self(0-33), chooseWindow(0-33), index(0-33), choiceItemType(0-33), isGreenBg(0-33), spriteName(7-33)
  0000  SETTABLE  R0[K0('m_chooseWindow')] = R1
  0001  SETTABLE  R0[K1('m_index')] = R2
  0002  GETTABUP  R5 = _ENV[K2('GM')]
  0003  GETTABLE  R5 = R5[K3('ItemDataModel')]
  0004  SELF      R6 = R5[K4('GetSpriteName')] (self)
  0005  MOVE      R7 = R0
  0006  CALL      R5 = call(R5, 1 args, 2 rets)
  0007  GETTABUP  R6 = _ENV[K5('SpriteUtil')]
  0008  GETTABLE  R6 = R6[K6('SetImage')]
  0009  GETTABLE  R7 = R0[K7('m_iconImage')]
  0010  MOVE      R8 = R0
  0011  LOADBOOL  R9 = true
  0012  CALL      R6 = call(R6, 0 args, 3 rets)
  0013  SELF      R7 = R0[K8('SetSelected')] (self)
  0014  LOADBOOL  R8 = false
  0015  CALL      R6 = call(R6, 0 args, 2 rets)
  0016  GETTABLE  R6 = R0[K9('m_backGo')]
  0017  SELF      R7 = R6[K10('SetActive')] (self)
  0018  LOADBOOL  R8 = true
  0019  CALL      R6 = call(R6, 0 args, 2 rets)
  0020  GETTABLE  R6 = R0[K11('m_frontGo')]
  0021  SELF      R7 = R6[K10('SetActive')] (self)
  0022  LOADBOOL  R8 = false
  0023  CALL      R6 = call(R6, 0 args, 2 rets)
  0024  TEST      if not R4 then   -> -131046
  0025  JMP       (jump)   -> 32
  0026  GETTABLE  R6 = R0[K12('m_unselectedImg')]
  0027  GETTABLE  R7 = R0[K14('m_unselectedGreen')]
  0028  SETTABLE  R6[K13('sprite')] = R7
  0029  GETTABLE  R6 = R0[K15('m_selectedImg')]
  0030  GETTABLE  R7 = R0[K16('m_selectedGreen')]
  0031  SETTABLE  R6[K13('sprite')] = R7
  0032  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 24-29 np=1 va=0 ms=3 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='m_sequnce'
  ;   K[1]='Kill'
  ;   K[2]=nil
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_sequnce')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_sequnce')]
  0004  SELF      R2 = R1[K1('Kill')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SETTABLE  R0[K0('m_sequnce')] = K2(nil)
  0007  RETURN    return R0..R-1
; ---------- proto2 [OnClicked] ----------
  ; fn ?  line 31-33 np=1 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_chooseWindow'
  ;   K[1]='OnCellClicked'
  ;   K[2]='m_index'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_chooseWindow')]
  0001  SELF      R2 = R1[K1('OnCellClicked')] (self)
  0002  GETTABLE  R3 = R0[K2('m_index')]
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [SetSelected] ----------
  ; fn ?  line 35-38 np=2 va=0 ms=5 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='m_selectedBackgroundGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_unselectedBackgroundGo'
  ;   locals: self(0-9), selected(0-9)
  0000  GETTABLE  R2 = R0[K0('m_selectedBackgroundGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  GETTABLE  R2 = R0[K2('m_unselectedBackgroundGo')]
  0005  SELF      R3 = R2[K1('SetActive')] (self)
  0006  NOT       R4 = not R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
; ---------- proto4 [TurnAround] ----------
  ; fn ?  line 40-54 np=2 va=0 ms=9 code=30 consts=15 upvals=1 protos=2
  ;   K[0]='DOTween'
  ;   K[1]='Sequence'
  ;   K[2]='m_sequnce'
  ;   K[3]='AppendInterval'
  ;   K[4]='Append'
  ;   K[5]='m_backGo'
  ;   K[6]='transform'
  ;   K[7]='DOScaleX'
  ;   K[8]=0
  ;   K[9]=0.2
  ;   K[10]='AppendCallback'
  ;   K[11]='m_frontGo'
  ;   K[12]='transform'
  ;   K[13]=1
  ;   K[14]='OnComplete'
  ;   upvals: _ENV
  ;   locals: self(0-30), delay(0-30), sequnce(3-30)
  0000  GETTABUP  R2 = _ENV[K0('DOTween')]
  0001  GETTABLE  R2 = R2[K1('Sequence')]
  0002  CALL      R2 = call(R2, 1 args, 0 rets)
  0003  SETTABLE  R0[K2('m_sequnce')] = R2
  0004  SELF      R4 = R2[K3('AppendInterval')] (self)
  0005  MOVE      R5 = R0
  0006  CALL      R3 = call(R3, 0 args, 2 rets)
  0007  SELF      R4 = R2[K4('Append')] (self)
  0008  GETTABLE  R5 = R0[K5('m_backGo')]
  0009  GETTABLE  R5 = R5[K6('transform')]
  0010  SELF      R6 = R5[K7('DOScaleX')] (self)
  0011  LOADK     R7 = K8 0
  0012  LOADK     R8 = K9 0.2
  0013  CALL      R5 = call(R5, -1 args, 3 rets)
  0014  CALL      R3 = call(R3, 0 args, -1 rets)
  0015  SELF      R4 = R2[K10('AppendCallback')] (self)
  0016  CLOSURE   R5 = closure proto0
  0017  CALL      R3 = call(R3, 0 args, 2 rets)
  0018  SELF      R4 = R2[K4('Append')] (self)
  0019  GETTABLE  R5 = R0[K11('m_frontGo')]
  0020  GETTABLE  R5 = R5[K12('transform')]
  0021  SELF      R6 = R5[K7('DOScaleX')] (self)
  0022  LOADK     R7 = K13 1
  0023  LOADK     R8 = K9 0.2
  0024  CALL      R5 = call(R5, -1 args, 3 rets)
  0025  CALL      R3 = call(R3, 0 args, -1 rets)
  0026  SELF      R4 = R2[K14('OnComplete')] (self)
  0027  CLOSURE   R5 = closure proto1
  0028  CALL      R3 = call(R3, 0 args, 2 rets)
  0029  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 45-49 np=0 va=0 ms=5 code=17 consts=8 upvals=2 protos=0
    ;   K[0]='m_backGo'
    ;   K[1]='SetActive'
    ;   K[2]='m_frontGo'
    ;   K[3]='transform'
    ;   K[4]='localScale'
    ;   K[5]='Vector3'
    ;   K[6]=0
    ;   K[7]=1
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = self[K0('m_backGo')]
    0001  SELF      R1 = R0[K1('SetActive')] (self)
    0002  LOADBOOL  R2 = false
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  GETTABUP  R0 = self[K2('m_frontGo')]
    0005  SELF      R1 = R0[K1('SetActive')] (self)
    0006  LOADBOOL  R2 = true
    0007  CALL      R0 = call(R0, 0 args, 2 rets)
    0008  GETTABUP  R0 = self[K2('m_frontGo')]
    0009  GETTABLE  R0 = R0[K3('transform')]
    0010  GETTABUP  R1 = _ENV[K5('Vector3')]
    0011  LOADK     R2 = K6 0
    0012  LOADK     R3 = K7 1
    0013  LOADK     R4 = K7 1
    0014  CALL      R1 = call(R1, 1 args, 3 rets)
    0015  SETTABLE  R0[K4('localScale')] = R1
    0016  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 51-53 np=0 va=0 ms=2 code=2 consts=2 upvals=1 protos=0
    ;   K[0]='m_sequnce'
    ;   K[1]=nil
    ;   upvals: self
    0000  SETTABUP  self[K0('m_sequnce')] = K1(nil)
    0001  RETURN    return R0..R-1
; ---------- proto5 [SpeedUp] ----------
  ; fn ?  line 56-61 np=1 va=0 ms=4 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='m_sequnce'
  ;   K[1]='Complete'
  ;   K[2]=nil
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_sequnce')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 8
  0003  GETTABLE  R1 = R0[K0('m_sequnce')]
  0004  SELF      R2 = R1[K1('Complete')] (self)
  0005  LOADBOOL  R3 = true
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  SETTABLE  R0[K0('m_sequnce')] = K2(nil)
  0008  RETURN    return R0..R-1
