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

Custom Node Creation Menu Items #206

Open
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

dannymate
Copy link

@dannymate dannymate commented Feb 7, 2022

Added attribute for setting methods as custom node creation menu items. Same as the NodeMenuItem.

Switched return type in BaseGraphView & NodeProvider to string, Type, Func<Type, Vector2, BaseNode> to match my new methods for returning the new attribute methods. This way we enforce all attributes to the correct Node creation format and can use the BaseNode.CreateNode method.

I haven't implemented graph specificity yet.

I've also added an example.

I imagine this will be a breaking change for GraphViews.

Greebling and others added 30 commits October 11, 2021 11:20
This reverts commit a511e4a.
Added proxiedFieldPath to input for CustomPortBeh ports
Added ability to have property fields for dynamic ports.
Added GetNonRelayEdges List<SerializedEdge> extensions
Daniel Burgess and others added 7 commits February 4, 2022 18:28
Added FieldInfoWithPath as it easier to work with
BaseGraphView uses Param CustomNodeType to create Node on drop
Prepended Custom to ParamNodeType in ExposedParam. Defaults to null
Added CustomMenuItem attribute for custom node creation methods
CreateNodeMenuWindow now uses a given Func to create a node.
Created example.
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.

None yet

2 participants