Skip to content

Commit

Permalink
Log slider 10-500 and less detailed spheres
Browse files Browse the repository at this point in the history
  • Loading branch information
nixpulvis committed Sep 24, 2024
1 parent 1f7e523 commit d60f296
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions galos_map/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
//! A 3D Galaxy Map for `galos`
//!
//! ![](https://github.com/nixpulvis/galos/blob/master/galos_map/demo.gif?raw=true)
//!
//! Requires (read-only) access to [`galos_db`].
use bevy::prelude::*;
use galos_db::Database;
Expand Down
2 changes: 1 addition & 1 deletion galos_map/src/systems/spawn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ fn pbr_bundle(
}

fn init_mesh(mut assets: ResMut<Assets<Mesh>>, mut commands: Commands) {
let handle = assets.add(Sphere::new(1.).mesh().ico(3).unwrap());
let handle = assets.add(Sphere::new(1.).mesh().ico(1).unwrap());
commands.insert_resource(SystemMesh(handle));
}

Expand Down
6 changes: 2 additions & 4 deletions galos_map/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ pub fn panels(
ui.label("10 - 500 Ly");
ui.add(
egui::Slider::new(&mut spyglass.radius, 10.0..=500.)
.logarithmic(true)
.step_by(1.)
.drag_value_speed(0.2),
);
Expand All @@ -135,10 +136,7 @@ pub fn panels(
});
ui.add_space(2.);
ui.horizontal(|ui| {
ui.add(
egui::DragValue::new(&mut throttle.0)
.speed(5),
);
ui.add(egui::DragValue::new(&mut throttle.0));
ui.label("Throttle (ms)");
});
}
Expand Down

0 comments on commit d60f296

Please sign in to comment.