4 protected string m_sLabel;
7 protected float m_fPaddingTop;
9 protected TextWidget m_wLabelWidget;
12 override void HandlerAttached(Widget w)
14 super.HandlerAttached(w);
19 m_wLabelWidget = TextWidget.Cast(w.FindAnyWidget(
"Label"));
25 void SetText(
string text)
27 m_wLabelWidget.SetText(text);
31 void SetTopPadding(
float padding)
36 float left, top, right, bottom;
37 AlignableSlot.GetPadding(m_wLabelWidget, left, top, right, bottom);
38 AlignableSlot.SetPadding(m_wLabelWidget, left, padding, right, bottom);
42 void ResetTopPadding()
44 SetTopPadding(m_fPaddingTop);
48 void SetVisible(
bool visible)
53 m_wLabelWidget.SetVisible(visible);
65 static SCR_LabelComponent GetComponent(
string name, Widget parent,
bool searchAllChildren =
true)