mirror of https://codeberg.org/topola/topola.git
egui: show unit (s) in frame timestep's slider
This commit is contained in:
parent
96af3bcd7f
commit
592c168742
|
|
@ -179,10 +179,10 @@ impl Top {
|
|||
ui.separator();
|
||||
|
||||
ui.label(tr.text("frame-timestep"));
|
||||
ui.add(egui::widgets::Slider::new(
|
||||
&mut self.frame_timestep,
|
||||
0.0..=3.0,
|
||||
));
|
||||
ui.add(
|
||||
egui::widgets::Slider::new(&mut self.frame_timestep, 0.0..=3.0)
|
||||
.suffix(" s"),
|
||||
);
|
||||
});
|
||||
|
||||
ui.menu_button(tr.text("menu-place"), |ui| {
|
||||
|
|
|
|||
Loading…
Reference in New Issue