DIFF

class WidgetFadeTimerSource

WidgetFadeTimer TimerBase Managed

Part of Tools

All members, including inherited

Simple class for fading Widgets

Constructors 1

void WidgetFadeTimer()
Referenced by MainMenu.Init()

Members 3

private Widget m_widget
Referenced by FadeIn(), FadeOut(), OnTimer()
Show 1 more, OnUpdate()
bool m_fadeIn
Referenced by FadeIn(), FadeOut(), OnTimer()
Show 2 more, OnUpdate(), and WidgetFadeTimer()
float m_alpha
Referenced by FadeIn(), FadeOut(), and OnUpdate()

Methods 4

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

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

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
void FadeOut(Widget w, float time, bool continue_ = false)

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

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
override private void OnTimer()
References Widget.SetAlpha(), Widget.Show(), m_fadeIn
Show 1 more, m_widget
override private void OnUpdate()