Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_draw_text_outline

(view raw script w/o annotations or w/e)
1
function draw_text_outline() //gml_Script_draw_text_outline
2
{
3
    var text_col = draw_get_color()
4
    draw_set_color(c_black)
5
    draw_text((argument[0] - 1), argument[1], argument[2])
6
    draw_text((argument[0] - 1), (argument[1] - 1), argument[2])
7
    draw_text(argument[0], (argument[1] - 1), argument[2])
8
    draw_text((argument[0] + 1), (argument[1] - 1), argument[2])
9
    draw_text((argument[0] + 1), argument[1], argument[2])
10
    draw_text((argument[0] + 1), (argument[1] + 1), argument[2])
11
    draw_text(argument[0], (argument[1] + 1), argument[2])
12
    draw_text((argument[0] - 1), (argument[1] + 1), argument[2])
13
    draw_set_color(text_col)
14
    draw_text(argument[0], argument[1], argument[2])
15
}