using System; using System.Collections.Generic; using AGUI.StackedUI; using Cpp2IlInjected; using RecRoom.Core; using TMPro; using UnityEngine; namespace RecRoom.AGUI.ToolUIs { // Token: 0x020028ED RID: 10477 [Token(Token = "0x20028ED")] public class InventionButton : MonoBehaviour { // Token: 0x1700315C RID: 12636 // (get) Token: 0x06011937 RID: 71991 RVA: 0x003FF934 File Offset: 0x003FDB34 [Token(Token = "0x1700315C")] public OBBBPCBIMME EFMJFNLPHEM { [Token(Token = "0x6011937")] [Address(RVA = "0xD60C70", Offset = "0xD5FA70", VA = "0x180D60C70")] get { return this.inventionPreview.k__BackingField; } } // Token: 0x1700315D RID: 12637 // (get) Token: 0x06011938 RID: 71992 RVA: 0x003FF954 File Offset: 0x003FDB54 [Token(Token = "0x1700315D")] public RadioButton3D LCGJPCMMFLN { [Token(Token = "0x6011938")] [Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")] get { return this._selectInventnionButton; } } // Token: 0x1700315E RID: 12638 // (get) Token: 0x06011939 RID: 71993 RVA: 0x003FF968 File Offset: 0x003FDB68 [Token(Token = "0x1700315E")] public RadioButton3D.OnRadioButton3DClick JDMNDCHMHNH { [Token(Token = "0x6011939")] [Address(RVA = "0xD60C90", Offset = "0xD5FA90", VA = "0x180D60C90")] get { return this._selectInventnionButton.OnClick; } } // Token: 0x1700315F RID: 12639 // (get) Token: 0x0601193A RID: 71994 RVA: 0x003FF988 File Offset: 0x003FDB88 [Token(Token = "0x1700315F")] public Button3D.OnButton3DClick HBPBKENMNJB { [Token(Token = "0x601193A")] [Address(RVA = "0x84AE80", Offset = "0x849C80", VA = "0x18084AE80")] get { return this.infoButton.OnClick; } } // Token: 0x0601193B RID: 71995 RVA: 0x003FF9A8 File Offset: 0x003FDBA8 [Token(Token = "0x601193B")] [Address(RVA = "0xD60870", Offset = "0xD5F670", VA = "0x180D60870")] 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; } bool flag; if (flag) { } if (num != 0) { goto IL_9D; } if (num != -1) { } List list2 = this.getMoreInventionsObjects; bool flag2; if (flag2) { } if (num == 0) { goto Block_6; } } bool flag3; if (flag3) { } if (num != 0) { throw new NullReferenceException(); } if (num != -1) { } List list3 = this.getMoreInventionsObjects; bool flag4; if (flag4) { } if (num != 0) { goto IL_9D; } string k__BackingField = this.inventionPreview.k__BackingField.k__BackingField; PLDMAFINLJO.FANDNIHFMNM(this.inventionName, k__BackingField); return; Block_6: throw new NullReferenceException(); IL_9D: throw new NullReferenceException(); } // Token: 0x0601193C RID: 71996 RVA: 0x003FFA58 File Offset: 0x003FDC58 [Token(Token = "0x601193C")] [Address(RVA = "0xD60720", Offset = "0xD5F520", VA = "0x180D60720")] 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: 0x0601193D RID: 71997 RVA: 0x003FFAB8 File Offset: 0x003FDCB8 [Token(Token = "0x601193D")] [Address(RVA = "0xD60630", Offset = "0xD5F430", VA = "0x180D60630")] 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: 0x0601193E RID: 71998 RVA: 0x003FFAFC File Offset: 0x003FDCFC [Token(Token = "0x601193E")] [Address(RVA = "0xD60840", Offset = "0xD5F640", VA = "0x180D60840")] private void PJJJMGDALBF() { OBBBPCBIMME k__BackingField = this.inventionPreview.k__BackingField; int num = 0; this.SetInvention(k__BackingField, num != 0); } // Token: 0x0601193F RID: 71999 RVA: 0x003FFB28 File Offset: 0x003FDD28 [Token(Token = "0x601193F")] [Address(RVA = "0xD60390", Offset = "0xD5F190", VA = "0x180D60390")] public void Button_GetMoreInventions() { WatchUI k__BackingField = Player.k__BackingField.playerUI.k__BackingField; StackedUIFlowBase k__BackingField = k__BackingField.k__BackingField; if (k__BackingField == 0 || k__BackingField != 0) { } k__BackingField.PopAllFlows(); k__BackingField.OHPDNGENFJL.AuthorityOpenMenuDetached(true); RRUIRootScreen flowByType = k__BackingField.GetFlowByType(); int num = 0; if (flowByType != num) { flowByType.ShowScreenAndGoToStoreInventions(); } Player.k__BackingField.ReleaseToolsFromBothHands(); } // Token: 0x06011940 RID: 72000 RVA: 0x003FFB94 File Offset: 0x003FDD94 [Token(Token = "0x6011940")] [Address(RVA = "0x74EA40", Offset = "0x74D840", VA = "0x18074EA40")] public InventionButton() { } // Token: 0x0400B4CD RID: 46285 [FieldOffset(Offset = "0x18")] [Token(Token = "0x400B4CD")] [SerializeField] public RadioButton3D _selectInventnionButton; // Token: 0x0400B4CE RID: 46286 [FieldOffset(Offset = "0x20")] [Token(Token = "0x400B4CE")] [SerializeField] private TextMeshProUGUI inventionName; // Token: 0x0400B4CF RID: 46287 [FieldOffset(Offset = "0x28")] [Token(Token = "0x400B4CF")] [SerializeField] private Button3D infoButton; // Token: 0x0400B4D0 RID: 46288 [FieldOffset(Offset = "0x30")] [Token(Token = "0x400B4D0")] [SerializeField] private InventionPreviewUI inventionPreview; // Token: 0x0400B4D1 RID: 46289 [FieldOffset(Offset = "0x38")] [Token(Token = "0x400B4D1")] [SerializeField] private List hasInventionObjects; // Token: 0x0400B4D2 RID: 46290 [FieldOffset(Offset = "0x40")] [Token(Token = "0x400B4D2")] [SerializeField] private List getMoreInventionsObjects; } }