Panel.InsertFade

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:InsertFade( Number fadetime, Number faderate )
Description:
Makes the next appended text fade out at a given rate after a given time.
Returns: nil
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.InsertFade]Panel.InsertFade [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes the text take 2 seconds to fade after 15 seconds
Used onNewerClient.png
Code
local Text=vgui.Create( 'RichText' )
Text:AppendText( "Fading text" ) 
Text:InsertFade( 15, 2 )
 
OutputText that disappears after 15 seconds
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox