add fill button
This commit is contained in:
parent
69b8ec8bb6
commit
37f8edb5c1
1 changed files with 3 additions and 0 deletions
|
@ -58,6 +58,9 @@ impl eframe::App for UScope {
|
||||||
ui.label("speed");
|
ui.label("speed");
|
||||||
ui.add(Slider::new(&mut self.speed, 0..=5000));
|
ui.add(Slider::new(&mut self.speed, 0..=5000));
|
||||||
ui.checkbox(&mut self.show_grid, "show grid");
|
ui.checkbox(&mut self.show_grid, "show grid");
|
||||||
|
if ui.button("fill").clicked() {
|
||||||
|
self.dish.chunk.contents.fill([self.brush; CHUNK_SIZE]);
|
||||||
|
}
|
||||||
ui.separator();
|
ui.separator();
|
||||||
|
|
||||||
ui.heading("Cells");
|
ui.heading("Cells");
|
||||||
|
|
Loading…
Reference in a new issue