181 lines
5.6 KiB
C#
181 lines
5.6 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using AGUI.StackedUI.Dialog;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.AGUI.ToolUIs;
|
|
using RecRoom.Async;
|
|
using UnityEngine;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x02001A67 RID: 6759
|
|
[Token(Token = "0x2001A67")]
|
|
[StructLayout(3)]
|
|
public class CreationObjectSettingColorUIControl : CreationObjectSettingPropertyUIControl<int, CreationObjectSettingColorUIControl>
|
|
{
|
|
// Token: 0x17001D7B RID: 7547
|
|
// (get) Token: 0x0600B5D8 RID: 46552 RVA: 0x002AA9C8 File Offset: 0x002A8BC8
|
|
// (set) Token: 0x0600B5D9 RID: 46553 RVA: 0x002AA9DC File Offset: 0x002A8BDC
|
|
[Token(Token = "0x17001D7B")]
|
|
public Color AMKHNMFHNCN
|
|
{
|
|
[Token(Token = "0x600B5D8")]
|
|
[Address(RVA = "0x11910E0", Offset = "0x118FAE0", VA = "0x1811910E0")]
|
|
get
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
[Token(Token = "0x600B5D9")]
|
|
[Address(RVA = "0x1191130", Offset = "0x118FB30", VA = "0x181191130")]
|
|
set
|
|
{
|
|
Color color = this.inputButton.m_TargetGraphic.color;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B5DA RID: 46554 RVA: 0x002AAA00 File Offset: 0x002A8C00
|
|
[Token(Token = "0x600B5DA")]
|
|
[Address(RVA = "0x1190FD0", Offset = "0x118F9D0", VA = "0x181190FD0", Slot = "6")]
|
|
protected override void HNFFKJABKNO()
|
|
{
|
|
base.HNFFKJABKNO();
|
|
if (this.PropertyValueText != 0)
|
|
{
|
|
bool flag;
|
|
this.inputButton.interactable = flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600B5DB RID: 46555 RVA: 0x002AAA30 File Offset: 0x002A8C30
|
|
[Token(Token = "0x600B5DB")]
|
|
[Address(RVA = "0x1190E30", Offset = "0x118F830", VA = "0x181190E30")]
|
|
public void Button_Input()
|
|
{
|
|
MakerPenPaletteUI paletteMenuToolUI = this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI;
|
|
int num;
|
|
int prevColor = num;
|
|
Func<ColorInputUIDialog, IPromise<ColorInputUIDialog.NMLNGBGBKEN>> func = delegate(ColorInputUIDialog dialog)
|
|
{
|
|
Action<int> propertyPreview = this.PropertyPreview;
|
|
dialog.Preview = propertyPreview;
|
|
CreationObjectSettingColorUIControl <>4__this = this;
|
|
return dialog.ShowDialog();
|
|
};
|
|
Action<ColorInputUIDialog.NMLNGBGBKEN> action = delegate(ColorInputUIDialog.NMLNGBGBKEN r)
|
|
{
|
|
if (r != (ulong)1L)
|
|
{
|
|
if (r == 0)
|
|
{
|
|
Action<int> onCancel = this.OnCancel;
|
|
int prevColor2 = prevColor;
|
|
onCancel(prevColor2);
|
|
}
|
|
return;
|
|
}
|
|
Color color = this.inputButton.m_TargetGraphic.color;
|
|
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
|
};
|
|
int num2 = 0;
|
|
num2 += num2;
|
|
num2++;
|
|
IPromise<ColorInputUIDialog> promise2;
|
|
IPromise<ColorInputUIDialog> promise = promise2.Then(action);
|
|
}
|
|
|
|
// Token: 0x0600B5DC RID: 46556 RVA: 0x002AAAA0 File Offset: 0x002A8CA0
|
|
[Token(Token = "0x600B5DC")]
|
|
[Address(RVA = "0x1191090", Offset = "0x118FA90", VA = "0x181191090")]
|
|
public CreationObjectSettingColorUIControl()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400775B RID: 30555
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x400775B")]
|
|
private string NIGMPBFGNGN = "Ok";
|
|
|
|
// Token: 0x0400775C RID: 30556
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400775C")]
|
|
private string MOLCHJEFGOG = "Choose Color";
|
|
|
|
// Token: 0x0400775D RID: 30557
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400775D")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.SelfAndChildren, false, false)]
|
|
private Button3D inputButton;
|
|
|
|
// Token: 0x0400775E RID: 30558
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400775E")]
|
|
public Action<int> PropertyPreview;
|
|
|
|
// Token: 0x0400775F RID: 30559
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x400775F")]
|
|
public Action<int> OnCancel;
|
|
|
|
// Token: 0x04007760 RID: 30560
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4007760")]
|
|
[SerializeField]
|
|
private ColorInputUIDialog colorInputDialogPrefab;
|
|
|
|
// Token: 0x02001A68 RID: 6760
|
|
[Token(Token = "0x2001A68")]
|
|
[CompilerGenerated]
|
|
private sealed class LFNDNCCBEOF
|
|
{
|
|
// Token: 0x0600B5DD RID: 46557 RVA: 0x002AAACC File Offset: 0x002A8CCC
|
|
[Token(Token = "0x600B5DD")]
|
|
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
|
public LFNDNCCBEOF()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600B5DE RID: 46558 RVA: 0x002AAAE0 File Offset: 0x002A8CE0
|
|
[Token(Token = "0x600B5DE")]
|
|
[Address(RVA = "0x1196C40", Offset = "0x1195640", VA = "0x181196C40")]
|
|
internal IPromise<ColorInputUIDialog.NMLNGBGBKEN> <Button_Input>b__0(ColorInputUIDialog dialog)
|
|
{
|
|
Action<int> propertyPreview = this.<>4__this.PropertyPreview;
|
|
dialog.Preview = propertyPreview;
|
|
CreationObjectSettingColorUIControl creationObjectSettingColorUIControl = this.<>4__this;
|
|
return dialog.ShowDialog();
|
|
}
|
|
|
|
// Token: 0x0600B5DF RID: 46559 RVA: 0x002AAB14 File Offset: 0x002A8D14
|
|
[Token(Token = "0x600B5DF")]
|
|
[Address(RVA = "0x1196CA0", Offset = "0x11956A0", VA = "0x181196CA0")]
|
|
internal void <Button_Input>b__1(ColorInputUIDialog.NMLNGBGBKEN r)
|
|
{
|
|
if (r != (ulong)1L)
|
|
{
|
|
if (r == 0)
|
|
{
|
|
Action<int> onCancel = this.<>4__this.OnCancel;
|
|
int num = this.prevColor;
|
|
onCancel(num);
|
|
}
|
|
return;
|
|
}
|
|
Color color = this.<>4__this.inputButton.m_TargetGraphic.color;
|
|
bool isCompleted = ((IAsyncResult)this.<>4__this).IsCompleted;
|
|
}
|
|
|
|
// Token: 0x04007761 RID: 30561
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007761")]
|
|
public CreationObjectSettingColorUIControl <>4__this;
|
|
|
|
// Token: 0x04007762 RID: 30562
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007762")]
|
|
public int prevColor;
|
|
}
|
|
}
|
|
}
|