DLabel.SetExpensiveShadow

From GMod Wiki

Jump to: navigation, search
Function
Syntax DLabel:SetExpensiveShadow( Number size, Color color )
Description:
Draws a nice looking shadow on a DLabel
Returns: nil
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DLabel.SetExpensiveShadow]DLabel.SetExpensiveShadow [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionMakes a small drop shadow on a DLabel
Used onNewerClient.png
Code
 
local basicLabel = Label( "Some Label")
basicLabel:SetFont( "TargetID" )
basicLabel:SetColor( Color( 255, 255, 255, 255 ) )
basicLabel:SetExpensiveShadow( 1, Color( 0, 0, 0, 190 ) )
basicLabel:SetPos(ScrW()/2,ScrH()/2)
 
OutputThe label will have a drop shadow


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox