1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 05:40:03 -04:00

Rename ui.advance_cursor to ui.add_space

This commit is contained in:
Emil Ernerfeldt
2021-04-02 10:08:29 +02:00
parent d848b2a664
commit 4b9db0cc55
9 changed files with 36 additions and 28 deletions

View File

@@ -91,7 +91,7 @@ impl PlotDemo {
ui.vertical(|ui| {
ui.style_mut().wrap = Some(false);
ui.checkbox(animate, "animate");
ui.advance_cursor(8.0);
ui.add_space(8.0);
ui.checkbox(square, "square view");
ui.checkbox(proportional, "proportional data axes");
});

View File

@@ -122,21 +122,21 @@ impl super::View for Sliders {
ui.radio_value(integer, false, "f64");
});
ui.label("(f32, usize etc are also possible)");
ui.advance_cursor(8.0);
ui.add_space(8.0);
ui.checkbox(logarithmic, "Logarithmic");
ui.label("Logarithmic sliders are great for when you want to span a huge range, i.e. from zero to a million.");
ui.label("Logarithmic sliders can include infinity and zero.");
ui.advance_cursor(8.0);
ui.add_space(8.0);
ui.checkbox(clamp_to_range, "Clamp to range");
ui.label("If true, the slider will clamp incoming and outgoing values to the given range.");
ui.label("If false, the slider can shows values outside its range, and you can manually enter values outside the range.");
ui.advance_cursor(8.0);
ui.add_space(8.0);
ui.checkbox(smart_aim, "Smart Aim");
ui.label("Smart Aim will guide you towards round values when you drag the slider so you you are more likely to hit 250 than 247.23");
ui.advance_cursor(8.0);
ui.add_space(8.0);
ui.vertical_centered(|ui| {
egui::reset_button(ui, self);