Attack system revamp (#82)
- 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>
This commit was merged in pull request #82.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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,
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user