Skip to content

Add _to_string for Block #134

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

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Add _to_string for Block #134

merged 1 commit into from
Jul 16, 2024

Conversation

dylanmccall
Copy link
Contributor

The to_string implementation for Block follows the same pattern as the default for Godot objects, but it uses get_block_class and includes the block_name property for each block. This will make it easier to differentiate between different blocks while debugging the block code editor.


This is inspired by #132, where we add block_name for all of the blocks.

The to_string implementation for Block follows the same pattern as the
default for Godot objects, but it uses get_block_class and includes the
block_name property for each block. This will make it easier to
differentiate between different blocks while debugging the block code
editor.
@manuq
Copy link
Contributor

manuq commented Jul 16, 2024

Yes! I think this good to merge now, before #132 as all blocks have a generic block_name like "statement_block".

@manuq manuq merged commit b1aa499 into main Jul 16, 2024
2 checks passed
@manuq manuq deleted the block-add-to-string branch July 16, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants