egui: show unit (s) in frame timestep's slider

This commit is contained in:
Mikolaj Wielgus 2024-09-29 03:55:59 +02:00
parent 96af3bcd7f
commit 592c168742
1 changed files with 4 additions and 4 deletions

View File

@ -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| {