Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_textmarker_Draw_0

(view raw script w/o annotations or w/e)
1
var memh = draw_get_halign();
2
var memv = draw_get_valign();
3
var memfont = draw_get_font();
4
var memcol = draw_get_color();
5
var memalph = draw_get_alpha();
6
draw_set_halign(hjustify);
7
draw_set_halign(vjustify);
8
draw_set_alpha(alpha);
9
draw_set_color(textcol);
10
draw_set_font(font);
11
var xloc = x;
12
var yloc = y;
13
if (clampeven)
14
{
15
    xloc = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(x);
16
    yloc = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(y);
17
}
18
if (outline)
19
    draw_text_outline(xloc, yloc, mystring, outlinecol);
20
else
21
    draw_text(xloc, yloc, mystring);
22
draw_set_color(memcol);
23
draw_set_halign(memh);
24
draw_set_valign(memv);
25
draw_set_alpha(memalph);
26
draw_set_font(memfont);