fn select(
    sprite: &mut Sprite,
    contributor: &Contributor,
    transform: &mut Transform,
    text: &mut Text,
    name: &str,
) {
    sprite.color = Color::hsla(
        contributor.hue,
        SATURATION_SELECTED,
        LIGHTNESS_SELECTED,
        ALPHA,
    );

    transform.translation.z = 100.0;

    text.sections[0].value = "Contributor: ".to_string();
    text.sections[1].value = name.to_string();
    text.sections[1].style.color = sprite.color;
}
/// Change the modulate color to the "selected" colour,
/// bring the object to the front and display the name.
Change the modulate color to the "selected" colour,
bring the object to the front and display the name.
Change the modulate color to the " selected " colour bring the object to the front and display the name .
fn select(
    sprite: &mut Sprite,
    contributor: &Contributor,
    transform: &mut Transform,
    text: &mut Text,
    name: &str,
) {
    sprite.color = Color::hsla(
        contributor.hue,
        SATURATION_SELECTED,
        LIGHTNESS_SELECTED,
        ALPHA,
    );
    transform.translation.z = 100.0;
    text.sections[0].value = "Contributor: ".to_string();
    text.sections[1].value = name.to_string();
    text.sections[1].style.color = sprite.color;
}
fn select ( sprite : & mut Sprite , contributor : & Contributor , transform : & mut Transform , text : & mut Text , name : & str , ) { sprite . color = Color :: hsla ( contributor . hue , SATURATION_SELECTED , LIGHTNESS_SELECTED , ALPHA , ) ; transform . translation . z = 100.0 ; text . sections [ 0 ] . value = " " . to_string ( ) ; text . sections [ 1 ] . value = name . to_string ( ) ; text . sections [ 1 ] . style . color = sprite . color ; }
Change the modulate color to the "selected" colour,
bring the object to the front and display the name.
Change the modulate color to the " selected " colour bring the object to the front and display the name .
sprite
&mut Sprite
contributor
&Contributor
transform
&mut Transform
text
&mut Text
name
&str
sprite
&mut Sprite
contributor
&Contributor
transform
&mut Transform
text
&mut Text
name
&str