scripts
This commit is contained in:
@@ -0,0 +1,366 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using CodeStage.AntiCheat.ObscuredTypes;
|
||||
using Cpp2IlInjected;
|
||||
using RecNet;
|
||||
using RecRoom.Async;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
namespace RecRoom.Core.Screens.UI
|
||||
{
|
||||
// Token: 0x02002A22 RID: 10786
|
||||
[Token(Token = "0x2002A22")]
|
||||
[StructLayout(3)]
|
||||
public class RegistrationScreenLoginUIDialog : FormScreenLoginUIDialog<RegistrationScreenLoginUIDialog.MFCJLEPIHEB>
|
||||
{
|
||||
// Token: 0x06012D3E RID: 77118 RVA: 0x0047E684 File Offset: 0x0047C884
|
||||
[Token(Token = "0x6012D3E")]
|
||||
[Address(RVA = "0x11A1300", Offset = "0x119FD00", VA = "0x1811A1300")]
|
||||
private void Awake()
|
||||
{
|
||||
Action<DateTime?> oddckoniokp;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
DateSelectionFieldScreenLoginUI dateSelectionFieldScreenLoginUI = this.birthdaySelection;
|
||||
Action<DateTime?> action = new Action(this.BBCKFNFFHGI);
|
||||
oddckoniokp = dateSelectionFieldScreenLoginUI.ODDCKONIOKP;
|
||||
@delegate = Delegate.Combine(oddckoniokp, action);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != oddckoniokp)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012D3F RID: 77119 RVA: 0x0047E6C8 File Offset: 0x0047C8C8
|
||||
[Token(Token = "0x6012D3F")]
|
||||
[Address(RVA = "0x11A1D50", Offset = "0x11A0750", VA = "0x1811A1D50")]
|
||||
private void OnDestroy()
|
||||
{
|
||||
Action<DateTime?> oddckoniokp;
|
||||
Delegate @delegate;
|
||||
do
|
||||
{
|
||||
DateSelectionFieldScreenLoginUI dateSelectionFieldScreenLoginUI = this.birthdaySelection;
|
||||
Action<DateTime?> action = new Action(this.BBCKFNFFHGI);
|
||||
oddckoniokp = dateSelectionFieldScreenLoginUI.ODDCKONIOKP;
|
||||
@delegate = Delegate.Remove(oddckoniokp, action);
|
||||
}
|
||||
while (@delegate != 0 && @delegate == 0);
|
||||
while (@delegate != oddckoniokp)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06012D40 RID: 77120 RVA: 0x0047E70C File Offset: 0x0047C90C
|
||||
[Token(Token = "0x6012D40")]
|
||||
[Address(RVA = "0x11A18B0", Offset = "0x11A02B0", VA = "0x1811A18B0", Slot = "18")]
|
||||
protected override void FPOGDJCPAGF(ushort CPMPEJFMDED, ushort OEAPMLMHLLF)
|
||||
{
|
||||
base.FPOGDJCPAGF(CPMPEJFMDED, OEAPMLMHLLF);
|
||||
if (this.birthdaySelection.TryParseDate() != 0)
|
||||
{
|
||||
DateSelectionFieldScreenLoginUI dateSelectionFieldScreenLoginUI = this.birthdaySelection;
|
||||
DateTime? <ADHIEDFJLOH>k__BackingField = dateSelectionFieldScreenLoginUI.<ADHIEDFJLOH>k__BackingField;
|
||||
DateTime birthday = dateSelectionFieldScreenLoginUI;
|
||||
if (JAKDHKJDFNP.MEGPLKIGIJC(this.emailInput.m_Text.Trim()))
|
||||
{
|
||||
string text = this.usernameInput.m_Text.Trim();
|
||||
if (this.ILMFHKCBEPN || text.m_stringLength > 17 || text.Contains(" "))
|
||||
{
|
||||
}
|
||||
SingletonMonoBehaviour.Instance.ShowErrorMessage("Creating account...");
|
||||
IPromise<CCEOLAOLEKJ> promise = PEGGCEDHBOF.HHFPNFANNEG();
|
||||
if (RegistrationScreenLoginUIDialog.<>c.<>9__8_0 == 0)
|
||||
{
|
||||
RegistrationScreenLoginUIDialog.<>c.<>9__8_0 = (CCEOLAOLEKJ newAccount) => MHOKOMMOGKM.LDIBACMCGGM(ObscuredInt.FAJDMKOEFLH(newAccount.<IFBPANODIPA>k__BackingField));
|
||||
}
|
||||
if (RegistrationScreenLoginUIDialog.<>c.<>9__8_1 == 0)
|
||||
{
|
||||
RegistrationScreenLoginUIDialog.<>c.<>9__8_1 = () => Matchmaking.GHNONNKLKHE();
|
||||
}
|
||||
Action action = delegate
|
||||
{
|
||||
SingletonMonoBehaviour.Instance.LogRegistrationEvent("emailStep", "submitted");
|
||||
AccountSelectionManager instance = SingletonMonoBehaviour.Instance;
|
||||
RegistrationScreenLoginUIDialog <>4__this = this;
|
||||
AccountSelectionManager instance2 = SingletonMonoBehaviour.Instance;
|
||||
DateTime birthday2 = birthday;
|
||||
instance2.QueueBirthdayEventForPostLogIn(birthday2);
|
||||
AccountSelectionManager instance3 = SingletonMonoBehaviour.Instance;
|
||||
int num2 = 0;
|
||||
instance3.LogRegistrationEvent("accountCreated", num2);
|
||||
bool isCompleted = ((IAsyncResult)this).IsCompleted;
|
||||
};
|
||||
Action<string> action2 = delegate(string error)
|
||||
{
|
||||
AccountSelectionManager instance4 = SingletonMonoBehaviour.Instance;
|
||||
int num3 = 0;
|
||||
instance4.LogRegistrationEvent("failedAccountCreation", num3);
|
||||
RegistrationScreenLoginUIDialog <>4__this2 = this;
|
||||
RegistrationScreenLoginUIDialog <>4__this3 = this;
|
||||
int num4 = 0;
|
||||
<>4__this3.LLKGFICOMFG((FormScreenLoginUIDialog.DFMJNFJBEAI)num4);
|
||||
bool forceAccountVerification = SingletonMonoBehaviour.Instance.IHHHGFJJMCB;
|
||||
};
|
||||
return;
|
||||
}
|
||||
}
|
||||
int num = 0;
|
||||
base.LLKGFICOMFG((FormScreenLoginUIDialog.DFMJNFJBEAI)num);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06012D41 RID: 77121 RVA: 0x0047E828 File Offset: 0x0047CA28
|
||||
[Token(Token = "0x6012D41")]
|
||||
[Address(RVA = "0x11A1EE0", Offset = "0x11A08E0", VA = "0x1811A1EE0", Slot = "14")]
|
||||
public override IPromise<PBPCEIOFCLI> ShowDialog(RegistrationScreenLoginUIDialog.MFCJLEPIHEB GDMBKAKDBEC)
|
||||
{
|
||||
Button button = this.backButton;
|
||||
int num = 0;
|
||||
if (button != num)
|
||||
{
|
||||
Button button2 = this.backButton;
|
||||
int num2 = 0;
|
||||
button2.gameObject.SetActive(num2 != 0);
|
||||
}
|
||||
bool has_value = GDMBKAKDBEC.OFBLFFOKPDA.has_value;
|
||||
int num3 = 0;
|
||||
DateSelectionFieldScreenLoginUI dateSelectionFieldScreenLoginUI = this.birthdaySelection;
|
||||
int num7;
|
||||
if (!has_value)
|
||||
{
|
||||
this.ILMFHKCBEPN = num3 != 0;
|
||||
AG_TMP_InputField dayField = dateSelectionFieldScreenLoginUI.dayField;
|
||||
int num4 = 0;
|
||||
dayField.text = num4;
|
||||
AG_TMP_InputField monthField = dateSelectionFieldScreenLoginUI.monthField;
|
||||
int num5 = 0;
|
||||
monthField.text = num5;
|
||||
AG_TMP_InputField yearField = dateSelectionFieldScreenLoginUI.yearField;
|
||||
int num6 = 0;
|
||||
yearField.text = num6;
|
||||
num7 = 0;
|
||||
}
|
||||
dateSelectionFieldScreenLoginUI.dayField.text = num7;
|
||||
dateSelectionFieldScreenLoginUI.monthField.text = num7;
|
||||
dateSelectionFieldScreenLoginUI.yearField.text = num7;
|
||||
int num8 = 0;
|
||||
string text = dateSelectionFieldScreenLoginUI.TryParseDate();
|
||||
this.BBCKFNFFHGI(num8);
|
||||
GameObject gameObject = this.birthdaySelection.gameObject;
|
||||
bool flag = !has_value;
|
||||
gameObject.SetActive(flag);
|
||||
if (gameObject == 0 && (this.ILMFHKCBEPN ? 1 : 0) == num3)
|
||||
{
|
||||
AG_TMP_InputField ag_TMP_InputField = this.usernameInput;
|
||||
}
|
||||
AG_TMP_InputField ag_TMP_InputField2 = this.usernameInput;
|
||||
int num9 = 0;
|
||||
ag_TMP_InputField2.text = num9;
|
||||
AG_TMP_InputField ag_TMP_InputField3 = this.usernameInput;
|
||||
bool flag2;
|
||||
if (has_value)
|
||||
{
|
||||
flag2 = (this.ILMFHKCBEPN ? 1 : 0) == num3;
|
||||
}
|
||||
ag_TMP_InputField3.interactable = flag2;
|
||||
AG_TMP_InputField ag_TMP_InputField4 = this.emailInput;
|
||||
flag2 = has_value;
|
||||
ag_TMP_InputField4.interactable = flag2;
|
||||
IPromise<PBPCEIOFCLI> promise;
|
||||
return promise;
|
||||
}
|
||||
|
||||
// Token: 0x06012D42 RID: 77122 RVA: 0x0047E98C File Offset: 0x0047CB8C
|
||||
[Token(Token = "0x6012D42")]
|
||||
[Address(RVA = "0x11A1820", Offset = "0x11A0220", VA = "0x1811A1820")]
|
||||
public void CodeOfConductButton()
|
||||
{
|
||||
FBPACFPINIK.HHBGCJAIACK();
|
||||
SingletonMonoBehaviour.Instance.OnComfortAndSafetySelected();
|
||||
}
|
||||
|
||||
// Token: 0x06012D43 RID: 77123 RVA: 0x0047E9B0 File Offset: 0x0047CBB0
|
||||
[Token(Token = "0x6012D43")]
|
||||
[Address(RVA = "0x11A1E50", Offset = "0x11A0850", VA = "0x1811A1E50")]
|
||||
public void PrivacyPolicyButton()
|
||||
{
|
||||
FBPACFPINIK.IAJIDPEFALM();
|
||||
SingletonMonoBehaviour.Instance.OnPrivacyPolicySelected();
|
||||
}
|
||||
|
||||
// Token: 0x06012D44 RID: 77124 RVA: 0x0047E9D4 File Offset: 0x0047CBD4
|
||||
[Token(Token = "0x6012D44")]
|
||||
[Address(RVA = "0x11A1D00", Offset = "0x11A0700", VA = "0x1811A1D00")]
|
||||
public void HelpPageButton()
|
||||
{
|
||||
FBPACFPINIK.IIHKLJONBPO(true);
|
||||
}
|
||||
|
||||
// Token: 0x06012D45 RID: 77125 RVA: 0x0047E9E8 File Offset: 0x0047CBE8
|
||||
[Token(Token = "0x6012D45")]
|
||||
[Address(RVA = "0x11A1400", Offset = "0x119FE00", VA = "0x1811A1400")]
|
||||
private void BBCKFNFFHGI(DateTime? DEDIJMHLGAP)
|
||||
{
|
||||
AG_TMP_InputField ag_TMP_InputField3;
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
DateTime utcNow = DateTime.UtcNow;
|
||||
bool flag = num2 > utcNow;
|
||||
this.ILMFHKCBEPN = flag;
|
||||
this.usernameInput.interactable = flag;
|
||||
AG_TMP_InputField ag_TMP_InputField = this.emailInput;
|
||||
bool has_value = DEDIJMHLGAP.has_value;
|
||||
ag_TMP_InputField.interactable = has_value;
|
||||
AG_TMP_InputField ag_TMP_InputField2 = this.usernameInput;
|
||||
if ((this.ILMFHKCBEPN ? 1 : 0) != num)
|
||||
{
|
||||
Graphic placeholder = ag_TMP_InputField2.m_Placeholder;
|
||||
if (placeholder != 0 && placeholder != 0)
|
||||
{
|
||||
Graphic placeholder2 = this.emailInput.m_Placeholder;
|
||||
if (placeholder2 != 0 && placeholder2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Graphic placeholder3 = ag_TMP_InputField3.m_Placeholder;
|
||||
if (placeholder3 != 0 && placeholder3 != 0 && placeholder3 != 0 && placeholder3 != 0)
|
||||
{
|
||||
goto Block_8;
|
||||
}
|
||||
}
|
||||
}
|
||||
AG_TMP_InputField ag_TMP_InputField4 = this.usernameInput;
|
||||
string empty = string.Empty;
|
||||
ag_TMP_InputField4.text = empty;
|
||||
ag_TMP_InputField3 = this.emailInput;
|
||||
string empty2 = string.Empty;
|
||||
ag_TMP_InputField3.text = empty2;
|
||||
return;
|
||||
Block_8:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06012D46 RID: 77126 RVA: 0x0047EAF8 File Offset: 0x0047CCF8
|
||||
[Token(Token = "0x6012D46")]
|
||||
[Address(RVA = "0x11A2200", Offset = "0x11A0C00", VA = "0x1811A2200")]
|
||||
public RegistrationScreenLoginUIDialog()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x0400CA21 RID: 51745
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400CA21")]
|
||||
[SerializeField]
|
||||
private AG_TMP_InputField usernameInput;
|
||||
|
||||
// Token: 0x0400CA22 RID: 51746
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400CA22")]
|
||||
[SerializeField]
|
||||
private AG_TMP_InputField emailInput;
|
||||
|
||||
// Token: 0x0400CA23 RID: 51747
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400CA23")]
|
||||
[SerializeField]
|
||||
private DateSelectionFieldScreenLoginUI birthdaySelection;
|
||||
|
||||
// Token: 0x0400CA24 RID: 51748
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400CA24")]
|
||||
[SerializeField]
|
||||
private Button backButton;
|
||||
|
||||
// Token: 0x0400CA25 RID: 51749
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400CA25")]
|
||||
private bool ILMFHKCBEPN;
|
||||
|
||||
// Token: 0x02002A23 RID: 10787
|
||||
[Token(Token = "0x2002A23")]
|
||||
public struct MFCJLEPIHEB
|
||||
{
|
||||
// Token: 0x0400CA26 RID: 51750
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
||||
[Token(Token = "0x400CA26")]
|
||||
public string IJPHMDBIGJE;
|
||||
|
||||
// Token: 0x0400CA27 RID: 51751
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x8")]
|
||||
[Token(Token = "0x400CA27")]
|
||||
public DateTime? OFBLFFOKPDA;
|
||||
|
||||
// Token: 0x0400CA28 RID: 51752
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400CA28")]
|
||||
public bool OHKDJPNJCPC;
|
||||
}
|
||||
|
||||
// Token: 0x02002A24 RID: 10788
|
||||
[Token(Token = "0x2002A24")]
|
||||
[CompilerGenerated]
|
||||
private sealed class EIKFFCKHJJH
|
||||
{
|
||||
// Token: 0x06012D47 RID: 77127 RVA: 0x0047EB0C File Offset: 0x0047CD0C
|
||||
[Token(Token = "0x6012D47")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public EIKFFCKHJJH()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06012D48 RID: 77128 RVA: 0x0047EB20 File Offset: 0x0047CD20
|
||||
[Token(Token = "0x6012D48")]
|
||||
[Address(RVA = "0x119DC10", Offset = "0x119C610", VA = "0x18119DC10")]
|
||||
internal void <OnEnterSubmittingState>b__2()
|
||||
{
|
||||
SingletonMonoBehaviour.Instance.LogRegistrationEvent("emailStep", "submitted");
|
||||
AccountSelectionManager instance = SingletonMonoBehaviour.Instance;
|
||||
RegistrationScreenLoginUIDialog registrationScreenLoginUIDialog = this.<>4__this;
|
||||
AccountSelectionManager instance2 = SingletonMonoBehaviour.Instance;
|
||||
DateTime dateTime = this.birthday;
|
||||
instance2.QueueBirthdayEventForPostLogIn(dateTime);
|
||||
AccountSelectionManager instance3 = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
instance3.LogRegistrationEvent("accountCreated", num);
|
||||
bool isCompleted = ((IAsyncResult)this.<>4__this).IsCompleted;
|
||||
}
|
||||
|
||||
// Token: 0x06012D49 RID: 77129 RVA: 0x0047EB90 File Offset: 0x0047CD90
|
||||
[Token(Token = "0x6012D49")]
|
||||
[Address(RVA = "0x119DD50", Offset = "0x119C750", VA = "0x18119DD50")]
|
||||
internal void <OnEnterSubmittingState>b__3(string error)
|
||||
{
|
||||
AccountSelectionManager instance = SingletonMonoBehaviour.Instance;
|
||||
int num = 0;
|
||||
instance.LogRegistrationEvent("failedAccountCreation", num);
|
||||
RegistrationScreenLoginUIDialog registrationScreenLoginUIDialog = this.<>4__this;
|
||||
RegistrationScreenLoginUIDialog registrationScreenLoginUIDialog2 = this.<>4__this;
|
||||
int num2 = 0;
|
||||
registrationScreenLoginUIDialog2.LLKGFICOMFG((FormScreenLoginUIDialog.DFMJNFJBEAI)num2);
|
||||
bool forceAccountVerification = SingletonMonoBehaviour.Instance.IHHHGFJJMCB;
|
||||
}
|
||||
|
||||
// Token: 0x0400CA29 RID: 51753
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400CA29")]
|
||||
public RegistrationScreenLoginUIDialog <>4__this;
|
||||
|
||||
// Token: 0x0400CA2A RID: 51754
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400CA2A")]
|
||||
public DateTime birthday;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user