Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_PulsateUIComponent.c
Go to the documentation of this file.
1 class SCR_PulsateUIComponent : ScriptedWidgetComponent
2 {
3  [Attribute("Pulse")]
4  protected string m_sPulseWidgetName;
5 
6  [Attribute("2")]
7  protected float m_fPulsateAnimationSpeed;
8 
9  [Attribute("", UIWidgets.ComboBox, "Animation curve", "", ParamEnumArray.FromEnum(EAnimationCurve))]
10  protected EAnimationCurve m_eCurve;
11 
12  //------------------------------------------------------------------------------------------------
13  override void HandlerAttached(Widget w)
14  {
15  Widget pulse = w.FindAnyWidget(m_sPulseWidgetName);
16  WidgetAnimationBase anim = AnimateWidget.Opacity(pulse, 0, m_fPulsateAnimationSpeed);
17  if (!anim)
18  return;
19 
20  anim.SetRepeat(true);
21  anim.SetCurve(m_eCurve);
22  }
23 }
SCR_PulsateUIComponent
Definition: SCR_PulsateUIComponent.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.