# UI_Button_RoomButton_320.luac
; fn @RoomButton.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='RoomButton'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnChapterChangeFinished'
;   K[6]='OnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('RoomButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('RoomButton')]
0006  GETTABUP  R1 = _ENV[K0('RoomButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('RoomButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('RoomButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnChapterChangeFinished')] = R1
0014  GETTABUP  R0 = _ENV[K0('RoomButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnClicked')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-7 np=1 va=0 ms=5 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='HudGeneralButton'
  ;   K[1]='Awake'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='EEventType'
  ;   K[5]='ChapterChangeFinished'
  ;   K[6]='OnChapterChangeFinished'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('HudGeneralButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('AddListener')]
  0006  GETTABUP  R2 = _ENV[K4('EEventType')]
  0007  GETTABLE  R2 = R2[K5('ChapterChangeFinished')]
  0008  MOVE      R3 = R0
  0009  GETTABLE  R4 = R0[K6('OnChapterChangeFinished')]
  0010  CALL      R1 = call(R1, 0 args, 3 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [OnChapterChangeFinished] ----------
  ; fn ?  line 9-14 np=1 va=0 ms=7 code=24 consts=9 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ChapterManager'
  ;   K[2]='curActiveChapterName'
  ;   K[3]='TaskManager'
  ;   K[4]='GetOngoingChapterName'
  ;   K[5]=317
  ;   K[6]=160
  ;   K[7]='transform'
  ;   K[8]='SetAnchoredPosY'
  ;   upvals: _ENV
  ;   locals: self(0-24), curActiveChapterName(3-24), isOngoingChapter(13-24), anchoredPosY(19-24)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ChapterManager')]
  0002  GETTABLE  R1 = R1[K2('curActiveChapterName')]
  0003  TESTSET   if R0 then R2   -> -130555
  0004  JMP       (jump)   -> 13
  0005  GETTABUP  R2 = _ENV[K0('GM')]
  0006  GETTABLE  R2 = R2[K3('TaskManager')]
  0007  SELF      R3 = R2[K4('GetOngoingChapterName')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  EQ        if R1 eq R2   -> -130547
  0010  JMP       (jump)   -> 12
  0011  LOADBOOL  R2 = false
  0012  LOADBOOL  R2 = true
  0013  TEST      if not R2 then   -> -131057
  0014  JMP       (jump)   -> 18
  0015  LOADK     R3 = K5 317
  0016  TEST      if not R3 then   -> -131053
  0017  JMP       (jump)   -> 19
  0018  LOADK     R3 = K6 160
  0019  GETTABLE  R4 = R0[K7('transform')]
  0020  SELF      R5 = R4[K8('SetAnchoredPosY')] (self)
  0021  MOVE      R6 = R0
  0022  CALL      R4 = call(R4, 0 args, 2 rets)
  0023  RETURN    return R0..R-1
; ---------- proto2 [OnClicked] ----------
  ; fn ?  line 16-18 np=1 va=0 ms=4 code=7 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='ChapterSelectWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('ChapterSelectWindow')]
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
