DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
WidgetFadeTimer Class Reference

Simple class for fading Widgets. More...

#include <tools.h>

Inheritance diagram for WidgetFadeTimer:

Private Member Functions

void  WidgetFadeTimer ()
 
void  FadeIn (Widget w, float time, bool continue_=false)
  Make "fade in" effect on Widget (transparency goes from 0.0 to 1.0) More...
 
void  FadeOut (Widget w, float time, bool continue_=false)
  Make "fade out" effect on Widget (transparency goes from 1.0 to 0.0) More...
 
private void  OnTimer ()
 
private void  OnUpdate ()
 

Private Attributes

private Widget  m_widget
 
bool  m_fadeIn
 

Detailed Description

Simple class for fading Widgets.

Constructor & Destructor Documentation

void WidgetFadeTimer::WidgetFadeTimer ( )
private

References CALL_CATEGORY_GUI, m_fadeIn, and OnInit().

Member Function Documentation

void WidgetFadeTimer::FadeIn ( Widget  w,
float  time,
bool  continue_ = false 
)
private

Make "fade in" effect on Widget (transparency goes from 0.0 to 1.0)

Parameters
w widget which will be faded
time duration of effect
continue - if True continue from current alpha value, otherwise always begin from 0.0 alpha

References Widget::GetAlpha(), m_fadeIn, m_time, m_widget, OnStart(), Widget::SetAlpha(), and Widget::Show().

Referenced by MissionGameplay::OnEvent(), ChatLine::Set(), NotificationMessage::Show(), TileEffect::Show(), and ActionMenu::UpdateWidgets().

void WidgetFadeTimer::FadeOut ( Widget  w,
float  time,
bool  continue_ = false 
)
private

Make "fade out" effect on Widget (transparency goes from 1.0 to 0.0)

Parameters
w widget which will be faded
time duration of effect
continue - if True continue from current alpha value, otherwise always begin from 1.0 alpha

References Widget::GetAlpha(), m_fadeIn, m_time, m_widget, OnStart(), Widget::SetAlpha(), and Widget::Show().

Referenced by ActionMenu::Hide(), TileEffect::Show(), and ActionMenu::UpdateWidgets().

void WidgetFadeTimer::OnTimer ( )
private
void WidgetFadeTimer::OnUpdate ( )
private

Member Data Documentation

private Widget WidgetFadeTimer::m_widget
private

Referenced by FadeIn(), FadeOut(), OnTimer(), and OnUpdate().

bool WidgetFadeTimer::m_fadeIn
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)