Lua:Neutrino-API:PaintBox:en
PaintBox
Paints a rectangle box with defined size, position and color on screen.
PaintBox(Parameter) |
Parameter:
Parameter | Typ | Description/Beschreibung | |
x | number | x-position on screen | |
y | number | y-position on screen | |
w | number | width of box | |
h | number | height of box | |
col | number | background color | |
radius | number | radius of"rounded corners" | default: 0 |
corner | number | type of "rounded corners" | default: TOP_LEFT | TOP_RIGHT | BOTTOM_LEFT | BOTTOM_RIGHT |
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:PaintBox(100, 60, 600, 250, COL['MENUCONTENT'])
n:PaintBox(100, 60, 600, 250, COL['MENUCONTENT'], CORNER['RADIUS_SMALL'])
n:PaintBox(100, 60, 600, 250, COL['MENUCONTENT'], CORNER['RADIUS_SMALL'], CORNER['TOP_LEFT']) |