9 protected Widget m_wRoot;
12 ref ScriptInvoker m_OnClick =
new ScriptInvoker;
15 override void HandlerAttached(Widget w)
21 override bool OnClick(Widget w,
int x,
int y,
int button)
24 return super.OnClick(w, x, y, button);
31 if (!parent || name ==
string.Empty)
35 if (searchAllChildren)
36 w = parent.FindAnyWidget(name);
38 w = parent.FindWidget(name);
42 Print(
string.Format(
"SCR_ScriptedWidgetComponent.GetComponent: widget not found: %1 %2", componentType, name), LogLevel.WARNING);
51 Widget GetRootWidget()