Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose editor scale to the plugin API #47622

Merged

Conversation

YuriSizov
Copy link
Contributor

@YuriSizov YuriSizov commented Apr 4, 2021

Based on feedback from plugin developers it seems that it's a requirement to have access to the actual scale value to make consistent and good looking plugin UI. While it is possible to read the setting, when it's set to Auto values are calculated internally in a way that is not accessible to the scripting API. This exposes a method that gives direct access to reading EDSCALE value.

It's a method and not a property because, AFAIK, we cannot do readonly properties currently and setting this value is definitely not something that can be exposed either.

@YuriSizov YuriSizov added enhancement topic:editor topic:plugin cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:gui labels Apr 4, 2021
@YuriSizov YuriSizov added this to the 4.0 milestone Apr 4, 2021
@YuriSizov YuriSizov requested a review from a team as a code owner April 4, 2021 14:11
doc/classes/EditorInterface.xml Outdated Show resolved Hide resolved
doc/classes/EditorInterface.xml Outdated Show resolved Hide resolved
@YuriSizov YuriSizov force-pushed the editor-plugins-expose-scale branch from ea57c47 to ea31af6 Compare April 5, 2021 15:44
@YuriSizov YuriSizov requested a review from Calinou April 5, 2021 15:45
@akien-mga akien-mga merged commit f4b8281 into godotengine:master Apr 5, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.3.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 6, 2021
@YuriSizov YuriSizov deleted the editor-plugins-expose-scale branch April 18, 2021 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants