From bd8faa7ae17dcd8b4df2beba28876759fb4fdef5 Mon Sep 17 00:00:00 2001
From: mgi388 <135186256+mgi388@users.noreply.github.com>
Date: Mon, 19 Aug 2024 10:20:38 +1000
Subject: [PATCH] Fix key bindings in 3d_gizmos example after camera controller
(#14812)
# Objective
Fixes #14811
## Solution
- Switch `D` to `T`: `T` for "on top of"
- Switch `A` to `B`: `B` in "AABB", or "boxes"
## Testing
- Ran the example locally
- Checked the key bindings that the camera controller uses and made sure
we're not using them in the 3d_gizmos example anymore
After:
---
examples/gizmos/3d_gizmos.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/examples/gizmos/3d_gizmos.rs b/examples/gizmos/3d_gizmos.rs
index 5fe58f58a2..d74d3dd307 100644
--- a/examples/gizmos/3d_gizmos.rs
+++ b/examples/gizmos/3d_gizmos.rs
@@ -58,12 +58,12 @@ fn setup(
// example instructions
commands.spawn(
TextBundle::from_section(
- "Press 'D' to toggle drawing gizmos on top of everything else in the scene\n\
+ "Press 'T' to toggle drawing gizmos on top of everything else in the scene\n\
Press 'P' to toggle perspective for line gizmos\n\
Hold 'Left' or 'Right' to change the line width of straight gizmos\n\
Hold 'Up' or 'Down' to change the line width of round gizmos\n\
Press '1' or '2' to toggle the visibility of straight gizmos or round gizmos\n\
- Press 'A' to show all AABB boxes\n\
+ Press 'B' to show all AABB boxes\n\
Press 'U' or 'I' to cycle through line styles for straight or round gizmos\n\
Press 'J' or 'K' to cycle through line joins for straight or round gizmos",
TextStyle::default(),
@@ -166,7 +166,7 @@ fn update_config(
keyboard: Res>,
time: Res