182 lines
5.5 KiB
C#
182 lines
5.5 KiB
C#
using System;
|
|
using System.Runtime.CompilerServices;
|
|
using AGUI.StackedUI.Dialog;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.AGUI.ToolUIs;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x020010CB RID: 4299
|
|
[Token(Token = "0x20010CB")]
|
|
public class CreationObjectSettingColorUIControl : CreationObjectSettingPropertyUIControl<int, CreationObjectSettingColorUIControl>
|
|
{
|
|
// Token: 0x170010B1 RID: 4273
|
|
// (get) Token: 0x06006174 RID: 24948 RVA: 0x00155CAC File Offset: 0x00153EAC
|
|
// (set) Token: 0x06006175 RID: 24949 RVA: 0x00155CC0 File Offset: 0x00153EC0
|
|
[Token(Token = "0x170010B1")]
|
|
public Color AMKHNMFHNCN
|
|
{
|
|
[Token(Token = "0x6006174")]
|
|
[Address(RVA = "0xF3D950", Offset = "0xF3C750", VA = "0x180F3D950")]
|
|
get
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
[Token(Token = "0x6006175")]
|
|
[Address(RVA = "0xF3D9A0", Offset = "0xF3C7A0", VA = "0x180F3D9A0")]
|
|
set
|
|
{
|
|
Color color = this.inputButton.m_TargetGraphic.color;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006176 RID: 24950 RVA: 0x00155CE4 File Offset: 0x00153EE4
|
|
[Token(Token = "0x6006176")]
|
|
[Address(RVA = "0xF3D840", Offset = "0xF3C640", VA = "0x180F3D840", Slot = "6")]
|
|
protected override void HNFFKJABKNO()
|
|
{
|
|
base.HNFFKJABKNO();
|
|
TextMeshProUGUI propertyValueText = this.PropertyValueText;
|
|
string text;
|
|
PLDMAFINLJO.FANDNIHFMNM(propertyValueText, text);
|
|
if (propertyValueText != 0)
|
|
{
|
|
bool flag;
|
|
this.inputButton.interactable = flag;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06006177 RID: 24951 RVA: 0x00155D1C File Offset: 0x00153F1C
|
|
[Token(Token = "0x6006177")]
|
|
[Address(RVA = "0xF3D6A0", Offset = "0xF3C4A0", VA = "0x180F3D6A0")]
|
|
public void Button_Input()
|
|
{
|
|
MakerPenPaletteUI paletteMenuToolUI = this.<LJOGMLBAABG>k__BackingField.KNDLGPOKIOI;
|
|
int num;
|
|
int prevColor = num;
|
|
Func<ColorInputUIDialog, PMGCJEPKFOF<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++;
|
|
PMGCJEPKFOF<ColorInputUIDialog> pmgcjepkfof2;
|
|
PMGCJEPKFOF<ColorInputUIDialog> pmgcjepkfof = pmgcjepkfof2.OHLPJBFCABI(action);
|
|
}
|
|
|
|
// Token: 0x06006178 RID: 24952 RVA: 0x00155D8C File Offset: 0x00153F8C
|
|
[Token(Token = "0x6006178")]
|
|
[Address(RVA = "0xF3D900", Offset = "0xF3C700", VA = "0x180F3D900")]
|
|
public CreationObjectSettingColorUIControl()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04004074 RID: 16500
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4004074")]
|
|
private string NIGMPBFGNGN = "Ok";
|
|
|
|
// Token: 0x04004075 RID: 16501
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x4004075")]
|
|
private string MOLCHJEFGOG = "Choose Color";
|
|
|
|
// Token: 0x04004076 RID: 16502
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x4004076")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.SelfAndChildren, false, false, false)]
|
|
private Button3D inputButton;
|
|
|
|
// Token: 0x04004077 RID: 16503
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x4004077")]
|
|
public Action<int> PropertyPreview;
|
|
|
|
// Token: 0x04004078 RID: 16504
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x4004078")]
|
|
public Action<int> OnCancel;
|
|
|
|
// Token: 0x04004079 RID: 16505
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x4004079")]
|
|
[SerializeField]
|
|
private ColorInputUIDialog colorInputDialogPrefab;
|
|
|
|
// Token: 0x020010CC RID: 4300
|
|
[Token(Token = "0x20010CC")]
|
|
[CompilerGenerated]
|
|
private sealed class LFNDNCCBEOF
|
|
{
|
|
// Token: 0x06006179 RID: 24953 RVA: 0x00155DB8 File Offset: 0x00153FB8
|
|
[Token(Token = "0x6006179")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public LFNDNCCBEOF()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0600617A RID: 24954 RVA: 0x00155DCC File Offset: 0x00153FCC
|
|
[Token(Token = "0x600617A")]
|
|
[Address(RVA = "0xF40200", Offset = "0xF3F000", VA = "0x180F40200")]
|
|
internal PMGCJEPKFOF<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: 0x0600617B RID: 24955 RVA: 0x00155E00 File Offset: 0x00154000
|
|
[Token(Token = "0x600617B")]
|
|
[Address(RVA = "0xF40260", Offset = "0xF3F060", VA = "0x180F40260")]
|
|
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: 0x0400407A RID: 16506
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400407A")]
|
|
public CreationObjectSettingColorUIControl <>4__this;
|
|
|
|
// Token: 0x0400407B RID: 16507
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400407B")]
|
|
public int prevColor;
|
|
}
|
|
}
|
|
}
|