Compare commits

...

2 Commits

Author SHA1 Message Date
Pcornat 281e4eb9f0
More best practice way 2022-11-28 21:02:36 +01:00
Pcornat 1cff8df36b
More best practice way 2022-11-28 21:01:45 +01:00
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ fn main() {
options,
Box::new(|_ctx| {
// ctx.egui_ctx.options().screen_reader = true;
Box::new(Gui::default())
Box::<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.clone();
self.edit_mode = !self.edit_mode;
}
});
});

View File

@ -95,7 +95,7 @@ impl SheetGui for CharacterSheet {
ui.label("Matériel");
ui.add(DragValue::new(&mut materiel));
});
return (base, carac, materiel);
(base, carac, materiel)
}
fn gui_address(&mut self, ui: &mut Ui) {