194 lines
6.7 KiB
C#
194 lines
6.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using Cpp2IlInjected;
|
|
using Pathfinding.RVO;
|
|
using RecRoom.Consumable;
|
|
using UnityEngine;
|
|
using UnityEngine.Events;
|
|
|
|
namespace AGUI.StackedUI
|
|
{
|
|
// Token: 0x02001221 RID: 4641
|
|
[Token(Token = "0x2001221")]
|
|
public class ConsumablesPagedGrid : RecyclerPagedGrid<OOCCCGPICOG, ConsumableButton>
|
|
{
|
|
// Token: 0x0600680D RID: 26637 RVA: 0x0016B174 File Offset: 0x00169374
|
|
[Token(Token = "0x600680D")]
|
|
[Address(RVA = "0x1A5A3F0", Offset = "0x1A593F0", VA = "0x181A5A3F0", Slot = "12")]
|
|
protected override void Awake()
|
|
{
|
|
int num;
|
|
CKNNCLNMAPG cknnclnmapg = new CKNNCLNMAPG(this, 1.5f, num);
|
|
num = 0;
|
|
this.NLLPCBJMNCD = cknnclnmapg;
|
|
base.Awake();
|
|
}
|
|
|
|
// Token: 0x0600680E RID: 26638 RVA: 0x0016B1A0 File Offset: 0x001693A0
|
|
[Token(Token = "0x600680E")]
|
|
[Address(RVA = "0x1A5A4B0", Offset = "0x1A594B0", VA = "0x181A5A4B0", Slot = "14")]
|
|
protected override void EHDPGHCPKDB(ConsumableButton LKDLEHGHCAD)
|
|
{
|
|
ConsumableButton button = LKDLEHGHCAD;
|
|
base.EHDPGHCPKDB(LKDLEHGHCAD);
|
|
if (this.OnConsumableSelectedEvent != (ulong)0L)
|
|
{
|
|
ToggleButton3D.OnToggleButton3DClick buttonAction = button.PAALHPHGBDF;
|
|
Action <>9__1;
|
|
UnityAction<bool> unityAction = delegate(bool isOn)
|
|
{
|
|
ConsumablesPagedGrid <>4__this = this;
|
|
Action <>9__ = <>9__1;
|
|
CKNNCLNMAPG nllpcbjmncd = <>4__this.NLLPCBJMNCD;
|
|
if (<>9__ == 0)
|
|
{
|
|
Action action = delegate
|
|
{
|
|
ConsumablesPagedGrid <>4__this2 = this;
|
|
ConsumableButton button2 = button;
|
|
ConsumablesPagedGrid.ConsumableSelectedEvent onConsumableSelectedEvent = <>4__this2.OnConsumableSelectedEvent;
|
|
OOCCCGPICOG <EDNKKMAAFEB>k__BackingField = button2.<EDNKKMAAFEB>k__BackingField;
|
|
onConsumableSelectedEvent.Invoke(<EDNKKMAAFEB>k__BackingField);
|
|
};
|
|
<>9__1 = action;
|
|
}
|
|
int num = 0;
|
|
bool flag = nllpcbjmncd.PFFOFIHGOEA(<>9__, num != 0);
|
|
button.ToggleButtonVisualState(flag);
|
|
};
|
|
buttonAction.AddListener(unityAction);
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600680F RID: 26639 RVA: 0x0016B1FC File Offset: 0x001693FC
|
|
[Token(Token = "0x600680F")]
|
|
[Address(RVA = "0x1A5A590", Offset = "0x1A59590", VA = "0x181A5A590")]
|
|
public void SetConsumables(IEnumerable<OOCCCGPICOG> EPNKNPNPBCD, BackpackScreen.EJKOBPNECBN HGLLKBFOBIE)
|
|
{
|
|
Func<OOCCCGPICOG, ConsumableManager.KIDKMAOBOIG> <>9__7_ = ConsumablesPagedGrid.<>c.<>9__7_0;
|
|
if (<>9__7_ == 0)
|
|
{
|
|
ConsumablesPagedGrid.<>c.<>9__7_0 = (OOCCCGPICOG c) => c.GMMAAAGFAKO();
|
|
}
|
|
List<OOCCCGPICOG> list = Enumerable.ToList<OOCCCGPICOG>(Enumerable.OrderBy<OOCCCGPICOG, ConsumableManager.KIDKMAOBOIG>(EPNKNPNPBCD, <>9__7_));
|
|
float height = ((IAgent)this).Height;
|
|
}
|
|
|
|
// Token: 0x06006810 RID: 26640 RVA: 0x0016B23C File Offset: 0x0016943C
|
|
[Token(Token = "0x6006810")]
|
|
[Address(RVA = "0x1A5A470", Offset = "0x1A59470", VA = "0x181A5A470", Slot = "15")]
|
|
protected override void BGIECEPGDBE(OOCCCGPICOG BAJGNABECMN, ConsumableButton LKDLEHGHCAD, int CKOIAKLOKMM)
|
|
{
|
|
StackedUIBase <KBKJKEOPIGB>k__BackingField = this.uiFlowBase.<KBKJKEOPIGB>k__BackingField;
|
|
LKDLEHGHCAD.SetConsumable(BAJGNABECMN, <KBKJKEOPIGB>k__BackingField);
|
|
}
|
|
|
|
// Token: 0x06006811 RID: 26641 RVA: 0x0016B264 File Offset: 0x00169464
|
|
[Token(Token = "0x6006811")]
|
|
[Address(RVA = "0x1A5A6B0", Offset = "0x1A596B0", VA = "0x181A5A6B0")]
|
|
public ConsumablesPagedGrid()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04004444 RID: 17476
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x4004444")]
|
|
[SerializeField]
|
|
private StackedUIFlowBase uiFlowBase;
|
|
|
|
// Token: 0x04004445 RID: 17477
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x4004445")]
|
|
public ConsumablesPagedGrid.ConsumableSelectedEvent OnConsumableSelectedEvent;
|
|
|
|
// Token: 0x04004446 RID: 17478
|
|
[Token(Token = "0x4004446")]
|
|
private const float JCLLOAPLKIH = 1.5f;
|
|
|
|
// Token: 0x04004447 RID: 17479
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x4004447")]
|
|
private CKNNCLNMAPG NLLPCBJMNCD;
|
|
|
|
// Token: 0x02001222 RID: 4642
|
|
[Token(Token = "0x2001222")]
|
|
[Serializable]
|
|
public class ConsumableSelectedEvent : UnityEvent<OOCCCGPICOG>
|
|
{
|
|
// Token: 0x06006812 RID: 26642 RVA: 0x0016B278 File Offset: 0x00169478
|
|
[Token(Token = "0x6006812")]
|
|
[Address(RVA = "0x1A5A3B0", Offset = "0x1A593B0", VA = "0x181A5A3B0")]
|
|
public ConsumableSelectedEvent()
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x02001223 RID: 4643
|
|
[Token(Token = "0x2001223")]
|
|
[CompilerGenerated]
|
|
private sealed class GMMKDFNFEBG
|
|
{
|
|
// Token: 0x06006813 RID: 26643 RVA: 0x0016B28C File Offset: 0x0016948C
|
|
[Token(Token = "0x6006813")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public GMMKDFNFEBG()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06006814 RID: 26644 RVA: 0x0016B2A0 File Offset: 0x001694A0
|
|
[Token(Token = "0x6006814")]
|
|
[Address(RVA = "0x1A5CE50", Offset = "0x1A5BE50", VA = "0x181A5CE50")]
|
|
internal void <SetupNewChild>b__0(bool isOn)
|
|
{
|
|
ConsumablesPagedGrid consumablesPagedGrid = this.<>4__this;
|
|
Action action = this.<>9__1;
|
|
CKNNCLNMAPG nllpcbjmncd = consumablesPagedGrid.NLLPCBJMNCD;
|
|
if (action == 0)
|
|
{
|
|
Action action2 = delegate
|
|
{
|
|
ConsumablesPagedGrid consumablesPagedGrid2 = this.<>4__this;
|
|
ConsumableButton consumableButton = this.button;
|
|
ConsumablesPagedGrid.ConsumableSelectedEvent onConsumableSelectedEvent = consumablesPagedGrid2.OnConsumableSelectedEvent;
|
|
OOCCCGPICOG <EDNKKMAAFEB>k__BackingField = consumableButton.<EDNKKMAAFEB>k__BackingField;
|
|
onConsumableSelectedEvent.Invoke(<EDNKKMAAFEB>k__BackingField);
|
|
};
|
|
this.<>9__1 = action2;
|
|
}
|
|
int num = 0;
|
|
bool flag = nllpcbjmncd.PFFOFIHGOEA(action, num != 0);
|
|
this.button.ToggleButtonVisualState(flag);
|
|
}
|
|
|
|
// Token: 0x06006815 RID: 26645 RVA: 0x0016B2FC File Offset: 0x001694FC
|
|
[Token(Token = "0x6006815")]
|
|
[Address(RVA = "0x1A5CF00", Offset = "0x1A5BF00", VA = "0x181A5CF00")]
|
|
internal void <SetupNewChild>b__1()
|
|
{
|
|
ConsumablesPagedGrid consumablesPagedGrid = this.<>4__this;
|
|
ConsumableButton consumableButton = this.button;
|
|
ConsumablesPagedGrid.ConsumableSelectedEvent onConsumableSelectedEvent = consumablesPagedGrid.OnConsumableSelectedEvent;
|
|
OOCCCGPICOG <EDNKKMAAFEB>k__BackingField = consumableButton.<EDNKKMAAFEB>k__BackingField;
|
|
onConsumableSelectedEvent.Invoke(<EDNKKMAAFEB>k__BackingField);
|
|
}
|
|
|
|
// Token: 0x04004448 RID: 17480
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4004448")]
|
|
public ConsumablesPagedGrid <>4__this;
|
|
|
|
// Token: 0x04004449 RID: 17481
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4004449")]
|
|
public ConsumableButton button;
|
|
|
|
// Token: 0x0400444A RID: 17482
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400444A")]
|
|
public Action <>9__1;
|
|
}
|
|
}
|
|
}
|