From fc2054b7ca4f9d5cd4debd863b82f58ab89eb1ba Mon Sep 17 00:00:00 2001 From: Connor Slade Date: Fri, 22 Nov 2024 21:54:40 -0500 Subject: [PATCH] Update vec dragger ui --- TODO.md | 3 ++- mslicer/src/ui/components.rs | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/TODO.md b/TODO.md index 7c602c6..f1ff310 100644 --- a/TODO.md +++ b/TODO.md @@ -10,7 +10,7 @@ - [x] Optimize slicer (BVH?) - [x] ehh just throw rayon on it - [x] Actually do the BVH -- [ ] Allow saving / loading projects +- [x] Allow saving / loading projects - [x] Allow deleting objects - [ ] Use instancing both for object mesh storage and rendering - [x] Less internal dependence on GOO format @@ -87,3 +87,4 @@ - [x] Refactor plugins to post processors - [ ] Update readme - [ ] Make post processing async +- [ ] Instance meshes in save files / rendering diff --git a/mslicer/src/ui/components.rs b/mslicer/src/ui/components.rs index a39d018..3d65824 100644 --- a/mslicer/src/ui/components.rs +++ b/mslicer/src/ui/components.rs @@ -38,7 +38,7 @@ pub fn vec2_dragger( ) { ui.horizontal(|ui| { ui.add(func(DragValue::new(&mut val[0]))); - ui.label("x"); + ui.label("×"); ui.add(func(DragValue::new(&mut val[1]))); }); } @@ -50,9 +50,9 @@ pub fn vec3_dragger( ) { ui.horizontal(|ui| { ui.add(func(DragValue::new(&mut val[0]))); - ui.label("x"); + ui.label("×"); ui.add(func(DragValue::new(&mut val[1]))); - ui.label("x"); + ui.label("×"); ui.add(func(DragValue::new(&mut val[2]))); }); } @@ -66,9 +66,9 @@ pub fn vec3_dragger_proportional( let (x, y, z) = (val[0], val[1], val[2]); ui.add(func(DragValue::new(&mut val[0]))); - ui.label("x"); + ui.label("×"); ui.add(func(DragValue::new(&mut val[1]))); - ui.label("x"); + ui.label("×"); ui.add(func(DragValue::new(&mut val[2]))); if x != val[0] {