Added a GUI macro for left-aligned drawn text
This commit is contained in:
parent
d80cb04193
commit
d56b8aaacf
1 changed files with 14 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue