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

Better support for custom blocks #329

Open
manuq opened this issue Dec 6, 2024 · 0 comments
Open

Better support for custom blocks #329

manuq opened this issue Dec 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@manuq
Copy link
Contributor

manuq commented Dec 6, 2024

What Happened

Currently all block definitions are read by traversing addons/block_code/blocks/ in search for .tres resource files. Then there is also a way to dynamically add custom blocks by defining func setup_custom_blocks() in a script (example).

It would be nice to unify and only have resource files. For that, it seems that we need to define a resource loader and change the extension from .tres to something like .blockdef. Then we can get rid of the custom traversing and port the dynamic definitions to their own files.

How to Reproduce

N/A

Block Coding Plugin Version

No response

Godot Engine Version

No response

Operating System

No response

Logs or command-line output

No response

Anything else?

No response

@manuq manuq changed the title Support custom blocks Better support for custom blocks Dec 6, 2024
@manuq manuq added the enhancement New feature or request label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant