diff --git a/src/main.rs b/src/main.rs index ff12042..1d5db85 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,7 +9,7 @@ fn main() { options, Box::new(|_ctx| { // ctx.egui_ctx.options().screen_reader = true; - Box::::default() + Box::new(Gui::default()) }), ); } @@ -41,7 +41,7 @@ impl eframe::App for Gui { } }); if ui.button(format!("Edit mode {}", self.edit_mode)).clicked() { - self.edit_mode = !self.edit_mode; + self.edit_mode = !self.edit_mode.clone(); } }); }); diff --git a/src/sheet.rs b/src/sheet.rs index c2c6cb3..1fbafa1 100644 --- a/src/sheet.rs +++ b/src/sheet.rs @@ -95,7 +95,7 @@ impl SheetGui for CharacterSheet { ui.label("Matériel"); ui.add(DragValue::new(&mut materiel)); }); - (base, carac, materiel) + return (base, carac, materiel); } fn gui_address(&mut self, ui: &mut Ui) {