Change visibility of HoveredTexture to public (#97)
All checks were successful
Rust Checks / checks (push) Successful in 3m14s

Reviewed-on: #97
Reviewed-by: Raphaël <r.lauray@outlook.fr>
Co-authored-by: CoCo_Sol <solois.corentin@gmail.com>
Co-committed-by: CoCo_Sol <solois.corentin@gmail.com>
This commit is contained in:
CoCo_Sol 2024-04-01 14:28:25 +00:00 committed by Raphaël
parent b2a22cbe55
commit 45b47947de

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.