5 [
Attribute(
"", UIWidgets.EditBox,
"Description for action menu (light up)",
"")]
7 [
Attribute(
"", UIWidgets.EditBox,
"Description for action menu (extinguish)",
"")]
10 protected SCR_BaseInteractiveLightComponent m_LightComp;
12 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
14 m_LightComp = SCR_BaseInteractiveLightComponent.Cast(pOwnerEntity.FindComponent(SCR_BaseInteractiveLightComponent));
18 override bool CanBeShownScript(IEntity user)
27 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
30 m_LightComp.ToggleLight(!m_LightComp.IsOn());
34 override bool GetActionNameScript(out
string outName)
39 if (m_LightComp.IsOn())
40 outName = m_sExtinguishDescription;
42 outName = m_sLightDescription;