568 lines
14 KiB
C#
568 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 StansAssets.Foundation.Async;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
|
|
// Token: 0x02000260 RID: 608
|
|
[Token(Token = "0x2000260")]
|
|
[DisallowMultipleComponent]
|
|
public class PlayerEditableText : PlayerEditableTextBase
|
|
{
|
|
// Token: 0x170002A7 RID: 679
|
|
// (get) Token: 0x06001226 RID: 4646 RVA: 0x0004CF68 File Offset: 0x0004B168
|
|
// (set) Token: 0x06001227 RID: 4647 RVA: 0x0004CF88 File Offset: 0x0004B188
|
|
[Token(Token = "0x170002A7")]
|
|
private string LKMAOHJJOOP
|
|
{
|
|
[Token(Token = "0x6001226")]
|
|
[Address(RVA = "0x142EC50", Offset = "0x142DC50", VA = "0x18142EC50")]
|
|
get
|
|
{
|
|
return this.AFJHJMMHPJF.JNGMDCKPBOM;
|
|
}
|
|
[Token(Token = "0x6001227")]
|
|
[Address(RVA = "0x142EBD0", Offset = "0x142DBD0", VA = "0x18142EBD0")]
|
|
set
|
|
{
|
|
AKBHELGFNFF<string> afjhjmmhpjf = this.AFJHJMMHPJF;
|
|
string text = this.IJEMLKJAEDJ(value);
|
|
afjhjmmhpjf.JNGMDCKPBOM = text;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06001228 RID: 4648 RVA: 0x0004CFB4 File Offset: 0x0004B1B4
|
|
[Token(Token = "0x6001228")]
|
|
[Address(RVA = "0x142E9A0", Offset = "0x142D9A0", VA = "0x18142E9A0", Slot = "13")]
|
|
protected override void Awake()
|
|
{
|
|
base.Awake();
|
|
Action action = new Action(base.LDEGMHLJLGJ);
|
|
FNCHFMNHOFM fnchfmnhofm;
|
|
string dngkiajllhg = fnchfmnhofm.DNGKIAJLLHG;
|
|
Action aflpggjmpoe = fnchfmnhofm.AFLPGGJMPOE;
|
|
AKBHELGFNFF<string> akbhelgfnff;
|
|
this.AFJHJMMHPJF = akbhelgfnff;
|
|
}
|
|
|
|
// Token: 0x06001229 RID: 4649 RVA: 0x0004CFF0 File Offset: 0x0004B1F0
|
|
[Token(Token = "0x6001229")]
|
|
[Address(RVA = "0x142EE70", Offset = "0x142DE70", VA = "0x18142EE70", Slot = "18")]
|
|
protected override void JHNBIICLJLM()
|
|
{
|
|
CreationObject component = base.GetComponent<CreationObject>();
|
|
int num = 0;
|
|
if (!(component == num))
|
|
{
|
|
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.NBOFDFELPLL);
|
|
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, num3);
|
|
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;
|
|
return;
|
|
}
|
|
GameObject gameObject = base.gameObject;
|
|
Debug.LogWarning("Missing CreationObject", gameObject);
|
|
}
|
|
|
|
// Token: 0x0600122A RID: 4650 RVA: 0x0004D104 File Offset: 0x0004B304
|
|
[Token(Token = "0x600122A")]
|
|
[Address(RVA = "0x142EC50", Offset = "0x142DC50", VA = "0x18142EC50")]
|
|
public string SynchronizedMessageGet()
|
|
{
|
|
return this.AFJHJMMHPJF.JNGMDCKPBOM;
|
|
}
|
|
|
|
// Token: 0x0600122B RID: 4651 RVA: 0x0004D124 File Offset: 0x0004B324
|
|
[Token(Token = "0x600122B")]
|
|
[Address(RVA = "0x142F5A0", Offset = "0x142E5A0", VA = "0x18142F5A0")]
|
|
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;
|
|
string text = PlayerEditableTextBase.LOFGKLDPGJI(newMessage, maxMessageLength);
|
|
<>4__this.LKMAOHJJOOP = text;
|
|
}
|
|
};
|
|
int num = 0;
|
|
num += num;
|
|
num++;
|
|
PMGCJEPKFOF<NKHBKKGOIHL.PEHMCMIFBJO> pmgcjepkfof2 = pmgcjepkfof.OHLPJBFCABI(action);
|
|
return;
|
|
}
|
|
this.LKMAOHJJOOP = "";
|
|
}
|
|
|
|
// Token: 0x0600122C RID: 4652 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x600122C")]
|
|
[Address(RVA = "0x142EA70", Offset = "0x142DA70", VA = "0x18142EA70")]
|
|
public IFNLKKABKEB<MPHHHDGFLNP> CV2SyncMessageSet(GGLMKLIJBHG CHKKEHOKPJP, string KAJBNMCAFBB)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x0600122D RID: 4653 RVA: 0x0004D18C File Offset: 0x0004B38C
|
|
[Token(Token = "0x600122D")]
|
|
[Address(RVA = "0x142EC50", Offset = "0x142DC50", VA = "0x18142EC50", Slot = "19")]
|
|
protected override string NCOBPFBEHPD()
|
|
{
|
|
return this.AFJHJMMHPJF.JNGMDCKPBOM;
|
|
}
|
|
|
|
// Token: 0x0600122E RID: 4654 RVA: 0x0004D1AC File Offset: 0x0004B3AC
|
|
[Token(Token = "0x600122E")]
|
|
[Address(RVA = "0x142EAB0", Offset = "0x142DAB0", VA = "0x18142EAB0", 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: 0x0600122F RID: 4655 RVA: 0x0004D1E0 File Offset: 0x0004B3E0
|
|
[Token(Token = "0x600122F")]
|
|
[Address(RVA = "0x142F480", Offset = "0x142E480", VA = "0x18142F480", Slot = "21")]
|
|
public override void SerializeTo(ref PDEKIHFJKHJ IABNDBNHMKF, ref MKNCHKCCIHK NHFINJNIPGK, StringBuilder BIPOIFGEMGB)
|
|
{
|
|
RepeatedField<string> gmemjhhkhgf = new CAEHJIIMFMB().GMEMJHHKHGF;
|
|
string text = this.AFJHJMMHPJF.JNGMDCKPBOM;
|
|
gmemjhhkhgf.Add(text);
|
|
}
|
|
|
|
// Token: 0x06001230 RID: 4656 RVA: 0x0004D214 File Offset: 0x0004B414
|
|
[Token(Token = "0x6001230")]
|
|
[Address(RVA = "0x142ECA0", Offset = "0x142DCA0", VA = "0x18142ECA0")]
|
|
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: 0x06001231 RID: 4657 RVA: 0x0004D2C0 File Offset: 0x0004B4C0
|
|
[Token(Token = "0x6001231")]
|
|
[Address(RVA = "0x1430D40", Offset = "0x142FD40", VA = "0x181430D40")]
|
|
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: 0x06001232 RID: 4658 RVA: 0x0004D328 File Offset: 0x0004B528
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
[Token(Token = "0x6001232")]
|
|
[Address(RVA = "0x142F710", Offset = "0x142E710", VA = "0x18142F710")]
|
|
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: 0x06001233 RID: 4659 RVA: 0x0004D844 File Offset: 0x0004BA44
|
|
[Token(Token = "0x6001233")]
|
|
[Address(RVA = "0x142F2E0", Offset = "0x142E2E0", VA = "0x18142F2E0")]
|
|
[CompilerGenerated]
|
|
private void NBOFDFELPLL(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.EGHDJGIDDKK);
|
|
}
|
|
|
|
// Token: 0x06001234 RID: 4660 RVA: 0x0004D8EC File Offset: 0x0004BAEC
|
|
[Token(Token = "0x6001234")]
|
|
[Address(RVA = "0x142EB50", Offset = "0x142DB50", VA = "0x18142EB50")]
|
|
[CompilerGenerated]
|
|
private void EGHDJGIDDKK(CreationObjectSettingStringUIControl JBFIMIEMPII)
|
|
{
|
|
TextMeshProUGUI propertyValueText = JBFIMIEMPII.PropertyValueText;
|
|
string text = this.AFJHJMMHPJF.JNGMDCKPBOM;
|
|
((IMainThreadDispatcher)propertyValueText).Init();
|
|
}
|
|
|
|
// Token: 0x04000E23 RID: 3619
|
|
[Token(Token = "0x4000E23")]
|
|
private static readonly string[] EIFILOAPNBO;
|
|
|
|
// Token: 0x04000E24 RID: 3620
|
|
[FieldOffset(Offset = "0xB0")]
|
|
[Token(Token = "0x4000E24")]
|
|
[SerializeField]
|
|
private string textLabel = "Message";
|
|
|
|
// Token: 0x04000E25 RID: 3621
|
|
[FieldOffset(Offset = "0xB8")]
|
|
[Token(Token = "0x4000E25")]
|
|
[SerializeField]
|
|
private int editablePriority;
|
|
|
|
// Token: 0x04000E26 RID: 3622
|
|
[FieldOffset(Offset = "0xC0")]
|
|
[Token(Token = "0x4000E26")]
|
|
private AKBHELGFNFF<string> AFJHJMMHPJF;
|
|
|
|
// Token: 0x02000262 RID: 610
|
|
[Token(Token = "0x2000262")]
|
|
[CompilerGenerated]
|
|
private sealed class BPHFJDBBOOG
|
|
{
|
|
// Token: 0x06001238 RID: 4664 RVA: 0x0004D960 File Offset: 0x0004BB60
|
|
[Token(Token = "0x6001238")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public BPHFJDBBOOG()
|
|
{
|
|
}
|
|
|
|
// Token: 0x06001239 RID: 4665 RVA: 0x0004D974 File Offset: 0x0004BB74
|
|
[Token(Token = "0x6001239")]
|
|
[Address(RVA = "0x1426F00", Offset = "0x1425F00", VA = "0x181426F00")]
|
|
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;
|
|
string text2 = PlayerEditableTextBase.LOFGKLDPGJI(text, maxMessageLength);
|
|
playerEditableText.LKMAOHJJOOP = text2;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000E29 RID: 3625
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4000E29")]
|
|
public PlayerEditableText <>4__this;
|
|
|
|
// Token: 0x04000E2A RID: 3626
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4000E2A")]
|
|
public string newMessage;
|
|
}
|
|
}
|