class WidgetFadeTimerSource
WidgetFadeTimer › TimerBase › Managed
Part of Tools
All members, including inherited
Simple class for fading Widgets
Constructors 1
Members 3
private Widget m_widgetbool m_fadeInfloat m_alphaMethods 4
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
References Widget.GetAlpha(), Widget.GetAlpha(), TimerBase.OnStart()
Show 8 more
, Widget.SetAlpha(), Widget.SetAlpha(), Widget.Show(), Widget.Show(), m_alpha, m_fadeIn, TimerBase.m_time, and m_widgetReferenced by ActionMenu.UpdateWidgets(), BoatHud.UpdateEngineBlink(), ChatLine.Set()
Show 2 more
, MainMenu.OnMouseEnter(), and MissionGameplay.OnEvent()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
References Widget.GetAlpha(), TimerBase.OnStart(), Widget.SetAlpha()
Show 7 more
, Widget.SetAlpha(), Widget.Show(), Widget.Show(), m_alpha, m_fadeIn, TimerBase.m_time, and m_widgetoverride private void OnTimer()override private void OnUpdate()References Math.Clamp(), Math.Lerp(), Widget.SetAlpha()