bevy_ui_builders/button/plugin.rs
1//! Button plugin for Bevy
2
3use bevy_plugin_builder::define_plugin;
4use super::systems::{handle_hover_scale, handle_hover_brightness, handle_button_interaction, animate_button_transitions};
5
6// Plugin that adds button interaction systems
7define_plugin!(ButtonPlugin {
8 update: [
9 handle_button_interaction, // Sets animation targets on interaction change
10 animate_button_transitions, // Smoothly animates to targets
11 handle_hover_scale, // Legacy system for explicit hover scale
12 handle_hover_brightness // Legacy system for explicit brightness
13 ]
14});