Skip to content

Add _to_string for Block#134

Merged
manuq merged 1 commit intomainfrom
block-add-to-string
Jul 16, 2024
Merged

Add _to_string for Block#134
manuq merged 1 commit intomainfrom
block-add-to-string

Conversation

@dylanmccall
Copy link
Copy Markdown
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
Copy Markdown
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
@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