generated from tipragot/rust
Change visibility of HoveredTexture to public (#97)
All checks were successful
Rust Checks / checks (push) Successful in 3m14s
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:
parent
b2a22cbe55
commit
45b47947de
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue