Skip to content

Commit

Permalink
use local egui checkout for #2244
Browse files Browse the repository at this point in the history
  • Loading branch information
yrns committed Dec 1, 2022
1 parent 58e4381 commit e9ca0d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edit_egui/eframe-dynamic/Cargo.toml
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
persistence = ["eframe/persistence"]

[dependencies]
eframe = { version = "0.19.0", features = ["wgpu"] }
eframe = { version = "0.19.0", path = "../../../clone/egui/crates/eframe", features = ["wgpu"] }
rfd = "0.10.0"

[lib]
Expand Down
7 changes: 7 additions & 0 deletions edit_egui/src/lib.rs
Expand Up @@ -252,6 +252,13 @@ impl Statechart<EditContext> {
let rect = ui.max_rect();
ui.allocate_rect(rect, Sense::hover());

// Toggle debug.
if ui.input().key_pressed(Key::D) {
ui.ctx().set_debug_on_hover(!ui.ctx().debug_on_hover());
ui.style_mut().debug.show_blocking_widget = true;
ui.style_mut().debug.show_interactive_widgets = true;
}

// Keep drag state in temp storage.
let mut drag = ui.ctx().data().get_temp(ui.id()).unwrap_or_default();
let mut commands = Vec::new();
Expand Down

0 comments on commit e9ca0d4

Please sign in to comment.