From 45b47947deccac51129e859dad9d3d57304031e3 Mon Sep 17 00:00:00 2001 From: CoCo_Sol Date: Mon, 1 Apr 2024 14:28:25 +0000 Subject: [PATCH] Change visibility of HoveredTexture to public (#97) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.tipragot.fr/fish-cannard/border-wars/pulls/97 Reviewed-by: Raphaƫl Co-authored-by: CoCo_Sol Co-committed-by: CoCo_Sol --- crates/border-wars/src/ui/hover.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/border-wars/src/ui/hover.rs b/crates/border-wars/src/ui/hover.rs index 632dc07..2d82f18 100644 --- a/crates/border-wars/src/ui/hover.rs +++ b/crates/border-wars/src/ui/hover.rs @@ -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, + pub texture: Handle, /// The hovered texture. - hovered_texture: Handle, + pub hovered_texture: Handle, } /// The system that applies the hover logic by changing the texture.