scrDrawTextExt

Draws text with an outline and shadow, including a fully configurable thickness of the outline and shadow offsetting.

 Script

///scrDrawTextOutline(x,y,string,textcolor,outlinecolor,shadowoffset)
///draws any text with an outline
///argument0 - text X position
///argument1 - text Y position
///argument2 - text string
///argument3 - color of the text inside the outline
///argument4 - color of the text outline
///argument5 - offset for shadow x
///argument6 - offset for shadow y
///argument7 - size for border

var textX = argument0;
var textY = argument1;
var textStr = argument2;
var textColor = argument3;
var outlineColor = argument4;
var shadowOffsetX = argument5;
var shadowOffsetY = argument6;
var borderSize = argument7;

//draw the text outline
draw_set_color(outlineColor);
draw_text(textX-borderSize,textY+borderSize,textStr);
draw_text(textX-borderSize,textY,textStr);
draw_text(textX-borderSize,textY-borderSize,textStr);
draw_text(textX+borderSize,textY+borderSize,textStr);
draw_text(textX+borderSize,textY,textStr);
draw_text(textX+borderSize,textY-borderSize,textStr);
draw_text(textX,textY+borderSize,textStr);
draw_text(textX,textY-borderSize,textStr);

draw_text(textX+shadowOffsetX,textY+shadowOffsetY,textStr);

//draw the text itself
draw_set_color(textColor);
draw_text(textX,textY,textStr);