Add build closure parameter to create_egui_editor

This commit is contained in:
Robbert van der Helm
2022-10-20 14:03:55 +02:00
parent a9b1dd61fd
commit eed5a62abb
3 changed files with 12 additions and 2 deletions

View File

@@ -93,6 +93,7 @@ impl Plugin for Gain {
create_egui_editor(
self.params.editor_state.clone(),
(),
|_, _| {},
move |egui_ctx, setter, _state| {
egui::CentralPanel::default().show(egui_ctx, |ui| {
// NOTE: See `plugins/diopser/src/editor.rs` for an example using the generic UI widget