From 1ac615baefbac23ff998bdeb855fb8169d4d4d8b Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 22 Nov 2025 17:55:04 +0300 Subject: [PATCH] update doc/*/scripting/ui.md --- doc/en/scripting/ui.md | 1 + doc/ru/scripting/ui.md | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/en/scripting/ui.md b/doc/en/scripting/ui.md index b52460a7..7ce304b8 100644 --- a/doc/en/scripting/ui.md +++ b/doc/en/scripting/ui.md @@ -194,6 +194,7 @@ Here, *color* can be specified in the following ways: | data:blit(src: Canvas, dst_x: int, dst_y: int) | draws the src canvas at the specified coordinates | | data:clear() | clears the canvas | | data:clear(*color*) | fills the canvas with the specified RGBA color | +| data:rect(x: int, y: int, w: int, h: int, *color*) | fills the rectangle with the specified RGBA color | | data:update() | applies changes to the canvas and uploads it to the GPU | | data:set_data(data: Bytearray | table) | replaces pixel data (width * height * 4 numbers) | | data:get_data() | creates a Bytearray object with the image's pixel data | diff --git a/doc/ru/scripting/ui.md b/doc/ru/scripting/ui.md index d5849541..963e8b00 100644 --- a/doc/ru/scripting/ui.md +++ b/doc/ru/scripting/ui.md @@ -194,6 +194,7 @@ document["worlds-panel"]:clear() | data:blit(src: Canvas, dst_x: int, dst_y: int) | рисует src-холст на указанных координатах | | data:clear() | очищает холст | | data:clear(*цвет*) | заполняет холст указанным RGBA цветом | +| data:rect(x: int, y: int, w: int, h: int, *цвет*) | заполняет прямоугольник указанным RGBA цветом | | data:update() | применяет изменения и загружает холст в видеопамять | | data:set_data(data: bytearray | table) | заменяет данные пикселей (ширина * высота * 4 чисел) | | data:get_data() | создаёт объект Bytearray с пиксельными данными изображения |