Draw_set_valign - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC

Notation

Description

Set the vertical alignment for drawing text. valign is the vertical alignment.

Parameters

  • valign: Vertical alignment to set. Valid values are:
    • fa_top (default)
    • fa_middle
    • fa_bottom

Return Values

none

Example Call

//draws a vertically centered text at mouse position
draw_set_valign(fa_middle);
draw_text(mouse_x,mouse_y,"This is a vertically centered string#With multiple lines");