feat: it's not breaking change if it never worked

This commit is contained in:
MihailRis 2026-08-11 22:38:12 +03:00
parent 63f2751910
commit fe69d31f97
3 changed files with 6 additions and 5 deletions

View file

@ -139,7 +139,7 @@ gui.confirm(
## Documents and templates
```lua
-- Loads a UI document with its script, returns the name of the document if successfully loaded.
-- Loads a UI document with its script. Returns document environment table
gui.load_document(
-- Path to the xml file of the page. Example: `core:layouts/pages/main.xml`
path: str,
@ -147,7 +147,7 @@ gui.load_document(
name: str
-- Table of parameters passed to the on_open event
args: table
) -> str
) -> table
-- Loads and processes layout template from file
gui.template(

View file

@ -140,12 +140,12 @@ gui.confirm(
## Документы и шаблоны
```lua
-- Загружает UI документ и его скрипт. Возвращает имя документа.
-- Загружает UI документ и его скрипт. Возвращает пространство имён документа
gui.load_document(
path: string, -- путь к xml файлу, например: core:layouts/pages/main.xml
name: string, -- id документа, например: core:pages/main
args: table -- параметры для события on_open
) -> string
) -> table
-- Обрабатывает xml шаблон макета из файла
gui.template(