218 lines
8.0 KiB
C#
218 lines
8.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.CompilerServices;
|
|
using AGUI;
|
|
using AGUI.StackedUI;
|
|
using CodeStage.AntiCheat.ObscuredTypes;
|
|
using Cpp2IlInjected;
|
|
using UnityEngine.Events;
|
|
|
|
namespace RecRoom.AGUI
|
|
{
|
|
// Token: 0x020028D8 RID: 10456
|
|
[Token(Token = "0x20028D8")]
|
|
public class SelectAccountButtonsPagedGrid : RecyclerPagedGrid<CCEOLAOLEKJ, SelectAccountButton>
|
|
{
|
|
// Token: 0x060118DA RID: 71898 RVA: 0x003FE788 File Offset: 0x003FC988
|
|
[Token(Token = "0x60118DA")]
|
|
[Address(RVA = "0xD68350", Offset = "0xD67150", VA = "0x180D68350", Slot = "14")]
|
|
protected override void EHDPGHCPKDB(SelectAccountButton LKDLEHGHCAD)
|
|
{
|
|
SelectAccountButton button = LKDLEHGHCAD;
|
|
SelectAccountButtonsPagedGrid <>4__this = this;
|
|
base.EHDPGHCPKDB(LKDLEHGHCAD);
|
|
if (this.OnSelectedAccountsUpdatedEvent != (ulong)0L)
|
|
{
|
|
ToggleButton3D.OnToggleButton3DClick onClick = button.toggle.OnClick;
|
|
UnityAction<bool> unityAction = delegate(bool isOn)
|
|
{
|
|
CCEOLAOLEKJ <PBHKKOAINGC>k__BackingField;
|
|
SelectAccountButtonsPagedGrid <>4__this3;
|
|
for (;;)
|
|
{
|
|
<PBHKKOAINGC>k__BackingField = button.<PBHKKOAINGC>k__BackingField;
|
|
<>4__this3 = <>4__this;
|
|
if (isOn)
|
|
{
|
|
break;
|
|
}
|
|
if (<>4__this3.EHJBIJKGDFL.Contains(<PBHKKOAINGC>k__BackingField))
|
|
{
|
|
goto Block_2;
|
|
}
|
|
}
|
|
if (!<>4__this3.EHJBIJKGDFL.Contains(<PBHKKOAINGC>k__BackingField))
|
|
{
|
|
<>4__this.EHJBIJKGDFL.Add(<PBHKKOAINGC>k__BackingField);
|
|
SelectAccountButtonsPagedGrid <>4__this2 = <>4__this;
|
|
SelectAccountButtonsPagedGrid.SelectedAccountsUpdated onSelectedAccountsUpdatedEvent = <>4__this2.OnSelectedAccountsUpdatedEvent;
|
|
List<CCEOLAOLEKJ> ehjbijkgdfl = <>4__this2.EHJBIJKGDFL;
|
|
onSelectedAccountsUpdatedEvent.Invoke(ehjbijkgdfl);
|
|
}
|
|
return;
|
|
Block_2:
|
|
bool flag = <>4__this.EHJBIJKGDFL.Remove(<PBHKKOAINGC>k__BackingField);
|
|
throw new NullReferenceException();
|
|
};
|
|
onClick.AddListener(unityAction);
|
|
}
|
|
}
|
|
|
|
// Token: 0x060118DB RID: 71899 RVA: 0x003FE7E8 File Offset: 0x003FC9E8
|
|
[Token(Token = "0x60118DB")]
|
|
[Address(RVA = "0xD68440", Offset = "0xD67240", VA = "0x180D68440")]
|
|
public void SetAccounts(IEnumerable<CCEOLAOLEKJ> OLLKMIGNGBF, Dictionary<int, string> OOHOGCCENKE, bool MCDPJPLJMNI)
|
|
{
|
|
this.HHJPOEBGHGB = OOHOGCCENKE;
|
|
if (MCDPJPLJMNI)
|
|
{
|
|
Func<CCEOLAOLEKJ, bool> <>9__5_ = SelectAccountButtonsPagedGrid.<>c.<>9__5_0;
|
|
if (<>9__5_ == 0)
|
|
{
|
|
SelectAccountButtonsPagedGrid.<>c.<>9__5_0 = delegate(CCEOLAOLEKJ a)
|
|
{
|
|
ObscuredInt <IFBPANODIPA>k__BackingField = a.<IFBPANODIPA>k__BackingField;
|
|
bool fakeValueActive = a.<IFBPANODIPA>k__BackingField.fakeValueActive;
|
|
LLKHFJDNFMM llkhfjdnfmm = FGPIDGLCKEF.IAHDANBDAAM(ObscuredInt.FAJDMKOEFLH(<IFBPANODIPA>k__BackingField));
|
|
return llkhfjdnfmm == 0 || !llkhfjdnfmm.CPAAFLNLLMP;
|
|
};
|
|
}
|
|
IOrderedEnumerable<CCEOLAOLEKJ> orderedEnumerable = Enumerable.OrderBy<CCEOLAOLEKJ, bool>(OLLKMIGNGBF, <>9__5_);
|
|
Func<CCEOLAOLEKJ, string> func;
|
|
if (SelectAccountButtonsPagedGrid.<>c.<>9__5_1 == 0)
|
|
{
|
|
func = (CCEOLAOLEKJ a) => a.<ODJFEIBNGPO>k__BackingField.NEFJIGBPGNM();
|
|
SelectAccountButtonsPagedGrid.<>c.<>9__5_1 = func;
|
|
}
|
|
IOrderedEnumerable<CCEOLAOLEKJ> orderedEnumerable2 = Enumerable.ThenBy<CCEOLAOLEKJ, string>(orderedEnumerable, func);
|
|
Func<CCEOLAOLEKJ, string> func2;
|
|
if (SelectAccountButtonsPagedGrid.<>c.<>9__5_2 == 0)
|
|
{
|
|
func2 = (CCEOLAOLEKJ a) => a.<KHJCEENDAOL>k__BackingField.NEFJIGBPGNM();
|
|
SelectAccountButtonsPagedGrid.<>c.<>9__5_2 = func2;
|
|
}
|
|
List<CCEOLAOLEKJ> list = Enumerable.ToList<CCEOLAOLEKJ>(Enumerable.ThenBy<CCEOLAOLEKJ, string>(orderedEnumerable2, func2));
|
|
}
|
|
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
|
}
|
|
|
|
// Token: 0x060118DC RID: 71900 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x60118DC")]
|
|
[Address(RVA = "0x536410", Offset = "0x535210", VA = "0x180536410")]
|
|
public IEnumerable<SelectAccountButton> GetAllButtons()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x060118DD RID: 71901 RVA: 0x003FE88C File Offset: 0x003FCA8C
|
|
[Token(Token = "0x60118DD")]
|
|
[Address(RVA = "0xD68240", Offset = "0xD67040", VA = "0x180D68240", Slot = "15")]
|
|
protected override void BGIECEPGDBE(CCEOLAOLEKJ HFIDFDPOCKA, SelectAccountButton LKDLEHGHCAD, int CKOIAKLOKMM)
|
|
{
|
|
Dictionary<int, string> hhjpoebghgb = this.HHJPOEBGHGB;
|
|
ObscuredInt <IFBPANODIPA>k__BackingField = HFIDFDPOCKA.<IFBPANODIPA>k__BackingField;
|
|
bool fakeValueActive = HFIDFDPOCKA.<IFBPANODIPA>k__BackingField.fakeValueActive;
|
|
int num = ObscuredInt.FAJDMKOEFLH(<IFBPANODIPA>k__BackingField);
|
|
bool flag = this.EHJBIJKGDFL.Contains(HFIDFDPOCKA);
|
|
}
|
|
|
|
// Token: 0x060118DE RID: 71902 RVA: 0x003FE8D0 File Offset: 0x003FCAD0
|
|
[Token(Token = "0x60118DE")]
|
|
[Address(RVA = "0xD686E0", Offset = "0xD674E0", VA = "0x180D686E0")]
|
|
public SelectAccountButtonsPagedGrid()
|
|
{
|
|
List<CCEOLAOLEKJ> list = new List();
|
|
this.EHJBIJKGDFL = list;
|
|
Dictionary<int, string> dictionary = new Dictionary();
|
|
this.HHJPOEBGHGB = dictionary;
|
|
base..ctor();
|
|
}
|
|
|
|
// Token: 0x0400B49D RID: 46237
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x400B49D")]
|
|
public SelectAccountButtonsPagedGrid.SelectedAccountsUpdated OnSelectedAccountsUpdatedEvent;
|
|
|
|
// Token: 0x0400B49E RID: 46238
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x400B49E")]
|
|
private List<CCEOLAOLEKJ> EHJBIJKGDFL;
|
|
|
|
// Token: 0x0400B49F RID: 46239
|
|
[FieldOffset(Offset = "0xC8")]
|
|
[Token(Token = "0x400B49F")]
|
|
private Dictionary<int, string> HHJPOEBGHGB;
|
|
|
|
// Token: 0x020028D9 RID: 10457
|
|
[Token(Token = "0x20028D9")]
|
|
[Serializable]
|
|
public class SelectedAccountsUpdated : UnityEvent<List<CCEOLAOLEKJ>>
|
|
{
|
|
// Token: 0x060118DF RID: 71903 RVA: 0x003FE900 File Offset: 0x003FCB00
|
|
[Token(Token = "0x60118DF")]
|
|
[Address(RVA = "0xD68770", Offset = "0xD67570", VA = "0x180D68770")]
|
|
public SelectedAccountsUpdated()
|
|
{
|
|
}
|
|
}
|
|
|
|
// Token: 0x020028DA RID: 10458
|
|
[Token(Token = "0x20028DA")]
|
|
[CompilerGenerated]
|
|
private sealed class AGPLGCLPMMI
|
|
{
|
|
// Token: 0x060118E0 RID: 71904 RVA: 0x003FE914 File Offset: 0x003FCB14
|
|
[Token(Token = "0x60118E0")]
|
|
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
|
|
public AGPLGCLPMMI()
|
|
{
|
|
}
|
|
|
|
// Token: 0x060118E1 RID: 71905 RVA: 0x003FE928 File Offset: 0x003FCB28
|
|
[Token(Token = "0x60118E1")]
|
|
[Address(RVA = "0xD57CA0", Offset = "0xD56AA0", VA = "0x180D57CA0")]
|
|
internal void <SetupNewChild>b__0(bool isOn)
|
|
{
|
|
CCEOLAOLEKJ <PBHKKOAINGC>k__BackingField;
|
|
SelectAccountButtonsPagedGrid selectAccountButtonsPagedGrid;
|
|
for (;;)
|
|
{
|
|
<PBHKKOAINGC>k__BackingField = this.button.<PBHKKOAINGC>k__BackingField;
|
|
selectAccountButtonsPagedGrid = this.<>4__this;
|
|
if (isOn)
|
|
{
|
|
break;
|
|
}
|
|
if (selectAccountButtonsPagedGrid.EHJBIJKGDFL.Contains(<PBHKKOAINGC>k__BackingField))
|
|
{
|
|
goto Block_2;
|
|
}
|
|
}
|
|
if (!selectAccountButtonsPagedGrid.EHJBIJKGDFL.Contains(<PBHKKOAINGC>k__BackingField))
|
|
{
|
|
this.<>4__this.EHJBIJKGDFL.Add(<PBHKKOAINGC>k__BackingField);
|
|
SelectAccountButtonsPagedGrid selectAccountButtonsPagedGrid2 = this.<>4__this;
|
|
SelectAccountButtonsPagedGrid.SelectedAccountsUpdated onSelectedAccountsUpdatedEvent = selectAccountButtonsPagedGrid2.OnSelectedAccountsUpdatedEvent;
|
|
List<CCEOLAOLEKJ> ehjbijkgdfl = selectAccountButtonsPagedGrid2.EHJBIJKGDFL;
|
|
onSelectedAccountsUpdatedEvent.Invoke(ehjbijkgdfl);
|
|
}
|
|
return;
|
|
Block_2:
|
|
bool flag = this.<>4__this.EHJBIJKGDFL.Remove(<PBHKKOAINGC>k__BackingField);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400B4A0 RID: 46240
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400B4A0")]
|
|
public SelectAccountButton button;
|
|
|
|
// Token: 0x0400B4A1 RID: 46241
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400B4A1")]
|
|
public SelectAccountButtonsPagedGrid <>4__this;
|
|
}
|
|
}
|
|
}
|