diff --git a/doc/en/scripting/ui.md b/doc/en/scripting/ui.md index 64e736119..928eb70b7 100644 --- a/doc/en/scripting/ui.md +++ b/doc/en/scripting/ui.md @@ -84,24 +84,24 @@ Common methods: Properties: -| Name | Type | Read | Write | Description | -| ----------- | ------ | ---- | ----- | ------------------------------------------------------------------------------------ | -| text | string | yes | yes | entered text or placeholder | -| placeholder | string | yes | yes | placeholder (used if nothing has been entered) | -| hint | string | yes | yes | text to display when nothing is entered | -| caret | int | yes | yes | carriage position. `textbox.caret = -1` will set the position to the end of the text | -| editable | bool | yes | yes | text mutability | -| edited | bool | yes | yes\* | is text edited since the last set / edited status reset | -| multiline | bool | yes | yes | multiline support | -| lineNumbers | bool | yes | yes | display line numbers | -| textWrap | bool | yes | yes | automatic text wrapping (only with multiline: "true") | -| valid | bool | yes | no | is the entered text correct | -| textColor | vec4 | yes | yes | text color | -| syntax | string | yes | yes | syntax highlighting ("lua" - Lua) | -| markup | string | yes | yes | text markup language ("md" - Markdown) | -| selection | ivec2 | yes | yes | selection anchor and caret; see below | -| externalRendering | bool | yes | yes | external text rendering (default: false) | -| textLayout | table | yes | no | snapshot of visible text layout; see below | +| Name | Type | Read | Write | Description | +| ----------------- | ------ | ---- | ----- | ------------------------------------------------------------------------------------ | +| text | string | yes | yes | entered text or placeholder | +| placeholder | string | yes | yes | placeholder (used if nothing has been entered) | +| hint | string | yes | yes | text to display when nothing is entered | +| caret | int | yes | yes | carriage position. `textbox.caret = -1` will set the position to the end of the text | +| editable | bool | yes | yes | text mutability | +| edited | bool | yes | yes\* | is text edited since the last set / edited status reset | +| multiline | bool | yes | yes | multiline support | +| lineNumbers | bool | yes | yes | display line numbers | +| textWrap | bool | yes | yes | automatic text wrapping (only with multiline: "true") | +| valid | bool | yes | no | is the entered text correct | +| textColor | vec4 | yes | yes | text color | +| syntax | string | yes | yes | syntax highlighting ("lua" - Lua) | +| markup | string | yes | yes | text markup language ("md" - Markdown) | +| selection | ivec2 | yes | yes | selection anchor and caret; see below | +| externalRendering | bool | yes | yes | external text rendering (default: false) | +| textLayout | table | yes | no | snapshot of visible text layout; see below | \* - false only diff --git a/doc/ru/scripting/ui.md b/doc/ru/scripting/ui.md index 0eb08af60..6809c2d30 100644 --- a/doc/ru/scripting/ui.md +++ b/doc/ru/scripting/ui.md @@ -84,24 +84,24 @@ document["worlds-panel"]:clear() Свойства: -| Название | Тип | Чтение | Запись | Описание | -| ----------- | ------ | ------ | ------ | ---------------------------------------------------------------------- | -| text | string | да | да | введенный текст или заполнитель | -| placeholder | string | да | да | заполнитель (используется если ничего не было введено) | -| hint | string | да | да | текст, отображаемый, когда ничего не введено | -| caret | int | да | да | позиция каретки. `textbox.caret = -1` установит позицию в конец текста | -| editable | bool | да | да | изменяемость текста | -| edited | bool | да | да\* | был ли изменён текст с последней установки/сброса свойства | -| multiline | bool | да | да | поддержка многострочности | -| lineNumbers | bool | да | да | отображение номеров строк | -| textWrap | bool | да | да | автоматический перенос текста (только при multiline: "true") | -| valid | bool | да | нет | является ли введенный текст корректным | -| textColor | vec4 | да | да | цвет текста | -| syntax | string | да | да | подсветка синтаксиса ("lua" - Lua) | -| markup | string | да | да | язык разметки текста ("md" - Markdown) | -| selection | ivec2 | да | да | закреплённый конец выделения и каретка; см. ниже | -| externalRendering | bool | да | да | внешняя отрисовка текста (по умолчанию false) | -| textLayout | table | да | нет | снимок видимой раскладки текста; см. ниже | +| Название | Тип | Чтение | Запись | Описание | +| ----------------- | ------ | ------ | ------ | ---------------------------------------------------------------------- | +| text | string | да | да | введенный текст или заполнитель | +| placeholder | string | да | да | заполнитель (используется если ничего не было введено) | +| hint | string | да | да | текст, отображаемый, когда ничего не введено | +| caret | int | да | да | позиция каретки. `textbox.caret = -1` установит позицию в конец текста | +| editable | bool | да | да | изменяемость текста | +| edited | bool | да | да\* | был ли изменён текст с последней установки/сброса свойства | +| multiline | bool | да | да | поддержка многострочности | +| lineNumbers | bool | да | да | отображение номеров строк | +| textWrap | bool | да | да | автоматический перенос текста (только при multiline: "true") | +| valid | bool | да | нет | является ли введенный текст корректным | +| textColor | vec4 | да | да | цвет текста | +| syntax | string | да | да | подсветка синтаксиса ("lua" - Lua) | +| markup | string | да | да | язык разметки текста ("md" - Markdown) | +| selection | ivec2 | да | да | закреплённый конец выделения и каретка; см. ниже | +| externalRendering | bool | да | да | внешняя отрисовка текста (по умолчанию false) | +| textLayout | table | да | нет | снимок видимой раскладки текста; см. ниже | \* - только false