diff options
author | Vladimir Krasheninnikov <boba09@list.ru> | 2025-02-25 23:04:04 +0100 |
---|---|---|
committer | Vladimir Krasheninnikov <boba09@list.ru> | 2025-02-25 23:04:04 +0100 |
commit | a70d3720a2b49ea72b6483e5f87b5dc04996bbea (patch) | |
tree | 27ddf63aee83eaafe918c19175e123a2859c0330 /doc/lua | |
parent | 7a14ad34c6bfedfe2ffdb13bd6ea6482fc0b560f (diff) |
Describe interface.bindCanvas
Diffstat (limited to 'doc/lua')
-rw-r--r-- | doc/lua/openstarbound/interface.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lua/openstarbound/interface.md b/doc/lua/openstarbound/interface.md index a0e50eb..70b2a4b 100644 --- a/doc/lua/openstarbound/interface.md +++ b/doc/lua/openstarbound/interface.md @@ -54,8 +54,10 @@ Displays a registered pane. --- -#### `?` interface.bindCanvas() -TODO +#### `CanvasWidget` interface.bindCanvas(`string` name, [`bool` ignoreInterfaceScale = false]) +Binds the canvas widget on the main interface with the specified name as userdata for easy access. The `CanvasWidget` has the same methods as described in widget.md. + +- **ignoreInterfaceScale** is used to ignore the current interface scaling and bind the canvas with the screen size. --- |