/// 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(
    materials: &mut Assets<ColorMaterial>,
    mat_handle: Handle<ColorMaterial>,
    cont: &Contributor,
    trans: &mut Transform,
    text: &mut Text,
    name: &str,
) -> Option<()> {
    let mat = materials.get_mut(mat_handle)?;
    mat.color = COL_SELECTED * cont.color;
    trans.translation.z = 100.0;
    text.value = format!("Contributor: {}", name);
    Some(())
}
fn select ( materials : & mut Assets < ColorMaterial > , mat_handle : Handle < ColorMaterial > , cont : & Contributor , trans : & mut Transform , text : & mut Text , name : & str , ) -> Option < ( ) > { let mat = materials . get_mut ( mat_handle ) ? ; mat . color = COL_SELECTED * cont . color ; trans . translation . z = 100.0 ; text . value = format ! ( " " name ) ; Some ( ( ) ) }
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 .
materials
&mut Assets<ColorMaterial>
mat_handle
Handle<ColorMaterial>
cont
&Contributor
trans
&mut Transform
text
&mut Text
name
&str