API:WindowStopAlphaAnimation
From RoR Wiki
UI Lua API · Window functions
Version: WAR 1.4.8
Stops a window's alpha animation.
WindowStopAlphaAnimation(windowName)
Arguments
- windowName
string– Name of the window.
Returns
Nothing.
Details
- Stops the animation started with WindowStartAlphaAnimation.
- For the animation types
SINGLE,LOOP,REPEAT,POPandPOP_AND_EASE, the window's alpha and font alpha go back to the values they had when the animation was started. For the other types the current values stay. - The
..._HIDEtypes do not hide the window when they are stopped. - If the window has no alpha animation, nothing happens.
- There is no lock check in this function.
Errors
Error in function call 'WindowStopAlphaAnimation': Window %s does not exist
Example
From eatemplate_unitframes/source/bufftracker.lua:
if ( self.m_IsFading == true )
then
WindowStopAlphaAnimation( self:GetName() )
self.m_IsFading = false
end
