5 protected string m_sWidgetImageName;
8 protected string m_sWidgetTextName;
11 override void HandlerAttached(Widget w)
13 super.HandlerAttached(w);
21 void SetImage(ResourceName imageOrImageset,
string iconName)
23 ImageWidget w = ImageWidget.Cast(
m_wRoot.FindAnyWidget(m_sWidgetImageName));
25 if (imageOrImageset.IsEmpty())
30 if (imageOrImageset.EndsWith(
"imageset"))
32 if (!iconName.IsEmpty())
33 w.LoadImageFromSet(0, imageOrImageset, iconName);
37 w.LoadImageTexture(0, imageOrImageset);
44 void SetText(
string text)
46 TextWidget w = TextWidget.Cast(
m_wRoot.FindAnyWidget(m_sWidgetTextName));