337 lines
11 KiB
C#
337 lines
11 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using AGUI;
|
|
using AGUI.StackedUI;
|
|
using Cpp2IlInjected;
|
|
using RecRoom.Core.Creation;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
using UnityEngine.UI;
|
|
|
|
namespace RecRoom.AGUI.ToolUIs
|
|
{
|
|
// Token: 0x020028E9 RID: 10473
|
|
[Token(Token = "0x20028E9")]
|
|
public class ClipboardPagedGrid : RecyclerPagedGrid<JKLCBEFAFDL, ClipboardButton>
|
|
{
|
|
// Token: 0x06011924 RID: 71972 RVA: 0x003FF494 File Offset: 0x003FD694
|
|
[Token(Token = "0x6011924")]
|
|
[Address(RVA = "0xD5C160", Offset = "0xD5AF60", VA = "0x180D5C160")]
|
|
private void OnDisable()
|
|
{
|
|
LILBNLDMLIC objectClipboard = CreationContext.ObjectClipboard;
|
|
Action action = new Action(this.HPFNKBHGACP);
|
|
objectClipboard.EPJALBAEHGH -= action;
|
|
}
|
|
|
|
// Token: 0x06011925 RID: 71973 RVA: 0x003FF4C4 File Offset: 0x003FD6C4
|
|
[Token(Token = "0x6011925")]
|
|
[Address(RVA = "0xD5C240", Offset = "0xD5B040", VA = "0x180D5C240")]
|
|
private void OnEnable()
|
|
{
|
|
LILBNLDMLIC objectClipboard = CreationContext.ObjectClipboard;
|
|
Action action = new Action(this.HPFNKBHGACP);
|
|
objectClipboard.EPJALBAEHGH += action;
|
|
JKLCBEFAFDL filmdiflbim = this.FILMDIFLBIM;
|
|
this.Refresh(filmdiflbim);
|
|
}
|
|
|
|
// Token: 0x06011926 RID: 71974 RVA: 0x003FF500 File Offset: 0x003FD700
|
|
[Token(Token = "0x6011926")]
|
|
[Address(RVA = "0xD5C6C0", Offset = "0xD5B4C0", VA = "0x180D5C6C0")]
|
|
private void Start()
|
|
{
|
|
Action action = new Action(this.EMADFBOLIOK);
|
|
base.HFDCMNJHLPF += action;
|
|
}
|
|
|
|
// Token: 0x06011927 RID: 71975 RVA: 0x003FF524 File Offset: 0x003FD724
|
|
[Token(Token = "0x6011927")]
|
|
[Address(RVA = "0xD5C330", Offset = "0xD5B130", VA = "0x180D5C330")]
|
|
public void Refresh(JKLCBEFAFDL EGJJHJHIPCF)
|
|
{
|
|
int kdpehphodcd = this.KDPEHPHODCD;
|
|
this.Awake();
|
|
LILBNLDMLIC objectClipboard = CreationContext.ObjectClipboard;
|
|
if (objectClipboard != 0)
|
|
{
|
|
IReadOnlyCollection<JKLCBEFAFDL> readOnlyCollection = objectClipboard.KHIILGKMJFJ();
|
|
if (readOnlyCollection != 0 && readOnlyCollection != 0)
|
|
{
|
|
this.SetSnapshots(readOnlyCollection, EGJJHJHIPCF);
|
|
base.SetCurrentPage(kdpehphodcd, true);
|
|
}
|
|
}
|
|
JKLCBEFAFDL[] array = Array.Empty<JKLCBEFAFDL>();
|
|
int num = 0;
|
|
this.SetSnapshots(array, num);
|
|
}
|
|
|
|
// Token: 0x06011928 RID: 71976 RVA: 0x003FF57C File Offset: 0x003FD77C
|
|
[Token(Token = "0x6011928")]
|
|
[Address(RVA = "0xD5C440", Offset = "0xD5B240", VA = "0x180D5C440")]
|
|
public void SetSnapshots(IEnumerable<JKLCBEFAFDL> FIFDGOGINAP, JKLCBEFAFDL EGJJHJHIPCF)
|
|
{
|
|
if (Enumerable.Count<JKLCBEFAFDL>(FIFDGOGINAP) == 0)
|
|
{
|
|
PLDMAFINLJO.FANDNIHFMNM(this.emptyDisplayText, "Your Clipboard is empty!\n\nUse the context menu on the Select Tool to Copy");
|
|
}
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
int num = 0;
|
|
this.FILMDIFLBIM = num;
|
|
this.PLCPLHIFPGG = num;
|
|
this.JCHFAGNJANM = num != 0;
|
|
Func<RadioButton3D, bool> func;
|
|
if (ClipboardPagedGrid.<>c.<>9__13_0 == 0)
|
|
{
|
|
func = delegate(RadioButton3D b)
|
|
{
|
|
};
|
|
ClipboardPagedGrid.<>c.<>9__13_0 = func;
|
|
}
|
|
radioGroup3D.SetSelectionStates(func);
|
|
bool flag = Enumerable.Contains<JKLCBEFAFDL>(FIFDGOGINAP, EGJJHJHIPCF);
|
|
this.FILMDIFLBIM = EGJJHJHIPCF;
|
|
bool flag2 = this.NBMNLHLDOGF();
|
|
if (this.FILMDIFLBIM != num)
|
|
{
|
|
Func<ClipboardButton, bool> func2 = new Func(this.NEFDBDICEEI);
|
|
ClipboardButton clipboardButton;
|
|
RadioButton3D selectSnapshotButton;
|
|
if (clipboardButton != 0)
|
|
{
|
|
selectSnapshotButton = clipboardButton.selectSnapshotButton;
|
|
}
|
|
this.PLCPLHIFPGG = selectSnapshotButton;
|
|
}
|
|
RadioGroup3D radioGroup3D2 = this.radioGroup;
|
|
Func<RadioButton3D, bool> func3 = new Func(this.FFBOLGCIHLH);
|
|
radioGroup3D2.SetSelectionStates(func3);
|
|
this.JCHFAGNJANM = false;
|
|
}
|
|
|
|
// Token: 0x06011929 RID: 71977 RVA: 0x003FF658 File Offset: 0x003FD858
|
|
[Token(Token = "0x6011929")]
|
|
[Address(RVA = "0xD5BD40", Offset = "0xD5AB40", VA = "0x180D5BD40", Slot = "15")]
|
|
protected override void BGIECEPGDBE(JKLCBEFAFDL GFIABAGMEEA, ClipboardButton LKDLEHGHCAD, int CKOIAKLOKMM)
|
|
{
|
|
if (GFIABAGMEEA == this.FILMDIFLBIM)
|
|
{
|
|
this.JCHFAGNJANM = true;
|
|
RadioButton3D selectSnapshotButton = LKDLEHGHCAD.selectSnapshotButton;
|
|
this.PLCPLHIFPGG = selectSnapshotButton;
|
|
}
|
|
RawImage previewImage = LKDLEHGHCAD.previewImage;
|
|
int num = 0;
|
|
LKDLEHGHCAD.<INLAPILMOGC>k__BackingField = GFIABAGMEEA;
|
|
if (GFIABAGMEEA != 0)
|
|
{
|
|
}
|
|
previewImage.texture = num;
|
|
TMP_Text snapshotNameTMP = LKDLEHGHCAD.snapshotNameTMP;
|
|
string text;
|
|
if (GFIABAGMEEA != 0)
|
|
{
|
|
text = GFIABAGMEEA.LHABEEAAPKH;
|
|
}
|
|
PLDMAFINLJO.FANDNIHFMNM(snapshotNameTMP, text);
|
|
}
|
|
|
|
// Token: 0x0601192A RID: 71978 RVA: 0x003FF6C0 File Offset: 0x003FD8C0
|
|
[Token(Token = "0x601192A")]
|
|
[Address(RVA = "0xD5BDE0", Offset = "0xD5ABE0", VA = "0x180D5BDE0", Slot = "14")]
|
|
protected override void EHDPGHCPKDB(ClipboardButton LKDLEHGHCAD)
|
|
{
|
|
ClipboardButton button = LKDLEHGHCAD;
|
|
base.EHDPGHCPKDB(LKDLEHGHCAD);
|
|
if (this.OnSnapshotSelectedEvent != (ulong)0L)
|
|
{
|
|
RadioButton3D.OnRadioButton3DClick onClick = button.selectSnapshotButton.OnClick;
|
|
UnityAction<RadioButton3D> unityAction = delegate(RadioButton3D isOn)
|
|
{
|
|
if (isOn)
|
|
{
|
|
ClipboardButton button2 = button;
|
|
ClipboardPagedGrid <>4__this = this;
|
|
JKLCBEFAFDL <INLAPILMOGC>k__BackingField = button2.<INLAPILMOGC>k__BackingField;
|
|
<>4__this.FILMDIFLBIM = <INLAPILMOGC>k__BackingField;
|
|
ClipboardButton button3 = button;
|
|
ClipboardPagedGrid <>4__this2 = this;
|
|
RadioButton3D selectSnapshotButton2 = button3.selectSnapshotButton;
|
|
<>4__this2.PLCPLHIFPGG = selectSnapshotButton2;
|
|
}
|
|
ClipboardPagedGrid <>4__this3 = this;
|
|
ClipboardButton button4 = button;
|
|
ClipboardPagedGrid.SnapshotSelectedEvent onSnapshotSelectedEvent = <>4__this3.OnSnapshotSelectedEvent;
|
|
JKLCBEFAFDL <INLAPILMOGC>k__BackingField2 = button4.<INLAPILMOGC>k__BackingField;
|
|
onSnapshotSelectedEvent.Invoke(<INLAPILMOGC>k__BackingField2);
|
|
};
|
|
onClick.AddListener(unityAction);
|
|
}
|
|
ClipboardButton button5 = button;
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
RadioButton3D selectSnapshotButton = button5.selectSnapshotButton;
|
|
radioGroup3D.AddButton(selectSnapshotButton);
|
|
}
|
|
|
|
// Token: 0x0601192B RID: 71979 RVA: 0x003FF740 File Offset: 0x003FD940
|
|
[Token(Token = "0x601192B")]
|
|
[Address(RVA = "0xD5C120", Offset = "0xD5AF20", VA = "0x180D5C120")]
|
|
private void HPFNKBHGACP()
|
|
{
|
|
JKLCBEFAFDL filmdiflbim = this.FILMDIFLBIM;
|
|
this.Refresh(filmdiflbim);
|
|
}
|
|
|
|
// Token: 0x0601192C RID: 71980 RVA: 0x003FF75C File Offset: 0x003FD95C
|
|
[Token(Token = "0x601192C")]
|
|
[Address(RVA = "0xD5C010", Offset = "0xD5AE10", VA = "0x180D5C010")]
|
|
private void GFGMLOHEDPL()
|
|
{
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
int num = 0;
|
|
this.FILMDIFLBIM = num;
|
|
this.PLCPLHIFPGG = num;
|
|
this.JCHFAGNJANM = num != 0;
|
|
Func<RadioButton3D, bool> <>9__13_ = ClipboardPagedGrid.<>c.<>9__13_0;
|
|
if (<>9__13_ == 0)
|
|
{
|
|
ClipboardPagedGrid.<>c.<>9__13_0 = delegate(RadioButton3D b)
|
|
{
|
|
};
|
|
}
|
|
radioGroup3D.SetSelectionStates(<>9__13_);
|
|
}
|
|
|
|
// Token: 0x0601192D RID: 71981 RVA: 0x003FF7B4 File Offset: 0x003FD9B4
|
|
[Token(Token = "0x601192D")]
|
|
[Address(RVA = "0xD5BF00", Offset = "0xD5AD00", VA = "0x180D5BF00")]
|
|
private void EMADFBOLIOK()
|
|
{
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
Func<RadioButton3D, bool> func = new Func(this.FFBOLGCIHLH);
|
|
radioGroup3D.SetSelectionStates(func);
|
|
this.JCHFAGNJANM = false;
|
|
}
|
|
|
|
// Token: 0x0601192E RID: 71982 RVA: 0x003FF7EC File Offset: 0x003FD9EC
|
|
[Token(Token = "0x601192E")]
|
|
[Address(RVA = "0xD5C730", Offset = "0xD5B530", VA = "0x180D5C730")]
|
|
public ClipboardPagedGrid()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0601192F RID: 71983 RVA: 0x003FF800 File Offset: 0x003FDA00
|
|
[Token(Token = "0x601192F")]
|
|
[Address(RVA = "0xD5C130", Offset = "0xD5AF30", VA = "0x180D5C130")]
|
|
[CompilerGenerated]
|
|
private bool NEFDBDICEEI(ClipboardButton NDILEEFABJA)
|
|
{
|
|
JKLCBEFAFDL filmdiflbim = this.FILMDIFLBIM;
|
|
return NDILEEFABJA.<INLAPILMOGC>k__BackingField == filmdiflbim;
|
|
}
|
|
|
|
// Token: 0x06011930 RID: 71984 RVA: 0x003FF824 File Offset: 0x003FDA24
|
|
[Token(Token = "0x6011930")]
|
|
[Address(RVA = "0xD5BF90", Offset = "0xD5AD90", VA = "0x180D5BF90")]
|
|
[CompilerGenerated]
|
|
private bool FFBOLGCIHLH(RadioButton3D FOJLJNMAJLC)
|
|
{
|
|
if (this.JCHFAGNJANM)
|
|
{
|
|
RadioButton3D plcplhifpgg = this.PLCPLHIFPGG;
|
|
return FOJLJNMAJLC == plcplhifpgg;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400B4C4 RID: 46276
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400B4C4")]
|
|
public ClipboardPagedGrid.SnapshotSelectedEvent OnSnapshotSelectedEvent;
|
|
|
|
// Token: 0x0400B4C5 RID: 46277
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400B4C5")]
|
|
[SerializeField]
|
|
[DDPIINEJFMD(JIBDPHMGEGO.Children, false, false, false)]
|
|
private RadioGroup3D radioGroup;
|
|
|
|
// Token: 0x0400B4C6 RID: 46278
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x400B4C6")]
|
|
private bool JCHFAGNJANM;
|
|
|
|
// Token: 0x0400B4C7 RID: 46279
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x400B4C7")]
|
|
private RadioButton3D PLCPLHIFPGG;
|
|
|
|
// Token: 0x0400B4C8 RID: 46280
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x400B4C8")]
|
|
private JKLCBEFAFDL FILMDIFLBIM;
|
|
|
|
// Token: 0x020028EA RID: 10474
|
|
[Token(Token = "0x20028EA")]
|
|
[Serializable]
|
|
public class SnapshotSelectedEvent : UnityEvent<JKLCBEFAFDL>
|
|
{
|
|
// Token: 0x06011931 RID: 71985 RVA: 0x003FF84C File Offset: 0x003FDA4C
|
|
[Token(Token = "0x6011931")]
|
|
[Address(RVA = "0xD6A130", Offset = "0xD68F30", VA = "0x180D6A130")]
|
|
public SnapshotSelectedEvent()
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x020028EB RID: 10475
|
|
[Token(Token = "0x20028EB")]
|
|
[CompilerGenerated]
|
|
private sealed class PBIEIKLAMPD
|
|
{
|
|
// Token: 0x06011932 RID: 71986 RVA: 0x003FF860 File Offset: 0x003FDA60
|
|
[Token(Token = "0x6011932")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public PBIEIKLAMPD()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06011933 RID: 71987 RVA: 0x003FF874 File Offset: 0x003FDA74
|
|
[Token(Token = "0x6011933")]
|
|
[Address(RVA = "0xD65C30", Offset = "0xD64A30", VA = "0x180D65C30")]
|
|
internal void <SetupNewChild>b__0(RadioButton3D isOn)
|
|
{
|
|
if (isOn)
|
|
{
|
|
ClipboardButton clipboardButton = this.button;
|
|
ClipboardPagedGrid clipboardPagedGrid = this.<>4__this;
|
|
JKLCBEFAFDL <INLAPILMOGC>k__BackingField = clipboardButton.<INLAPILMOGC>k__BackingField;
|
|
clipboardPagedGrid.FILMDIFLBIM = <INLAPILMOGC>k__BackingField;
|
|
ClipboardButton clipboardButton2 = this.button;
|
|
ClipboardPagedGrid clipboardPagedGrid2 = this.<>4__this;
|
|
RadioButton3D selectSnapshotButton = clipboardButton2.selectSnapshotButton;
|
|
clipboardPagedGrid2.PLCPLHIFPGG = selectSnapshotButton;
|
|
}
|
|
ClipboardPagedGrid clipboardPagedGrid3 = this.<>4__this;
|
|
ClipboardButton clipboardButton3 = this.button;
|
|
ClipboardPagedGrid.SnapshotSelectedEvent onSnapshotSelectedEvent = clipboardPagedGrid3.OnSnapshotSelectedEvent;
|
|
JKLCBEFAFDL <INLAPILMOGC>k__BackingField2 = clipboardButton3.<INLAPILMOGC>k__BackingField;
|
|
onSnapshotSelectedEvent.Invoke(<INLAPILMOGC>k__BackingField2);
|
|
}
|
|
|
|
// Token: 0x0400B4C9 RID: 46281
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B4C9")]
|
|
public ClipboardPagedGrid <>4__this;
|
|
|
|
// Token: 0x0400B4CA RID: 46282
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B4CA")]
|
|
public ClipboardButton button;
|
|
}
|
|
}
|
|
}
|