8 [
Attribute(
"Icon", UIWidgets.EditBox,
"Widget name to find icon")]
9 protected string m_sWidgetIcon;
11 [
Attribute(
"Message", UIWidgets.EditBox,
"Widget name to find message text widget")]
12 protected string m_sWidgetMessage;
14 [
Attribute(
"Bumper", UIWidgets.EditBox,
"Widget name to find message text widget")]
15 protected string m_sWidgetBumper;
17 [
Attribute(
"", UIWidgets.EditBox,
"Default message to display")]
18 protected string m_sDefaultMessage;
20 [
Attribute(
"0", UIWidgets.EditBox,
"True will set bumper widget to visible which will offest the message")]
21 protected bool m_bUseBumber;
23 protected ImageWidget m_wIcon;
24 protected TextWidget m_wMessage;
25 protected Widget m_wBumper;
28 override void HandlerAttached(Widget w)
30 super.HandlerAttached(w);
32 m_wIcon = ImageWidget.Cast(w.FindAnyWidget(m_sWidgetIcon));
33 m_wMessage = TextWidget.Cast(w.FindAnyWidget(m_sWidgetMessage));
34 m_wBumper = w.FindAnyWidget(m_sWidgetBumper);
39 m_wBumper.SetVisible(m_bUseBumber);
43 override void SetVisible(
bool visible,
bool animate =
true)
47 if (!visible ||
m_wRoot.GetOpacity() == 0)
52 else if (visible ||
m_wRoot.GetOpacity() == 1)
59 super.SetVisible(visible, animate);
67 void SetMessage(
string message)
80 void UseDefaultMessage()