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

Allow EditorExportPlugins to provide export options #72895

Merged

Conversation

RedworkDE
Copy link
Member

@RedworkDE RedworkDE commented Feb 8, 2023

Basically duplicates get_export_options from EditorExportPlatform to EditorExportPlugin and sets things up for scripting.

This allows export plugins to to have export preset specific options that also show up in the export dialog.

Example (the Dotnet options are added from from the CSharpExport plugin):
image

Open issue: From scripts the options are always added to the very end of the options list so users always have to scroll to the very end to access them

export_plugins.sort_custom<SortByName>();

for (int i = 0; i < export_plugins.size(); i++) {
export_plugins.write[i]->set_export_preset(p_preset);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this into the ExportNotifier above, or the options would not get read when exporting for a second time. Not sure why this was set here in the first place.

@RedworkDE RedworkDE force-pushed the editor-export-plugin-settings branch from 23ed628 to 6963e84 Compare April 7, 2023 17:18
@YuriSizov YuriSizov requested review from a team and removed request for a team April 14, 2023 11:23
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, and the implementation looks good to me.

@akien-mga akien-mga merged commit 96cc100 into godotengine:master Apr 17, 2023
@akien-mga
Copy link
Member

Thanks!

@RedworkDE RedworkDE deleted the editor-export-plugin-settings branch April 18, 2023 12:21
@m4gr3d
Copy link
Contributor

m4gr3d commented Jul 3, 2023

@RedworkDE There's a bug with restoring the saved values for the editor export plugin options from the preset; see #78958 (comment)

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.

3 participants