bevy14: Upgrade Color method names (set_a -> set_alpha)
This commit is contained in:
parent
b038468cfc
commit
f8cb84ccb1
|
@ -970,7 +970,7 @@ fn update_hud(
|
||||||
LogLevel::Info => settings.hud_color_console_system,
|
LogLevel::Info => settings.hud_color_console_system,
|
||||||
_ => settings.hud_color_console,
|
_ => settings.hud_color_console,
|
||||||
};
|
};
|
||||||
chat.sections[row].style.color.set_a(opacity);
|
chat.sections[row].style.color.set_alpha(opacity);
|
||||||
row += 1;
|
row += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ pub fn spawn_effects(
|
||||||
FadeOut,
|
FadeOut,
|
||||||
NodeBundle {
|
NodeBundle {
|
||||||
style: style_fullscreen(),
|
style: style_fullscreen(),
|
||||||
background_color: color.with_a(0.0).into(),
|
background_color: color.with_alpha(0.0).into(),
|
||||||
..default()
|
..default()
|
||||||
},
|
},
|
||||||
));
|
));
|
||||||
|
@ -136,7 +136,7 @@ pub fn update_fadein(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let alpha = (1.3 - 1.3 * (now - effect.start_time) / effect.duration).clamp(0.0, 1.0);
|
let alpha = (1.3 - 1.3 * (now - effect.start_time) / effect.duration).clamp(0.0, 1.0);
|
||||||
bgcolor.0.set_a(alpha as f32);
|
bgcolor.0.set_alpha(alpha as f32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ pub fn update_fadeout(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let alpha = ((now - effect.start_time) / effect.duration).clamp(0.0, 1.0);
|
let alpha = ((now - effect.start_time) / effect.duration).clamp(0.0, 1.0);
|
||||||
bgcolor.0.set_a(alpha as f32);
|
bgcolor.0.set_alpha(alpha as f32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -175,6 +175,6 @@ fn play_animations(
|
||||||
// let threshold = 0.3;
|
// let threshold = 0.3;
|
||||||
// let factor = 1.0 / (1.0 - threshold);
|
// let factor = 1.0 / (1.0 - threshold);
|
||||||
// let alpha = (factor * (gforce.blackout - threshold)).clamp(0.0, 1.0);
|
// let alpha = (factor * (gforce.blackout - threshold)).clamp(0.0, 1.0);
|
||||||
// bgcolor.0.set_a(alpha as f32);
|
// bgcolor.0.set_alpha(alpha as f32);
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
Loading…
Reference in a new issue