10 public override Vector3 FixPos
14 return TC._setting.textPos;
19 public void Say(
string s,
float duration = 0f)
27 p = this.pop.PopText(s,
null,
EMono.core.config.ui.balloonBG ?
"PopText_alt" :
"PopTextThinking",
default(Color),
default(Vector3), duration);
32 p = this.pop.PopText(s,
null,
"PopTextOno",
default(Color),
default(Vector3), duration);
40 int num =
int.Parse(s[1].ToString());
41 p = this.pop.PopText(s.Substring(2),
null,
TCText.popIDs[num],
default(Color),
default(Vector3), duration);
46 p = this.pop.PopText(s.Substring(1),
null,
"PopTextBroadcast",
default(Color),
default(Vector3), duration);
50 p = this.pop.PopText(s,
null,
EMono.core.config.ui.balloonBG ?
"PopText_alt" :
"PopText",
default(Color),
default(Vector3), duration);
54 EMono.core.actionsNextFrame.Add(delegate
56 if (p !=
null && p.gameObject !=
null)
58 p.RebuildLayout(
true);
59 ContentSizeFitter[] componentsInChildren = p.GetComponentsInChildren<ContentSizeFitter>();
60 for (
int i = 0; i < componentsInChildren.Length; i++)
62 componentsInChildren[i].enabled =
false;
64 LayoutGroup[] componentsInChildren2 = p.GetComponentsInChildren<LayoutGroup>();
65 for (
int i = 0; i < componentsInChildren2.Length; i++)
67 componentsInChildren2[i].enabled =
false;
75 public void ShowEmo(Emo emo,
float duration)
77 Sprite sprite = SpriteSheet.Get(
"Media/Graphics/Icon/icons_32",
"emo_" + emo.ToString());
78 if (this.lastEmo !=
null)
80 this.pop.Kill(this.lastEmo,
false);
82 this.lastEmo = this.pop.PopText(
"", sprite,
"PopTextEmo",
default(Color),
default(Vector3), duration);
86 public override void OnDraw(ref Vector3 pos)
88 if (!this.pop.enabled)
90 this.render.RemoveTC(
this);
95 base.OnDraw(ref vector);
99 public override void OnKill()
101 base.DrawImmediate(ref this.lastPos);
102 this.pop.CopyAll(
EMono.ui.rectDynamic);
103 this.pop.KillAll(
true);
107 public static string[] popIDs =
new string[]
114 public PopManager pop;
118 public PopItemText lastEmo;