150 lines
5.5 KiB
C#
150 lines
5.5 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 UnityEngine.Events;
|
|
|
|
namespace RecRoom.AGUI.ToolUIs
|
|
{
|
|
// Token: 0x0200293A RID: 10554
|
|
[Token(Token = "0x200293A")]
|
|
public class TrialInventionPagedGrid : RecyclerPagedGrid<TrialInventionManager.MJOCGIJACGM, TrialInventionButton>
|
|
{
|
|
// Token: 0x06011B5B RID: 72539 RVA: 0x00408070 File Offset: 0x00406270
|
|
[Token(Token = "0x6011B5B")]
|
|
[Address(RVA = "0x800870", Offset = "0x7FF670", VA = "0x180800870", Slot = "14")]
|
|
protected override void EHDPGHCPKDB(TrialInventionButton LKDLEHGHCAD)
|
|
{
|
|
TrialInventionButton button = LKDLEHGHCAD;
|
|
base.EHDPGHCPKDB(LKDLEHGHCAD);
|
|
if (this.OnInventionBuyEvent != (ulong)0L)
|
|
{
|
|
Button3D.OnButton3DClick buyButtonAction = button.MBJHGNGHPOM;
|
|
UnityAction unityAction = delegate
|
|
{
|
|
TrialInventionPagedGrid <>4__this = this;
|
|
TrialInventionButton button3 = button;
|
|
TrialInventionPagedGrid.InventionTrialSelectedEvent onInventionBuyEvent = <>4__this.OnInventionBuyEvent;
|
|
TrialInventionManager.MJOCGIJACGM ccpnhalklki = button3.CCPNHALKLKI;
|
|
onInventionBuyEvent.Invoke(ccpnhalklki);
|
|
};
|
|
buyButtonAction.AddListener(unityAction);
|
|
}
|
|
if (this.OnInventionRemoveEvent != (ulong)0L)
|
|
{
|
|
Button3D.OnButton3DClick removeButtonAction = button.JJOGPCNCIAA;
|
|
UnityAction unityAction2 = delegate
|
|
{
|
|
TrialInventionPagedGrid <>4__this2 = this;
|
|
TrialInventionButton button2 = button;
|
|
TrialInventionPagedGrid.InventionTrialSelectedEvent onInventionRemoveEvent = <>4__this2.OnInventionRemoveEvent;
|
|
TrialInventionManager.MJOCGIJACGM ccpnhalklki2 = button2.CCPNHALKLKI;
|
|
onInventionRemoveEvent.Invoke(ccpnhalklki2);
|
|
};
|
|
removeButtonAction.AddListener(unityAction2);
|
|
}
|
|
}
|
|
|
|
// Token: 0x06011B5C RID: 72540 RVA: 0x004080F8 File Offset: 0x004062F8
|
|
[Token(Token = "0x6011B5C")]
|
|
[Address(RVA = "0x8009B0", Offset = "0x7FF7B0", VA = "0x1808009B0")]
|
|
public void SetTrials(IEnumerable<TrialInventionManager.MJOCGIJACGM> HEIDKAMCPIL)
|
|
{
|
|
if (Enumerable.Count<TrialInventionManager.MJOCGIJACGM>(HEIDKAMCPIL) == 0)
|
|
{
|
|
PLDMAFINLJO.FANDNIHFMNM(this.emptyDisplayText, "There are no Invention Trials currently active.");
|
|
}
|
|
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
|
}
|
|
|
|
// Token: 0x06011B5D RID: 72541 RVA: 0x00408128 File Offset: 0x00406328
|
|
[Token(Token = "0x6011B5D")]
|
|
[Address(RVA = "0x800840", Offset = "0x7FF640", VA = "0x180800840", Slot = "15")]
|
|
protected override void BGIECEPGDBE(TrialInventionManager.MJOCGIJACGM LFOCLIDEKIA, TrialInventionButton LKDLEHGHCAD, int CKOIAKLOKMM)
|
|
{
|
|
LKDLEHGHCAD.SetTrial(LFOCLIDEKIA);
|
|
}
|
|
|
|
// Token: 0x06011B5E RID: 72542 RVA: 0x00408144 File Offset: 0x00406344
|
|
[Token(Token = "0x6011B5E")]
|
|
[Address(RVA = "0x800A30", Offset = "0x7FF830", VA = "0x180800A30")]
|
|
public TrialInventionPagedGrid()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400B62F RID: 46639
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400B62F")]
|
|
public TrialInventionPagedGrid.InventionTrialSelectedEvent OnInventionBuyEvent;
|
|
|
|
// Token: 0x0400B630 RID: 46640
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400B630")]
|
|
public TrialInventionPagedGrid.InventionTrialSelectedEvent OnInventionRemoveEvent;
|
|
|
|
// Token: 0x0200293B RID: 10555
|
|
[Token(Token = "0x200293B")]
|
|
[Serializable]
|
|
public class InventionTrialSelectedEvent : UnityEvent<TrialInventionManager.MJOCGIJACGM>
|
|
{
|
|
// Token: 0x06011B5F RID: 72543 RVA: 0x00408158 File Offset: 0x00406358
|
|
[Token(Token = "0x6011B5F")]
|
|
[Address(RVA = "0x7FFA80", Offset = "0x7FE880", VA = "0x1807FFA80")]
|
|
public InventionTrialSelectedEvent()
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x0200293C RID: 10556
|
|
[Token(Token = "0x200293C")]
|
|
[CompilerGenerated]
|
|
private sealed class CJEHIADFPDO
|
|
{
|
|
// Token: 0x06011B60 RID: 72544 RVA: 0x0040816C File Offset: 0x0040636C
|
|
[Token(Token = "0x6011B60")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public CJEHIADFPDO()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06011B61 RID: 72545 RVA: 0x00408180 File Offset: 0x00406380
|
|
[Token(Token = "0x6011B61")]
|
|
[Address(RVA = "0x7FF350", Offset = "0x7FE150", VA = "0x1807FF350")]
|
|
internal void <SetupNewChild>b__0()
|
|
{
|
|
TrialInventionPagedGrid trialInventionPagedGrid = this.<>4__this;
|
|
TrialInventionButton trialInventionButton = this.button;
|
|
TrialInventionPagedGrid.InventionTrialSelectedEvent onInventionBuyEvent = trialInventionPagedGrid.OnInventionBuyEvent;
|
|
TrialInventionManager.MJOCGIJACGM ccpnhalklki = trialInventionButton.CCPNHALKLKI;
|
|
onInventionBuyEvent.Invoke(ccpnhalklki);
|
|
}
|
|
|
|
// Token: 0x06011B62 RID: 72546 RVA: 0x004081B8 File Offset: 0x004063B8
|
|
[Token(Token = "0x6011B62")]
|
|
[Address(RVA = "0x7FF3B0", Offset = "0x7FE1B0", VA = "0x1807FF3B0")]
|
|
internal void <SetupNewChild>b__1()
|
|
{
|
|
TrialInventionPagedGrid trialInventionPagedGrid = this.<>4__this;
|
|
TrialInventionButton trialInventionButton = this.button;
|
|
TrialInventionPagedGrid.InventionTrialSelectedEvent onInventionRemoveEvent = trialInventionPagedGrid.OnInventionRemoveEvent;
|
|
TrialInventionManager.MJOCGIJACGM ccpnhalklki = trialInventionButton.CCPNHALKLKI;
|
|
onInventionRemoveEvent.Invoke(ccpnhalklki);
|
|
}
|
|
|
|
// Token: 0x0400B631 RID: 46641
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B631")]
|
|
public TrialInventionPagedGrid <>4__this;
|
|
|
|
// Token: 0x0400B632 RID: 46642
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B632")]
|
|
public TrialInventionButton button;
|
|
}
|
|
}
|
|
}
|