draw_get_valign


Description

This function is used to get the text alignment setting along the vertical axis, and will return one of the constants listed below.


Syntax:

draw_get_valign();


Returns:

Constant

Constant Alignment
fa_top
fa_middle
fa_bottom


Example:

if draw_get_valign() != fa_top
    {
    draw_set_valign(fa_top);
    }
draw_text(100, 32, "Score: " + string(score));

The above code will check to see if the current text alignment is top-aligned, and if it's not then it will be set and then some text is drawn.