5 protected ImageWidget m_wPowerIcon;
6 protected ImageWidget m_wActiveIcon;
7 protected TextWidget m_wTransceiverText;
8 protected TextWidget m_wFrequencyText;
9 protected TextWidget m_wChannelText;
12 void SetPowerIcon(
bool state)
15 m_wPowerIcon.SetColor(Color.FromInt(Color.GREEN));
17 m_wPowerIcon.SetColor(Color.FromInt(Color.GRAY));
21 void SetActiveIcon(
bool state)
24 m_wActiveIcon.SetOpacity(1);
26 m_wActiveIcon.SetOpacity(0);
30 void SetTransceiverText(
string text)
32 m_wTransceiverText.SetText(text);
36 void SetTransceiverOpacity(
float alpha)
38 m_wTransceiverText.SetOpacity(alpha);
42 void SetFrequencyText(
string text)
44 m_wFrequencyText.SetText(text);
48 void SetFrequencyColor(Color color)
50 m_wFrequencyText.SetColor(color);
54 void SetChannelText(
string text)
56 if (text ==
string.Empty)
58 m_wChannelText.SetOpacity(0);
62 m_wChannelText.SetText(text);
63 m_wChannelText.SetOpacity(1);
68 override void HandlerAttached(Widget w)
70 super.HandlerAttached(w);
72 m_wPowerIcon = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"PowerIcon"));
73 m_wActiveIcon = ImageWidget.Cast(
m_wRoot.FindAnyWidget(
"ActiveIcon"));
74 m_wTransceiverText = TextWidget.Cast(
m_wRoot.FindAnyWidget(
"TransceiverText"));
75 m_wFrequencyText = TextWidget.Cast(
m_wRoot.FindAnyWidget(
"FrequencyText"));
76 m_wChannelText = TextWidget.Cast(
m_wRoot.FindAnyWidget(
"ChannelText"));