mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-30 09:18:12 +00:00
Visual tweak
This commit is contained in:
@@ -42,13 +42,13 @@ pub(super) fn draw(
|
|||||||
GizmoColor::Single(color),
|
GizmoColor::Single(color),
|
||||||
Control::Rotation(axis @ (Axes::X | Axes::Y | Axes::Z)),
|
Control::Rotation(axis @ (Axes::X | Axes::Y | Axes::Z)),
|
||||||
) => {
|
) => {
|
||||||
let front_color = match hovered {
|
let (front_color, back_color) = match hovered {
|
||||||
Some(Hovered(Control::Rotation(hovered_axes)))
|
Some(Hovered(Control::Rotation(hovered_axes)))
|
||||||
if hovered_axes.intersects(axis) =>
|
if hovered_axes.intersects(axis) =>
|
||||||
{
|
{
|
||||||
color * 2.
|
(color * 2., (color * 1.5).with_a(0.2))
|
||||||
}
|
}
|
||||||
_ => color,
|
_ => (color, color.with_a(0.2)),
|
||||||
};
|
};
|
||||||
|
|
||||||
let (front, back) = bisect_rotator_ring(&ring, cam_xform);
|
let (front, back) = bisect_rotator_ring(&ring, cam_xform);
|
||||||
@@ -61,13 +61,7 @@ pub(super) fn draw(
|
|||||||
);
|
);
|
||||||
|
|
||||||
if !mode.transform.intersects(TransformType::TRANSLATE) {
|
if !mode.transform.intersects(TransformType::TRANSLATE) {
|
||||||
gizmos.arc(
|
gizmos.arc(back.center, back.axis, back.start, back.length, back_color);
|
||||||
back.center,
|
|
||||||
back.axis,
|
|
||||||
back.start,
|
|
||||||
back.length,
|
|
||||||
color.with_a(0.2),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[rustfmt::skip] (
|
#[rustfmt::skip] (
|
||||||
|
|||||||
Reference in New Issue
Block a user