- Add crouch cancelling - Add IASA for aerial attacks - Add scaffolding for autocancel - Add hitbox group system - Add new ergonomic features for attack scripting - Add more information to the hitbox viewer - Improve the looks of debug capsules Reviewed-on: #82 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
17 lines
385 B
Rust
17 lines
385 B
Rust
use bevy_egui::egui::Color32;
|
|
|
|
pub trait ColorToEgui {
|
|
fn to_egui(&self) -> Color32;
|
|
}
|
|
|
|
impl ColorToEgui for bevy::color::Srgba {
|
|
fn to_egui(&self) -> Color32 {
|
|
Color32::from_rgba_unmultiplied(
|
|
(self.red * 255.0) as u8,
|
|
(self.green * 255.0) as u8,
|
|
(self.blue * 255.0) as u8,
|
|
(self.alpha * 255.0) as u8,
|
|
)
|
|
}
|
|
}
|