-
Notifications
You must be signed in to change notification settings - Fork 301
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
Good looking Blueprint View #962
Conversation
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.
gorgeous!!
what I like a lot about this is that it makes it a lot easier to select stuff with short names in the blueprint
let button_hovered = ui | ||
.interact(main_button_rect, ui.id(), egui::Sense::hover()) | ||
.hovered(); |
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.
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.
We would still want #935 for all other buttons, but yeah, good idea! Though it requires some more piping, so will do in a later PR
This adds a nice hover-effect on the items in the blueprint tree.
This was a lot more work than I anticipated, and not much code to show for it. A lot of false starts. Though for a long time that I would have to get emilk/egui#2633 merged before doing this (so I spent quite some time on it), but then realized I didn't. Anyways, I think it looks and feels very nice now. Not perfect, but Good Enough.
Closes #953
Checklist
CHANGELOG.md
(if this is a big enough change to warrant it)