summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-05 19:00:45 +0200
committerGitHub <noreply@github.com>2021-04-05 19:00:45 +0200
commitf4b82814f89d992bc0119245590737ae361a0358 (patch)
treec366d4d1963ba3dc6c3f1c554ba236272a41367e /doc
parent3d84fa85b49b604b189bf6d918759060a4a02dc9 (diff)
parentea31af68ba4aa5f15ef0dab9555f80d8efdfe6c7 (diff)
Merge pull request #47622 from pycbouh/editor-plugins-expose-scale
Expose editor scale to the plugin API
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/EditorInterface.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/EditorInterface.xml b/doc/classes/EditorInterface.xml
index b01af71852..4d0e11fb19 100644
--- a/doc/classes/EditorInterface.xml
+++ b/doc/classes/EditorInterface.xml
@@ -48,6 +48,14 @@
[b]Note:[/b] This returns the main editor control containing the whole editor, not the 2D or 3D viewports specifically.
</description>
</method>
+ <method name="get_editor_scale" qualifiers="const">
+ <return type="float">
+ </return>
+ <description>
+ Returns the actual scale of the editor UI ([code]1.0[/code] being 100% scale). This can be used to adjust position and dimensions of the UI added by plugins.
+ [b]Note:[/b] This value is set via the [code]interface/editor/display_scale[/code] and [code]interface/editor/custom_display_scale[/code] editor settings. Editor must be restarted for changes to be properly applied.
+ </description>
+ </method>
<method name="get_editor_settings">
<return type="EditorSettings">
</return>