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: 0x020029D2 RID: 10706
|
|
[Token(Token = "0x20029D2")]
|
|
public class ClipboardPagedGrid : RecyclerPagedGrid<JKLCBEFAFDL, ClipboardButton>
|
|
{
|
|
// Token: 0x06011D60 RID: 73056 RVA: 0x00408E70 File Offset: 0x00407070
|
|
[Token(Token = "0x6011D60")]
|
|
[Address(RVA = "0x185C480", Offset = "0x185B480", VA = "0x18185C480")]
|
|
private void OnDisable()
|
|
{
|
|
LILBNLDMLIC objectClipboard = CreationContext.ObjectClipboard;
|
|
Action action = new Action(this.HPFNKBHGACP);
|
|
objectClipboard.EPJALBAEHGH -= action;
|
|
}
|
|
|
|
// Token: 0x06011D61 RID: 73057 RVA: 0x00408EA0 File Offset: 0x004070A0
|
|
[Token(Token = "0x6011D61")]
|
|
[Address(RVA = "0x185C560", Offset = "0x185B560", VA = "0x18185C560")]
|
|
private void OnEnable()
|
|
{
|
|
LILBNLDMLIC objectClipboard = CreationContext.ObjectClipboard;
|
|
Action action = new Action(this.HPFNKBHGACP);
|
|
objectClipboard.EPJALBAEHGH += action;
|
|
JKLCBEFAFDL filmdiflbim = this.FILMDIFLBIM;
|
|
this.Refresh(filmdiflbim);
|
|
}
|
|
|
|
// Token: 0x06011D62 RID: 73058 RVA: 0x00408EDC File Offset: 0x004070DC
|
|
[Token(Token = "0x6011D62")]
|
|
[Address(RVA = "0x185C9E0", Offset = "0x185B9E0", VA = "0x18185C9E0")]
|
|
private void Start()
|
|
{
|
|
Action action = new Action(this.EMADFBOLIOK);
|
|
base.HFDCMNJHLPF += action;
|
|
}
|
|
|
|
// Token: 0x06011D63 RID: 73059 RVA: 0x00408F00 File Offset: 0x00407100
|
|
[Token(Token = "0x6011D63")]
|
|
[Address(RVA = "0x185C650", Offset = "0x185B650", VA = "0x18185C650")]
|
|
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: 0x06011D64 RID: 73060 RVA: 0x00408F58 File Offset: 0x00407158
|
|
[Token(Token = "0x6011D64")]
|
|
[Address(RVA = "0x185C760", Offset = "0x185B760", VA = "0x18185C760")]
|
|
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: 0x06011D65 RID: 73061 RVA: 0x00409034 File Offset: 0x00407234
|
|
[Token(Token = "0x6011D65")]
|
|
[Address(RVA = "0x185C060", Offset = "0x185B060", VA = "0x18185C060", 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: 0x06011D66 RID: 73062 RVA: 0x0040909C File Offset: 0x0040729C
|
|
[Token(Token = "0x6011D66")]
|
|
[Address(RVA = "0x185C100", Offset = "0x185B100", VA = "0x18185C100", 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: 0x06011D67 RID: 73063 RVA: 0x0040911C File Offset: 0x0040731C
|
|
[Token(Token = "0x6011D67")]
|
|
[Address(RVA = "0x185C440", Offset = "0x185B440", VA = "0x18185C440")]
|
|
private void HPFNKBHGACP()
|
|
{
|
|
JKLCBEFAFDL filmdiflbim = this.FILMDIFLBIM;
|
|
this.Refresh(filmdiflbim);
|
|
}
|
|
|
|
// Token: 0x06011D68 RID: 73064 RVA: 0x00409138 File Offset: 0x00407338
|
|
[Token(Token = "0x6011D68")]
|
|
[Address(RVA = "0x185C330", Offset = "0x185B330", VA = "0x18185C330")]
|
|
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: 0x06011D69 RID: 73065 RVA: 0x00409190 File Offset: 0x00407390
|
|
[Token(Token = "0x6011D69")]
|
|
[Address(RVA = "0x185C220", Offset = "0x185B220", VA = "0x18185C220")]
|
|
private void EMADFBOLIOK()
|
|
{
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
Func<RadioButton3D, bool> func = new Func(this.FFBOLGCIHLH);
|
|
radioGroup3D.SetSelectionStates(func);
|
|
this.JCHFAGNJANM = false;
|
|
}
|
|
|
|
// Token: 0x06011D6A RID: 73066 RVA: 0x004091C8 File Offset: 0x004073C8
|
|
[Token(Token = "0x6011D6A")]
|
|
[Address(RVA = "0x185CA50", Offset = "0x185BA50", VA = "0x18185CA50")]
|
|
public ClipboardPagedGrid()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06011D6B RID: 73067 RVA: 0x004091DC File Offset: 0x004073DC
|
|
[Token(Token = "0x6011D6B")]
|
|
[Address(RVA = "0x185C450", Offset = "0x185B450", VA = "0x18185C450")]
|
|
[CompilerGenerated]
|
|
private bool NEFDBDICEEI(ClipboardButton NDILEEFABJA)
|
|
{
|
|
JKLCBEFAFDL filmdiflbim = this.FILMDIFLBIM;
|
|
return NDILEEFABJA.<INLAPILMOGC>k__BackingField == filmdiflbim;
|
|
}
|
|
|
|
// Token: 0x06011D6C RID: 73068 RVA: 0x00409200 File Offset: 0x00407400
|
|
[Token(Token = "0x6011D6C")]
|
|
[Address(RVA = "0x185C2B0", Offset = "0x185B2B0", VA = "0x18185C2B0")]
|
|
[CompilerGenerated]
|
|
private bool FFBOLGCIHLH(RadioButton3D FOJLJNMAJLC)
|
|
{
|
|
if (this.JCHFAGNJANM)
|
|
{
|
|
RadioButton3D plcplhifpgg = this.PLCPLHIFPGG;
|
|
return FOJLJNMAJLC == plcplhifpgg;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400B6D4 RID: 46804
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400B6D4")]
|
|
public ClipboardPagedGrid.SnapshotSelectedEvent OnSnapshotSelectedEvent;
|
|
|
|
// Token: 0x0400B6D5 RID: 46805
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400B6D5")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Children, false, false, false)]
|
|
private RadioGroup3D radioGroup;
|
|
|
|
// Token: 0x0400B6D6 RID: 46806
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x400B6D6")]
|
|
private bool JCHFAGNJANM;
|
|
|
|
// Token: 0x0400B6D7 RID: 46807
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x400B6D7")]
|
|
private RadioButton3D PLCPLHIFPGG;
|
|
|
|
// Token: 0x0400B6D8 RID: 46808
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x400B6D8")]
|
|
private JKLCBEFAFDL FILMDIFLBIM;
|
|
|
|
// Token: 0x020029D3 RID: 10707
|
|
[Token(Token = "0x20029D3")]
|
|
[Serializable]
|
|
public class SnapshotSelectedEvent : UnityEvent<JKLCBEFAFDL>
|
|
{
|
|
// Token: 0x06011D6D RID: 73069 RVA: 0x00409228 File Offset: 0x00407428
|
|
[Token(Token = "0x6011D6D")]
|
|
[Address(RVA = "0x186A3D0", Offset = "0x18693D0", VA = "0x18186A3D0")]
|
|
public SnapshotSelectedEvent()
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x020029D4 RID: 10708
|
|
[Token(Token = "0x20029D4")]
|
|
[CompilerGenerated]
|
|
private sealed class PBIEIKLAMPD
|
|
{
|
|
// Token: 0x06011D6E RID: 73070 RVA: 0x0040923C File Offset: 0x0040743C
|
|
[Token(Token = "0x6011D6E")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public PBIEIKLAMPD()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06011D6F RID: 73071 RVA: 0x00409250 File Offset: 0x00407450
|
|
[Token(Token = "0x6011D6F")]
|
|
[Address(RVA = "0x1865ED0", Offset = "0x1864ED0", VA = "0x181865ED0")]
|
|
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: 0x0400B6D9 RID: 46809
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B6D9")]
|
|
public ClipboardPagedGrid <>4__this;
|
|
|
|
// Token: 0x0400B6DA RID: 46810
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B6DA")]
|
|
public ClipboardButton button;
|
|
}
|
|
}
|
|
}
|