7 public static string[]
popIDs =
new string[4] {
"PopTextSys",
"PopTextGod",
"PopTextASMR",
"PopTextOPA" };
16 public void Say(
string s,
float duration = 0f)
28 base.owner.PlaySound(
id);
38 p =
pop.
PopText(s,
null,
"PopTextOno",
default(
Color),
default(Vector3), duration);
42 int num =
int.Parse(s[1].ToString());
51 p =
pop.
PopText(s.Substring(1),
null,
"PopTextBroadcast",
default(
Color),
default(Vector3), duration);
54 p =
pop.
PopText(s.Substring(1),
null,
"PopTextAbility",
default(
Color),
default(Vector3), duration);
66 if (p !=
null && p.gameObject !=
null)
68 p.RebuildLayout(recursive: true);
69 ContentSizeFitter[] componentsInChildren = p.GetComponentsInChildren<ContentSizeFitter>();
70 for (int i = 0; i < componentsInChildren.Length; i++)
72 componentsInChildren[i].enabled = false;
74 LayoutGroup[] componentsInChildren2 = p.GetComponentsInChildren<LayoutGroup>();
75 for (
int i = 0; i < componentsInChildren2.Length; i++)
77 componentsInChildren2[i].enabled =
false;
85 Sprite sprite =
SpriteSheet.
Get(
"Media/Graphics/Icon/icons_32",
"emo_" + emo);
90 lastEmo = pop.PopText(
"", sprite,
"PopTextEmo",
default(
Color),
default(Vector3), duration);
93 public override void OnDraw(ref Vector3 pos)
97 render.RemoveTC(
this);
102 base.OnDraw(ref pos2);
107 DrawImmediate(ref lastPos);
108 pop.CopyAll(
EMono.
ui.rectDynamic);
109 pop.KillAll(instant:
true);
116 int num = text.IndexOf(
"<sound=", StringComparison.Ordinal);
121 int num2 = text.IndexOf(
'>', num);
127 string text2 = text.Substring(num3, num2 - num3);
128 int num4 = text2.IndexOf(
',');
136 float.TryParse(text2[(num4 + 1)..], out chance);
138 text = text.Remove(num, num2 - num + 1);
139 chance = Mathf.Clamp01(chance);
List< Action > actionsNextFrame
PopItemText PopText(string text, Sprite sprite=null, string id="PopText", Color c=default(Color), Vector3 destPos=default(Vector3), float duration=0f)
static float rndf(float max)
static void ShakeCam(string id="default", float magnitude=1f)
static Sprite Get(string id)
void Say(string s, float duration=0f)
override void OnDraw(ref Vector3 pos)
void ShowEmo(Emo emo, float duration)
static bool ExtractSoundTag(ref string text, out string id, out float chance)
static GameSetting.RenderSetting.TCSetting _setting