-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Show override icon in script editor gutter #65535
Show override icon in script editor gutter #65535
Conversation
For completeness, #64693 implements the same as a highlighting color |
The override color shouldn't be the same as the connection one, so they can clearly stand out from each other. The combo one can have the arrow keep the override color and the box the connection color. |
02cab21
to
573741a
Compare
Thanks for the icon templates @MewPurPur, I went ahead and created SVG versions based on these. |
573741a
to
fb8845c
Compare
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.
This looks good!
In other IDE's clicking the "override" icon will take you to the parent method would be cool to do that here. In which case might be worth changing the metadata from a string to a dictionary?
fb8845c
to
11d9a29
Compare
@Paulb23 Good point. For the "combined" signal+override case, I think it would be nice to somehow show both icon's information (e.g. open a PopupMenu which allows choosing whether to show the dialog or the declaration). But I think it's a rare enough case that we can ignore this for now. Until more gutter icons get added and a real system needs to be in place for them. |
11d9a29
to
b1d99b8
Compare
Combines with the connection slot icon when both apply. Can be clicked to jump to the method declaration (or documentation for built-in classes).
b1d99b8
to
a9b394d
Compare
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.
LGTM.
The otherway around it would be to have ctrl+click
goto the method similar to normal lookup. While, a normal click brings up the connection popup.
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.
Looks good to me.
Initial response to this PR seems to be positive, I'm not 100% sure all users will love the change as it's quite intrusive, but this kind of UX might be best tested in production to get feedback in 4.0 beta 2.
Thanks! And congrats for snatching PR |
Is there any way of hiding these new icons? It seems that I can hide the whole info gutter, but I would still like to have the signal icons visible. |
@fracteed There currently is no way, but I don't see anything that speaks against adding some more fine-grained editor settings to choose which gutter icons should show. |
@RedMser thanks for your reply. Yes, it would be great to have per icon toggles for the gutter in the same way that we have per item gizmo visibility in the viewport. Especially if more icons end up being added over time. Ideally this would be a menu in the text editor itself rather than having to dive into preferences. I can certainly see their usefulness, but they are not something that I need to see all the time. |
Part of godotengine/godot-proposals#5369
Includes two new icons for the script editor gutter, one for overridden method and a second for combining with the "connected signal" icon:
The icon can be clicked to jump to the method declaration (or in case of a built-in class, it opens the corresponding documentation page).
I also snuck another commit in to optimize an icon from a previous PR 👀