4 string m_sWidgetAuthor =
"Author";
5 string m_sWidgetDate =
"Date";
6 string m_sWidgetImage =
"Image";
12 override void HandlerAttached(Widget w)
14 super.HandlerAttached(w);
19 void SetAuthor(
string text)
21 TextWidget w = TextWidget.Cast(
GetRootWidget().FindAnyWidget(m_sWidgetAuthor));
29 void SetDate(
string text)
31 TextWidget w = TextWidget.Cast(
GetRootWidget().FindAnyWidget(m_sWidgetDate));
39 void SetImage(
string texture)
41 ImageWidget w = ImageWidget.Cast(
GetRootWidget().FindAnyWidget(m_sWidgetImage));
45 w.LoadImageTexture(0, texture);
51 TextWidget w = TextWidget.Cast(
GetRootWidget().FindAnyWidget(m_sWidgetAuthor));
61 TextWidget w = TextWidget.Cast(
GetRootWidget().FindAnyWidget(m_sWidgetDate));