mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update doc/*/scripting/builtins/libgui.md
This commit is contained in:
parent
69edfc8c8a
commit
71368836c8
2 changed files with 12 additions and 0 deletions
|
|
@ -61,6 +61,12 @@ gui.set_active_frame(
|
|||
-- Used for custom projection (e.g., in 3D)
|
||||
[optional] cursorLocator: function() -> number, number
|
||||
)
|
||||
|
||||
-- Creates a screenshot of a frame as a Canvas object if the frame ID is specified, or the entire window if nil.
|
||||
gui.screenshot(
|
||||
-- ID of the frame created via gui.create_frame
|
||||
[optional] frameId: str
|
||||
) -> Canvas | nil
|
||||
```
|
||||
|
||||
## Markup
|
||||
|
|
|
|||
|
|
@ -69,6 +69,12 @@ gui.set_active_frame(
|
|||
-- Используется для пользовательской проекции (например в 3D)
|
||||
[опционально] cursorLocator: function() -> number, number
|
||||
)
|
||||
|
||||
-- Создаёт снимок фрейма в виде объекта Canvas если указан id фрейма, или всего окна, в случае nil.
|
||||
gui.screenshot(
|
||||
-- id фрейма, созданного через gui.create_frame
|
||||
[опционально] frameId: str
|
||||
) -> Canvas | nil
|
||||
```
|
||||
|
||||
## Разметка
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue