Files
2026-04-10 22:50:51 +02:00

574 lines
14 KiB
C#

using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.RegularExpressions;
using AGUI.StackedUI;
using Cpp2IlInjected;
using Google.Protobuf.Collections;
using RecRoom.AGUI.ToolUIs;
using RecRoom.Circuits;
using RecRoom.Core.Creation;
using TMPro;
using UnityEngine;
// Token: 0x0200025D RID: 605
[Token(Token = "0x200025D")]
[DisallowMultipleComponent]
public class PlayerEditableText : PlayerEditableTextBase
{
// Token: 0x170002A4 RID: 676
// (get) Token: 0x060011FD RID: 4605 RVA: 0x0004C698 File Offset: 0x0004A898
// (set) Token: 0x060011FE RID: 4606 RVA: 0x0004C6B8 File Offset: 0x0004A8B8
[Token(Token = "0x170002A4")]
private string LKMAOHJJOOP
{
[Token(Token = "0x60011FD")]
[Address(RVA = "0xAE7EB0", Offset = "0xAE6CB0", VA = "0x180AE7EB0")]
get
{
return this.AFJHJMMHPJF.IAHDANBDAAM();
}
[Token(Token = "0x60011FE")]
[Address(RVA = "0xAE7E30", Offset = "0xAE6C30", VA = "0x180AE7E30")]
set
{
JNCLECIDJMA<string> afjhjmmhpjf = this.AFJHJMMHPJF;
string text = this.IJEMLKJAEDJ(value);
}
}
// Token: 0x060011FF RID: 4607 RVA: 0x0004C6DC File Offset: 0x0004A8DC
[Token(Token = "0x60011FF")]
[Address(RVA = "0xAE7C80", Offset = "0xAE6A80", VA = "0x180AE7C80", Slot = "13")]
protected override void Awake()
{
base.Awake();
Action action = new Action(base.LDEGMHLJLGJ);
JNCLECIDJMA<string> jnclecidjma;
this.AFJHJMMHPJF = jnclecidjma;
}
// Token: 0x06001200 RID: 4608 RVA: 0x0004C704 File Offset: 0x0004A904
[Token(Token = "0x6001200")]
[Address(RVA = "0xAE80D0", Offset = "0xAE6ED0", VA = "0x180AE80D0", Slot = "18")]
protected override void LMFHDPCGCGP()
{
if (EIMGAFPPJFD.IKDFDELJBII())
{
CreationObject component = base.GetComponent<CreationObject>();
int num = 0;
if (component == num)
{
GameObject gameObject = base.gameObject;
Debug.LogWarning("Missing CreationObject", gameObject);
throw new ArrayTypeMismatchException();
}
OMKPHDBNLKH<CreationObjectSettingStringUIControl, string>.DEDABHKCIBG <>9__8_ = PlayerEditableText.<>c.<>9__8_0;
if (<>9__8_ == 0)
{
PlayerEditableText.<>c.<>9__8_0 = (MakerPenPaletteConfigScreen editableUIFlow) => editableUIFlow.DefaultStringUIControlPrefab;
}
OMKPHDBNLKH<CreationObjectSettingStringUIControl, string>.OHINDOLFNMP ohindolfnmp = new OMKPHDBNLKH.OHINDOLFNMP(this.MONIMACGAPF);
int num2 = this.editablePriority;
PGIHLFOHNML pgihlfohnml = new PGIHLFOHNML(<>9__8_, ohindolfnmp, num2);
int num3 = 0;
ILINODKFHEO ilinodkfheo = component.AddConfigurableSetting(pgihlfohnml);
DOPNALIMPNA[] array = new DOPNALIMPNA[0];
string text = this.textLabel;
Func<string> func = new Func(this.SynchronizedMessageGet);
Action<string> action = new Action(this.SynchronizedMessageSet);
int maxMessageLength = this.maxMessageLength;
int num4 = 0;
int num5 = 0;
EIHJCCEGFLF eihjccegflf = ONOKJPIMIIP.DGNHPOINBPP(func, action, num5, num4, num3, num3 != 0, text);
if (eihjccegflf != 0)
{
}
string text2 = this.textLabel;
Func<string> func2 = new Func(this.SynchronizedMessageGet);
Action<string> action2 = new Action(this.SynchronizedMessageSet);
INAOBEINBGO inaobeinbgo;
if (inaobeinbgo != 0)
{
}
eihjccegflf.<JKDKHCCKGOD>k__BackingField = inaobeinbgo;
}
}
// Token: 0x06001201 RID: 4609 RVA: 0x0004C824 File Offset: 0x0004AA24
[Token(Token = "0x6001201")]
[Address(RVA = "0xAE7EB0", Offset = "0xAE6CB0", VA = "0x180AE7EB0")]
public string SynchronizedMessageGet()
{
return this.AFJHJMMHPJF.IAHDANBDAAM();
}
// Token: 0x06001202 RID: 4610 RVA: 0x0004C844 File Offset: 0x0004AA44
[Token(Token = "0x6001202")]
[Address(RVA = "0xAE88A0", Offset = "0xAE76A0", VA = "0x180AE88A0")]
public void SynchronizedMessageSet(string KAJBNMCAFBB)
{
PlayerEditableText.BPHFJDBBOOG bphfjdbboog = new PlayerEditableText.BPHFJDBBOOG();
bphfjdbboog.<>4__this = this;
bphfjdbboog.newMessage = KAJBNMCAFBB;
if (bphfjdbboog == 0)
{
PMGCJEPKFOF<NKHBKKGOIHL.PEHMCMIFBJO> pmgcjepkfof = NKHBKKGOIHL.EFFCNBECOKA(bphfjdbboog.newMessage);
Action<NKHBKKGOIHL.PEHMCMIFBJO> action = delegate(NKHBKKGOIHL.PEHMCMIFBJO response)
{
if (response.<GBEEHFGKJOF>k__BackingField)
{
PlayerEditableText <>4__this = bphfjdbboog.<>4__this;
string newMessage = bphfjdbboog.newMessage;
int maxMessageLength = <>4__this.maxMessageLength;
if (newMessage.m_stringLength > maxMessageLength)
{
int num2 = 0;
string text = newMessage.Substring(num2, maxMessageLength);
}
<>4__this.LKMAOHJJOOP = newMessage;
}
};
int num = 0;
num += num;
num++;
PMGCJEPKFOF<NKHBKKGOIHL.PEHMCMIFBJO> pmgcjepkfof2 = pmgcjepkfof.OHLPJBFCABI(action);
return;
}
this.LKMAOHJJOOP = "";
}
// Token: 0x06001203 RID: 4611 RVA: 0x0000220F File Offset: 0x0000040F
[Token(Token = "0x6001203")]
[Address(RVA = "0xAE7D50", Offset = "0xAE6B50", VA = "0x180AE7D50")]
public IFNLKKABKEB<MPHHHDGFLNP> CV2SyncMessageSet(IBNOALNMLHC CHKKEHOKPJP, string KAJBNMCAFBB)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06001204 RID: 4612 RVA: 0x0004C8AC File Offset: 0x0004AAAC
[Token(Token = "0x6001204")]
[Address(RVA = "0xAE7EB0", Offset = "0xAE6CB0", VA = "0x180AE7EB0", Slot = "19")]
protected override string NCOBPFBEHPD()
{
return this.AFJHJMMHPJF.IAHDANBDAAM();
}
// Token: 0x06001205 RID: 4613 RVA: 0x0004C8CC File Offset: 0x0004AACC
[Token(Token = "0x6001205")]
[Address(RVA = "0xAE7D90", Offset = "0xAE6B90", VA = "0x180AE7D90", Slot = "20")]
public override void DeserializeFrom(KPNDFONGDGF HFBJGCHOANH)
{
if (HFBJGCHOANH != 0 && HFBJGCHOANH != 0)
{
Dictionary<Guid, Guid> lnfkfahmaci = HFBJGCHOANH.LNFKFAHMACI;
}
string defaultMessage = this.defaultMessage;
this.LKMAOHJJOOP = defaultMessage;
}
// Token: 0x06001206 RID: 4614 RVA: 0x0004C900 File Offset: 0x0004AB00
[Token(Token = "0x6001206")]
[Address(RVA = "0xAE8780", Offset = "0xAE7580", VA = "0x180AE8780", Slot = "21")]
public override void SerializeTo(ref PDEKIHFJKHJ IABNDBNHMKF, ref MKNCHKCCIHK NHFINJNIPGK, StringBuilder BIPOIFGEMGB)
{
RepeatedField<string> gmemjhhkhgf = new CAEHJIIMFMB().GMEMJHHKHGF;
string text = this.AFJHJMMHPJF.IAHDANBDAAM();
gmemjhhkhgf.Add(text);
}
// Token: 0x06001207 RID: 4615 RVA: 0x0004C934 File Offset: 0x0004AB34
[Token(Token = "0x6001207")]
[Address(RVA = "0xAE7F00", Offset = "0xAE6D00", VA = "0x180AE7F00")]
private string IJEMLKJAEDJ(string OAHGODMGDNB)
{
string[] eifiloapnbo = PlayerEditableText.EIFILOAPNBO;
string text = string.Join("|", eifiloapnbo);
Regex regex = new Regex("<(" + text + ")(=.*?)?>");
Regex regex2 = new Regex("</(" + text + ")>");
string text2 = regex.Replace(OAHGODMGDNB, "");
if (!text2.Equals(OAHGODMGDNB))
{
string text3 = regex.Replace(text2, "");
}
string text4 = regex2.Replace(text2, "");
string text5;
if (!text4.Equals(OAHGODMGDNB))
{
text5 = regex2.Replace(text4, "");
while (text5 != 0)
{
}
}
return text5;
}
// Token: 0x06001208 RID: 4616 RVA: 0x0004C9E0 File Offset: 0x0004ABE0
[Token(Token = "0x6001208")]
[Address(RVA = "0xAEA040", Offset = "0xAE8E40", VA = "0x180AEA040")]
public PlayerEditableText()
{
List<KLDGLAAAILI> list = new List();
this.PGDICHHPLBI = list;
this.defaultMessage = "Rec Room";
this.maxMessageLength = (int)((ulong)100L);
this.dialogMessage = "Enter a message to display";
StringBuilder stringBuilder = new StringBuilder();
this.OEHELEIBKEB = stringBuilder;
Dictionary<InputSlot, int> dictionary = new Dictionary();
this.NOGGJIOKBOF = dictionary;
base..ctor();
}
// Token: 0x06001209 RID: 4617 RVA: 0x0004CA48 File Offset: 0x0004AC48
// Note: this type is marked as 'beforefieldinit'.
[Token(Token = "0x6001209")]
[Address(RVA = "0xAE8A10", Offset = "0xAE7810", VA = "0x180AE8A10")]
static PlayerEditableText()
{
string[] array = new string[61];
if ("a" != 0)
{
}
array[0] = "a";
if ("align" != 0)
{
}
array[1] = "align";
if ("alpha" != 0)
{
}
array[2] = "alpha";
if ("author" != 0)
{
}
array[3] = "author";
if ("b" != 0)
{
}
array[4] = "b";
if ("big" != 0)
{
}
array[5] = "big";
if ("blockquote" != 0)
{
}
array[6] = "blockquote";
if ("br" != 0)
{
}
array[7] = "br";
if ("color" != 0)
{
}
array[8] = "color";
if ("center" != 0)
{
}
array[9] = "center";
if ("code" != 0)
{
}
array[10] = "code";
if ("cspace" != 0)
{
}
array[11] = "cspace";
if ("dd" != 0)
{
}
array[12] = "dd";
if ("dl" != 0)
{
}
array[13] = "dl";
if ("dt" != 0)
{
}
array[14] = "dt";
if ("em" != 0)
{
}
array[15] = "em";
if ("font" != 0)
{
}
array[16] = "font";
if ("h1" != 0)
{
}
array[17] = "h1";
if ("h2" != 0)
{
}
array[18] = "h2";
if ("h3" != 0)
{
}
array[19] = "h3";
if ("hr" != 0)
{
}
array[20] = "hr";
if ("i" != 0)
{
}
array[21] = "i";
if ("img" != 0)
{
}
array[22] = "img";
if ("indent" != 0)
{
}
array[23] = "indent";
if ("li" != 0)
{
}
array[24] = "li";
if ("line-height" != 0)
{
}
array[25] = "line-height";
if ("line-indent" != 0)
{
}
array[26] = "line-indent";
if ("link" != 0)
{
}
array[27] = "link";
if ("lowercase" != 0)
{
}
array[28] = "lowercase";
if ("margin" != 0)
{
}
array[29] = "margin";
if ("mark" != 0)
{
}
array[30] = "mark";
if ("material" != 0)
{
}
array[31] = "material";
if ("mspace" != 0)
{
}
array[32] = "mspace";
if ("nobr" != 0)
{
}
array[33] = "nobr";
if ("noparse" != 0)
{
}
array[34] = "noparse";
if ("ol" != 0)
{
}
array[35] = "ol";
if ("p" != 0)
{
}
array[36] = "p";
if ("page" != 0)
{
}
array[37] = "page";
if ("pos" != 0)
{
}
array[38] = "pos";
if ("pre" != 0)
{
}
array[39] = "pre";
if ("qt" != 0)
{
}
array[40] = "qt";
if ("quad" != 0)
{
}
array[41] = "quad";
if ("s" != 0)
{
}
array[42] = "s";
if ("small" != 0)
{
}
array[43] = "small";
if ("smallcaps" != 0)
{
}
array[44] = "smallcaps";
if ("space" != 0)
{
}
array[45] = "space";
if ("sprite" != 0)
{
}
array[46] = "sprite";
if ("strong" != 0)
{
}
array[47] = "strong";
if ("style" != 0)
{
}
array[48] = "style";
if ("sub" != 0)
{
}
array[49] = "sub";
if ("sup" != 0)
{
}
array[50] = "sup";
if ("table" != 0)
{
}
array[51] = "table";
if ("td" != 0)
{
}
array[52] = "td";
if ("th" != 0)
{
}
array[53] = "th";
if ("tr" != 0)
{
}
array[54] = "tr";
if ("tt" != 0)
{
}
array[55] = "tt";
if ("u" != 0)
{
}
array[56] = "u";
if ("ul" != 0)
{
}
array[57] = "ul";
if ("uppercase" != 0)
{
}
array[58] = "uppercase";
if ("voffset" != 0)
{
}
array[59] = "voffset";
if ("width" != 0)
{
}
array[60] = "width";
PlayerEditableText.EIFILOAPNBO = array;
}
// Token: 0x0600120A RID: 4618 RVA: 0x0004CF64 File Offset: 0x0004B164
[Token(Token = "0x600120A")]
[Address(RVA = "0xAE85E0", Offset = "0xAE73E0", VA = "0x180AE85E0")]
[CompilerGenerated]
private void MONIMACGAPF(CreationObjectSettingStringUIControl GCCLEJOGCCE)
{
int num = 0;
string text = GCCLEJOGCCE.PropertyDescription.text;
Func<string> func = new Func(this.SynchronizedMessageGet);
Action<string> action = new Action(this.SynchronizedMessageSet);
string text2 = this.textLabel;
string text3 = "Enter " + text2;
EBPEIAPPJJK textInputMode = this.textInputMode;
string dialogMessage = this.dialogMessage;
int maxMessageLength = this.maxMessageLength;
GCCLEJOGCCE.JJAPBNJPPAK = num;
GCCLEJOGCCE.JJAPBNJPPAK.HLOLBMKJFOM = (EBPEIAPPJJK)num;
GCCLEJOGCCE.JJAPBNJPPAK.GOLGMHKKGEA = num;
GCCLEJOGCCE.JJAPBNJPPAK.LNEHNHPOOKK = num;
Action<CreationObjectSettingStringUIControl> action2 = new Action(this.MOGMMKNHHPE);
}
// Token: 0x0600120B RID: 4619 RVA: 0x0004D00C File Offset: 0x0004B20C
[Token(Token = "0x600120B")]
[Address(RVA = "0xAE8560", Offset = "0xAE7360", VA = "0x180AE8560")]
[CompilerGenerated]
private void MOGMMKNHHPE(CreationObjectSettingStringUIControl JBFIMIEMPII)
{
TextMeshProUGUI propertyValueText = JBFIMIEMPII.PropertyValueText;
string text = this.AFJHJMMHPJF.IAHDANBDAAM();
bool isCompleted = ((IAsyncResult)propertyValueText).IsCompleted;
}
// Token: 0x04000DFD RID: 3581
[Token(Token = "0x4000DFD")]
private static readonly string[] EIFILOAPNBO;
// Token: 0x04000DFE RID: 3582
[FieldOffset(Offset = "0xA8")]
[Token(Token = "0x4000DFE")]
[SerializeField]
private string textLabel = "Message";
// Token: 0x04000DFF RID: 3583
[FieldOffset(Offset = "0xB0")]
[Token(Token = "0x4000DFF")]
[SerializeField]
private int editablePriority;
// Token: 0x04000E00 RID: 3584
[FieldOffset(Offset = "0xB8")]
[Token(Token = "0x4000E00")]
private JNCLECIDJMA<string> AFJHJMMHPJF;
// Token: 0x0200025F RID: 607
[Token(Token = "0x200025F")]
[CompilerGenerated]
private sealed class BPHFJDBBOOG
{
// Token: 0x0600120F RID: 4623 RVA: 0x0004D084 File Offset: 0x0004B284
[Token(Token = "0x600120F")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public BPHFJDBBOOG()
{
}
// Token: 0x06001210 RID: 4624 RVA: 0x0004D098 File Offset: 0x0004B298
[Token(Token = "0x6001210")]
[Address(RVA = "0xAE3A30", Offset = "0xAE2830", VA = "0x180AE3A30")]
internal void <SynchronizedMessageSet>b__0(NKHBKKGOIHL.PEHMCMIFBJO response)
{
if (response.<GBEEHFGKJOF>k__BackingField)
{
PlayerEditableText playerEditableText = this.<>4__this;
string text = this.newMessage;
int maxMessageLength = playerEditableText.maxMessageLength;
if (text.m_stringLength > maxMessageLength)
{
int num = 0;
string text2 = text.Substring(num, maxMessageLength);
}
playerEditableText.LKMAOHJJOOP = text;
}
}
// Token: 0x04000E03 RID: 3587
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4000E03")]
public PlayerEditableText <>4__this;
// Token: 0x04000E04 RID: 3588
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000E04")]
public string newMessage;
}
}