Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WidgetAnimationBlurIntensity.c
Go to the documentation of this file.
1 class SCR_WidgetAnimationBlurIntensity : WidgetAnimationBase
2 {
3  protected float m_fValueDefault;
4  protected float m_fValueTarget;
5  protected float m_fValueCurrent;
6  protected ImageWidget m_wImage;
7 
8  //------------------------------------------------------------------------------------------------
9  protected override void Animate(bool finished)
10  {
11  if (!m_wWidget)
12  return;
13 
14  BlurWidget blurWidget = BlurWidget.Cast(m_wWidget);
15  if (!blurWidget)
16  return;
17 
18  m_fValueCurrent = Math.Lerp(m_fValueDefault, m_fValueTarget, m_fValue);
19  blurWidget.SetIntensity(m_fValueCurrent);
20  }
21 
22  //------------------------------------------------------------------------------------------------
23  // constructor
27  void SCR_WidgetAnimationBlurIntensity(Widget w, float speed, float targetValue)
28  {
29  m_fValueTarget = targetValue;
30  m_fValueDefault = 0;
31  }
32 };
SCR_WidgetAnimationBlurIntensity
Definition: SCR_WidgetAnimationBlurIntensity.c:1