182 lines
5.4 KiB
C#
182 lines
5.4 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: 0x02001198 RID: 4504
|
|
[Token(Token = "0x2001198")]
|
|
public class CreationObjectSettingColorUIControl : CreationObjectSettingPropertyUIControl<int, CreationObjectSettingColorUIControl>
|
|
{
|
|
// Token: 0x17001129 RID: 4393
|
|
// (get) Token: 0x060064CA RID: 25802 RVA: 0x0015DA7C File Offset: 0x0015BC7C
|
|
// (set) Token: 0x060064CB RID: 25803 RVA: 0x0015DA90 File Offset: 0x0015BC90
|
|
[Token(Token = "0x17001129")]
|
|
public Color AMKHNMFHNCN
|
|
{
|
|
[Token(Token = "0x60064CA")]
|
|
[Address(RVA = "0x1A5B5E0", Offset = "0x1A5A5E0", VA = "0x181A5B5E0")]
|
|
get
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
[Token(Token = "0x60064CB")]
|
|
[Address(RVA = "0x1A5B630", Offset = "0x1A5A630", VA = "0x181A5B630")]
|
|
set
|
|
{
|
|
Color color = this.inputButton.m_TargetGraphic.color;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060064CC RID: 25804 RVA: 0x0015DAB4 File Offset: 0x0015BCB4
|
|
[Token(Token = "0x60064CC")]
|
|
[Address(RVA = "0x1A5B4D0", Offset = "0x1A5A4D0", VA = "0x181A5B4D0", 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: 0x060064CD RID: 25805 RVA: 0x0015DAEC File Offset: 0x0015BCEC
|
|
[Token(Token = "0x60064CD")]
|
|
[Address(RVA = "0x1A5B330", Offset = "0x1A5A330", VA = "0x181A5B330")]
|
|
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;
|
|
this.UpdateControl();
|
|
};
|
|
int num2 = 0;
|
|
num2 += num2;
|
|
num2++;
|
|
PMGCJEPKFOF<ColorInputUIDialog> pmgcjepkfof2;
|
|
PMGCJEPKFOF<ColorInputUIDialog> pmgcjepkfof = pmgcjepkfof2.OHLPJBFCABI(action);
|
|
}
|
|
|
|
// Token: 0x060064CE RID: 25806 RVA: 0x0015DB5C File Offset: 0x0015BD5C
|
|
[Token(Token = "0x60064CE")]
|
|
[Address(RVA = "0x1A5B590", Offset = "0x1A5A590", VA = "0x181A5B590")]
|
|
public CreationObjectSettingColorUIControl()
|
|
{
|
|
}
|
|
|
|
// Token: 0x040041E8 RID: 16872
|
|
[FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40041E8")]
|
|
private string NIGMPBFGNGN = "Ok";
|
|
|
|
// Token: 0x040041E9 RID: 16873
|
|
[FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x40041E9")]
|
|
private string MOLCHJEFGOG = "Choose Color";
|
|
|
|
// Token: 0x040041EA RID: 16874
|
|
[FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x40041EA")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.SelfAndChildren, false, false, false)]
|
|
private Button3D inputButton;
|
|
|
|
// Token: 0x040041EB RID: 16875
|
|
[FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x40041EB")]
|
|
public Action<int> PropertyPreview;
|
|
|
|
// Token: 0x040041EC RID: 16876
|
|
[FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x40041EC")]
|
|
public Action<int> OnCancel;
|
|
|
|
// Token: 0x040041ED RID: 16877
|
|
[FieldOffset(Offset = "0x98")]
|
|
[Token(Token = "0x40041ED")]
|
|
[SerializeField]
|
|
private ColorInputUIDialog colorInputDialogPrefab;
|
|
|
|
// Token: 0x02001199 RID: 4505
|
|
[Token(Token = "0x2001199")]
|
|
[CompilerGenerated]
|
|
private sealed class LFNDNCCBEOF
|
|
{
|
|
// Token: 0x060064CF RID: 25807 RVA: 0x0015DB88 File Offset: 0x0015BD88
|
|
[Token(Token = "0x60064CF")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public LFNDNCCBEOF()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060064D0 RID: 25808 RVA: 0x0015DB9C File Offset: 0x0015BD9C
|
|
[Token(Token = "0x60064D0")]
|
|
[Address(RVA = "0x1A5DB70", Offset = "0x1A5CB70", VA = "0x181A5DB70")]
|
|
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: 0x060064D1 RID: 25809 RVA: 0x0015DBD0 File Offset: 0x0015BDD0
|
|
[Token(Token = "0x60064D1")]
|
|
[Address(RVA = "0x1A5DBD0", Offset = "0x1A5CBD0", VA = "0x181A5DBD0")]
|
|
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;
|
|
this.<>4__this.UpdateControl();
|
|
}
|
|
|
|
// Token: 0x040041EE RID: 16878
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40041EE")]
|
|
public CreationObjectSettingColorUIControl <>4__this;
|
|
|
|
// Token: 0x040041EF RID: 16879
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40041EF")]
|
|
public int prevColor;
|
|
}
|
|
}
|
|
}
|