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

Add a widget to switch between BlockCode nodes #44

Merged
merged 3 commits into from
Jun 19, 2024
Merged

Conversation

dylanmccall
Copy link
Contributor

@dylanmccall dylanmccall commented Jun 18, 2024

https://phabricator.endlessm.com/T35511


In the BlockCode editor, this replaces the label displaying the current node type with a dropdown menu that allows the user to switch between all the BlockCode nodes in a scene:

Screenshot from 2024-06-18 19-06-00

In addition, it adds two different empty states for the Block Code editor, when there are no BlockCode nodes in the scene, or when no BlockCode node is selected:

Screenshot from 2024-06-18 19-07-25

@dylanmccall dylanmccall force-pushed the add-node-switcher branch 2 times, most recently from e9b679e to 5fedf6e Compare June 19, 2024 02:05
@dylanmccall dylanmccall marked this pull request as ready for review June 19, 2024 02:05
@dylanmccall dylanmccall requested review from wnbaum and manuq June 19, 2024 06:13
Comment on lines +63 to +66
# FIXME: We should clear the existing selection, but at the moment this
# causes the new node to be deselected due to signal handlers being
# called in the wrong order.
#_editor_selection.clear()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed this when I tested, good to have the explanation with a FIXME note for now.

@manuq manuq merged commit db25ba8 into main Jun 19, 2024
2 checks passed
@manuq manuq deleted the add-node-switcher branch June 19, 2024 14:53
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