273 lines
9.9 KiB
C#
273 lines
9.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using AGUI;
|
|
using AGUI.StackedUI;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace RecRoom.AGUI.ToolUIs
|
|
{
|
|
// Token: 0x020029D7 RID: 10711
|
|
[Token(Token = "0x20029D7")]
|
|
public class InventionPagedGrid : RecyclerPagedGrid<OBBBPCBIMME, InventionButton>
|
|
{
|
|
// Token: 0x06011D7D RID: 73085 RVA: 0x00409574 File Offset: 0x00407774
|
|
[Token(Token = "0x6011D7D")]
|
|
[Address(RVA = "0x1861560", Offset = "0x1860560", VA = "0x181861560")]
|
|
private void Start()
|
|
{
|
|
Action action = new Action(this.EMADFBOLIOK);
|
|
base.HFDCMNJHLPF += action;
|
|
}
|
|
|
|
// Token: 0x06011D7E RID: 73086 RVA: 0x00409598 File Offset: 0x00407798
|
|
[Token(Token = "0x6011D7E")]
|
|
[Address(RVA = "0x1861250", Offset = "0x1860250", VA = "0x181861250")]
|
|
private void EMADFBOLIOK()
|
|
{
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
Func<RadioButton3D, bool> func = new Func(this.GHEGGBOCCCO);
|
|
radioGroup3D.SetSelectionStates(func);
|
|
this.JCHFAGNJANM = false;
|
|
}
|
|
|
|
// Token: 0x06011D7F RID: 73087 RVA: 0x004095D0 File Offset: 0x004077D0
|
|
[Token(Token = "0x6011D7F")]
|
|
[Address(RVA = "0x18610D0", Offset = "0x18600D0", VA = "0x1818610D0", Slot = "14")]
|
|
protected override void EHDPGHCPKDB(InventionButton LKDLEHGHCAD)
|
|
{
|
|
InventionButton button = LKDLEHGHCAD;
|
|
base.EHDPGHCPKDB(LKDLEHGHCAD);
|
|
if (this.OnInventionSelectedEvent != (ulong)0L)
|
|
{
|
|
RadioButton3D.OnRadioButton3DClick onClick = button._selectInventnionButton.OnClick;
|
|
UnityAction<RadioButton3D> unityAction = delegate(RadioButton3D isOn)
|
|
{
|
|
if (isOn)
|
|
{
|
|
InventionPreviewUI inventionPreview = button.inventionPreview;
|
|
InventionPagedGrid <>4__this = this;
|
|
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField = inventionPreview.<AMJMPBKMMMJ>k__BackingField;
|
|
<>4__this.FJJBAKDDKKI = <AMJMPBKMMMJ>k__BackingField;
|
|
InventionButton button2 = button;
|
|
InventionPagedGrid <>4__this2 = this;
|
|
RadioButton3D selectInventnionButton2 = button2._selectInventnionButton;
|
|
<>4__this2.PLCPLHIFPGG = selectInventnionButton2;
|
|
}
|
|
InventionPagedGrid <>4__this3 = this;
|
|
InventionPreviewUI inventionPreview2 = button.inventionPreview;
|
|
InventionPagedGrid.InventionSelectedEvent onInventionSelectedEvent = <>4__this3.OnInventionSelectedEvent;
|
|
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField2 = inventionPreview2.<AMJMPBKMMMJ>k__BackingField;
|
|
onInventionSelectedEvent.Invoke(<AMJMPBKMMMJ>k__BackingField2);
|
|
};
|
|
onClick.AddListener(unityAction);
|
|
Button3D.OnButton3DClick onClick2 = button.infoButton.OnClick;
|
|
UnityAction unityAction2 = delegate
|
|
{
|
|
InventionPagedGrid <>4__this4 = this;
|
|
InventionPreviewUI inventionPreview3 = button.inventionPreview;
|
|
InventionPagedGrid.InventionSelectedEvent onInventionInfoEvent = <>4__this4.OnInventionInfoEvent;
|
|
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField3 = inventionPreview3.<AMJMPBKMMMJ>k__BackingField;
|
|
onInventionInfoEvent.Invoke(<AMJMPBKMMMJ>k__BackingField3);
|
|
};
|
|
onClick2.AddListener(unityAction2);
|
|
}
|
|
InventionButton button3 = button;
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
RadioButton3D selectInventnionButton = button3._selectInventnionButton;
|
|
radioGroup3D.AddButton(selectInventnionButton);
|
|
}
|
|
|
|
// Token: 0x06011D80 RID: 73088 RVA: 0x00409678 File Offset: 0x00407878
|
|
[Token(Token = "0x6011D80")]
|
|
[Address(RVA = "0x1860F70", Offset = "0x185FF70", VA = "0x181860F70")]
|
|
private void BDIHBOPABND()
|
|
{
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
int num = 0;
|
|
this.FJJBAKDDKKI = num;
|
|
this.PLCPLHIFPGG = num;
|
|
this.JCHFAGNJANM = num != 0;
|
|
Func<RadioButton3D, bool> <>9__10_ = InventionPagedGrid.<>c.<>9__10_0;
|
|
if (<>9__10_ == 0)
|
|
{
|
|
InventionPagedGrid.<>c.<>9__10_0 = delegate(RadioButton3D b)
|
|
{
|
|
};
|
|
}
|
|
radioGroup3D.SetSelectionStates(<>9__10_);
|
|
}
|
|
|
|
// Token: 0x06011D81 RID: 73089 RVA: 0x004096D0 File Offset: 0x004078D0
|
|
[Token(Token = "0x6011D81")]
|
|
[Address(RVA = "0x1861360", Offset = "0x1860360", VA = "0x181861360")]
|
|
public void SetInventions(IEnumerable<OBBBPCBIMME> HEIDKAMCPIL, OBBBPCBIMME EGJJHJHIPCF)
|
|
{
|
|
if (Enumerable.Count<OBBBPCBIMME>(HEIDKAMCPIL) == 0)
|
|
{
|
|
PLDMAFINLJO.FANDNIHFMNM(this.emptyDisplayText, "Create an Invention by selecting multiple objects, then hitting the Create Inventions button on your Maker Pen menu.");
|
|
}
|
|
RadioGroup3D radioGroup3D = this.radioGroup;
|
|
int num = 0;
|
|
this.FJJBAKDDKKI = num;
|
|
this.PLCPLHIFPGG = num;
|
|
this.JCHFAGNJANM = num != 0;
|
|
Func<RadioButton3D, bool> func;
|
|
if (InventionPagedGrid.<>c.<>9__10_0 == 0)
|
|
{
|
|
func = delegate(RadioButton3D b)
|
|
{
|
|
};
|
|
InventionPagedGrid.<>c.<>9__10_0 = func;
|
|
}
|
|
radioGroup3D.SetSelectionStates(func);
|
|
this.FJJBAKDDKKI = EGJJHJHIPCF;
|
|
bool flag = this.NBMNLHLDOGF();
|
|
RadioGroup3D radioGroup3D2 = this.radioGroup;
|
|
Func<RadioButton3D, bool> func2 = new Func(this.GHEGGBOCCCO);
|
|
radioGroup3D2.SetSelectionStates(func2);
|
|
this.JCHFAGNJANM = false;
|
|
}
|
|
|
|
// Token: 0x06011D82 RID: 73090 RVA: 0x00409774 File Offset: 0x00407974
|
|
[Token(Token = "0x6011D82")]
|
|
[Address(RVA = "0x1861080", Offset = "0x1860080", VA = "0x181861080", Slot = "15")]
|
|
protected override void BGIECEPGDBE(OBBBPCBIMME LDNFNNNHPPB, InventionButton LKDLEHGHCAD, int CKOIAKLOKMM)
|
|
{
|
|
if (LDNFNNNHPPB == this.FJJBAKDDKKI)
|
|
{
|
|
this.JCHFAGNJANM = true;
|
|
RadioButton3D selectInventnionButton = LKDLEHGHCAD._selectInventnionButton;
|
|
this.PLCPLHIFPGG = selectInventnionButton;
|
|
}
|
|
LKDLEHGHCAD.SetInvention(LDNFNNNHPPB, true);
|
|
}
|
|
|
|
// Token: 0x06011D83 RID: 73091 RVA: 0x004097B0 File Offset: 0x004079B0
|
|
[Token(Token = "0x6011D83")]
|
|
[Address(RVA = "0x18615D0", Offset = "0x18605D0", VA = "0x1818615D0")]
|
|
public InventionPagedGrid()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06011D84 RID: 73092 RVA: 0x004097C4 File Offset: 0x004079C4
|
|
[Token(Token = "0x6011D84")]
|
|
[Address(RVA = "0x18612E0", Offset = "0x18602E0", VA = "0x1818612E0")]
|
|
[CompilerGenerated]
|
|
private bool GHEGGBOCCCO(RadioButton3D FOJLJNMAJLC)
|
|
{
|
|
if (this.JCHFAGNJANM)
|
|
{
|
|
RadioButton3D plcplhifpgg = this.PLCPLHIFPGG;
|
|
return FOJLJNMAJLC == plcplhifpgg;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0400B6E3 RID: 46819
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400B6E3")]
|
|
[SerializeField]
|
|
[NKNLDEIPALE(FHBJCBPFODN.Children, false, false, false)]
|
|
private RadioGroup3D radioGroup;
|
|
|
|
// Token: 0x0400B6E4 RID: 46820
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400B6E4")]
|
|
public InventionPagedGrid.InventionSelectedEvent OnInventionSelectedEvent;
|
|
|
|
// Token: 0x0400B6E5 RID: 46821
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x400B6E5")]
|
|
public InventionPagedGrid.InventionSelectedEvent OnInventionInfoEvent;
|
|
|
|
// Token: 0x0400B6E6 RID: 46822
|
|
[FieldOffset(Offset = "0xD0")]
|
|
[Token(Token = "0x400B6E6")]
|
|
private OBBBPCBIMME FJJBAKDDKKI;
|
|
|
|
// Token: 0x0400B6E7 RID: 46823
|
|
[FieldOffset(Offset = "0xD8")]
|
|
[Token(Token = "0x400B6E7")]
|
|
private RadioButton3D PLCPLHIFPGG;
|
|
|
|
// Token: 0x0400B6E8 RID: 46824
|
|
[FieldOffset(Offset = "0xE0")]
|
|
[Token(Token = "0x400B6E8")]
|
|
private bool JCHFAGNJANM;
|
|
|
|
// Token: 0x020029D8 RID: 10712
|
|
[Token(Token = "0x20029D8")]
|
|
[Serializable]
|
|
public class InventionSelectedEvent : UnityEvent<OBBBPCBIMME>
|
|
{
|
|
// Token: 0x06011D85 RID: 73093 RVA: 0x004097EC File Offset: 0x004079EC
|
|
[Token(Token = "0x6011D85")]
|
|
[Address(RVA = "0x1861C70", Offset = "0x1860C70", VA = "0x181861C70")]
|
|
public InventionSelectedEvent()
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x020029D9 RID: 10713
|
|
[Token(Token = "0x20029D9")]
|
|
[CompilerGenerated]
|
|
private sealed class OINOLBKIGKE
|
|
{
|
|
// Token: 0x06011D86 RID: 73094 RVA: 0x00409800 File Offset: 0x00407A00
|
|
[Token(Token = "0x6011D86")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public OINOLBKIGKE()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06011D87 RID: 73095 RVA: 0x00409814 File Offset: 0x00407A14
|
|
[Token(Token = "0x6011D87")]
|
|
[Address(RVA = "0x1865A00", Offset = "0x1864A00", VA = "0x181865A00")]
|
|
internal void <SetupNewChild>b__0(RadioButton3D isOn)
|
|
{
|
|
if (isOn)
|
|
{
|
|
InventionPreviewUI inventionPreview = this.button.inventionPreview;
|
|
InventionPagedGrid inventionPagedGrid = this.<>4__this;
|
|
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField = inventionPreview.<AMJMPBKMMMJ>k__BackingField;
|
|
inventionPagedGrid.FJJBAKDDKKI = <AMJMPBKMMMJ>k__BackingField;
|
|
InventionButton inventionButton = this.button;
|
|
InventionPagedGrid inventionPagedGrid2 = this.<>4__this;
|
|
RadioButton3D selectInventnionButton = inventionButton._selectInventnionButton;
|
|
inventionPagedGrid2.PLCPLHIFPGG = selectInventnionButton;
|
|
}
|
|
InventionPagedGrid inventionPagedGrid3 = this.<>4__this;
|
|
InventionPreviewUI inventionPreview2 = this.button.inventionPreview;
|
|
InventionPagedGrid.InventionSelectedEvent onInventionSelectedEvent = inventionPagedGrid3.OnInventionSelectedEvent;
|
|
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField2 = inventionPreview2.<AMJMPBKMMMJ>k__BackingField;
|
|
onInventionSelectedEvent.Invoke(<AMJMPBKMMMJ>k__BackingField2);
|
|
}
|
|
|
|
// Token: 0x06011D88 RID: 73096 RVA: 0x004098A4 File Offset: 0x00407AA4
|
|
[Token(Token = "0x6011D88")]
|
|
[Address(RVA = "0x1865AF0", Offset = "0x1864AF0", VA = "0x181865AF0")]
|
|
internal void <SetupNewChild>b__1()
|
|
{
|
|
InventionPagedGrid inventionPagedGrid = this.<>4__this;
|
|
InventionPreviewUI inventionPreview = this.button.inventionPreview;
|
|
InventionPagedGrid.InventionSelectedEvent onInventionInfoEvent = inventionPagedGrid.OnInventionInfoEvent;
|
|
OBBBPCBIMME <AMJMPBKMMMJ>k__BackingField = inventionPreview.<AMJMPBKMMMJ>k__BackingField;
|
|
onInventionInfoEvent.Invoke(<AMJMPBKMMMJ>k__BackingField);
|
|
}
|
|
|
|
// Token: 0x0400B6E9 RID: 46825
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B6E9")]
|
|
public InventionPagedGrid <>4__this;
|
|
|
|
// Token: 0x0400B6EA RID: 46826
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B6EA")]
|
|
public InventionButton button;
|
|
}
|
|
}
|
|
}
|