Change visibility of HoveredTexture to public #97

Merged
raphael merged 1 commit from change-hover-private into main 2024-04-01 14:28:28 +00:00
Showing only changes of commit 068d9ab548 - Show all commits

View file

@ -13,12 +13,12 @@ impl Plugin for HoverPlugin {
/// A component that stores the hover texture and the original texture.
#[derive(Component, Clone)]
struct HoveredTexture {
pub struct HoveredTexture {
/// The original texture.
texture: Handle<Image>,
pub texture: Handle<Image>,
/// The hovered texture.
hovered_texture: Handle<Image>,
pub hovered_texture: Handle<Image>,
}
/// The system that applies the hover logic by changing the texture.