786 lines
30 KiB
C#
786 lines
30 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using AGUI.StackedUI;
|
|
using AGUI.StackedUI.Dialog;
|
|
using Cpp2IlInjected;
|
|
using Photon.Pun;
|
|
using Photon.Realtime;
|
|
using RecRoom.AGUI.ToolUIs;
|
|
using RecRoom.Async;
|
|
using RecRoom.Core;
|
|
using RecRoom.Core.Creation;
|
|
using RecRoom.Networking.RPC;
|
|
using RecRoom.Players.Watch;
|
|
using RecRoom.Systems.PlayerRoles;
|
|
using RecRoom.Tools;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace RecRoom
|
|
{
|
|
// Token: 0x02001DAA RID: 7594
|
|
[Token(Token = "0x2001DAA")]
|
|
[StructLayout(3)]
|
|
public class MakerPenPaletteInventionSetupScreen : MakerPenPaletteUIFlowBase
|
|
{
|
|
// Token: 0x0600CCD7 RID: 52439 RVA: 0x0030A7E4 File Offset: 0x003089E4
|
|
[Token(Token = "0x600CCD7")]
|
|
[Address(RVA = "0xF9A9B0", Offset = "0xF993B0", VA = "0x180F9A9B0")]
|
|
public void SetTargetInvention(OBBBPCBIMME LDNFNNNHPPB)
|
|
{
|
|
this.BFKEFCFNNKH = LDNFNNNHPPB;
|
|
string empty = string.Empty;
|
|
this.KJFEHOGAEJA(empty, true);
|
|
this.MDLNCNGIEGF();
|
|
}
|
|
|
|
// Token: 0x0600CCD8 RID: 52440 RVA: 0x0030A80C File Offset: 0x00308A0C
|
|
[Token(Token = "0x600CCD8")]
|
|
[Address(RVA = "0xF9ABD0", Offset = "0xF995D0", VA = "0x180F9ABD0")]
|
|
private void Start()
|
|
{
|
|
Action<Photon.Realtime.Player, RoomRole> action = new Action(this.LMDIDIEGGII);
|
|
ActionEvent<long> pjjjmgdalbf = BBHENFCNLAB.PJJJMGDALBF;
|
|
Action<long> action2 = new Action(this.PJJJMGDALBF);
|
|
BBHENFCNLAB.PJJJMGDALBF = pjjjmgdalbf + action2;
|
|
}
|
|
|
|
// Token: 0x0600CCD9 RID: 52441 RVA: 0x0030A848 File Offset: 0x00308A48
|
|
[Token(Token = "0x600CCD9")]
|
|
[Address(RVA = "0xF99C70", Offset = "0xF98670", VA = "0x180F99C70", Slot = "9")]
|
|
public override void Initialize(StackedUIBase LJOCNMLBCAH)
|
|
{
|
|
base.Initialize(LJOCNMLBCAH);
|
|
List<GameObject> list = new List();
|
|
GameObject gameObject = this.useOnlyDescriptionContainer;
|
|
list.Add(gameObject);
|
|
GameObject gameObject2 = this.saveAndEditDescriptionContainer;
|
|
list.Add(gameObject2);
|
|
GameObject gameObject3 = this.publishDescriptionContainer;
|
|
list.Add(gameObject3);
|
|
this.BNBPOFKLCNO = list;
|
|
}
|
|
|
|
// Token: 0x0600CCDA RID: 52442 RVA: 0x0030A89C File Offset: 0x00308A9C
|
|
[Token(Token = "0x600CCDA")]
|
|
[Address(RVA = "0xF9A730", Offset = "0xF99130", VA = "0x180F9A730", Slot = "6")]
|
|
protected override void OnDestroy()
|
|
{
|
|
Action<Photon.Realtime.Player, RoomRole> action = new Action(this.LMDIDIEGGII);
|
|
ActionEvent<long> pjjjmgdalbf = BBHENFCNLAB.PJJJMGDALBF;
|
|
Action<long> action2 = new Action(this.PJJJMGDALBF);
|
|
BBHENFCNLAB.PJJJMGDALBF = pjjjmgdalbf - action2;
|
|
base.OnDestroy();
|
|
}
|
|
|
|
// Token: 0x0600CCDB RID: 52443 RVA: 0x0030A8DC File Offset: 0x00308ADC
|
|
[Token(Token = "0x600CCDB")]
|
|
[Address(RVA = "0xF9A880", Offset = "0xF99280", VA = "0x180F9A880")]
|
|
private void OnEnable()
|
|
{
|
|
string empty = string.Empty;
|
|
this.KJFEHOGAEJA(empty, true);
|
|
}
|
|
|
|
// Token: 0x0600CCDC RID: 52444 RVA: 0x0030A8F8 File Offset: 0x00308AF8
|
|
[Token(Token = "0x600CCDC")]
|
|
[Address(RVA = "0xF99F40", Offset = "0xF98940", VA = "0x180F99F40")]
|
|
private void KJFEHOGAEJA(string EEHOFLPKHND, bool BCOHEOIEPLL)
|
|
{
|
|
this.infoText.text = EEHOFLPKHND;
|
|
Slider3D slider3D = this.permissionsSlider;
|
|
if (!BCOHEOIEPLL || this.BFKEFCFNNKH != 0)
|
|
{
|
|
}
|
|
int num = 0;
|
|
slider3D.FFDOINJEHMM = num != 0;
|
|
MakerPen <LJOGMLBAABG>k__BackingField = this.<LJOGMLBAABG>k__BackingField;
|
|
int num2 = 0;
|
|
bool flag = <LJOGMLBAABG>k__BackingField != num2;
|
|
Button3D button3D = this.updateInventionButton;
|
|
if (!flag)
|
|
{
|
|
}
|
|
if (!BCOHEOIEPLL || !this.<LJOGMLBAABG>k__BackingField.ABNHKODIKFP || this.BFKEFCFNNKH != 0)
|
|
{
|
|
}
|
|
int num3 = 0;
|
|
button3D.FFDOINJEHMM = num3 != 0;
|
|
this.deleteInventionButton.FFDOINJEHMM = BCOHEOIEPLL;
|
|
this.editPriceButton.interactable = BCOHEOIEPLL;
|
|
GameObject gameObject = this.editPriceContainer.gameObject;
|
|
int num4 = 0;
|
|
gameObject.SetActive(num4 != 0);
|
|
this.spacerElement.SetActive(true);
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
if (bfkefcfnnkh != 0 && bfkefcfnnkh.<FOHHAMCICIG>k__BackingField)
|
|
{
|
|
IPromise<bool> promise = PEGGCEDHBOF.BMDFFCOIOFL();
|
|
Action<bool> action = new Action(this.KJGICELEPGF);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCDD RID: 52445 RVA: 0x0030A9EC File Offset: 0x00308BEC
|
|
[Token(Token = "0x600CCDD")]
|
|
[Address(RVA = "0xF9A170", Offset = "0xF98B70", VA = "0x180F9A170")]
|
|
private void OGFOOCLCEDB(bool AEBFKFLKADG = true)
|
|
{
|
|
this.editPriceContainer.gameObject.SetActive(AEBFKFLKADG);
|
|
this.spacerElement.SetActive(AEBFKFLKADG);
|
|
}
|
|
|
|
// Token: 0x0600CCDE RID: 52446 RVA: 0x0030AA1C File Offset: 0x00308C1C
|
|
[Token(Token = "0x600CCDE")]
|
|
[Address(RVA = "0xF9A4A0", Offset = "0xF98EA0", VA = "0x180F9A4A0")]
|
|
private void MDLNCNGIEGF()
|
|
{
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
if (bfkefcfnnkh != 0)
|
|
{
|
|
HECIICKPCDN <EILALLIKMBE>k__BackingField = bfkefcfnnkh.<EILALLIKMBE>k__BackingField;
|
|
if (<EILALLIKMBE>k__BackingField == HECIICKPCDN.Unassigned)
|
|
{
|
|
HECIICKPCDN <BLHHHLKKGCN>k__BackingField = bfkefcfnnkh.<BLHHHLKKGCN>k__BackingField;
|
|
}
|
|
float floatOrRoundedValue = this.permissionsSlider.BJLPHCELPLH;
|
|
if (<EILALLIKMBE>k__BackingField == HECIICKPCDN.UseOnly)
|
|
{
|
|
}
|
|
if (<EILALLIKMBE>k__BackingField == HECIICKPCDN.EditAndSave)
|
|
{
|
|
}
|
|
if ((uint)2 != 0U)
|
|
{
|
|
Slider3D slider3D = this.permissionsSlider;
|
|
this.NOGFJFKJILL = true;
|
|
float value = slider3D.value;
|
|
}
|
|
if (<EILALLIKMBE>k__BackingField <= HECIICKPCDN.UseOnly)
|
|
{
|
|
GameObject gameObject = this.useOnlyDescriptionContainer;
|
|
this.NHMKCLGLAJJ(gameObject);
|
|
return;
|
|
}
|
|
if (<EILALLIKMBE>k__BackingField != HECIICKPCDN.EditAndSave)
|
|
{
|
|
GameObject gameObject2 = this.publishDescriptionContainer;
|
|
this.NHMKCLGLAJJ(gameObject2);
|
|
return;
|
|
}
|
|
GameObject gameObject3 = this.saveAndEditDescriptionContainer;
|
|
this.NHMKCLGLAJJ(gameObject3);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCDF RID: 52447 RVA: 0x0030AABC File Offset: 0x00308CBC
|
|
[Token(Token = "0x600CCDF")]
|
|
[Address(RVA = "0xF9A430", Offset = "0xF98E30", VA = "0x180F9A430")]
|
|
private void LMDIDIEGGII(Photon.Realtime.Player AGIHAKFFCCD, RoomRole EGPBMGPKIIL)
|
|
{
|
|
if (AGIHAKFFCCD.IsLocal)
|
|
{
|
|
string empty = string.Empty;
|
|
this.KJFEHOGAEJA(empty, true);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCE0 RID: 52448 RVA: 0x0030AAE8 File Offset: 0x00308CE8
|
|
[Token(Token = "0x600CCE0")]
|
|
[Address(RVA = "0xF9A8D0", Offset = "0xF992D0", VA = "0x180F9A8D0")]
|
|
private void PJJJMGDALBF(long OEMDIAHHILF)
|
|
{
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
if (bfkefcfnnkh != 0 && bfkefcfnnkh.<BHBCCAKKIMJ>k__BackingField == OEMDIAHHILF)
|
|
{
|
|
OBBBPCBIMME obbbpcbimme = BBHENFCNLAB.PMJOPHKBPJK(OEMDIAHHILF);
|
|
this.BFKEFCFNNKH = obbbpcbimme;
|
|
string empty = string.Empty;
|
|
this.KJFEHOGAEJA(empty, true);
|
|
this.MDLNCNGIEGF();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCE1 RID: 52449 RVA: 0x0030AB2C File Offset: 0x00308D2C
|
|
[Token(Token = "0x600CCE1")]
|
|
[Address(RVA = "0xF993A0", Offset = "0xF97DA0", VA = "0x180F993A0")]
|
|
public void Button_UpdateInvention()
|
|
{
|
|
if (this.BFKEFCFNNKH != (ulong)0L && this.<LJOGMLBAABG>k__BackingField.ABNHKODIKFP)
|
|
{
|
|
MakerPen <LJOGMLBAABG>k__BackingField = this.<LJOGMLBAABG>k__BackingField;
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
<LJOGMLBAABG>k__BackingField.QueueInventionUpdate(bfkefcfnnkh);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCE2 RID: 52450 RVA: 0x0030AB70 File Offset: 0x00308D70
|
|
[Token(Token = "0x600CCE2")]
|
|
[Address(RVA = "0xF99010", Offset = "0xF97A10", VA = "0x180F99010")]
|
|
public void Button_Delete()
|
|
{
|
|
IPromise<JPIJGHNNIDP> promise = this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI.ShowConfirmationDialog("Confirm delete Invention?", "This action CANNOT be undone!");
|
|
Action<JPIJGHNNIDP> action = new Action(this.HDAAPEAGFEN);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCE3 RID: 52451 RVA: 0x0030ABAC File Offset: 0x00308DAC
|
|
[Token(Token = "0x600CCE3")]
|
|
[Address(RVA = "0xF990D0", Offset = "0xF97AD0", VA = "0x180F990D0")]
|
|
public void Button_EditPrice()
|
|
{
|
|
bool flag;
|
|
if (!flag)
|
|
{
|
|
string text;
|
|
string text2;
|
|
IPromise<JPIJGHNNIDP> promise = this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI.ShowConfirmationDialog((UIConfirmationDialog.MCLCMCALGMA)((uint)3), "Rec Room Plus Required", "You must be a Rec Room Plus member to charge for inventions.", text, text2);
|
|
if (MakerPenPaletteInventionSetupScreen.<>c.<>9__27_0 == 0)
|
|
{
|
|
MakerPenPaletteInventionSetupScreen.<>c.<>9__27_0 = delegate(JPIJGHNNIDP joinResponse)
|
|
{
|
|
if (joinResponse == JPIJGHNNIDP.Affirmative)
|
|
{
|
|
WatchUI local = WatchUI.BFPPPLIJIGC;
|
|
int num = 0;
|
|
if (local != num)
|
|
{
|
|
WatchUI.BFPPPLIJIGC.GetFlowByType<MembershipBenefitsScreen>().ShowScreen("Invention_UpdatePrice");
|
|
MakerPen.<IJMEOOBBJNG>k__BackingField.AuthorityHidePaletteMenu();
|
|
WatchMenuProjector watchMenuProjector = WatchUI.BFPPPLIJIGC.OHPDNGENFJL;
|
|
int num2 = 0;
|
|
watchMenuProjector.AuthorityOpenMenuDetached(num2 != 0);
|
|
return;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
MakerPenPaletteUI paletteMenuToolUI = this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI;
|
|
Action<KJBHGEIMGHP> action = new Action(this.KKKPCEDFGIO);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCE4 RID: 52452 RVA: 0x0030AC1C File Offset: 0x00308E1C
|
|
[Token(Token = "0x600CCE4")]
|
|
[Address(RVA = "0xF9AA20", Offset = "0xF99420", VA = "0x180F9AA20")]
|
|
public void Slider_Permission(float value)
|
|
{
|
|
MakerPenPaletteInventionSetupScreen.PECGHCGDCEI pecghcgdcei = new MakerPenPaletteInventionSetupScreen.PECGHCGDCEI();
|
|
pecghcgdcei.<>4__this = this;
|
|
if (!this.NOGFJFKJILL)
|
|
{
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
if (bfkefcfnnkh != 0)
|
|
{
|
|
if (pecghcgdcei == 0 || pecghcgdcei == 0 || pecghcgdcei == (ulong)1L)
|
|
{
|
|
}
|
|
uint num;
|
|
if (bfkefcfnnkh.<EILALLIKMBE>k__BackingField != (HECIICKPCDN)num)
|
|
{
|
|
int num2 = 0;
|
|
this.KJFEHOGAEJA("Setting permissions...", num2 != 0);
|
|
long <BHBCCAKKIMJ>k__BackingField = this.BFKEFCFNNKH.<BHBCCAKKIMJ>k__BackingField;
|
|
pecghcgdcei.inventionId = <BHBCCAKKIMJ>k__BackingField;
|
|
Action<AHEPPAEOLOD> action = delegate(AHEPPAEOLOD result)
|
|
{
|
|
JJONIELLJGH <BCMKPFMGHLE>k__BackingField;
|
|
CreationManager instance;
|
|
for (;;)
|
|
{
|
|
<BCMKPFMGHLE>k__BackingField = result.<BCMKPFMGHLE>k__BackingField;
|
|
if (<BCMKPFMGHLE>k__BackingField != JJONIELLJGH.Success)
|
|
{
|
|
break;
|
|
}
|
|
pecghcgdcei.<>4__this.KJFEHOGAEJA("Success updating permissions!", true);
|
|
instance = SingletonMonoBehaviour.Instance;
|
|
int num3 = 0;
|
|
if (instance != num3)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
if (<BCMKPFMGHLE>k__BackingField != JJONIELLJGH.DoesNotHavePermission)
|
|
{
|
|
}
|
|
MakerPenPaletteInventionSetupScreen <>4__this = pecghcgdcei.<>4__this;
|
|
string text = "Error updating permissions: " + "Permissions can't be more lenient than those of the original invention";
|
|
<>4__this.KJFEHOGAEJA(text, true);
|
|
NotificationManager instance2 = SingletonMonoBehaviour.Instance;
|
|
pecghcgdcei.<>4__this.MDLNCNGIEGF();
|
|
return;
|
|
Block_1:
|
|
PhotonView photonView = instance.photonView;
|
|
RPCActions.RPCAction<long> rpcaction = new RPCActions.RPCAction(instance.RpcInvalidateInventionCache);
|
|
long inventionId = pecghcgdcei.inventionId;
|
|
photonView.RpcOthers<long>(rpcaction, inventionId);
|
|
throw new NullReferenceException();
|
|
};
|
|
Action<string> action2 = delegate(string error)
|
|
{
|
|
MakerPenPaletteInventionSetupScreen <>4__this2 = pecghcgdcei.<>4__this;
|
|
string text2 = "Error updating permissions: " + error;
|
|
<>4__this2.KJFEHOGAEJA(text2, true);
|
|
NotificationManager instance3 = SingletonMonoBehaviour.Instance;
|
|
pecghcgdcei.<>4__this.MDLNCNGIEGF();
|
|
};
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
this.NOGFJFKJILL = false;
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCE5 RID: 52453 RVA: 0x0030ACB0 File Offset: 0x00308EB0
|
|
[Token(Token = "0x600CCE5")]
|
|
[Address(RVA = "0xF99940", Offset = "0xF98340", VA = "0x180F99940")]
|
|
private void HELBOGAPCKE()
|
|
{
|
|
IPromise<AHEPPAEOLOD> promise = BBHENFCNLAB.HELBOGAPCKE(this.BFKEFCFNNKH);
|
|
Action<AHEPPAEOLOD> action = new Action(this.KDPPIMBCEIJ);
|
|
if (MakerPenPaletteInventionSetupScreen.<>c.<>9__29_1 == 0)
|
|
{
|
|
MakerPenPaletteInventionSetupScreen.<>c.<>9__29_1 = delegate(string error)
|
|
{
|
|
NotificationManager instance = SingletonMonoBehaviour.Instance;
|
|
};
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCE6 RID: 52454 RVA: 0x0030ACF8 File Offset: 0x00308EF8
|
|
[Token(Token = "0x600CCE6")]
|
|
[Address(RVA = "0xF9A370", Offset = "0xF98D70", VA = "0x180F9A370")]
|
|
private void LKLJGNHNLIA()
|
|
{
|
|
MakerPenPaletteUI paletteMenuToolUI = this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI;
|
|
Action<KJBHGEIMGHP> action = new Action(this.KKKPCEDFGIO);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCE7 RID: 52455 RVA: 0x0030AD24 File Offset: 0x00308F24
|
|
[Token(Token = "0x600CCE7")]
|
|
[Address(RVA = "0xF99450", Offset = "0xF97E50", VA = "0x180F99450")]
|
|
private void EFGGLOJPOPP(int MACNIENMFHJ)
|
|
{
|
|
this.infoText.text = "Updating Invention Price...";
|
|
IPromise<AHEPPAEOLOD> promise = BBHENFCNLAB.HDFICFBNFOK(this.BFKEFCFNNKH.<BHBCCAKKIMJ>k__BackingField, MACNIENMFHJ);
|
|
Action<AHEPPAEOLOD> action = new Action(this.GJPLCBGJIGJ);
|
|
Action<string> action2 = new Action(this.JBCIJOCHHCM);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCE8 RID: 52456 RVA: 0x0030AD74 File Offset: 0x00308F74
|
|
[Token(Token = "0x600CCE8")]
|
|
[Address(RVA = "0xF99AC0", Offset = "0xF984C0", VA = "0x180F99AC0")]
|
|
private void HELJMPHCMKN()
|
|
{
|
|
StoreInventionDetailsScreen flowByType = global::Player.<EGKJPJKLEAI>k__BackingField.playerUI.<JNBAANDJIAD>k__BackingField.GetFlowByType<StoreInventionDetailsScreen>();
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
flowByType.ShowInventionDetails(bfkefcfnnkh);
|
|
WatchUI <JNBAANDJIAD>k__BackingField = global::Player.<EGKJPJKLEAI>k__BackingField.playerUI.<JNBAANDJIAD>k__BackingField;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
<JNBAANDJIAD>k__BackingField.PlayAttract(~NotificationManager.HLJEOKDOLPF.Text, num2, num);
|
|
}
|
|
|
|
// Token: 0x0600CCE9 RID: 52457 RVA: 0x0030ADCC File Offset: 0x00308FCC
|
|
[Token(Token = "0x600CCE9")]
|
|
[Address(RVA = "0xF9A970", Offset = "0xF99370", VA = "0x180F9A970")]
|
|
private HECIICKPCDN PLOKCEOGAOG()
|
|
{
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
HECIICKPCDN <EILALLIKMBE>k__BackingField = bfkefcfnnkh.<EILALLIKMBE>k__BackingField;
|
|
if (<EILALLIKMBE>k__BackingField == HECIICKPCDN.Unassigned)
|
|
{
|
|
HECIICKPCDN <BLHHHLKKGCN>k__BackingField = bfkefcfnnkh.<BLHHHLKKGCN>k__BackingField;
|
|
}
|
|
return <EILALLIKMBE>k__BackingField;
|
|
}
|
|
|
|
// Token: 0x0600CCEA RID: 52458 RVA: 0x0030ADFC File Offset: 0x00308FFC
|
|
[Token(Token = "0x600CCEA")]
|
|
[Address(RVA = "0xF99C40", Offset = "0xF98640", VA = "0x180F99C40")]
|
|
private int HGNECGILJGI(HECIICKPCDN FEIIKGIHEBN)
|
|
{
|
|
if (FEIIKGIHEBN == HECIICKPCDN.UseOnly)
|
|
{
|
|
return 0;
|
|
}
|
|
if (FEIIKGIHEBN == HECIICKPCDN.EditAndSave)
|
|
{
|
|
return 1;
|
|
}
|
|
return 2;
|
|
}
|
|
|
|
// Token: 0x0600CCEB RID: 52459 RVA: 0x0030AE18 File Offset: 0x00309018
|
|
[Token(Token = "0x600CCEB")]
|
|
[Address(RVA = "0xF98FE0", Offset = "0xF979E0", VA = "0x180F98FE0")]
|
|
private HECIICKPCDN AHIBJEPOEMG(float ONGBFDACHHG)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CCEB)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling HECIICKPCDN RecRoom.MakerPenPaletteInventionSetupScreen::AHIBJEPOEMG(System.Single)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_1:
|
|
brtrue(IL_00, cne:bool(ldloc:MakerPenPaletteInventionSetupScreen(this), conv.u8:uint64[exp:MakerPenPaletteInventionSetupScreen](ldc.i8:int64[exp:uint64](1))))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600CCEC RID: 52460 RVA: 0x0030AE34 File Offset: 0x00309034
|
|
[Token(Token = "0x600CCEC")]
|
|
[Address(RVA = "0xF99400", Offset = "0xF97E00", VA = "0x180F99400")]
|
|
private void DEHJAJLFHAC(HECIICKPCDN FEIIKGIHEBN)
|
|
{
|
|
if (FEIIKGIHEBN > HECIICKPCDN.UseOnly)
|
|
{
|
|
if (FEIIKGIHEBN == HECIICKPCDN.EditAndSave)
|
|
{
|
|
GameObject gameObject = this.saveAndEditDescriptionContainer;
|
|
this.NHMKCLGLAJJ(gameObject);
|
|
return;
|
|
}
|
|
if (FEIIKGIHEBN == HECIICKPCDN.Publish)
|
|
{
|
|
GameObject gameObject2 = this.publishDescriptionContainer;
|
|
this.NHMKCLGLAJJ(gameObject2);
|
|
return;
|
|
}
|
|
}
|
|
else if (FEIIKGIHEBN == HECIICKPCDN.LimitedOneUseOnly || FEIIKGIHEBN == HECIICKPCDN.UseOnly)
|
|
{
|
|
GameObject gameObject3 = this.useOnlyDescriptionContainer;
|
|
this.NHMKCLGLAJJ(gameObject3);
|
|
return;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCED RID: 52461 RVA: 0x0030AE88 File Offset: 0x00309088
|
|
[Token(Token = "0x600CCED")]
|
|
[Address(RVA = "0xF9A5C0", Offset = "0xF98FC0", VA = "0x180F9A5C0")]
|
|
private void NHMKCLGLAJJ(GameObject LGJGBEGJBNK)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
List<GameObject> bnbpofklcno = this.BNBPOFKLCNO;
|
|
List.Enumerator enumerator;
|
|
if (enumerator != 0)
|
|
{
|
|
bool flag = this == LGJGBEGJBNK;
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
}
|
|
|
|
// Token: 0x0600CCEE RID: 52462 RVA: 0x0030AEB8 File Offset: 0x003090B8
|
|
[Token(Token = "0x600CCEE")]
|
|
[Address(RVA = "0xF9AD10", Offset = "0xF99710", VA = "0x180F9AD10")]
|
|
public MakerPenPaletteInventionSetupScreen()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600CCEF RID: 52463 RVA: 0x0030AECC File Offset: 0x003090CC
|
|
[Token(Token = "0x600CCEF")]
|
|
[Address(RVA = "0xF9A170", Offset = "0xF98B70", VA = "0x180F9A170")]
|
|
[CompilerGenerated]
|
|
private void KJGICELEPGF(bool OPJFPKKHDAP)
|
|
{
|
|
this.editPriceContainer.gameObject.SetActive(OPJFPKKHDAP);
|
|
this.spacerElement.SetActive(OPJFPKKHDAP);
|
|
}
|
|
|
|
// Token: 0x0600CCF0 RID: 52464 RVA: 0x0030AEFC File Offset: 0x003090FC
|
|
[Token(Token = "0x600CCF0")]
|
|
[Address(RVA = "0xF997C0", Offset = "0xF981C0", VA = "0x180F997C0")]
|
|
[CompilerGenerated]
|
|
private void HDAAPEAGFEN(JPIJGHNNIDP MAOOLFEBOOD)
|
|
{
|
|
if (MAOOLFEBOOD == JPIJGHNNIDP.Affirmative)
|
|
{
|
|
IPromise<AHEPPAEOLOD> promise = BBHENFCNLAB.HELBOGAPCKE(this.BFKEFCFNNKH);
|
|
Action<AHEPPAEOLOD> action = new Action(this.KDPPIMBCEIJ);
|
|
if (MakerPenPaletteInventionSetupScreen.<>c.<>9__29_1 == 0)
|
|
{
|
|
MakerPenPaletteInventionSetupScreen.<>c.<>9__29_1 = delegate(string error)
|
|
{
|
|
NotificationManager instance = SingletonMonoBehaviour.Instance;
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCF1 RID: 52465 RVA: 0x0030AF4C File Offset: 0x0030914C
|
|
[Token(Token = "0x600CCF1")]
|
|
[Address(RVA = "0xF99DB0", Offset = "0xF987B0", VA = "0x180F99DB0")]
|
|
[CompilerGenerated]
|
|
private void KDPPIMBCEIJ(AHEPPAEOLOD GIAOBLMEMMI)
|
|
{
|
|
JJONIELLJGH <BCMKPFMGHLE>k__BackingField = GIAOBLMEMMI.<BCMKPFMGHLE>k__BackingField;
|
|
if (<BCMKPFMGHLE>k__BackingField != JJONIELLJGH.Success)
|
|
{
|
|
NotificationManager instance = SingletonMonoBehaviour.Instance;
|
|
return;
|
|
}
|
|
NotificationManager instance2 = SingletonMonoBehaviour.Instance;
|
|
int num = 0;
|
|
IDisposable disposable = instance2.Play(NotificationManager.IBIDFAOPIPC.Medium, "Successfully deleted", 3f, num, num);
|
|
this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI.Button_PopFlow();
|
|
this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI.Button_PopFlow();
|
|
}
|
|
|
|
// Token: 0x0600CCF2 RID: 52466 RVA: 0x0030AFB8 File Offset: 0x003091B8
|
|
[Token(Token = "0x600CCF2")]
|
|
[Address(RVA = "0xF9A1D0", Offset = "0xF98BD0", VA = "0x180F9A1D0")]
|
|
[CompilerGenerated]
|
|
private void KKKPCEDFGIO(KJBHGEIMGHP DOMPAJACKDC)
|
|
{
|
|
if (DOMPAJACKDC == (ulong)1L)
|
|
{
|
|
int? <LGKBIBJHNCN>k__BackingField = this.BFKEFCFNNKH.<LGKBIBJHNCN>k__BackingField;
|
|
if (<LGKBIBJHNCN>k__BackingField != 0)
|
|
{
|
|
bool flag = <LGKBIBJHNCN>k__BackingField == DOMPAJACKDC;
|
|
if (<LGKBIBJHNCN>k__BackingField != flag)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
this.infoText.text = "Updating Invention Price...";
|
|
long <BHBCCAKKIMJ>k__BackingField = this.BFKEFCFNNKH.<BHBCCAKKIMJ>k__BackingField;
|
|
Action<AHEPPAEOLOD> action = new Action(this.GJPLCBGJIGJ);
|
|
Action<string> action2 = new Action(this.JBCIJOCHHCM);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CCF3 RID: 52467 RVA: 0x0030B024 File Offset: 0x00309224
|
|
[Token(Token = "0x600CCF3")]
|
|
[Address(RVA = "0xF99580", Offset = "0xF97F80", VA = "0x180F99580")]
|
|
[CompilerGenerated]
|
|
private void GJPLCBGJIGJ(AHEPPAEOLOD HHHAIOABAMD)
|
|
{
|
|
JJONIELLJGH <BCMKPFMGHLE>k__BackingField = HHHAIOABAMD.<BCMKPFMGHLE>k__BackingField;
|
|
TextMeshProUGUI textMeshProUGUI = this.infoText;
|
|
if (<BCMKPFMGHLE>k__BackingField != JJONIELLJGH.Success)
|
|
{
|
|
string text2;
|
|
string text = string.Format("Unable to update invention price: {0}", text2);
|
|
textMeshProUGUI.text = text;
|
|
return;
|
|
}
|
|
textMeshProUGUI.text = "Invention price updated!";
|
|
StoreInventionDetailsScreen flowByType = global::Player.<EGKJPJKLEAI>k__BackingField.playerUI.<JNBAANDJIAD>k__BackingField.GetFlowByType<StoreInventionDetailsScreen>();
|
|
OBBBPCBIMME bfkefcfnnkh = this.BFKEFCFNNKH;
|
|
flowByType.ShowInventionDetails(bfkefcfnnkh);
|
|
WatchUI <JNBAANDJIAD>k__BackingField = global::Player.<EGKJPJKLEAI>k__BackingField.playerUI.<JNBAANDJIAD>k__BackingField;
|
|
int num = 0;
|
|
int num2 = 0;
|
|
<JNBAANDJIAD>k__BackingField.PlayAttract(~NotificationManager.HLJEOKDOLPF.Text, num2, num);
|
|
}
|
|
|
|
// Token: 0x0600CCF4 RID: 52468 RVA: 0x0030B0B8 File Offset: 0x003092B8
|
|
[Token(Token = "0x600CCF4")]
|
|
[Address(RVA = "0xF99D30", Offset = "0xF98730", VA = "0x180F99D30")]
|
|
[CompilerGenerated]
|
|
private void JBCIJOCHHCM(string MOPOMPHBHKF)
|
|
{
|
|
TextMeshProUGUI textMeshProUGUI = this.infoText;
|
|
if (MOPOMPHBHKF == 0)
|
|
{
|
|
}
|
|
string text = string.Format("Unable to update invention price: {0}", MOPOMPHBHKF);
|
|
textMeshProUGUI.text = text;
|
|
}
|
|
|
|
// Token: 0x04008A17 RID: 35351
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4008A17")]
|
|
[SerializeField]
|
|
private Button3D updateInventionButton;
|
|
|
|
// Token: 0x04008A18 RID: 35352
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA0")]
|
|
[Token(Token = "0x4008A18")]
|
|
[SerializeField]
|
|
private Button3D deleteInventionButton;
|
|
|
|
// Token: 0x04008A19 RID: 35353
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xA8")]
|
|
[Token(Token = "0x4008A19")]
|
|
[SerializeField]
|
|
private GameObject spacerElement;
|
|
|
|
// Token: 0x04008A1A RID: 35354
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x4008A1A")]
|
|
[SerializeField]
|
|
private GameObject editPriceContainer;
|
|
|
|
// Token: 0x04008A1B RID: 35355
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x4008A1B")]
|
|
[SerializeField]
|
|
private Button3D editPriceButton;
|
|
|
|
// Token: 0x04008A1C RID: 35356
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x4008A1C")]
|
|
[SerializeField]
|
|
private ChooseInventionPriceDialog chooseInventionPriceDialog;
|
|
|
|
// Token: 0x04008A1D RID: 35357
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x4008A1D")]
|
|
[SerializeField]
|
|
private Slider3D permissionsSlider;
|
|
|
|
// Token: 0x04008A1E RID: 35358
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x4008A1E")]
|
|
[SerializeField]
|
|
private TextMeshProUGUI permissionDescriptionText;
|
|
|
|
// Token: 0x04008A1F RID: 35359
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x4008A1F")]
|
|
[SerializeField]
|
|
private TextMeshProUGUI infoText;
|
|
|
|
// Token: 0x04008A20 RID: 35360
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x4008A20")]
|
|
[SerializeField]
|
|
[Header("Description strings")]
|
|
private GameObject useOnlyDescriptionContainer;
|
|
|
|
// Token: 0x04008A21 RID: 35361
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xE8")]
|
|
[Token(Token = "0x4008A21")]
|
|
[SerializeField]
|
|
private GameObject saveAndEditDescriptionContainer;
|
|
|
|
// Token: 0x04008A22 RID: 35362
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xF0")]
|
|
[Token(Token = "0x4008A22")]
|
|
[SerializeField]
|
|
private GameObject publishDescriptionContainer;
|
|
|
|
// Token: 0x04008A23 RID: 35363
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0xF8")]
|
|
[Token(Token = "0x4008A23")]
|
|
private OBBBPCBIMME BFKEFCFNNKH;
|
|
|
|
// Token: 0x04008A24 RID: 35364
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x100")]
|
|
[Token(Token = "0x4008A24")]
|
|
private bool NOGFJFKJILL;
|
|
|
|
// Token: 0x04008A25 RID: 35365
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x108")]
|
|
[Token(Token = "0x4008A25")]
|
|
private List<GameObject> BNBPOFKLCNO;
|
|
|
|
// Token: 0x02001DAC RID: 7596
|
|
[Token(Token = "0x2001DAC")]
|
|
[CompilerGenerated]
|
|
private sealed class PECGHCGDCEI
|
|
{
|
|
// Token: 0x0600CCF9 RID: 52473 RVA: 0x0030B19C File Offset: 0x0030939C
|
|
[Token(Token = "0x600CCF9")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public PECGHCGDCEI()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600CCFA RID: 52474 RVA: 0x0030B1B0 File Offset: 0x003093B0
|
|
[Token(Token = "0x600CCFA")]
|
|
[Address(RVA = "0xFA05B0", Offset = "0xF9EFB0", VA = "0x180FA05B0")]
|
|
internal void <Slider_Permission>b__0(AHEPPAEOLOD result)
|
|
{
|
|
JJONIELLJGH <BCMKPFMGHLE>k__BackingField;
|
|
CreationManager instance;
|
|
for (;;)
|
|
{
|
|
<BCMKPFMGHLE>k__BackingField = result.<BCMKPFMGHLE>k__BackingField;
|
|
if (<BCMKPFMGHLE>k__BackingField != JJONIELLJGH.Success)
|
|
{
|
|
break;
|
|
}
|
|
this.<>4__this.KJFEHOGAEJA("Success updating permissions!", true);
|
|
instance = SingletonMonoBehaviour.Instance;
|
|
int num = 0;
|
|
if (instance != num)
|
|
{
|
|
goto Block_1;
|
|
}
|
|
}
|
|
if (<BCMKPFMGHLE>k__BackingField != JJONIELLJGH.DoesNotHavePermission)
|
|
{
|
|
}
|
|
MakerPenPaletteInventionSetupScreen makerPenPaletteInventionSetupScreen = this.<>4__this;
|
|
string text = "Error updating permissions: " + "Permissions can't be more lenient than those of the original invention";
|
|
makerPenPaletteInventionSetupScreen.KJFEHOGAEJA(text, true);
|
|
NotificationManager instance2 = SingletonMonoBehaviour.Instance;
|
|
this.<>4__this.MDLNCNGIEGF();
|
|
return;
|
|
Block_1:
|
|
PhotonView photonView = instance.photonView;
|
|
RPCActions.RPCAction<long> rpcaction = new RPCActions.RPCAction(instance.RpcInvalidateInventionCache);
|
|
long num2 = this.inventionId;
|
|
photonView.RpcOthers<long>(rpcaction, num2);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CCFB RID: 52475 RVA: 0x0030B260 File Offset: 0x00309460
|
|
[Token(Token = "0x600CCFB")]
|
|
[Address(RVA = "0xFA07D0", Offset = "0xF9F1D0", VA = "0x180FA07D0")]
|
|
internal void <Slider_Permission>b__1(string error)
|
|
{
|
|
MakerPenPaletteInventionSetupScreen makerPenPaletteInventionSetupScreen = this.<>4__this;
|
|
string text = "Error updating permissions: " + error;
|
|
makerPenPaletteInventionSetupScreen.KJFEHOGAEJA(text, true);
|
|
NotificationManager instance = SingletonMonoBehaviour.Instance;
|
|
this.<>4__this.MDLNCNGIEGF();
|
|
}
|
|
|
|
// Token: 0x04008A29 RID: 35369
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008A29")]
|
|
public MakerPenPaletteInventionSetupScreen <>4__this;
|
|
|
|
// Token: 0x04008A2A RID: 35370
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008A2A")]
|
|
public long inventionId;
|
|
}
|
|
}
|
|
}
|