Skip to content

Commit

Permalink
text outline when transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
infidel- committed Jul 28, 2017
1 parent 2ad8601 commit a102440
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Main.as
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.GameInterface.UtilsBase;
import com.GameInterface.DistributedValue;
import com.Utils.LDBFormat;
import com.Utils.Point;
import flash.filters.GlowFilter;

class Main
{
Expand Down Expand Up @@ -94,6 +95,11 @@ class Main
t.background = (valTransparent.GetValue() == 0);
textField = t;

// text outline
var outline:GlowFilter = new GlowFilter(0x000000,1.0,2.0,2.0,10);
outline.quality = 1;
textField.filters = [outline];

// create all buttons
textFormatButton = new TextFormat(
"lib.Aller.ttf", 16, 0xBBFFFF, true, false, false);
Expand Down

0 comments on commit a102440

Please sign in to comment.