mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 21:00:03 -04:00
Now every window has egui-winit, but a big problem is that a window don't render if the window frame number is bigger the the current frame, this is a spaculation because i don't know if a window stores the current frame i don't know what happens because new window render from the first time but the egui-ctx don't want to render the new window
is like i have tow egui-ctx
This commit is contained in:
@@ -39,14 +39,24 @@ fn main() -> Result<(), eframe::Error> {
|
||||
egui::Window::new("Test1")
|
||||
.embedded(window1_embedded)
|
||||
.show(ctx, |ui| {
|
||||
ui.checkbox(&mut window1_embedded, "Should embedd?")
|
||||
ui.checkbox(&mut window1_embedded, "Should embedd?");
|
||||
ui.label(format!(
|
||||
"Current window: {}, Current rendering window: {}",
|
||||
ctx.current_window(),
|
||||
ctx.current_rendering_window()
|
||||
));
|
||||
});
|
||||
});
|
||||
egui::CollapsingHeader::new("Shout Test2").show(ui, |ui| {
|
||||
egui::Window::new("Test2")
|
||||
.embedded(window2_embedded)
|
||||
.show(ctx, |ui| {
|
||||
ui.checkbox(&mut window2_embedded, "Should embedd?")
|
||||
ui.checkbox(&mut window2_embedded, "Should embedd?");
|
||||
ui.label(format!(
|
||||
"Current window: {}, Current rendering window: {}",
|
||||
ctx.current_window(),
|
||||
ctx.current_rendering_window()
|
||||
));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user