draw_get_valign


描述

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


语法:

draw_get_valign();


返回:

常量

常量 Alignment
fa_top
fa_middle
fa_bottom


例如:

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.