7 [
Attribute(
"-1", uiwidget: UIWidgets.ComboBox, enums: { ParamEnum(
"Either",
"-1"), ParamEnum(
"Left",
"0"), ParamEnum(
"Right",
"1")})]
10 [
Attribute(
"", UIWidgets.EditBox,
"Indicator icon to be displayed.")]
20 protected ref array<ref SCR_LightManagerInfoEntry> m_aLights;
22 protected BaseLightManagerComponent m_pLightManager;
24 protected bool m_bActiveLightChanged;
35 if (!light || light.m_eLightType ==
ELightType.NoLight)
38 enabled = m_pLightManager && m_pLightManager.GetLightsState(light.m_eLightType, light.m_iLightSide);
42 m_pActiveLight = light;
47 if (m_pActiveLight != lightPrev)
48 m_bActiveLightChanged =
true;
56 m_pActiveLight =
null;
63 override void SetIcon(
string icon)
66 icon = m_pActiveLight.m_sIcon;
75 color = m_pActiveLight.m_eColor;
77 super.SetColor(state, color);
83 bool isRequired =
m_eState != state || m_bActiveLightChanged;
85 m_bActiveLightChanged =
false;
91 override bool DisplayStartDrawInit(IEntity owner)
97 return super.DisplayStartDrawInit(owner);
102 override void DisplayInit(IEntity owner)
104 super.DisplayInit(owner);
106 m_pLightManager = BaseLightManagerComponent.Cast(owner.FindComponent(BaseLightManagerComponent));