Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/doc/lua/openstarbound
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lua/openstarbound')
-rw-r--r--doc/lua/openstarbound/interface.md6
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.
---