use super::*; pub trait Button { fn was_clicked(&self) -> bool; } #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub enum ButtonState { Idle, Clicking, Clicked, Releasing, } pub struct RoundButton { pos: Vec2, radius: f32, spacing: f32, thickness: f32, shrink_anim: Animation, was_clicked: bool, state: ButtonState, label: Option