Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 3a8525d

Browse files
committed
fix: remove selectable from ui
For now I have removed the selectable method call from the collapsing entity ui. This can be re-added in the future, once the engine is more complete. (see emilk/egui#1538).
1 parent cd02d4a commit 3a8525d

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

editor/src/main.rs

+25-27
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,31 @@ impl miniquad::EventHandler for Editor {
3434
for (i, (transform, _model)) in
3535
query.iter_mut(&mut self.stage.world).enumerate()
3636
{
37-
egui::CollapsingHeader::new(i.to_string())
38-
.selectable(true)
39-
.show(ui, |ui| {
40-
egui::CollapsingHeader::new("Position").show(
41-
ui,
42-
|ui| {
43-
ui.add(
44-
egui::DragValue::new(
45-
&mut transform.position[0],
46-
)
47-
.speed(0.01),
48-
);
49-
ui.add(
50-
egui::DragValue::new(
51-
&mut transform.position[1],
52-
)
53-
.speed(0.01),
54-
);
55-
ui.add(
56-
egui::DragValue::new(
57-
&mut transform.position[2],
58-
)
59-
.speed(0.01),
60-
);
61-
},
62-
);
63-
});
37+
egui::CollapsingHeader::new(i.to_string()).show(ui, |ui| {
38+
egui::CollapsingHeader::new("Position").show(
39+
ui,
40+
|ui| {
41+
ui.add(
42+
egui::DragValue::new(
43+
&mut transform.position[0],
44+
)
45+
.speed(0.01),
46+
);
47+
ui.add(
48+
egui::DragValue::new(
49+
&mut transform.position[1],
50+
)
51+
.speed(0.01),
52+
);
53+
ui.add(
54+
egui::DragValue::new(
55+
&mut transform.position[2],
56+
)
57+
.speed(0.01),
58+
);
59+
},
60+
);
61+
});
6462
}
6563
});
6664
});

0 commit comments

Comments
 (0)