-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
GIF support #4620
GIF support #4620
Conversation
Could add |
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 is looking very promising! A a great test gif too :)
@emilk every requested change is implemented. I didn't test the file_loader, but it should behave the exactly like the ehttp loader which works. |
Co-authored-by: Emil Ernerfeldt <[email protected]>
@emilk ?? |
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.
Veery close now - just a few cleanups and we should be good to go
btw, as I mention in the PR template, opening a PR from your |
Co-authored-by: Emil Ernerfeldt <[email protected]>
@emilk Im sorry. I will keep that in mind for the next pull request |
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.
Code looks good!
I just need to test it before merging
EDIT: tested it, and it seems to work exactly as advertized!
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.
Awesome work - this is really cool!
@@ -27,6 +27,7 @@ impl eframe::App for MyApp { | |||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { | |||
egui::CentralPanel::default().show(ctx, |ui| { | |||
egui::ScrollArea::both().show(ui, |ui| { | |||
ui.image(egui::include_image!("ferris.gif")); |
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.
It's super cool that this Just Works™️
should be ready to merge now |
Thanks for going through all the review rounds on this! |
* Previous PR: emilk#3951 * Closes emilk#4489 --------- Co-authored-by: Emil Ernerfeldt <[email protected]>
If you use
egui_extras
you need to add thegif
feature flag to it. Then adding a .gif to egui is as easy as