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

Ports in node header #195

Open
leissler opened this issue Jan 16, 2022 · 1 comment
Open

Ports in node header #195

leissler opened this issue Jan 16, 2022 · 1 comment

Comments

@leissler
Copy link

Is it somehow possible to have an input/output port in the header of a node, like here, for example:
image

This would be useful if you want to create visual scripting applications that have an execution flow and (optionally) a separate data flow along the nodes of the graph. The author of the tool in the above screenshot simply used a USS stylesheet cheat with negative vertical offset. But maybe this could be more cleanly done, as I think it could be a potentially valuable use-case.

@leissler
Copy link
Author

leissler commented Feb 8, 2022

Ok, I found a way to do this, but it requires the methods AddPort(), InsertPort(), and RemovePort() in the BaseNodeView class to be virtual and overridable.
Could you make this update in the NGP code, so developers can override adding/inserting/removing ports?

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

No branches or pull requests

1 participant