117 lines
3.5 KiB
C#
117 lines
3.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
using RecRoom;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace AGUI.Inputs
|
|
{
|
|
// Token: 0x02001080 RID: 4224
|
|
[Token(Token = "0x2001080")]
|
|
public class InputFieldManager : SingletonMonoBehaviour<InputFieldManager>
|
|
{
|
|
// Token: 0x1700104C RID: 4172
|
|
// (get) Token: 0x06005F7C RID: 24444 RVA: 0x0014FB14 File Offset: 0x0014DD14
|
|
// (set) Token: 0x06005F7D RID: 24445 RVA: 0x0014FB28 File Offset: 0x0014DD28
|
|
[Token(Token = "0x1700104C")]
|
|
public TMP_InputField OEOGDGECMNG
|
|
{
|
|
[Token(Token = "0x6005F7C")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get;
|
|
[Token(Token = "0x6005F7D")]
|
|
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
|
private set;
|
|
}
|
|
|
|
// Token: 0x06005F7E RID: 24446 RVA: 0x0014FB3C File Offset: 0x0014DD3C
|
|
[Token(Token = "0x6005F7E")]
|
|
[Address(RVA = "0xF3F380", Offset = "0xF3E180", VA = "0x180F3F380", Slot = "4")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
TMP_InputField.InputFieldInstantiated += new Action(this.AEEJODLPDFL);
|
|
}
|
|
|
|
// Token: 0x06005F7F RID: 24447 RVA: 0x0014FB60 File Offset: 0x0014DD60
|
|
[Token(Token = "0x6005F7F")]
|
|
[Address(RVA = "0xF3F580", Offset = "0xF3E380", VA = "0x180F3F580", Slot = "5")]
|
|
protected override void OnDestroy()
|
|
{
|
|
base.OnDestroy();
|
|
TMP_InputField.InputFieldInstantiated -= new Action(this.AEEJODLPDFL);
|
|
}
|
|
|
|
// Token: 0x06005F80 RID: 24448 RVA: 0x0014FB84 File Offset: 0x0014DD84
|
|
[Token(Token = "0x6005F80")]
|
|
[Address(RVA = "0xF3F620", Offset = "0xF3E420", VA = "0x180F3F620")]
|
|
private void Update()
|
|
{
|
|
EventSystem current = EventSystem.current;
|
|
int num = 0;
|
|
if (current != num)
|
|
{
|
|
GameObject currentSelected = EventSystem.current.m_CurrentSelected;
|
|
int num2 = 0;
|
|
if (currentSelected != num2 && currentSelected.activeInHierarchy)
|
|
{
|
|
TMP_InputField component = currentSelected.GetComponent<TMP_InputField>();
|
|
int num3 = 0;
|
|
if (component != num3 && component.m_AllowInput)
|
|
{
|
|
goto IL_60;
|
|
}
|
|
}
|
|
}
|
|
int num4 = 0;
|
|
IL_60:
|
|
this.<JBLJOOPHIAE>k__BackingField = num4;
|
|
}
|
|
|
|
// Token: 0x06005F81 RID: 24449 RVA: 0x0014FC00 File Offset: 0x0014DE00
|
|
[Token(Token = "0x6005F81")]
|
|
[Address(RVA = "0xF3F420", Offset = "0xF3E220", VA = "0x180F3F420")]
|
|
private TMP_InputField NMHDOLMJPAO()
|
|
{
|
|
EventSystem current = EventSystem.current;
|
|
int num = 0;
|
|
if (current != num)
|
|
{
|
|
GameObject currentSelected = EventSystem.current.m_CurrentSelected;
|
|
int num2 = 0;
|
|
if (currentSelected != num2 && currentSelected.activeInHierarchy)
|
|
{
|
|
TMP_InputField component = currentSelected.GetComponent<TMP_InputField>();
|
|
int num3 = 0;
|
|
if (component != num3 && component.m_AllowInput)
|
|
{
|
|
return component;
|
|
}
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x06005F82 RID: 24450 RVA: 0x0014FC78 File Offset: 0x0014DE78
|
|
[Token(Token = "0x6005F82")]
|
|
[Address(RVA = "0xF3F2D0", Offset = "0xF3E0D0", VA = "0x180F3F2D0")]
|
|
private void AEEJODLPDFL(TMP_InputField BIBOIEDPNOJ)
|
|
{
|
|
DisabledAltRenderedObject component = BIBOIEDPNOJ.GetComponent<DisabledAltRenderedObject>();
|
|
int num = 0;
|
|
if (component == num)
|
|
{
|
|
BIBOIEDPNOJ.gameObject.AddComponent<DisabledAltRenderedObject>().NeverRender = true;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06005F83 RID: 24451 RVA: 0x0014FCB0 File Offset: 0x0014DEB0
|
|
[Token(Token = "0x6005F83")]
|
|
[Address(RVA = "0xF3F780", Offset = "0xF3E580", VA = "0x180F3F780")]
|
|
public InputFieldManager()
|
|
{
|
|
}
|
|
}
|
|
}
|