Compare commits
2 Commits
c489be9c78
...
281e4eb9f0
Author | SHA1 | Date |
---|---|---|
Pcornat | 281e4eb9f0 | |
Pcornat | 1cff8df36b |
|
@ -9,7 +9,7 @@ fn main() {
|
||||||
options,
|
options,
|
||||||
Box::new(|_ctx| {
|
Box::new(|_ctx| {
|
||||||
// ctx.egui_ctx.options().screen_reader = true;
|
// 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() {
|
if ui.button(format!("Edit mode {}", self.edit_mode)).clicked() {
|
||||||
self.edit_mode = !self.edit_mode.clone();
|
self.edit_mode = !self.edit_mode;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -95,7 +95,7 @@ impl SheetGui for CharacterSheet {
|
||||||
ui.label("Matériel");
|
ui.label("Matériel");
|
||||||
ui.add(DragValue::new(&mut materiel));
|
ui.add(DragValue::new(&mut materiel));
|
||||||
});
|
});
|
||||||
return (base, carac, materiel);
|
(base, carac, materiel)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn gui_address(&mut self, ui: &mut Ui) {
|
fn gui_address(&mut self, ui: &mut Ui) {
|
||||||
|
|
Loading…
Reference in New Issue