From 7e33e08b79710998b62f729c0e6428e68733c1e1 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Sat, 15 Nov 2025 14:29:18 +0300 Subject: [PATCH] update doc/*/xml-ui-layouts.md --- doc/en/xml-ui-layouts.md | 1 + doc/ru/xml-ui-layouts.md | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/en/xml-ui-layouts.md b/doc/en/xml-ui-layouts.md index 1127d79f..5a4d7be4 100644 --- a/doc/en/xml-ui-layouts.md +++ b/doc/en/xml-ui-layouts.md @@ -136,6 +136,7 @@ The key code for comparison can be obtained via `input.keycode("key_name")` - `text-wrap` - allows automatic text wrapping (works only with multiline: "true") - `editable` - determines whether the text can be edited. - `line-numbers` - enables line numbers display. +- `keep-line-selection` - keep showing selected line after defocus. - `error-color` - color when entering incorrect data (the text does not pass the validator check). Type: RGBA color. - `text-color` - text color. Type: RGBA color. - `validator` - lua function that checks text for correctness. Takes a string as input, returns true if the text is correct. diff --git a/doc/ru/xml-ui-layouts.md b/doc/ru/xml-ui-layouts.md index a2f068ca..b6efa7b2 100644 --- a/doc/ru/xml-ui-layouts.md +++ b/doc/ru/xml-ui-layouts.md @@ -137,6 +137,7 @@ - `text-wrap` - разрешает автоматический перенос текста (работает только при multiline: "true") - `editable`- определяет возможность редактирования текста. - `line-numbers` - включает отображение номеров строк. +- `keep-line-selection` - продолжать отображать выбранную строку при потере фокуса. - `error-color` - цвет при вводе некорректных данных (текст не проходит проверку валидатора). Тип: RGBA цвет. - `text-color` - цвет текста. Тип: RGBA цвет. - `validator` - lua функция, проверяющая текст на корректность. Принимает на вход строку, возвращает true если текст корректен.