draw_set_halign - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC

Notation

Description

Set the horizontal alignment for drawing text. halign is the horizontal alignment.

Parameters

  • halign: Horizontal alignment to set. Valid values are:
    • fa_left (default)
    • fa_center
    • fa_right

Return Values

none

Example Call

//draws a horizontally centered text at mouse position
draw_set_halign(fa_center);
draw_text(mouse_x,mouse_y,"This is a centered string");
⚠️ **GitHub.com Fallback** ⚠️