4 protected ref Color m_cTextColor;
7 protected ResourceName m_TextPrefab;
9 protected Widget m_wRoot;
18 Widget child =
m_wRoot.GetChildren();
23 child = child.GetSibling();
24 childtemp.RemoveFromHierarchy();
30 void SetInitTextColor(Color color)
43 TextWidget AddText(
string text,
string param1 =
string.Empty,
string param2 =
string.Empty,
string param3 =
string.Empty,
string param4 =
string.Empty)
48 Widget newWidget =
GetGame().GetWorkspace().CreateWidgets(m_TextPrefab,
m_wRoot);
52 TextWidget textWidget = TextWidget.Cast(newWidget);
56 textWidget.SetColor(m_cTextColor);
57 textWidget.SetTextFormat(text, param1, param2, param3, param4);
62 override void HandlerAttached(Widget w)