Skill almost finished.

TODO: encapsulate.
This commit is contained in:
Pcornat 2022-10-30 14:05:37 +01:00
parent 4436c79c65
commit a8353ae3ee
Signed by: Pcornat
GPG Key ID: 2F3932FF46D9ECA0

View File

@ -59,6 +59,23 @@ impl eframe::App for Gui {
// let mut in_col2 = &mut two_columns[1]; // let mut in_col2 = &mut two_columns[1];
two_columns[0].vertical_centered_justified(|ui| { two_columns[0].vertical_centered_justified(|ui| {
ui.heading("Habileté"); ui.heading("Habileté");
ui.columns(2, |columns| {
let mut column = &mut columns[0];
{
column.label("Base");
column.label("Carac.");
column.label("Matériel");
}
column = &mut columns[1];
{
let mut base = self.test.skill().base;
let mut carac = self.test.skill().carac;
let mut materiel = self.test.skill().materiel;
column.add(egui::widgets::DragValue::new(&mut base));
column.add(egui::widgets::DragValue::new(&mut carac));
column.add(egui::widgets::DragValue::new(&mut materiel));
}
})
}); });
two_columns[1].vertical_centered_justified(|ui| { two_columns[1].vertical_centered_justified(|ui| {
ui.heading("Adresse"); ui.heading("Adresse");