Lua:Neutrino-API:RenderString:en
RenderString
Paint a text with defined size, position and color on screen.
int RenderString(Parameter) |
Parameter:
Parameter | Typ | Description/Beschreibung | |
font | number | Neutrino Font | |
text | string | text string | |
x | number | x-position of text on screen | |
y | number | y-position of text on screen | |
col | number | color of text | default: MENUCONTENT_TEXT |
w | number | width of textbox | default: available width |
boxh | number | height of textbox | default: 0 (text height) |
center | number | center text within textbox | default: 0 (not centered) |
return value | number | native width of textbox (getRenderWidth()) |
en: Parameters with default-values are optional. If not needed, no definition is required. In case of missing parameter, default value is used.
de: Parameter mit Default-Wert sind optional. dh. sie müssen nicht angegeben werden. Falls der Parameter fehlt, wird automatisch dieser Wert angenommen. |
Example:
local n = neutrino()
n:RenderString(FONT['CHANNELLIST'], "Hallo Lua!", 100, 100, COL['INFOBAR_TEXT']) |