Skill almost finished.
TODO: encapsulate.
This commit is contained in:
parent
4436c79c65
commit
a8353ae3ee
17
src/main.rs
17
src/main.rs
@ -59,6 +59,23 @@ impl eframe::App for Gui {
|
||||
// let mut in_col2 = &mut two_columns[1];
|
||||
two_columns[0].vertical_centered_justified(|ui| {
|
||||
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| {
|
||||
ui.heading("Adresse");
|
||||
|
Loading…
Reference in New Issue
Block a user