summaryrefslogtreecommitdiff
path: root/src/ui.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.rs')
-rw-r--r--src/ui.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui.rs b/src/ui.rs
index e55aff1..9c8f6c3 100644
--- a/src/ui.rs
+++ b/src/ui.rs
@@ -9,6 +9,7 @@ pub fn draw_egui<'a>(
diagnostics: &Diagnostics,
input: &Input,
) {
+ puffin::profile_function!();
ui.heading("Config");
ui.add(egui::Slider::new(&mut config.brush_radius, 1..=100).text("Brush radius"));
@@ -25,7 +26,7 @@ pub fn draw_egui<'a>(
center: rect.center(),
radius: rect.width() / 2.5,
stroke: Stroke::NONE,
- fill: Color32::from_rgb(material.color[0], material.color[1], material.color[2]),
+ fill: Color32::from_rgb(material.color.0, material.color.1, material.color.2),
}));
})
.show_ui(ui, |ui| {
@@ -59,4 +60,8 @@ pub fn draw_egui<'a>(
input
.last_mouse_pos_on_board
.map(|p| ui.label(format!("Mouse (board): x,y=({x}, {y})", x = p.0, y = p.1,)));
+
+ input
+ .last_mouse_pos_on_board
+ .map(|p| ui.label(format!("Mouse (chunk): x,y=({x}, {y})", x = p.0, y = p.1,)));
}