The HUDText constructor: HUDText(...) makes one (see new_hud_text for its
arguments).
HUD text text, optionally at position ([x, y], 0 to 1; default near
the bottom left), with alignment (default ALIGN_LEFT_BOTTOM), size
(window units; default 20), color ([r, g, b] or [r, g, b, a]; default
white) and font (default: the default font).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | text |
the text |
||
| real(kind=wp), | intent(in), | optional | :: | position(2) |
[x, y] (0 to 1 across the window, y up) |
|
| integer, | intent(in), | optional | :: | alignment |
an ALIGN_* constant |
|
| real(kind=wp), | intent(in), | optional | :: | size |
character height (window units) |
|
| real(kind=wp), | intent(in), | optional | :: | color(:) |
[r, g, b] or [r, g, b, a] (0 to 1) |
|
| character(len=*), | intent(in), | optional | :: | font |
font file |