use egui::Ui;
pub mod action;
pub mod asset;
pub mod asset_tree;
pub mod effect;
pub mod input;
pub mod logo;
pub mod pills;
pub mod scene_instance;
pub mod temperature;
pub mod update_check;
pub mod window_common;
pub mod windows;
pub trait ChangeButton {
fn change_button(&mut self, ui: &mut Ui) -> bool;
}
impl ChangeButton for f32 {
fn change_button(&mut self, ui: &mut Ui) -> bool {
let mut changed = false;
let response = ui.add(egui::Slider::new(self, 0.0..=1.0));
if response.changed() {
changed = true;
}
changed
}
}