save
Some checks failed
Rust Checks / checks (pull_request) Successful in 2m52s
Rust Checks / checks (push) Failing after 12m14s

This commit is contained in:
CoCo_Sol 2024-04-01 16:26:54 +02:00
parent b2a22cbe55
commit 068d9ab548

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.