Beta Documentation - Subject to change.

Sets the text outline color.

Syntax

Lua
function Label:SetOutlineColor(value);

Parameters

value
Type: Color
The color used for outlining the text.

Remarks

Sets the color used to outline the text. This effect is only applied when the font style includes the outline flag.

Examples

This example demonstrates using outlining to emphasize text in a label.
Turns on Font OutliningCopy Code
        import "Turbine.UI.Lotro";
        
        window = Turbine.UI.Lotro.Window();
        window:SetPosition( 200, 200 );
        window:SetSize( 200, 200 );
        window:SetText( "Test" );
        window:SetVisible( true );
        
        label = Turbine.UI.Label();
        label:SetParent( window );
        label:SetSeletable( true );
        label:SetPosition( 40, 60 );
        label:SetSize( 120, 80 );
        label:SetBackColor( Turbine.UI.Color( 0.2, 0.2, 0.2 ) );
        label:SetOutlineColor( Turbine.UI.Color( 1, 0, 0 ) );
        label:SetFontStyle( Turbine.UI.FontStyle.Outline );
        label:SetText( "Hello world!" );
        label:SetTextAlignment( Turbine.UI.ContentAlignment.MiddleCenter );

See Also