-
Notifications
You must be signed in to change notification settings - Fork 28
T35591 Read block definition from resource files #192
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
Conversation
There are more blocks that can be ported. I'm finding missing ones like "Await scene ready". I'm making sure we don't miss anything in the port. The if/else can't be ported as-is unless we split them into 2 blocks. |
@@ -5,14 +5,14 @@ extends Resource | |||
const Types = preload("res://addons/block_code/types/types.gd") | |||
|
|||
@export var name: StringName | |||
@export var description: String | |||
@export_multiline var description: String |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, nice! This was bugging me :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Me too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tiny nit: can we sort this commit right before a5c9b4b, or even squash the two? I was left asking "but why?!" and it took a while to find the answer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, otherwise is not understandable why the utility was added.
This way the editor shows a text box for editing these fields allowing multiple lines. Previously the newlines appeared encoded as `\\n`.
So they can be instantiated for now from block definitions. Note that this won't work for control blocks with multiple bodies like if/else.
Given a directory path, the function will return all files whose file name matches the given pattern. Co-authored-by: Will Baumgartner <wnb@endlessos.org>
To the current ones. Done using the editor Inspector dock.
And remove the 2 definitions from code. Please note the name of the On Ready block has changed. This will be addressed in the next commit.
This is how it's now named in the resource files.
To the new block definitions. Update the resource files to match the current values when needed.
d4e69f2
to
3971f47
Compare
Taking as reference commits from #147
Notable changes:
https://phabricator.endlessm.com/T35591