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

Replace complex Project Settings with a plug-in API #35

Open
RedMser opened this issue Jul 13, 2024 · 1 comment
Open

Replace complex Project Settings with a plug-in API #35

RedMser opened this issue Jul 13, 2024 · 1 comment
Labels
enhancement New feature or request upstream Depends on an upstream issue or PR, can't be solved immediately

Comments

@RedMser
Copy link
Owner

RedMser commented Jul 13, 2024

Many project settings are too complex for their own good, using RegEx or Dictionary for very complex lookups and string manipulation.

Instead it would be good to have a plug-in API that allows the user to implement virtual methods like func _compute_locale(path: String) -> String which could in the end just do a RegEx lookup, but also anything else.

Not sure about the registration mechanism, since it would need to be available as soon as ResourceLoader is ready (during project startup). Maybe refer to plug-in classes by path or by class_name in ProjectSettings?

May depend on godot-rust/gdext#426

@RedMser RedMser added enhancement New feature or request upstream Depends on an upstream issue or PR, can't be solved immediately labels Jul 13, 2024
@RedMser
Copy link
Owner Author

RedMser commented Sep 7, 2024

One small UX improvement before this is done, we could use typed dictionaries to make the project settings nicer to edit.

Syntax: https://github.com/godotengine/godot/pull/100926/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request upstream Depends on an upstream issue or PR, can't be solved immediately
Projects
None yet
Development

No branches or pull requests

1 participant