-
-
Notifications
You must be signed in to change notification settings - Fork 19.9k
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
Added Comment node to Visual Shaders #46273
Conversation
Shouldn't the description use more spacious, multiline TextEdit? |
A suggestion, I don't know if this is even possible with godot's GraphNodes or if this has already been discussed, but I think it'd be more intuitive if instead of having to right click on it and use set title or set comment, if the title and comment were just a LineEdit and a TextEdit that you could just left click on to edit. |
That would be nice indeed if it's not too complex to implement with the current system. Maybe it could just be a GraphNode with a text field like the Expression node? A potential drawback is that the text field would always be editable, while it might be useful to have separate edit and read-only mode, to prevent accidental edition / focus grab when clicking around? There could maybe be a checkbox to turn the TextEdit to read-only and avoid accidental edition? Just throwing some ideas. I guess with this approach adding an actual custom title to the comment box might not be well supported, but a side question is whether that part of the feature is really useful? Code comments rarely start with a title either, though the use case here might be a bit different. I'm not against the current implementation though, just throwing some ideas. Like always we should find the right tradeoff between ease of implementation/maintainability and user experience (so we shouldn't need to add e.g. 500 lines of code to support being able to use a text edit directly in the GraphNode). |
I have another suggestion: what if we make the comment not a node but a semitransparent colored area instead. That would allow us to place nodes on top of it and visually group them together. |
Oh I thought it was supposed to work like that. Does the current proposed implementation just like add a text box in node space? |
That's exactly what a comment node is though. It's a |
So It was supposed to work like that, nice :D |
Yes, but looking at the code now, maybe this PR doesn't use existing functionality, but reimplements it instead. So I'm not sure anymore. |
All is good then, this should indeed already act exactly like @Ansraer wanted it to. |
Yeah I just tested it locally, it works exactly like that. |
Thanks! |
I know this feature is long-awaited and desired.
![comment](https://user-images.githubusercontent.com/3036176/108619870-d8401100-7438-11eb-9c28-61b33c196d3d.gif)