using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using AGUI.StackedUI; using AGUI.StackedUI.Dialog; using Cpp2IlInjected; using RecRoom.Async; using RecRoom.Core; using RecRoom.Core.Creation; using RecRoom.Core.Creation.Circuits; using RecRoom.Core.DataStructures.Tokens; using RecRoom.Tools; using RecRoom.Tools.MakerPenTools; using TMPro; using UnityEngine; namespace RecRoom.AGUI.ToolUIs { // Token: 0x0200246A RID: 9322 [Token(Token = "0x200246A")] [StructLayout(3)] public class MakerPenPaletteInventionCreationScreen : MakerPenPaletteUIFlowBase { // Token: 0x060101C4 RID: 65988 RVA: 0x003C5E94 File Offset: 0x003C4094 [Token(Token = "0x60101C4")] [Address(RVA = "0x171B240", Offset = "0x1719C40", VA = "0x18171B240")] public static void PopScreenAndSubScreensFromMenu(StackedUIBase HPNPDOJKCMP) { int num = 0; if (!(HPNPDOJKCMP == num) && MakerPenPaletteInventionCreationScreen.IsInventionCreationScreenOrSubScreen(HPNPDOJKCMP.k__BackingField)) { HPNPDOJKCMP.Button_PopFlow(); return; } } // Token: 0x060101C5 RID: 65989 RVA: 0x003C5EC8 File Offset: 0x003C40C8 [Token(Token = "0x60101C5")] [Address(RVA = "0x17197A0", Offset = "0x17181A0", VA = "0x1817197A0")] public static bool IsInventionCreationScreenOrSubScreen(StackedUIFlowBase LHHONCAOJFH) { if (LHHONCAOJFH == 0 || LHHONCAOJFH == 0) { if (LHHONCAOJFH != 0) { if (LHHONCAOJFH != 0) { return true; } } return LHHONCAOJFH != 0; } return true; } // Token: 0x060101C6 RID: 65990 RVA: 0x003C5EF8 File Offset: 0x003C40F8 [Token(Token = "0x60101C6")] [Address(RVA = "0x17196F0", Offset = "0x17180F0", VA = "0x1817196F0", Slot = "9")] public override void Initialize(StackedUIBase LJOCNMLBCAH) { base.Initialize(LJOCNMLBCAH); MakerPenPaletteMoveableToolMenu paletteMenu = this.k__BackingField.paletteMenu; Action action = new Action(this.MOKFNOFAEPD); paletteMenu.OnMenuOpenCloseEvent += action; } // Token: 0x060101C7 RID: 65991 RVA: 0x003C5F34 File Offset: 0x003C4134 [Token(Token = "0x60101C7")] [Address(RVA = "0x171AE30", Offset = "0x1719830", VA = "0x18171AE30", Slot = "6")] protected override void OnDestroy() { base.OnDestroy(); MakerPenPaletteMoveableToolMenu paletteMenu = this.k__BackingField.paletteMenu; Action action = new Action(this.MOKFNOFAEPD); paletteMenu.OnMenuOpenCloseEvent -= action; CreationContext k__BackingField = this.k__BackingField.k__BackingField; ActionEvent onSelectionChanged = k__BackingField.OnSelectionChanged; Action action2 = new Action(this.HHHAMHHAJDN); ActionEvent actionEvent = onSelectionChanged - action2; k__BackingField.OnSelectionChanged = actionEvent; MakerPen k__BackingField = this.k__BackingField; ActionEvent onModeChanged = k__BackingField.OnModeChanged; Action action3 = new Action(this.KBEFFMGDAOJ); ActionEvent actionEvent2 = onModeChanged - action3; k__BackingField.OnModeChanged = actionEvent2; ManagedTexture iebmgdpkcog = this.IEBMGDPKCOG; if (iebmgdpkcog != 0) { iebmgdpkcog.GNGOOMMLPHE(); } } // Token: 0x060101C8 RID: 65992 RVA: 0x003C5FE8 File Offset: 0x003C41E8 [Token(Token = "0x60101C8")] [Address(RVA = "0x171A640", Offset = "0x1719040", VA = "0x18171A640")] private void MOKFNOFAEPD(bool MCIOKLGHGFK) { if (!MCIOKLGHGFK) { MakerPenPaletteInventionCreationScreen.PopScreenAndSubScreensFromMenu(this.k__BackingField); return; } } // Token: 0x060101C9 RID: 65993 RVA: 0x003C6008 File Offset: 0x003C4208 [Token(Token = "0x60101C9")] [Address(RVA = "0x171AFB0", Offset = "0x17199B0", VA = "0x18171AFB0", Slot = "10")] public override void OnFlowEntered(StackedUIFlowBase BFHJBBGCMAN) { base.OnFlowEntered(BFHJBBGCMAN); bool mbifdoijdmj = this.MBIFDOIJDMJ; this.JNMALKLFINB(mbifdoijdmj); } // Token: 0x060101CA RID: 65994 RVA: 0x003C602C File Offset: 0x003C422C [Token(Token = "0x60101CA")] [Address(RVA = "0x1719A20", Offset = "0x1718420", VA = "0x181719A20")] private void JNMALKLFINB(bool MBIFDOIJDMJ) { MakerPen k__BackingField = this.k__BackingField; int num = 0; if (!(k__BackingField == num)) { this.instructionsSubscreen.SetActive(true); GameObject gameObject = this.resultSubscreen; int num2 = 0; gameObject.SetActive(num2 != 0); if (MBIFDOIJDMJ) { if (this.DDIKKPFKNHE) { if (!this.INJHNHPCBHN) { ICancelablePromise cancelablePromise = MakerPenCreateInventionFromSelectionOperation.ONEFHFMLLIP(this.k__BackingField.k__BackingField); Action action = new Action(this.OOMIDMLEGJO); Action action2 = new Action(this.GFKPEHGMNGB); Action action3 = new Action(this.NMCNJIDEPHG); } this.LOOMBGNMNAP(); throw new NullReferenceException(); } this.k__BackingField.StartInventionObjectsSelection(); CreationContext k__BackingField = this.k__BackingField.k__BackingField; ActionEvent onSelectionChanged = k__BackingField.OnSelectionChanged; Action action4 = new Action(this.HHHAMHHAJDN); ActionEvent actionEvent = onSelectionChanged + action4; k__BackingField.OnSelectionChanged = actionEvent; int selectionCount = this.k__BackingField.k__BackingField.ENEJDOAEDCJ; TextMeshProUGUI textMeshProUGUI = this.objectCountText; int num3 = 0; bool flag = textMeshProUGUI != num3; if (flag) { TextMeshProUGUI textMeshProUGUI2 = this.objectCountText; string text = string.Format("Objects selected: {0}", flag); textMeshProUGUI2.text = text; } Button3D button3D = this.nextButton; bool flag2 = selectionCount > 0; button3D.FFDOINJEHMM = flag2; MakerPen k__BackingField2 = this.k__BackingField; Action action5 = new Action(this.HLKCKJNDELP); k__BackingField2.InventionObjectsSelectionCompleted += action5; MakerPen k__BackingField3 = this.k__BackingField; ActionEvent onModeChanged = k__BackingField3.OnModeChanged; Action action6 = new Action(this.KBEFFMGDAOJ); ActionEvent actionEvent2 = onModeChanged + action6; k__BackingField3.OnModeChanged = actionEvent2; } } } // Token: 0x060101CB RID: 65995 RVA: 0x003C61C8 File Offset: 0x003C43C8 [Token(Token = "0x60101CB")] [Address(RVA = "0x171AFE0", Offset = "0x17199E0", VA = "0x18171AFE0", Slot = "11")] public override void OnFlowExited(StackedUIFlowBase NBINAJPFBOA, bool CJEIBCEPAPO) { base.OnFlowExited(NBINAJPFBOA, CJEIBCEPAPO); this.MBIFDOIJDMJ = CJEIBCEPAPO; if (!CJEIBCEPAPO) { MakerPen k__BackingField = this.k__BackingField; int num = 0; if (k__BackingField != num) { CreationContext k__BackingField = this.k__BackingField.k__BackingField; int num2 = 0; if (k__BackingField != num2) { CreationContext k__BackingField2 = this.k__BackingField.k__BackingField; ActionEvent onSelectionChanged = k__BackingField2.OnSelectionChanged; Action action = new Action(this.HHHAMHHAJDN); ActionEvent actionEvent = onSelectionChanged - action; k__BackingField2.OnSelectionChanged = actionEvent; } MakerPen k__BackingField2 = this.k__BackingField; ActionEvent onModeChanged = k__BackingField2.OnModeChanged; Action action2 = new Action(this.KBEFFMGDAOJ); ActionEvent actionEvent2 = onModeChanged - action2; k__BackingField2.OnModeChanged = actionEvent2; MakerPen k__BackingField3 = this.k__BackingField; MakerPen k__BackingField4; if (k__BackingField3.k__BackingField && !this.DDIKKPFKNHE) { k__BackingField3.CancelInventionObjectsSelection(); k__BackingField4 = this.k__BackingField; } Action action3 = new Action(this.HLKCKJNDELP); k__BackingField4.InventionObjectsSelectionCompleted -= action3; this.k__BackingField.paletteMenu.GCMLOIFNJMB.Remove(this); } } } // Token: 0x060101CC RID: 65996 RVA: 0x003C62E4 File Offset: 0x003C44E4 [Token(Token = "0x60101CC")] [Address(RVA = "0x1718D00", Offset = "0x1717700", VA = "0x181718D00")] public void Button_Done() { MakerPen k__BackingField = this.k__BackingField; int num = 0; bool flag = k__BackingField.CompleteInventionObjectsSelection(num != 0); } // Token: 0x060101CD RID: 65997 RVA: 0x003C6308 File Offset: 0x003C4508 [Token(Token = "0x60101CD")] [Address(RVA = "0x1718B10", Offset = "0x1717510", VA = "0x181718B10")] public void Button_Cancel() { this.k__BackingField.CancelInventionObjectsSelection(); } // Token: 0x060101CE RID: 65998 RVA: 0x003C6328 File Offset: 0x003C4528 [Token(Token = "0x60101CE")] [Address(RVA = "0x1718B40", Offset = "0x1717540", VA = "0x181718B40")] public void Button_DeselectObjectsThatPreventSaving() { int num; do { num = 0; if (this.IBOGIKMOLOC == 0) { break; } List.Enumerator enumerator; if (enumerator != 0) { CreationContext k__BackingField = this.k__BackingField.k__BackingField; } if (num != -1) { } } while (num != 0); this.k__BackingField.StartInventionObjectsSelection(); GameObject gameObject = this.resultSubscreen; int num2 = 0; gameObject.SetActive(num2 != 0); GameObject gameObject2 = this.deselectContainer; int num3 = 0; gameObject2.SetActive(num3 != 0); this.instructionsSubscreen.SetActive(true); } // Token: 0x060101CF RID: 65999 RVA: 0x003C63A8 File Offset: 0x003C45A8 [Token(Token = "0x60101CF")] [Address(RVA = "0x1680220", Offset = "0x167EC20", VA = "0x181680220")] public void SetSelectionPrevalidated(bool ABMCMLCOFJP) { this.INJHNHPCBHN = ABMCMLCOFJP; } // Token: 0x060101D0 RID: 66000 RVA: 0x003C63BC File Offset: 0x003C45BC [Token(Token = "0x60101D0")] [Address(RVA = "0x171B2F0", Offset = "0x1719CF0", VA = "0x18171B2F0")] public void SetSkipObjectSelection(bool KKDPFGADCEK) { this.DDIKKPFKNHE = KKDPFGADCEK; } // Token: 0x060101D1 RID: 66001 RVA: 0x003C63D0 File Offset: 0x003C45D0 [Token(Token = "0x60101D1")] [Address(RVA = "0x171B2D0", Offset = "0x1719CD0", VA = "0x18171B2D0")] public void ResetToInitialState() { this.JNMALKLFINB(true); } // Token: 0x060101D2 RID: 66002 RVA: 0x003C63E4 File Offset: 0x003C45E4 [Token(Token = "0x60101D2")] [Address(RVA = "0x171B2E0", Offset = "0x1719CE0", VA = "0x18171B2E0")] public void SetCancelOnReturnToMainScreen(bool BLJNKBMJMKJ) { this.BLJNKBMJMKJ = BLJNKBMJMKJ; } // Token: 0x060101D3 RID: 66003 RVA: 0x003C63F8 File Offset: 0x003C45F8 [Token(Token = "0x60101D3")] [Address(RVA = "0x171A0A0", Offset = "0x1718AA0", VA = "0x18171A0A0")] private void LOOMBGNMNAP() { TokenFlag gcmloifnjmb = this.k__BackingField.paletteMenu.GCMLOIFNJMB; gcmloifnjmb.Add(this); this.KGODFEIPINC = true; if (gcmloifnjmb != 0) { } MakerPen k__BackingField = this.k__BackingField; this.KGODFEIPINC = false; MakerPenPaletteUI paletteMenuToolUI = k__BackingField.KNDLGPOKIOI; Action action = new Action(this.MMJCHCGGOPL); int num = 0; num += num; num++; Action action2 = new Action(this.IKKLOHCLHOP); int num2 = 0; if (this != num2) { EnterInventionNameDialog component = base.GetComponent(); int num3 = 0; if (component != num3) { component.SetButtonText("Next", "Back"); } } } // Token: 0x060101D4 RID: 66004 RVA: 0x003C64A8 File Offset: 0x003C46A8 [Token(Token = "0x60101D4")] [Address(RVA = "0x171A7B0", Offset = "0x17191B0", VA = "0x18171A7B0")] private void NIDPBNNELCB() { MakerPenPaletteInventionCreationScreen.MOJCBGKMAHB mojcbgkmahb = new MakerPenPaletteInventionCreationScreen.MOJCBGKMAHB(); mojcbgkmahb.<>4__this = this; IEnumerable currentSelectionForTemplate = this.k__BackingField.k__BackingField.GetCurrentSelectionForTemplate(); OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH; string fmnalpdbjhp = this.FMNALPDBJHP; string eajdmhlbknd = this.EAJDMHLBKND; GIPDDLFFNGG[] array = Enumerable.ToArray(currentSelectionForTemplate); mojcbgkmahb.context = bfkefcfnnkh; mojcbgkmahb.context.JLGIGGAKANM = eajdmhlbknd; int num = 0; int num2 = 0; ulong num3; ulong num4; ICancelablePromise cancelablePromise = ShareCamera.LocalRequestSingleImage(false, num2 != 0, num3 != 0UL, "Invention Image", num4 != 0UL); if (this.k__BackingField._tool.FNFNLDBILFE) { PlayerHand k__BackingField = this.k__BackingField._tool.k__BackingField; float z = Vector3.zero.z; float z2 = Vector3.zero.z; } Player.k__BackingField.backpack.RecallTool(JKPLBBBJLJK.MAKER_PEN); Action action = delegate { Scheduler instance = SingletonMonoBehaviour.Instance; MakerPenPaletteInventionCreationScreen.MOJCBGKMAHB.<g__CancelInventionCreationAndPickupMakerPen|2>d <g__CancelInventionCreationAndPickupMakerPen|2>d; <g__CancelInventionCreationAndPickupMakerPen|2>d.System.IDisposable.Dispose(); <g__CancelInventionCreationAndPickupMakerPen|2>d.<>1__state = (int)((ulong)0L); <g__CancelInventionCreationAndPickupMakerPen|2>d.<>4__this = mojcbgkmahb; ISchedulerPromise schedulerPromise = instance.Run(<g__CancelInventionCreationAndPickupMakerPen|2>d); }; Action action2 = delegate(RenderTexture renderTex) { MakerPenPaletteInventionCreationScreen <>4__this = mojcbgkmahb.<>4__this; int num5 = 0; <>4__this.IEBMGDPKCOG.DPCIGLIJMPF(renderTex); ManagedTexture iebmgdpkcog = mojcbgkmahb.<>4__this.IEBMGDPKCOG; int num6 = 0; IPromise promise = iebmgdpkcog.BBLLIEGLEEE((ManagedTexture.HGJAGEHBPNE)((ulong)3L), num6 != 0); if (Player.k__BackingField.backpack.UseTool((JKPLBBBJLJK)((uint)1), num5, true)) { if (mojcbgkmahb.<>9__3 == 0) { Action action3 = delegate { MakerPenPaletteInventionCreationScreen <>4__this2 = mojcbgkmahb.<>4__this; MakerPenPaletteInventionCreationScreen.JPPNEJOBKAC context = mojcbgkmahb.context; string jlgiggakanm = mojcbgkmahb.context.JLGIGGAKANM; if (!<>4__this2.OCOIBKNPCGI(context)) { NotificationManager instance2 = SingletonMonoBehaviour.Instance; int num7 = 0; IDisposable disposable = instance2.Play(NotificationManager.IBIDFAOPIPC.Major, "Invention Creation Failed - Selection Unavailable", 3f, num7, num7); } MakerPenPaletteInventionCreationScreen <>4__this3 = mojcbgkmahb.<>4__this; OBBBPCBIMME bfkefcfnnkh2 = <>4__this3.BFKEFCFNNKH; float mopmdbodnje; if (bfkefcfnnkh2 != 0) { long k__BackingField = bfkefcfnnkh2.k__BackingField; MakerPenPaletteInventionCreationScreen <>4__this = <>4__this3; long targetInventionId = k__BackingField; ManagedTexture iebmgdpkcog2 = <>4__this3.IEBMGDPKCOG; int num8 = 0; IPromise promise2 = OHDHPENHDAP.NLDOGFCBAOD(iebmgdpkcog2, OHDHPENHDAP.DLHGJJJPHPH.InventionThumbnail, num8); Action action4 = delegate(string error) { MakerPenPaletteInventionCreationScreen <>4__this5 = <>4__this; if (error == 0) { } string text2 = string.Format("Unable to update Image of invention: {0}", error); <>4__this5.GFKPEHGMNGB(text2); }; Action <>9__2; Action action5 = delegate(string imageName) { IPromise promise4 = BBHENFCNLAB.ONLOPCCOFMM(targetInventionId, imageName); if (<>9__2 == 0) { Action action8 = delegate(string error) { MakerPenPaletteInventionCreationScreen <>4__this6 = <>4__this; if (error == 0) { } string text3 = string.Format("Unable to update Image of invention: {0}", error); <>4__this6.GFKPEHGMNGB(text3); }; <>9__2 = action8; } throw new NullReferenceException(); }; MakerPenPaletteInventionCreationScreen <>4__this4 = mojcbgkmahb.<>4__this; long k__BackingField2 = <>4__this4.BFKEFCFNNKH.k__BackingField; float realtimeSinceStartup = Time.realtimeSinceStartup; mopmdbodnje = <>4__this4.MOPMDBODNJE; if (mopmdbodnje <= realtimeSinceStartup) { float realtimeSinceStartup2 = Time.realtimeSinceStartup; OBBBPCBIMME bfkefcfnnkh3 = <>4__this4.BFKEFCFNNKH; <>4__this4.MOPMDBODNJE = realtimeSinceStartup2; string k__BackingField = bfkefcfnnkh3.k__BackingField; string text = "Saving new version of " + k__BackingField + "..."; <>4__this4.GFKPEHGMNGB(text); IPromise promise3 = <>4__this4.k__BackingField.SaveCurrentSelectionAsNewVersionOfInvention(k__BackingField2); Action action6 = new Action(<>4__this4.FGADFNHMIDM); Action action7 = new Action(<>4__this4.AIHAILAIPLG); } return; } float realtimeSinceStartup3 = Time.realtimeSinceStartup; while (mopmdbodnje > realtimeSinceStartup3) { } float realtimeSinceStartup4 = Time.realtimeSinceStartup; throw new NullReferenceException(); }; mojcbgkmahb.<>9__3 = action3; } if (MakerPenPaletteInventionCreationScreen.<>c.<>9__39_4 == 0) { MakerPenPaletteInventionCreationScreen.<>c.<>9__39_4 = delegate { NotificationManager instance3 = SingletonMonoBehaviour.Instance; int num9 = 0; IDisposable disposable2 = instance3.Play(NotificationManager.IBIDFAOPIPC.Major, "Invention Creation Cancelled", 3f, num9, num9); }; } } }; num += num; num++; } // Token: 0x060101D5 RID: 66005 RVA: 0x003C65A4 File Offset: 0x003C47A4 [Token(Token = "0x60101D5")] [Address(RVA = "0x171AB40", Offset = "0x1719540", VA = "0x18171AB40")] private bool OCOIBKNPCGI(MakerPenPaletteInventionCreationScreen.JPPNEJOBKAC LHOMKMINCHH) { CircuitVisibilityBehaviour.CircuitVisibilityChanged(); CreationContext k__BackingField = this.k__BackingField.k__BackingField; string jlgiggakanm = LHOMKMINCHH.JLGIGGAKANM; bool flag; if (!flag) { return flag; } string jlgiggakanm2 = LHOMKMINCHH.JLGIGGAKANM; this.IEBMGDPKCOG.GNGOOMMLPHE(); string jlgiggakanm3 = LHOMKMINCHH.JLGIGGAKANM; this.k__BackingField.RestorableSelectionContext = 0; return flag; } // Token: 0x060101D6 RID: 66006 RVA: 0x003C6600 File Offset: 0x003C4800 [Token(Token = "0x60101D6")] [Address(RVA = "0x171A430", Offset = "0x1718E30", VA = "0x18171A430")] private void MLNNCKJPKLM() { float realtimeSinceStartup = Time.realtimeSinceStartup; if (this.MOPMDBODNJE <= realtimeSinceStartup) { float realtimeSinceStartup2 = Time.realtimeSinceStartup; this.MOPMDBODNJE = realtimeSinceStartup2; this.GFKPEHGMNGB("Creating..."); MakerPen k__BackingField = this.k__BackingField; ManagedTexture iebmgdpkcog = this.IEBMGDPKCOG; string eajdmhlbknd = this.EAJDMHLBKND; string fmnalpdbjhp = this.FMNALPDBJHP; IPromise promise = k__BackingField.SaveCurrentSelectionAsNewInvention(fmnalpdbjhp, eajdmhlbknd, iebmgdpkcog); Action action = new Action(this.CBJBFOAHKAH); Action action2 = new Action(this.JFPPKLNPDEH); } } // Token: 0x060101D7 RID: 66007 RVA: 0x003C668C File Offset: 0x003C488C [Token(Token = "0x60101D7")] [Address(RVA = "0x171A650", Offset = "0x1719050", VA = "0x18171A650")] private void NGPEMFMJHPE(long LGFFMFHOMBG) { float realtimeSinceStartup = Time.realtimeSinceStartup; if (this.MOPMDBODNJE <= realtimeSinceStartup) { float realtimeSinceStartup2 = Time.realtimeSinceStartup; OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH; this.MOPMDBODNJE = realtimeSinceStartup2; string k__BackingField = bfkefcfnnkh.k__BackingField; string text = "Saving new version of " + k__BackingField + "..."; this.GFKPEHGMNGB(text); IPromise promise = this.k__BackingField.SaveCurrentSelectionAsNewVersionOfInvention(LGFFMFHOMBG); Action action = new Action(this.FGADFNHMIDM); Action action2 = new Action(this.AIHAILAIPLG); } } // Token: 0x060101D8 RID: 66008 RVA: 0x003C6718 File Offset: 0x003C4918 [Token(Token = "0x60101D8")] [Address(RVA = "0x171AC90", Offset = "0x1719690", VA = "0x18171AC90")] private void ONLOPCCOFMM(long LGFFMFHOMBG) { ManagedTexture iebmgdpkcog = this.IEBMGDPKCOG; int num = 0; IPromise promise = OHDHPENHDAP.NLDOGFCBAOD(iebmgdpkcog, OHDHPENHDAP.DLHGJJJPHPH.InventionThumbnail, num); Action action = delegate(string error) { MakerPenPaletteInventionCreationScreen <>4__this = this; if (error == 0) { } string text = string.Format("Unable to update Image of invention: {0}", error); <>4__this.GFKPEHGMNGB(text); }; Action <>9__2; Action action2 = delegate(string imageName) { IPromise promise2 = BBHENFCNLAB.ONLOPCCOFMM(LGFFMFHOMBG, imageName); if (<>9__2 == 0) { Action action3 = delegate(string error) { MakerPenPaletteInventionCreationScreen <>4__this2 = this; if (error == 0) { } string text2 = string.Format("Unable to update Image of invention: {0}", error); <>4__this2.GFKPEHGMNGB(text2); }; <>9__2 = action3; } throw new NullReferenceException(); }; throw new NullReferenceException(); } // Token: 0x060101D9 RID: 66009 RVA: 0x003C676C File Offset: 0x003C496C [Token(Token = "0x60101D9")] [Address(RVA = "0x1718D30", Offset = "0x1717730", VA = "0x181718D30")] private void CBJBFOAHKAH(CreationManager.GLBINAEHJEL MAOOLFEBOOD) { string text; global::UnityEngine.Debug.LogError(text); Action action = new Action(this.EPBNOIJBLDD); this.GFKPEHGMNGB("Successfully saved!"); NotificationManager instance = SingletonMonoBehaviour.Instance; int num = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Major, "Successfully saved!", 3f, num, num); } // Token: 0x060101DA RID: 66010 RVA: 0x003C67CC File Offset: 0x003C49CC [Token(Token = "0x60101DA")] [Address(RVA = "0x17190B0", Offset = "0x1717AB0", VA = "0x1817190B0")] private void FGADFNHMIDM(CreationManager.GLBINAEHJEL MAOOLFEBOOD) { string text; global::UnityEngine.Debug.LogError(text); Action action = new Action(this.KCDEPHJFNJC); this.GFKPEHGMNGB("Successfully updated!"); NotificationManager instance = SingletonMonoBehaviour.Instance; int num = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Vital, "Successfully updated!", 3f, num, num); } // Token: 0x060101DB RID: 66011 RVA: 0x003C682C File Offset: 0x003C4A2C [Token(Token = "0x60101DB")] [Address(RVA = "0x171A330", Offset = "0x1718D30", VA = "0x18171A330")] private void MCBPFBNAPAL(OBBBPCBIMME LDNFNNNHPPB) { MakerPenPaletteInventionCreationScreen.PopScreenAndSubScreensFromMenu(this.k__BackingField.paletteMenu._tool.ELABBFJBNII); MakerPenPaletteMoveableToolMenu paletteMenu = this.k__BackingField.paletteMenu; paletteMenu._tool.ELABBFJBNII.GetFlowByType().SetTargetInvention(LDNFNNNHPPB); paletteMenu.EBBKPMLPKBC(); } // Token: 0x060101DC RID: 66012 RVA: 0x003C6884 File Offset: 0x003C4A84 [Token(Token = "0x60101DC")] [Address(RVA = "0x17192B0", Offset = "0x1717CB0", VA = "0x1817192B0")] private void GFKPEHGMNGB(string PAANJCAOOAG) { GameObject gameObject = this.instructionsSubscreen; int num = 0; gameObject.SetActive(num != 0); this.resultSubscreen.SetActive(true); this.resultText.text = PAANJCAOOAG; if (!this.k__BackingField.k__BackingField.gameObject.activeInHierarchy) { NotificationManager instance = SingletonMonoBehaviour.Instance; int num2 = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Major, PAANJCAOOAG, 3f, num2, num2); } } // Token: 0x060101DD RID: 66013 RVA: 0x003C68F0 File Offset: 0x003C4AF0 [Token(Token = "0x60101DD")] [Address(RVA = "0x17193D0", Offset = "0x1717DD0", VA = "0x1817193D0")] private void HHHAMHHAJDN(GIPDDLFFNGG NLNHFEEMFBN, bool EGJJHJHIPCF) { int selectionCount = this.k__BackingField.k__BackingField.ENEJDOAEDCJ; TextMeshProUGUI textMeshProUGUI = this.objectCountText; int num = 0; bool flag = textMeshProUGUI != num; if (flag) { TextMeshProUGUI textMeshProUGUI2 = this.objectCountText; string text = string.Format("Objects selected: {0}", flag); textMeshProUGUI2.text = text; } Button3D button3D = this.nextButton; bool flag2 = selectionCount > 0; button3D.FFDOINJEHMM = flag2; } // Token: 0x060101DE RID: 66014 RVA: 0x003C6960 File Offset: 0x003C4B60 [Token(Token = "0x60101DE")] [Address(RVA = "0x1719E20", Offset = "0x1718820", VA = "0x181719E20")] private void KBEFFMGDAOJ(MakerPen.KLAENPHIBEM OIHFNIFGFJB, MakerPen.HJPIHGIFKEO FIBGLDDKDLB) { if (OIHFNIFGFJB != MakerPen.KLAENPHIBEM.CreateInvention) { MakerPenPaletteInventionCreationScreen.PopScreenAndSubScreensFromMenu(this.k__BackingField.paletteMenu._tool.ELABBFJBNII); return; } } // Token: 0x060101DF RID: 66015 RVA: 0x003C6994 File Offset: 0x003C4B94 [Token(Token = "0x60101DF")] [Address(RVA = "0x171B300", Offset = "0x1719D00", VA = "0x18171B300")] public void SetTargetInvention(OBBBPCBIMME LDNFNNNHPPB) { this.BFKEFCFNNKH = LDNFNNNHPPB; this.IEBMGDPKCOG.GNGOOMMLPHE(); } // Token: 0x060101E0 RID: 66016 RVA: 0x003C69BC File Offset: 0x003C4BBC [Token(Token = "0x60101E0")] [Address(RVA = "0x1719620", Offset = "0x1718020", VA = "0x181719620")] private void IJBHOOHKDIB(int AJEGFAMKCDO) { TextMeshProUGUI textMeshProUGUI = this.objectCountText; int num = 0; bool flag = textMeshProUGUI != num; if (flag) { TextMeshProUGUI textMeshProUGUI2 = this.objectCountText; string text = string.Format("Objects selected: {0}", flag); textMeshProUGUI2.text = text; } } // Token: 0x060101E1 RID: 66017 RVA: 0x003C6A00 File Offset: 0x003C4C00 [Token(Token = "0x60101E1")] [Address(RVA = "0x17198D0", Offset = "0x17182D0", VA = "0x1817198D0")] private static bool JCDHEABBHGO(StackedUIFlowBase LHHONCAOJFH) { if (LHHONCAOJFH != 0) { return LHHONCAOJFH != 0 || LHHONCAOJFH != 0; } return 0 != 0; } // Token: 0x060101E2 RID: 66018 RVA: 0x003C6A34 File Offset: 0x003C4C34 [Token(Token = "0x60101E2")] [Address(RVA = "0x17194D0", Offset = "0x1717ED0", VA = "0x1817194D0")] private void HLKCKJNDELP(bool ABMCMLCOFJP) { if (!ABMCMLCOFJP) { ICancelablePromise cancelablePromise = MakerPenCreateInventionFromSelectionOperation.ONEFHFMLLIP(this.k__BackingField.k__BackingField); Action action = new Action(this.OOMIDMLEGJO); Action action2 = new Action(this.GFKPEHGMNGB); Action action3 = new Action(this.NMCNJIDEPHG); } this.LOOMBGNMNAP(); } // Token: 0x060101E3 RID: 66019 RVA: 0x003C6A8C File Offset: 0x003C4C8C [Token(Token = "0x60101E3")] [Address(RVA = "0x171B330", Offset = "0x1719D30", VA = "0x18171B330")] public MakerPenPaletteInventionCreationScreen() { ManagedTexture managedTexture = new ManagedTexture("InventionCreation"); this.IEBMGDPKCOG = managedTexture; this.EAJDMHLBKND = "No description yet"; this.MOPMDBODNJE = float.MinValue; this.MBIFDOIJDMJ = true; base..ctor(); } // Token: 0x060101E4 RID: 66020 RVA: 0x003C6ADC File Offset: 0x003C4CDC [Token(Token = "0x60101E4")] [Address(RVA = "0x171A580", Offset = "0x1718F80", VA = "0x18171A580")] [CompilerGenerated] private void MMJCHCGGOPL(PFLPCICDFNF BBADBGPALFP) { if (!this.KGODFEIPINC) { this.k__BackingField.paletteMenu.GCMLOIFNJMB.Remove(this); this.k__BackingField.StartInventionObjectsSelection(); if (this.BLJNKBMJMKJ) { this.k__BackingField.CancelInventionObjectsSelection(); } } } // Token: 0x060101E5 RID: 66021 RVA: 0x003C6B30 File Offset: 0x003C4D30 [Token(Token = "0x60101E5")] [Address(RVA = "0x17196E0", Offset = "0x17180E0", VA = "0x1817196E0")] [CompilerGenerated] private void IKKLOHCLHOP() { this.DIKFGFJDJGP = (ulong)0L; } // Token: 0x060101E6 RID: 66022 RVA: 0x003C6B48 File Offset: 0x003C4D48 [Token(Token = "0x60101E6")] [Address(RVA = "0x17199B0", Offset = "0x17183B0", VA = "0x1817199B0")] [CompilerGenerated] private void JFPPKLNPDEH(string MOPOMPHBHKF) { if (MOPOMPHBHKF == 0) { } string text = string.Format("Unable to save selection as invention: {0}", MOPOMPHBHKF); this.GFKPEHGMNGB(text); } // Token: 0x060101E7 RID: 66023 RVA: 0x003C6B74 File Offset: 0x003C4D74 [Token(Token = "0x60101E7")] [Address(RVA = "0x1718AA0", Offset = "0x17174A0", VA = "0x181718AA0")] [CompilerGenerated] private void AIHAILAIPLG(string MOPOMPHBHKF) { if (MOPOMPHBHKF == 0) { } string text = string.Format("Unable to save new version of invention: {0}", MOPOMPHBHKF); this.GFKPEHGMNGB(text); } // Token: 0x060101E8 RID: 66024 RVA: 0x003C6BA0 File Offset: 0x003C4DA0 [Token(Token = "0x60101E8")] [Address(RVA = "0x1718F30", Offset = "0x1717930", VA = "0x181718F30")] [CompilerGenerated] private void EPBNOIJBLDD(OBBBPCBIMME LDNFNNNHPPB) { MakerPen k__BackingField = this.k__BackingField; ACDHFCHJBAK acdhfchjbak = new ACDHFCHJBAK(LDNFNNNHPPB); k__BackingField.QueueUI(acdhfchjbak); Action inventionSelectionButtonPressed = this.k__BackingField.k__BackingField.InventionSelectionButtonPressed; if (inventionSelectionButtonPressed != 0) { inventionSelectionButtonPressed(LDNFNNNHPPB); } if (!SingletonMonoBehaviour.Instance.ACGDGBHFJFB) { NotificationManager instance = SingletonMonoBehaviour.Instance; int num = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Major, "Press the trigger to spawn your invention", 3f, num, num); } } // Token: 0x060101E9 RID: 66025 RVA: 0x003C6C14 File Offset: 0x003C4E14 [Token(Token = "0x60101E9")] [Address(RVA = "0x1719E70", Offset = "0x1718870", VA = "0x181719E70")] [CompilerGenerated] private void KCDEPHJFNJC(OBBBPCBIMME LDNFNNNHPPB) { MakerPenPaletteInventionCreationScreen.PopScreenAndSubScreensFromMenu(this.k__BackingField.paletteMenu._tool.ELABBFJBNII); MakerPenPaletteMoveableToolMenu paletteMenu = this.k__BackingField.paletteMenu; paletteMenu._tool.ELABBFJBNII.GetFlowByType().SetTargetInvention(LDNFNNNHPPB); paletteMenu.EBBKPMLPKBC(); if (!SingletonMonoBehaviour.Instance.ACGDGBHFJFB) { Action inventionSelectionButtonPressed = this.k__BackingField.k__BackingField.InventionSelectionButtonPressed; if (inventionSelectionButtonPressed != 0) { inventionSelectionButtonPressed(LDNFNNNHPPB); } NotificationManager instance = SingletonMonoBehaviour.Instance; int num = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Vital, "Press the trigger to spawn your invention", 3f, num, num); } } // Token: 0x060101EA RID: 66026 RVA: 0x003C6CB0 File Offset: 0x003C4EB0 [Token(Token = "0x60101EA")] [Address(RVA = "0x171ADD0", Offset = "0x17197D0", VA = "0x18171ADD0")] [CompilerGenerated] private void OOMIDMLEGJO() { MakerPen k__BackingField = this.k__BackingField; if (!this.DDIKKPFKNHE) { k__BackingField.StartInventionObjectsSelection(); return; } MakerPenPaletteInventionCreationScreen.PopScreenAndSubScreensFromMenu(k__BackingField.paletteMenu._tool.ELABBFJBNII); } // Token: 0x060101EB RID: 66027 RVA: 0x003C6CF0 File Offset: 0x003C4EF0 [Token(Token = "0x60101EB")] [Address(RVA = "0x171AB30", Offset = "0x1719530", VA = "0x18171AB30")] [CompilerGenerated] private void NMCNJIDEPHG() { this.LOOMBGNMNAP(); } // Token: 0x0400AB40 RID: 43840 [Token(Token = "0x400AB40")] private const int KKALFKGOFAD = 2; // Token: 0x0400AB41 RID: 43841 [global::Cpp2IlInjected.FieldOffset(Offset = "0x98")] [Token(Token = "0x400AB41")] [SerializeField] private GameObject instructionsSubscreen; // Token: 0x0400AB42 RID: 43842 [global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")] [Token(Token = "0x400AB42")] [SerializeField] private GameObject resultSubscreen; // Token: 0x0400AB43 RID: 43843 [global::Cpp2IlInjected.FieldOffset(Offset = "0xA8")] [Token(Token = "0x400AB43")] [SerializeField] private Button3D nextButton; // Token: 0x0400AB44 RID: 43844 [global::Cpp2IlInjected.FieldOffset(Offset = "0xB0")] [Token(Token = "0x400AB44")] [SerializeField] private GameObject deselectContainer; // Token: 0x0400AB45 RID: 43845 [global::Cpp2IlInjected.FieldOffset(Offset = "0xB8")] [Token(Token = "0x400AB45")] [SerializeField] private TextMeshProUGUI mainText; // Token: 0x0400AB46 RID: 43846 [global::Cpp2IlInjected.FieldOffset(Offset = "0xC0")] [Token(Token = "0x400AB46")] [SerializeField] private TextMeshProUGUI objectCountText; // Token: 0x0400AB47 RID: 43847 [global::Cpp2IlInjected.FieldOffset(Offset = "0xC8")] [Token(Token = "0x400AB47")] [SerializeField] private TextMeshProUGUI resultText; // Token: 0x0400AB48 RID: 43848 [global::Cpp2IlInjected.FieldOffset(Offset = "0xD0")] [Token(Token = "0x400AB48")] [SerializeField] private float minUpdateInventionInterval = 5f; // Token: 0x0400AB49 RID: 43849 [global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")] [Token(Token = "0x400AB49")] [SerializeField] [Header("Dialogs")] private EnterInventionNameDialog enterInventionNameDialog; // Token: 0x0400AB4A RID: 43850 [global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")] [Token(Token = "0x400AB4A")] [SerializeField] private EnterInventionDescriptionDialog enterInventionDescriptionDialog; // Token: 0x0400AB4B RID: 43851 [global::Cpp2IlInjected.FieldOffset(Offset = "0xE8")] [Token(Token = "0x400AB4B")] private OBBBPCBIMME BFKEFCFNNKH; // Token: 0x0400AB4C RID: 43852 [global::Cpp2IlInjected.FieldOffset(Offset = "0xF0")] [Token(Token = "0x400AB4C")] private readonly ManagedTexture IEBMGDPKCOG; // Token: 0x0400AB4D RID: 43853 [global::Cpp2IlInjected.FieldOffset(Offset = "0xF8")] [Token(Token = "0x400AB4D")] private string FMNALPDBJHP; // Token: 0x0400AB4E RID: 43854 [global::Cpp2IlInjected.FieldOffset(Offset = "0x100")] [Token(Token = "0x400AB4E")] private string EAJDMHLBKND; // Token: 0x0400AB4F RID: 43855 [global::Cpp2IlInjected.FieldOffset(Offset = "0x108")] [Token(Token = "0x400AB4F")] private float MOPMDBODNJE; // Token: 0x0400AB50 RID: 43856 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10C")] [Token(Token = "0x400AB50")] private bool DDIKKPFKNHE; // Token: 0x0400AB51 RID: 43857 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10D")] [Token(Token = "0x400AB51")] private bool BLJNKBMJMKJ; // Token: 0x0400AB52 RID: 43858 [global::Cpp2IlInjected.FieldOffset(Offset = "0x110")] [Token(Token = "0x400AB52")] private List IBOGIKMOLOC; // Token: 0x0400AB53 RID: 43859 [global::Cpp2IlInjected.FieldOffset(Offset = "0x118")] [Token(Token = "0x400AB53")] private bool MBIFDOIJDMJ; // Token: 0x0400AB54 RID: 43860 [global::Cpp2IlInjected.FieldOffset(Offset = "0x119")] [Token(Token = "0x400AB54")] private bool INJHNHPCBHN; // Token: 0x0400AB55 RID: 43861 [global::Cpp2IlInjected.FieldOffset(Offset = "0x120")] [Token(Token = "0x400AB55")] private UIDialog DIKFGFJDJGP; // Token: 0x0400AB56 RID: 43862 [global::Cpp2IlInjected.FieldOffset(Offset = "0x128")] [Token(Token = "0x400AB56")] private bool KGODFEIPINC; // Token: 0x0200246B RID: 9323 [Token(Token = "0x200246B")] private struct JPPNEJOBKAC { // Token: 0x17002BDD RID: 11229 // (get) Token: 0x060101EC RID: 66028 RVA: 0x003C6D04 File Offset: 0x003C4F04 [Token(Token = "0x17002BDD")] public long? HPFIHNGAOCE { [Token(Token = "0x60101EC")] [Address(RVA = "0x238470", Offset = "0x237870", VA = "0x180238470")] get { /* An exception occurred when decompiling this method (060101EC) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Nullable`1 RecRoom.AGUI.ToolUIs.MakerPenPaletteInventionCreationScreen/JPPNEJOBKAC::GPPALPKMEPO() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:int32(var_0_01, ldc.i4:int32(0)) stfld:OBBBPCBIMME(JPPNEJOBKAC::KGKPAFJOMPE, ldloc:valuetype RecRoom.AGUI.ToolUIs.MakerPenPaletteInventionCreationScreen/JPPNEJOBKAC&(this), ldloc:int32[exp:OBBBPCBIMME](var_0_01)) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } } // Token: 0x0400AB57 RID: 43863 [global::Cpp2IlInjected.FieldOffset(Offset = "0x0")] [Token(Token = "0x400AB57")] public OBBBPCBIMME KGKPAFJOMPE; // Token: 0x0400AB58 RID: 43864 [global::Cpp2IlInjected.FieldOffset(Offset = "0x8")] [Token(Token = "0x400AB58")] public string PGEBPHPMKMM; // Token: 0x0400AB59 RID: 43865 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400AB59")] public string JLGIGGAKANM; // Token: 0x0400AB5A RID: 43866 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400AB5A")] public GIPDDLFFNGG[] FNIEICGNLEL; } // Token: 0x0200246C RID: 9324 [Token(Token = "0x200246C")] [CompilerGenerated] private sealed class MOJCBGKMAHB { // Token: 0x060101ED RID: 66029 RVA: 0x003C6D1C File Offset: 0x003C4F1C [Token(Token = "0x60101ED")] [Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")] public MOJCBGKMAHB() { } // Token: 0x060101EE RID: 66030 RVA: 0x003C6D30 File Offset: 0x003C4F30 [Token(Token = "0x60101EE")] [Address(RVA = "0x1712E50", Offset = "0x1711850", VA = "0x181712E50")] internal void b__0() { Scheduler instance = SingletonMonoBehaviour.Instance; MakerPenPaletteInventionCreationScreen.MOJCBGKMAHB.<g__CancelInventionCreationAndPickupMakerPen|2>d <g__CancelInventionCreationAndPickupMakerPen|2>d; <g__CancelInventionCreationAndPickupMakerPen|2>d.System.IDisposable.Dispose(); <g__CancelInventionCreationAndPickupMakerPen|2>d.<>1__state = (int)((ulong)0L); <g__CancelInventionCreationAndPickupMakerPen|2>d.<>4__this = this; ISchedulerPromise schedulerPromise = instance.Run(<g__CancelInventionCreationAndPickupMakerPen|2>d); } // Token: 0x060101EF RID: 66031 RVA: 0x003C6D68 File Offset: 0x003C4F68 [Token(Token = "0x60101EF")] [Address(RVA = "0x1713600", Offset = "0x1712000", VA = "0x181713600")] internal IEnumerator g__CancelInventionCreationAndPickupMakerPen|2() { /* An exception occurred when decompiling this method (060101EF) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.Generic.IEnumerator`1 RecRoom.AGUI.ToolUIs.MakerPenPaletteInventionCreationScreen/MOJCBGKMAHB::g__CancelInventionCreationAndPickupMakerPen|2() ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: call:void('<g__CancelInventionCreationAndPickupMakerPen|2>d'::System.IDisposable.Dispose, ldloc:'<g__CancelInventionCreationAndPickupMakerPen|2>d'(var_0)) stfld:int32('<g__CancelInventionCreationAndPickupMakerPen|2>d'::<>1__state, ldloc:'<g__CancelInventionCreationAndPickupMakerPen|2>d'(var_0), conv.u8:uint64[exp:int32](ldc.i8:int64[exp:uint64](0))) stfld:MOJCBGKMAHB('<g__CancelInventionCreationAndPickupMakerPen|2>d'::<>4__this, ldloc:'<g__CancelInventionCreationAndPickupMakerPen|2>d'(var_0), ldloc:MOJCBGKMAHB(this)) } at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88 --- End of inner exception stack trace --- at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1663 */; } // Token: 0x060101F0 RID: 66032 RVA: 0x003C6D8C File Offset: 0x003C4F8C [Token(Token = "0x60101F0")] [Address(RVA = "0x1712F20", Offset = "0x1711920", VA = "0x181712F20")] internal void b__1(RenderTexture renderTex) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen = this.<>4__this; int num = 0; makerPenPaletteInventionCreationScreen.IEBMGDPKCOG.DPCIGLIJMPF(renderTex); ManagedTexture iebmgdpkcog = this.<>4__this.IEBMGDPKCOG; int num2 = 0; IPromise promise = iebmgdpkcog.BBLLIEGLEEE((ManagedTexture.HGJAGEHBPNE)((ulong)3L), num2 != 0); if (Player.k__BackingField.backpack.UseTool((JKPLBBBJLJK)((uint)1), num, true)) { if (this.<>9__3 == 0) { Action action = delegate { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen2 = this.<>4__this; MakerPenPaletteInventionCreationScreen.JPPNEJOBKAC jppnejobkac = this.context; string jlgiggakanm = this.context.JLGIGGAKANM; if (!makerPenPaletteInventionCreationScreen2.OCOIBKNPCGI(jppnejobkac)) { NotificationManager instance = SingletonMonoBehaviour.Instance; int num3 = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Major, "Invention Creation Failed - Selection Unavailable", 3f, num3, num3); } MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen3 = this.<>4__this; OBBBPCBIMME bfkefcfnnkh = makerPenPaletteInventionCreationScreen3.BFKEFCFNNKH; float mopmdbodnje; if (bfkefcfnnkh != 0) { long k__BackingField = bfkefcfnnkh.k__BackingField; MakerPenPaletteInventionCreationScreen.EJHLPDKEMFH ejhlpdkemfh = new MakerPenPaletteInventionCreationScreen.EJHLPDKEMFH(); ejhlpdkemfh.<>4__this = makerPenPaletteInventionCreationScreen3; ejhlpdkemfh.targetInventionId = k__BackingField; ManagedTexture iebmgdpkcog2 = makerPenPaletteInventionCreationScreen3.IEBMGDPKCOG; int num4 = 0; IPromise promise2 = OHDHPENHDAP.NLDOGFCBAOD(iebmgdpkcog2, OHDHPENHDAP.DLHGJJJPHPH.InventionThumbnail, num4); Action action2 = delegate(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen5 = ejhlpdkemfh.<>4__this; if (error == 0) { } string text2 = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen5.GFKPEHGMNGB(text2); }; Action action3 = delegate(string imageName) { IPromise promise4 = BBHENFCNLAB.ONLOPCCOFMM(ejhlpdkemfh.targetInventionId, imageName); if (ejhlpdkemfh.<>9__2 == 0) { Action action6 = delegate(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen6 = ejhlpdkemfh.<>4__this; if (error == 0) { } string text3 = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen6.GFKPEHGMNGB(text3); }; ejhlpdkemfh.<>9__2 = action6; } throw new NullReferenceException(); }; MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen4 = this.<>4__this; long k__BackingField2 = makerPenPaletteInventionCreationScreen4.BFKEFCFNNKH.k__BackingField; float realtimeSinceStartup = Time.realtimeSinceStartup; mopmdbodnje = makerPenPaletteInventionCreationScreen4.MOPMDBODNJE; if (mopmdbodnje <= realtimeSinceStartup) { float realtimeSinceStartup2 = Time.realtimeSinceStartup; OBBBPCBIMME bfkefcfnnkh2 = makerPenPaletteInventionCreationScreen4.BFKEFCFNNKH; makerPenPaletteInventionCreationScreen4.MOPMDBODNJE = realtimeSinceStartup2; string k__BackingField = bfkefcfnnkh2.k__BackingField; string text = "Saving new version of " + k__BackingField + "..."; makerPenPaletteInventionCreationScreen4.GFKPEHGMNGB(text); IPromise promise3 = makerPenPaletteInventionCreationScreen4.k__BackingField.SaveCurrentSelectionAsNewVersionOfInvention(k__BackingField2); Action action4 = new Action(makerPenPaletteInventionCreationScreen4.FGADFNHMIDM); Action action5 = new Action(makerPenPaletteInventionCreationScreen4.AIHAILAIPLG); } return; } float realtimeSinceStartup3 = Time.realtimeSinceStartup; while (mopmdbodnje > realtimeSinceStartup3) { } float realtimeSinceStartup4 = Time.realtimeSinceStartup; throw new NullReferenceException(); }; this.<>9__3 = action; } if (MakerPenPaletteInventionCreationScreen.<>c.<>9__39_4 == 0) { MakerPenPaletteInventionCreationScreen.<>c.<>9__39_4 = delegate { NotificationManager instance2 = SingletonMonoBehaviour.Instance; int num5 = 0; IDisposable disposable2 = instance2.Play(NotificationManager.IBIDFAOPIPC.Major, "Invention Creation Cancelled", 3f, num5, num5); }; } } } // Token: 0x060101F1 RID: 66033 RVA: 0x003C6E20 File Offset: 0x003C5020 [Token(Token = "0x60101F1")] [Address(RVA = "0x1713180", Offset = "0x1711B80", VA = "0x181713180")] internal void b__3() { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen = this.<>4__this; MakerPenPaletteInventionCreationScreen.JPPNEJOBKAC jppnejobkac = this.context; string jlgiggakanm = this.context.JLGIGGAKANM; if (!makerPenPaletteInventionCreationScreen.OCOIBKNPCGI(jppnejobkac)) { NotificationManager instance = SingletonMonoBehaviour.Instance; int num = 0; IDisposable disposable = instance.Play(NotificationManager.IBIDFAOPIPC.Major, "Invention Creation Failed - Selection Unavailable", 3f, num, num); } MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen2 = this.<>4__this; OBBBPCBIMME bfkefcfnnkh = makerPenPaletteInventionCreationScreen2.BFKEFCFNNKH; float mopmdbodnje; if (bfkefcfnnkh != 0) { long k__BackingField = bfkefcfnnkh.k__BackingField; MakerPenPaletteInventionCreationScreen.EJHLPDKEMFH ejhlpdkemfh = new MakerPenPaletteInventionCreationScreen.EJHLPDKEMFH(); ejhlpdkemfh.<>4__this = makerPenPaletteInventionCreationScreen2; ejhlpdkemfh.targetInventionId = k__BackingField; ManagedTexture iebmgdpkcog = makerPenPaletteInventionCreationScreen2.IEBMGDPKCOG; int num2 = 0; IPromise promise = OHDHPENHDAP.NLDOGFCBAOD(iebmgdpkcog, OHDHPENHDAP.DLHGJJJPHPH.InventionThumbnail, num2); Action action = delegate(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen4 = ejhlpdkemfh.<>4__this; if (error == 0) { } string text2 = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen4.GFKPEHGMNGB(text2); }; Action action2 = delegate(string imageName) { IPromise promise3 = BBHENFCNLAB.ONLOPCCOFMM(ejhlpdkemfh.targetInventionId, imageName); if (ejhlpdkemfh.<>9__2 == 0) { Action action5 = delegate(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen5 = ejhlpdkemfh.<>4__this; if (error == 0) { } string text3 = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen5.GFKPEHGMNGB(text3); }; ejhlpdkemfh.<>9__2 = action5; } throw new NullReferenceException(); }; MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen3 = this.<>4__this; long k__BackingField2 = makerPenPaletteInventionCreationScreen3.BFKEFCFNNKH.k__BackingField; float realtimeSinceStartup = Time.realtimeSinceStartup; mopmdbodnje = makerPenPaletteInventionCreationScreen3.MOPMDBODNJE; if (mopmdbodnje <= realtimeSinceStartup) { float realtimeSinceStartup2 = Time.realtimeSinceStartup; OBBBPCBIMME bfkefcfnnkh2 = makerPenPaletteInventionCreationScreen3.BFKEFCFNNKH; makerPenPaletteInventionCreationScreen3.MOPMDBODNJE = realtimeSinceStartup2; string k__BackingField = bfkefcfnnkh2.k__BackingField; string text = "Saving new version of " + k__BackingField + "..."; makerPenPaletteInventionCreationScreen3.GFKPEHGMNGB(text); IPromise promise2 = makerPenPaletteInventionCreationScreen3.k__BackingField.SaveCurrentSelectionAsNewVersionOfInvention(k__BackingField2); Action action3 = new Action(makerPenPaletteInventionCreationScreen3.FGADFNHMIDM); Action action4 = new Action(makerPenPaletteInventionCreationScreen3.AIHAILAIPLG); } return; } float realtimeSinceStartup3 = Time.realtimeSinceStartup; while (mopmdbodnje > realtimeSinceStartup3) { } float realtimeSinceStartup4 = Time.realtimeSinceStartup; throw new NullReferenceException(); } // Token: 0x0400AB5B RID: 43867 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400AB5B")] public MakerPenPaletteInventionCreationScreen <>4__this; // Token: 0x0400AB5C RID: 43868 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400AB5C")] public MakerPenPaletteInventionCreationScreen.JPPNEJOBKAC context; // Token: 0x0400AB5D RID: 43869 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x400AB5D")] public Action <>9__3; // Token: 0x0200246D RID: 9325 [Token(Token = "0x200246D")] private sealed class <g__CancelInventionCreationAndPickupMakerPen|2>d : IEnumerator, IEnumerator, IDisposable { // Token: 0x060101F2 RID: 66034 RVA: 0x0003C3EA File Offset: 0x0003A5EA [Token(Token = "0x60101F2")] [Address(RVA = "0x3E46E0", Offset = "0x3E30E0", VA = "0x1803E46E0")] [DebuggerHidden] public <g__CancelInventionCreationAndPickupMakerPen|2>d(int <>1__state) { } // Token: 0x060101F3 RID: 66035 RVA: 0x0003C3EA File Offset: 0x0003A5EA [Token(Token = "0x60101F3")] [Address(RVA = "0x3C9F60", Offset = "0x3C8960", VA = "0x1803C9F60", Slot = "5")] [DebuggerHidden] void IDisposable.Dispose() { } // Token: 0x060101F4 RID: 66036 RVA: 0x003C6FA4 File Offset: 0x003C51A4 [Token(Token = "0x60101F4")] [Address(RVA = "0x17281C0", Offset = "0x1726BC0", VA = "0x1817281C0", Slot = "6")] private bool MoveNext() { return default(bool); } // Token: 0x17002BDE RID: 11230 // (get) Token: 0x060101F5 RID: 66037 RVA: 0x00062DDE File Offset: 0x00060FDE [Token(Token = "0x17002BDE")] ISchedule IEnumerator.Current { [Token(Token = "0x60101F5")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "4")] [DebuggerHidden] get { return null; } } // Token: 0x060101F6 RID: 66038 RVA: 0x0003C3EA File Offset: 0x0003A5EA [Token(Token = "0x60101F6")] [Address(RVA = "0x17283C0", Offset = "0x1726DC0", VA = "0x1817283C0", Slot = "8")] [DebuggerHidden] void IEnumerator.Reset() { } // Token: 0x17002BDF RID: 11231 // (get) Token: 0x060101F7 RID: 66039 RVA: 0x00062DDE File Offset: 0x00060FDE [Token(Token = "0x17002BDF")] object IEnumerator.Current { [Token(Token = "0x60101F7")] [Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")] [DebuggerHidden] get { return null; } } // Token: 0x0400AB5E RID: 43870 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400AB5E")] private int <>1__state; // Token: 0x0400AB5F RID: 43871 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400AB5F")] private ISchedule <>2__current; // Token: 0x0400AB60 RID: 43872 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400AB60")] public MakerPenPaletteInventionCreationScreen.MOJCBGKMAHB <>4__this; } } // Token: 0x0200246F RID: 9327 [Token(Token = "0x200246F")] [CompilerGenerated] private sealed class EJHLPDKEMFH { // Token: 0x060101FB RID: 66043 RVA: 0x003C7018 File Offset: 0x003C5218 [Token(Token = "0x60101FB")] [Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")] public EJHLPDKEMFH() { } // Token: 0x060101FC RID: 66044 RVA: 0x003C702C File Offset: 0x003C522C [Token(Token = "0x60101FC")] [Address(RVA = "0x1711A10", Offset = "0x1710410", VA = "0x181711A10")] internal void b__0(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen = this.<>4__this; if (error == 0) { } string text = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen.GFKPEHGMNGB(text); } // Token: 0x060101FD RID: 66045 RVA: 0x003C7060 File Offset: 0x003C5260 [Token(Token = "0x60101FD")] [Address(RVA = "0x1711A80", Offset = "0x1710480", VA = "0x181711A80")] internal void b__1(string imageName) { IPromise promise = BBHENFCNLAB.ONLOPCCOFMM(this.targetInventionId, imageName); if (this.<>9__2 == 0) { Action action = delegate(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen = this.<>4__this; if (error == 0) { } string text = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen.GFKPEHGMNGB(text); }; this.<>9__2 = action; } throw new NullReferenceException(); } // Token: 0x060101FE RID: 66046 RVA: 0x003C709C File Offset: 0x003C529C [Token(Token = "0x60101FE")] [Address(RVA = "0x1711B50", Offset = "0x1710550", VA = "0x181711B50")] internal void b__2(string error) { MakerPenPaletteInventionCreationScreen makerPenPaletteInventionCreationScreen = this.<>4__this; if (error == 0) { } string text = string.Format("Unable to update Image of invention: {0}", error); makerPenPaletteInventionCreationScreen.GFKPEHGMNGB(text); } // Token: 0x0400AB63 RID: 43875 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x400AB63")] public MakerPenPaletteInventionCreationScreen <>4__this; // Token: 0x0400AB64 RID: 43876 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x400AB64")] public long targetInventionId; // Token: 0x0400AB65 RID: 43877 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x400AB65")] public Action <>9__2; } } }