diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-04-05 19:00:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 19:00:45 +0200 |
commit | f4b82814f89d992bc0119245590737ae361a0358 (patch) | |
tree | c366d4d1963ba3dc6c3f1c554ba236272a41367e /doc/classes | |
parent | 3d84fa85b49b604b189bf6d918759060a4a02dc9 (diff) | |
parent | ea31af68ba4aa5f15ef0dab9555f80d8efdfe6c7 (diff) |
Merge pull request #47622 from pycbouh/editor-plugins-expose-scale
Expose editor scale to the plugin API
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/EditorInterface.xml | 8 |
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> |