using System; using System.Collections.Generic; using System.Runtime.InteropServices; using AGUI.StackedUI; using Cpp2IlInjected; using RecRoom.Core; using TMPro; using UnityEngine; namespace RecRoom.AGUI.ToolUIs { // Token: 0x02002460 RID: 9312 [Token(Token = "0x2002460")] [StructLayout(3)] public class InventionButton : MonoBehaviour { // Token: 0x17002BD6 RID: 11222 // (get) Token: 0x0601014E RID: 65870 RVA: 0x003C3F10 File Offset: 0x003C2110 [Token(Token = "0x17002BD6")] public OBBBPCBIMME EFMJFNLPHEM { [Token(Token = "0x601014E")] [Address(RVA = "0x14DBCE0", Offset = "0x14DA6E0", VA = "0x1814DBCE0")] get { return this.inventionPreview.k__BackingField; } } // Token: 0x17002BD7 RID: 11223 // (get) Token: 0x0601014F RID: 65871 RVA: 0x003C3F30 File Offset: 0x003C2130 [Token(Token = "0x17002BD7")] public RadioButton3D LCGJPCMMFLN { [Token(Token = "0x601014F")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")] get { return this._selectInventnionButton; } } // Token: 0x17002BD8 RID: 11224 // (get) Token: 0x06010150 RID: 65872 RVA: 0x003C3F44 File Offset: 0x003C2144 [Token(Token = "0x17002BD8")] public RadioButton3D.OnRadioButton3DClick JDMNDCHMHNH { [Token(Token = "0x6010150")] [Address(RVA = "0x129D980", Offset = "0x129C380", VA = "0x18129D980")] get { return this._selectInventnionButton.OnClick; } } // Token: 0x17002BD9 RID: 11225 // (get) Token: 0x06010151 RID: 65873 RVA: 0x003C3F64 File Offset: 0x003C2164 [Token(Token = "0x17002BD9")] public Button3D.OnButton3DClick HBPBKENMNJB { [Token(Token = "0x6010151")] [Address(RVA = "0x14DBD00", Offset = "0x14DA700", VA = "0x1814DBD00")] get { return this.infoButton.OnClick; } } // Token: 0x06010152 RID: 65874 RVA: 0x003C3F84 File Offset: 0x003C2184 [Token(Token = "0x6010152")] [Address(RVA = "0x14DB890", Offset = "0x14DA290", VA = "0x1814DB890")] public void SetInvention(OBBBPCBIMME LDNFNNNHPPB, bool NJDEACDENDA = true) { int num; for (;;) { num = 0; InventionPreviewUI inventionPreviewUI = this.inventionPreview; if (inventionPreviewUI.k__BackingField == LDNFNNNHPPB && LDNFNNNHPPB != 0) { return; } if (NJDEACDENDA) { inventionPreviewUI.SetInvention(LDNFNNNHPPB); } List list = this.hasInventionObjects; if (LDNFNNNHPPB != 0) { break; } List.Enumerator enumerator; if (enumerator != 0) { } if (num == -1) { goto IL_8D; } List list2 = this.getMoreInventionsObjects; List.Enumerator enumerator2; if (enumerator2 != 0) { goto IL_8D; } IL_91: num++; if (num != -1) { } if (num == 0) { goto Block_6; } continue; IL_8D: if (num == 0) { goto IL_91; } goto IL_AC; } List.Enumerator enumerator3; if (enumerator3 != 0) { } if (num != -1) { List list3 = this.getMoreInventionsObjects; List.Enumerator enumerator4; if (enumerator4 == 0) { goto IL_48; } } if (num != 0) { throw new NullReferenceException(); } IL_48: num++; if (num != -1) { } if (num != 0) { goto IL_AC; } string k__BackingField = this.inventionPreview.k__BackingField.k__BackingField; PLDMAFINLJO.FANDNIHFMNM(this.inventionName, k__BackingField); return; Block_6: throw new NullReferenceException(); IL_AC: throw new NullReferenceException(); } // Token: 0x06010153 RID: 65875 RVA: 0x003C4044 File Offset: 0x003C2244 [Token(Token = "0x6010153")] [Address(RVA = "0x14DB740", Offset = "0x14DA140", VA = "0x1814DB740")] public void OnEnable() { Action anbajlmkkll; Delegate @delegate; do { InventionPreviewUI inventionPreviewUI = this.inventionPreview; OBBBPCBIMME k__BackingField = inventionPreviewUI.k__BackingField; if (k__BackingField != 0) { int num = 0; this.SetInvention(k__BackingField, num != 0); } Action action = new Action(this.PJJJMGDALBF); anbajlmkkll = inventionPreviewUI.ANBAJLMKKLL; @delegate = Delegate.Combine(anbajlmkkll, action); } while (@delegate != 0 && @delegate == 0); while (@delegate != anbajlmkkll) { } } // Token: 0x06010154 RID: 65876 RVA: 0x003C40A4 File Offset: 0x003C22A4 [Token(Token = "0x6010154")] [Address(RVA = "0x14DB650", Offset = "0x14DA050", VA = "0x1814DB650")] public void OnDisable() { Action anbajlmkkll; Delegate @delegate; do { InventionPreviewUI inventionPreviewUI = this.inventionPreview; Action action = new Action(this.PJJJMGDALBF); anbajlmkkll = inventionPreviewUI.ANBAJLMKKLL; @delegate = Delegate.Remove(anbajlmkkll, action); } while (@delegate != 0 && @delegate == 0); while (@delegate != anbajlmkkll) { } } // Token: 0x06010155 RID: 65877 RVA: 0x003C40E8 File Offset: 0x003C22E8 [Token(Token = "0x6010155")] [Address(RVA = "0x14DB860", Offset = "0x14DA260", VA = "0x1814DB860")] private void PJJJMGDALBF() { OBBBPCBIMME k__BackingField = this.inventionPreview.k__BackingField; int num = 0; this.SetInvention(k__BackingField, num != 0); } // Token: 0x06010156 RID: 65878 RVA: 0x003C4114 File Offset: 0x003C2314 [Token(Token = "0x6010156")] [Address(RVA = "0x14DB450", Offset = "0x14D9E50", VA = "0x1814DB450")] public void Button_GetMoreInventions() { WatchUI k__BackingField = Player.k__BackingField.playerUI.k__BackingField; StoreScreen flowByType = k__BackingField.GetFlowByType(); if (k__BackingField.k__BackingField != flowByType) { int num = 0; k__BackingField.PushFlow(flowByType, num); } k__BackingField.OHPDNGENFJL.AuthorityOpenMenuDetached(true); k__BackingField.DBLCENPKMBI = OGLEAGGNIPE.LARGE; flowByType.Button_SetInventionsDisplayMode(); Player.k__BackingField.ReleaseToolsFromBothHands(); } // Token: 0x06010157 RID: 65879 RVA: 0x003C417C File Offset: 0x003C237C [Token(Token = "0x6010157")] [Address(RVA = "0x3C1210", Offset = "0x3BFC10", VA = "0x1803C1210")] public InventionButton() { } // Token: 0x0400AAEE RID: 43758 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400AAEE")] [SerializeField] public RadioButton3D _selectInventnionButton; // Token: 0x0400AAEF RID: 43759 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400AAEF")] [SerializeField] private TextMeshProUGUI inventionName; // Token: 0x0400AAF0 RID: 43760 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x400AAF0")] [SerializeField] private Button3D infoButton; // Token: 0x0400AAF1 RID: 43761 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x400AAF1")] [SerializeField] private InventionPreviewUI inventionPreview; // Token: 0x0400AAF2 RID: 43762 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x400AAF2")] [SerializeField] private List hasInventionObjects; // Token: 0x0400AAF3 RID: 43763 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x400AAF3")] [SerializeField] private List getMoreInventionsObjects; } }