Added a GUI macro for left-aligned drawn text

This commit is contained in:
Charles Dang 2016-01-22 02:19:48 +11:00
parent d80cb04193
commit d56b8aaacf

View file

@ -48,6 +48,20 @@
[/text]
#enddef
#define GUI__LEFT_TEXT FONT_SIZE FONT_STYLE FONT_COLOR
[text]
x = 5
y = {GUI__TEXT_VERTICALLY_CENTRED}
w = "(text_width)"
h = "(text_height)"
font_size = {FONT_SIZE}
font_style = {FONT_STYLE}
color = {FONT_COLOR}
text = "(text)"
text_markup = "(text_markup)"
[/text]
#enddef
# This white color is used for most texts.
#define GUI__FONT_COLOR_ENABLED__DEFAULT
"221, 221, 221, 255"