using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Cpp2IlInjected; using RecNet; using RecRoom.Async; using RecRoom.Core; using TMPro; using UnityEngine; namespace AGUI.StackedUI.Dialog { // Token: 0x02001BFC RID: 7164 [Token(Token = "0x2001BFC")] [StructLayout(3)] public class ChooseParentRoomDialog : ConfirmUIDialog { // Token: 0x17001E23 RID: 7715 // (get) Token: 0x0600C026 RID: 49190 RVA: 0x002D459C File Offset: 0x002D279C // (set) Token: 0x0600C027 RID: 49191 RVA: 0x002D45B0 File Offset: 0x002D27B0 [Token(Token = "0x17001E23")] private WatchUI OFMGKAODHPL { [Token(Token = "0x600C026")] [Address(RVA = "0x4BD780", Offset = "0x4BC180", VA = "0x1804BD780")] get; [Token(Token = "0x600C027")] [Address(RVA = "0x58B330", Offset = "0x589D30", VA = "0x18058B330")] set; } // Token: 0x0600C028 RID: 49192 RVA: 0x002D45C4 File Offset: 0x002D27C4 [Token(Token = "0x600C028")] [Address(RVA = "0x118B8D0", Offset = "0x118A2D0", VA = "0x18118B8D0", Slot = "9")] public override void Initialize(StackedUIBase LJOCNMLBCAH) { base.Initialize(LJOCNMLBCAH); if (LJOCNMLBCAH == 0) { int num = 0; this.k__BackingField = num; return; } this.k__BackingField = LJOCNMLBCAH; } // Token: 0x0600C029 RID: 49193 RVA: 0x002D45F0 File Offset: 0x002D27F0 [Token(Token = "0x600C029")] [Address(RVA = "0x118B710", Offset = "0x118A110", VA = "0x18118B710", Slot = "17")] public override void ForceCancel(bool OLFBOPIKDCI) { int num = 0; base.KHKDGPHPIND(num, true); } // Token: 0x0600C02A RID: 49194 RVA: 0x002D4608 File Offset: 0x002D2808 [Token(Token = "0x600C02A")] [Address(RVA = "0x118B970", Offset = "0x118A370", VA = "0x18118B970", Slot = "20")] public override IPromise ShowDialog(PPENFJMFPNE IJNAMEBOMJJ, DNACJGJEPEC BJIDNOIPHDG) { BaseRoomButtonPagedGrid baseRoomButtonPagedGrid = this.pagedGrid; this.LPFKMLPBLEE = BJIDNOIPHDG; this.BMFPEJMLIKD("", true); if (this.LPFKMLPBLEE == (ulong)0L) { Debug.LogError("targetRoom is null"); } List list = new List(); List roomsToShow = list; IReadOnlyList k__BackingField = IJNAMEBOMJJ.k__BackingField; if (list > (ulong)1L) { List roomsToShow4 = roomsToShow; int num = 0; roomsToShow4.Add(num); } IPromise> promise = OJMCBOKJFOF.FNMNFLFIBJG(); Action> action = delegate(IReadOnlyList myRooms) { List roomsToShow2 = roomsToShow; Func func = new Func(this.IFDMBIEIPGA); IEnumerable enumerable = Enumerable.Where(myRooms, func); roomsToShow2.AddRange(enumerable); BaseRoomButtonPagedGrid baseRoomButtonPagedGrid2 = this.pagedGrid; List roomsToShow3 = roomsToShow; baseRoomButtonPagedGrid2.SetRooms(roomsToShow3); }; return base.ShowDialog(); } // Token: 0x0600C02B RID: 49195 RVA: 0x002D46A4 File Offset: 0x002D28A4 [Token(Token = "0x600C02B")] [Address(RVA = "0x118B120", Offset = "0x1189B20", VA = "0x18118B120")] private void BMFPEJMLIKD(string DBDDKLHPNNA, bool GICEDIEDLJD) { int num; do { num = 0; TextMeshProUGUI textMeshProUGUI = this.infoText; int num2 = 0; textMeshProUGUI.text = DBDDKLHPNNA; BaseRoomButtonPagedGrid baseRoomButtonPagedGrid = this.pagedGrid; if (num < num2) { num += num; if (num == num2) { goto IL_65; } num++; } int num3 = 0; if (num < num3) { num += num; num++; } int num4 = 0; if (num < num4) { num += num; if (num == num4) { goto IL_65; } num++; } int num5 = 0; Button3D button3D; if (!(button3D != num5)) { continue; } button3D.FFDOINJEHMM = GICEDIEDLJD; IL_65: if (num != -1) { } } while (num != 0); } // Token: 0x0600C02C RID: 49196 RVA: 0x002D4730 File Offset: 0x002D2930 [Token(Token = "0x600C02C")] [Address(RVA = "0x118B5A0", Offset = "0x1189FA0", VA = "0x18118B5A0")] private void EDEEENMPBOI(KLCOGEIGEBJ CCLNPDDBFFH, bool PFMPGFNIBMO) { DNACJGJEPEC lpfkmlpblee = this.LPFKMLPBLEE; this.JCOAIEPIPJG = PFMPGFNIBMO; long k__BackingField = lpfkmlpblee.k__BackingField; long k__BackingField = lpfkmlpblee.k__BackingField; int num = 0; if (CCLNPDDBFFH != 0) { } IPromise promise = OJMCBOKJFOF.OHHAFAIEFHP(k__BackingField, k__BackingField, num); Action action = new Action(this.IJILBBIKJKB); Action action2 = new Action(this.AANOBCNAGGO); throw new NullReferenceException(); } // Token: 0x0600C02D RID: 49197 RVA: 0x002D478C File Offset: 0x002D298C [Token(Token = "0x600C02D")] [Address(RVA = "0x118B420", Offset = "0x1189E20", VA = "0x18118B420")] public void Button_ChooseRoom(KLCOGEIGEBJ room) { int num = 0; this.BMFPEJMLIKD("Updating...", num != 0); if (room == (ulong)0L) { int num2 = 0; int num3 = 0; this.EDEEENMPBOI(num3, num2 != 0); return; } bool flag = Matchmaking.HMCJLLMDAAM.MMFBPKOOLNG; KLCOGEIGEBJ room2 = room; if (!flag) { } int num4 = 0; long num5; IPromise promise = OJMCBOKJFOF.CJKHNIIJFIN(num5, num4 != 0); Action <>9__1; Action action = delegate(PPENFJMFPNE roomDetails) { bool flag2 = roomDetails.MMFBPKOOLNG; ChooseParentRoomDialog <>4__this = this; if (flag2) { KLCOGEIGEBJ room3 = room; int num6 = 0; <>4__this.EDEEENMPBOI(room3, num6 != 0); return; } WatchUI watchUI = <>4__this.k__BackingField; string[] array = new string[5]; if ("Your room has Beta Content enabled, but the new parent room (^" != 0) { } array[0] = "Your room has Beta Content enabled, but the new parent room (^"; string k__BackingField = roomDetails.k__BackingField; if (k__BackingField != 0) { } array[1] = k__BackingField; if (") does not. \nIf you make this room a sub-room of ^" != 0) { } array[2] = ") does not. \nIf you make this room a sub-room of ^"; string k__BackingField2 = roomDetails.k__BackingField; if (k__BackingField2 != 0) { } array[3] = k__BackingField2; if (", any Beta Content saved into this room will become inaccessible and will no longer work. Are you sure you want to proceed?" != 0) { } array[4] = ", any Beta Content saved into this room will become inaccessible and will no longer work. Are you sure you want to proceed?"; string text = string.Concat(array); IPromise promise2 = watchUI.ShowConfirmationDialog((UIConfirmationDialog.MCLCMCALGMA)((uint)13), "Beta Content Warning", text); if (<>9__1 == 0) { Action action2 = delegate(JPIJGHNNIDP response) { if (response == JPIJGHNNIDP.Affirmative) { ChooseParentRoomDialog <>4__this2 = this; return; } }; <>9__1 = action2; } throw new NullReferenceException(); }; throw new NullReferenceException(); } // Token: 0x0600C02E RID: 49198 RVA: 0x002D4810 File Offset: 0x002D2A10 [Token(Token = "0x600C02E")] [Address(RVA = "0x118BB50", Offset = "0x118A550", VA = "0x18118BB50")] public ChooseParentRoomDialog() { } // Token: 0x0600C02F RID: 49199 RVA: 0x002D4824 File Offset: 0x002D2A24 [Token(Token = "0x600C02F")] [Address(RVA = "0x118B750", Offset = "0x118A150", VA = "0x18118B750")] [CompilerGenerated] private bool IFDMBIEIPGA(KLCOGEIGEBJ PBAOMKNFBFL) { if (PBAOMKNFBFL.k__BackingField) { } long k__BackingField = this.LPFKMLPBLEE.k__BackingField; return PBAOMKNFBFL.k__BackingField != k__BackingField; } // Token: 0x0600C030 RID: 49200 RVA: 0x002D485C File Offset: 0x002D2A5C [Token(Token = "0x600C030")] [Address(RVA = "0x118B790", Offset = "0x118A190", VA = "0x18118B790")] [CompilerGenerated] private void IJILBBIKJKB() { NotificationManager instance = SingletonMonoBehaviour.Instance; int num = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Medium, "Success!", 3f, num, num); base.KHKDGPHPIND((uint)1, true); if (this.JCOAIEPIPJG && NetworkedSingletonMonoBehaviour.FFNIFALJLDD) { int num2 = 0; this.BMFPEJMLIKD("Saving...", num2 != 0); SingletonMonoBehaviour.Instance.RequestSaveRoomData(); return; } } // Token: 0x0600C031 RID: 49201 RVA: 0x002D48C0 File Offset: 0x002D2AC0 [Token(Token = "0x600C031")] [Address(RVA = "0x118B110", Offset = "0x1189B10", VA = "0x18118B110")] [CompilerGenerated] private void AANOBCNAGGO(string MOPOMPHBHKF) { this.BMFPEJMLIKD(MOPOMPHBHKF, true); } // Token: 0x04007F16 RID: 32534 [global::Cpp2IlInjected.FieldOffset(Offset = "0x70")] [Token(Token = "0x4007F16")] [SerializeField] private BaseRoomButtonPagedGrid pagedGrid; // Token: 0x04007F17 RID: 32535 [global::Cpp2IlInjected.FieldOffset(Offset = "0x78")] [Token(Token = "0x4007F17")] [SerializeField] private TextMeshProUGUI infoText; // Token: 0x04007F18 RID: 32536 [global::Cpp2IlInjected.FieldOffset(Offset = "0x80")] [Token(Token = "0x4007F18")] private DNACJGJEPEC LPFKMLPBLEE; // Token: 0x04007F19 RID: 32537 [global::Cpp2IlInjected.FieldOffset(Offset = "0x88")] [Token(Token = "0x4007F19")] private bool JCOAIEPIPJG; // Token: 0x02001BFD RID: 7165 [Token(Token = "0x2001BFD")] [CompilerGenerated] private sealed class JAEADCJDLMK { // Token: 0x0600C032 RID: 49202 RVA: 0x002D48D8 File Offset: 0x002D2AD8 [Token(Token = "0x600C032")] [Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")] public JAEADCJDLMK() { } // Token: 0x0600C033 RID: 49203 RVA: 0x002D48EC File Offset: 0x002D2AEC [Token(Token = "0x600C033")] [Address(RVA = "0x1196510", Offset = "0x1194F10", VA = "0x181196510")] internal void b__0(IReadOnlyList myRooms) { List list = this.roomsToShow; Func func = new Func(this.<>4__this.IFDMBIEIPGA); IEnumerable enumerable = Enumerable.Where(myRooms, func); list.AddRange(enumerable); BaseRoomButtonPagedGrid pagedGrid = this.<>4__this.pagedGrid; List list2 = this.roomsToShow; pagedGrid.SetRooms(list2); } // Token: 0x04007F1B RID: 32539 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007F1B")] public List roomsToShow; // Token: 0x04007F1C RID: 32540 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4007F1C")] public ChooseParentRoomDialog <>4__this; } // Token: 0x02001BFE RID: 7166 [Token(Token = "0x2001BFE")] [CompilerGenerated] private sealed class BNEHJCPMOBC { // Token: 0x0600C034 RID: 49204 RVA: 0x002D4944 File Offset: 0x002D2B44 [Token(Token = "0x600C034")] [Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")] public BNEHJCPMOBC() { } // Token: 0x0600C035 RID: 49205 RVA: 0x002D4958 File Offset: 0x002D2B58 [Token(Token = "0x600C035")] [Address(RVA = "0x1188480", Offset = "0x1186E80", VA = "0x181188480")] internal void b__0(PPENFJMFPNE roomDetails) { bool flag = roomDetails.MMFBPKOOLNG; ChooseParentRoomDialog chooseParentRoomDialog = this.<>4__this; if (flag) { KLCOGEIGEBJ klcogeigebj = this.room; int num = 0; chooseParentRoomDialog.EDEEENMPBOI(klcogeigebj, num != 0); return; } WatchUI k__BackingField = chooseParentRoomDialog.k__BackingField; string[] array = new string[5]; if ("Your room has Beta Content enabled, but the new parent room (^" != 0) { } array[0] = "Your room has Beta Content enabled, but the new parent room (^"; string k__BackingField = roomDetails.k__BackingField; if (k__BackingField != 0) { } array[1] = k__BackingField; if (") does not. \nIf you make this room a sub-room of ^" != 0) { } array[2] = ") does not. \nIf you make this room a sub-room of ^"; string k__BackingField2 = roomDetails.k__BackingField; if (k__BackingField2 != 0) { } array[3] = k__BackingField2; if (", any Beta Content saved into this room will become inaccessible and will no longer work. Are you sure you want to proceed?" != 0) { } array[4] = ", any Beta Content saved into this room will become inaccessible and will no longer work. Are you sure you want to proceed?"; string text = string.Concat(array); IPromise promise = k__BackingField.ShowConfirmationDialog((UIConfirmationDialog.MCLCMCALGMA)((uint)13), "Beta Content Warning", text); if (this.<>9__1 == 0) { Action action = delegate(JPIJGHNNIDP response) { if (response == JPIJGHNNIDP.Affirmative) { ChooseParentRoomDialog chooseParentRoomDialog2 = this.<>4__this; return; } }; this.<>9__1 = action; } throw new NullReferenceException(); } // Token: 0x0600C036 RID: 49206 RVA: 0x002D4A48 File Offset: 0x002D2C48 [Token(Token = "0x600C036")] [Address(RVA = "0x1188770", Offset = "0x1187170", VA = "0x181188770")] internal void b__1(JPIJGHNNIDP response) { if (response == JPIJGHNNIDP.Affirmative) { ChooseParentRoomDialog chooseParentRoomDialog = this.<>4__this; return; } } // Token: 0x04007F1D RID: 32541 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4007F1D")] public ChooseParentRoomDialog <>4__this; // Token: 0x04007F1E RID: 32542 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4007F1E")] public KLCOGEIGEBJ room; // Token: 0x04007F1F RID: 32543 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4007F1F")] public Action <>9__1; } } }