generated from tipragot/rust
Add a generic hover system #93
|
@ -21,7 +21,7 @@ struct HoveredTexture {
|
||||||
hovered_texture: Handle<Image>,
|
hovered_texture: Handle<Image>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The system that applies the great texture to the hovered entity.
|
/// The system that applies the hover logic by changing the texture.
|
||||||
fn hovering(
|
fn hovering(
|
||||||
mut interaction_query: Query<
|
mut interaction_query: Query<
|
||||||
(&Interaction, &HoveredTexture, &mut UiImage),
|
(&Interaction, &HoveredTexture, &mut UiImage),
|
||||||
|
|
Loading…
Reference in a new issue