Skip to content

Commit

Permalink
Add docs to InteractionPalette (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhohenheim committed Aug 5, 2024
1 parent dc491c4 commit 0c51477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ pub(super) fn plugin(app: &mut App) {
app.add_systems(Update, (apply_interaction_palette, trigger_interaction_sfx));
}

/// Palette for widget interactions.
/// Palette for widget interactions. Add this to an entity that supports [`Interaction`]s, such as a button,
/// to change its [`BackgroundColor`] based on the current interaction state.
#[derive(Component, Debug, Reflect)]
#[reflect(Component)]
pub struct InteractionPalette {
Expand Down

0 comments on commit 0c51477

Please sign in to comment.