using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using AGUI; using AGUI.StackedUI; using Cpp2IlInjected; using UnityEngine; using UnityEngine.Events; namespace RecRoom.AGUI.ToolUIs { // Token: 0x020028EE RID: 10478 [Token(Token = "0x20028EE")] public class InventionPagedGrid : RecyclerPagedGrid { // Token: 0x06011941 RID: 72001 RVA: 0x003FFBA8 File Offset: 0x003FDDA8 [Token(Token = "0x6011941")] [Address(RVA = "0xD612A0", Offset = "0xD600A0", VA = "0x180D612A0")] private void Start() { Action action = new Action(this.EMADFBOLIOK); base.HFDCMNJHLPF += action; } // Token: 0x06011942 RID: 72002 RVA: 0x003FFBCC File Offset: 0x003FDDCC [Token(Token = "0x6011942")] [Address(RVA = "0xD60F90", Offset = "0xD5FD90", VA = "0x180D60F90")] private void EMADFBOLIOK() { RadioGroup3D radioGroup3D = this.radioGroup; Func func = new Func(this.GHEGGBOCCCO); radioGroup3D.SetSelectionStates(func); this.JCHFAGNJANM = false; } // Token: 0x06011943 RID: 72003 RVA: 0x003FFC04 File Offset: 0x003FDE04 [Token(Token = "0x6011943")] [Address(RVA = "0xD60E10", Offset = "0xD5FC10", VA = "0x180D60E10", Slot = "14")] protected override void EHDPGHCPKDB(InventionButton LKDLEHGHCAD) { InventionButton button = LKDLEHGHCAD; base.EHDPGHCPKDB(LKDLEHGHCAD); if (this.OnInventionSelectedEvent != (ulong)0L) { RadioButton3D.OnRadioButton3DClick onClick = button._selectInventnionButton.OnClick; UnityAction unityAction = delegate(RadioButton3D isOn) { if (isOn) { InventionPreviewUI inventionPreview = button.inventionPreview; InventionPagedGrid <>4__this = this; OBBBPCBIMME k__BackingField = inventionPreview.k__BackingField; <>4__this.FJJBAKDDKKI = k__BackingField; InventionButton button2 = button; InventionPagedGrid <>4__this2 = this; RadioButton3D selectInventnionButton2 = button2._selectInventnionButton; <>4__this2.PLCPLHIFPGG = selectInventnionButton2; } InventionPagedGrid <>4__this3 = this; InventionPreviewUI inventionPreview2 = button.inventionPreview; InventionPagedGrid.InventionSelectedEvent onInventionSelectedEvent = <>4__this3.OnInventionSelectedEvent; OBBBPCBIMME k__BackingField2 = inventionPreview2.k__BackingField; onInventionSelectedEvent.Invoke(k__BackingField2); }; onClick.AddListener(unityAction); Button3D.OnButton3DClick onClick2 = button.infoButton.OnClick; UnityAction unityAction2 = delegate { InventionPagedGrid <>4__this4 = this; InventionPreviewUI inventionPreview3 = button.inventionPreview; InventionPagedGrid.InventionSelectedEvent onInventionInfoEvent = <>4__this4.OnInventionInfoEvent; OBBBPCBIMME k__BackingField3 = inventionPreview3.k__BackingField; onInventionInfoEvent.Invoke(k__BackingField3); }; onClick2.AddListener(unityAction2); } InventionButton button3 = button; RadioGroup3D radioGroup3D = this.radioGroup; RadioButton3D selectInventnionButton = button3._selectInventnionButton; radioGroup3D.AddButton(selectInventnionButton); } // Token: 0x06011944 RID: 72004 RVA: 0x003FFCAC File Offset: 0x003FDEAC [Token(Token = "0x6011944")] [Address(RVA = "0xD60CB0", Offset = "0xD5FAB0", VA = "0x180D60CB0")] private void BDIHBOPABND() { RadioGroup3D radioGroup3D = this.radioGroup; int num = 0; this.FJJBAKDDKKI = num; this.PLCPLHIFPGG = num; this.JCHFAGNJANM = num != 0; Func <>9__10_ = InventionPagedGrid.<>c.<>9__10_0; if (<>9__10_ == 0) { InventionPagedGrid.<>c.<>9__10_0 = delegate(RadioButton3D b) { }; } radioGroup3D.SetSelectionStates(<>9__10_); } // Token: 0x06011945 RID: 72005 RVA: 0x003FFD04 File Offset: 0x003FDF04 [Token(Token = "0x6011945")] [Address(RVA = "0xD610A0", Offset = "0xD5FEA0", VA = "0x180D610A0")] public void SetInventions(IEnumerable HEIDKAMCPIL, OBBBPCBIMME EGJJHJHIPCF) { if (Enumerable.Count(HEIDKAMCPIL) == 0) { PLDMAFINLJO.FANDNIHFMNM(this.emptyDisplayText, "Create an Invention by selecting multiple objects, then hitting the Create Inventions button on your Maker Pen menu."); } RadioGroup3D radioGroup3D = this.radioGroup; int num = 0; this.FJJBAKDDKKI = num; this.PLCPLHIFPGG = num; this.JCHFAGNJANM = num != 0; Func func; if (InventionPagedGrid.<>c.<>9__10_0 == 0) { func = delegate(RadioButton3D b) { }; InventionPagedGrid.<>c.<>9__10_0 = func; } radioGroup3D.SetSelectionStates(func); this.FJJBAKDDKKI = EGJJHJHIPCF; bool flag = this.NBMNLHLDOGF(); RadioGroup3D radioGroup3D2 = this.radioGroup; Func func2 = new Func(this.GHEGGBOCCCO); radioGroup3D2.SetSelectionStates(func2); this.JCHFAGNJANM = false; } // Token: 0x06011946 RID: 72006 RVA: 0x003FFDA8 File Offset: 0x003FDFA8 [Token(Token = "0x6011946")] [Address(RVA = "0xD60DC0", Offset = "0xD5FBC0", VA = "0x180D60DC0", Slot = "15")] protected override void BGIECEPGDBE(OBBBPCBIMME LDNFNNNHPPB, InventionButton LKDLEHGHCAD, int CKOIAKLOKMM) { if (LDNFNNNHPPB == this.FJJBAKDDKKI) { this.JCHFAGNJANM = true; RadioButton3D selectInventnionButton = LKDLEHGHCAD._selectInventnionButton; this.PLCPLHIFPGG = selectInventnionButton; } LKDLEHGHCAD.SetInvention(LDNFNNNHPPB, true); } // Token: 0x06011947 RID: 72007 RVA: 0x003FFDE4 File Offset: 0x003FDFE4 [Token(Token = "0x6011947")] [Address(RVA = "0xD61310", Offset = "0xD60110", VA = "0x180D61310")] public InventionPagedGrid() { } // Token: 0x06011948 RID: 72008 RVA: 0x003FFDF8 File Offset: 0x003FDFF8 [Token(Token = "0x6011948")] [Address(RVA = "0xD61020", Offset = "0xD5FE20", VA = "0x180D61020")] [CompilerGenerated] private bool GHEGGBOCCCO(RadioButton3D FOJLJNMAJLC) { if (this.JCHFAGNJANM) { RadioButton3D plcplhifpgg = this.PLCPLHIFPGG; return FOJLJNMAJLC == plcplhifpgg; } } // Token: 0x0400B4D3 RID: 46291 [FieldOffset(Offset = "0xB8")] [Token(Token = "0x400B4D3")] [SerializeField] [DDPIINEJFMD(JIBDPHMGEGO.Children, false, false, false)] private RadioGroup3D radioGroup; // Token: 0x0400B4D4 RID: 46292 [FieldOffset(Offset = "0xC0")] [Token(Token = "0x400B4D4")] public InventionPagedGrid.InventionSelectedEvent OnInventionSelectedEvent; // Token: 0x0400B4D5 RID: 46293 [FieldOffset(Offset = "0xC8")] [Token(Token = "0x400B4D5")] public InventionPagedGrid.InventionSelectedEvent OnInventionInfoEvent; // Token: 0x0400B4D6 RID: 46294 [FieldOffset(Offset = "0xD0")] [Token(Token = "0x400B4D6")] private OBBBPCBIMME FJJBAKDDKKI; // Token: 0x0400B4D7 RID: 46295 [FieldOffset(Offset = "0xD8")] [Token(Token = "0x400B4D7")] private RadioButton3D PLCPLHIFPGG; // Token: 0x0400B4D8 RID: 46296 [FieldOffset(Offset = "0xE0")] [Token(Token = "0x400B4D8")] private bool JCHFAGNJANM; // Token: 0x020028EF RID: 10479 [Token(Token = "0x20028EF")] [Serializable] public class InventionSelectedEvent : UnityEvent { // Token: 0x06011949 RID: 72009 RVA: 0x003FFE20 File Offset: 0x003FE020 [Token(Token = "0x6011949")] [Address(RVA = "0xD619B0", Offset = "0xD607B0", VA = "0x180D619B0")] public InventionSelectedEvent() { } } // Token: 0x020028F0 RID: 10480 [Token(Token = "0x20028F0")] [CompilerGenerated] private sealed class OINOLBKIGKE { // Token: 0x0601194A RID: 72010 RVA: 0x003FFE34 File Offset: 0x003FE034 [Token(Token = "0x601194A")] [Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")] public OINOLBKIGKE() { } // Token: 0x0601194B RID: 72011 RVA: 0x003FFE48 File Offset: 0x003FE048 [Token(Token = "0x601194B")] [Address(RVA = "0xD65760", Offset = "0xD64560", VA = "0x180D65760")] internal void b__0(RadioButton3D isOn) { if (isOn) { InventionPreviewUI inventionPreview = this.button.inventionPreview; InventionPagedGrid inventionPagedGrid = this.<>4__this; OBBBPCBIMME k__BackingField = inventionPreview.k__BackingField; inventionPagedGrid.FJJBAKDDKKI = k__BackingField; InventionButton inventionButton = this.button; InventionPagedGrid inventionPagedGrid2 = this.<>4__this; RadioButton3D selectInventnionButton = inventionButton._selectInventnionButton; inventionPagedGrid2.PLCPLHIFPGG = selectInventnionButton; } InventionPagedGrid inventionPagedGrid3 = this.<>4__this; InventionPreviewUI inventionPreview2 = this.button.inventionPreview; InventionPagedGrid.InventionSelectedEvent onInventionSelectedEvent = inventionPagedGrid3.OnInventionSelectedEvent; OBBBPCBIMME k__BackingField2 = inventionPreview2.k__BackingField; onInventionSelectedEvent.Invoke(k__BackingField2); } // Token: 0x0601194C RID: 72012 RVA: 0x003FFED8 File Offset: 0x003FE0D8 [Token(Token = "0x601194C")] [Address(RVA = "0xD65850", Offset = "0xD64650", VA = "0x180D65850")] internal void b__1() { InventionPagedGrid inventionPagedGrid = this.<>4__this; InventionPreviewUI inventionPreview = this.button.inventionPreview; InventionPagedGrid.InventionSelectedEvent onInventionInfoEvent = inventionPagedGrid.OnInventionInfoEvent; OBBBPCBIMME k__BackingField = inventionPreview.k__BackingField; onInventionInfoEvent.Invoke(k__BackingField); } // Token: 0x0400B4D9 RID: 46297 [FieldOffset(Offset = "0x10")] [Token(Token = "0x400B4D9")] public InventionPagedGrid <>4__this; // Token: 0x0400B4DA RID: 46298 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400B4DA")] public InventionButton button; } } }