diff --git a/gui/public/i18n/en-x-owo/translation.ftl b/gui/public/i18n/en-x-owo/translation.ftl index 99c00bff87..09e56be190 100644 --- a/gui/public/i18n/en-x-owo/translation.ftl +++ b/gui/public/i18n/en-x-owo/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Wotation widget-imu_visualizer-rotation_raw = Waw -widget-imu_visualizer-rotation_adjusted = Wawwusted +widget-imu_visualizer-rotation_preview = Pwewiew ## Tracker status tracker-status-none = no stawtus diff --git a/gui/public/i18n/en/translation.ftl b/gui/public/i18n/en/translation.ftl index 6d2cb234e6..81efd0a5d5 100644 --- a/gui/public/i18n/en/translation.ftl +++ b/gui/public/i18n/en/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = No Status diff --git a/gui/public/i18n/es-419/translation.ftl b/gui/public/i18n/es-419/translation.ftl index 7f75ea8011..529c2052bc 100644 --- a/gui/public/i18n/es-419/translation.ftl +++ b/gui/public/i18n/es-419/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = Sin estado diff --git a/gui/public/i18n/fr/translation.ftl b/gui/public/i18n/fr/translation.ftl index d7b4742b44..cb2ddc9a61 100644 --- a/gui/public/i18n/fr/translation.ftl +++ b/gui/public/i18n/fr/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = Pas de statut diff --git a/gui/public/i18n/it/translation.ftl b/gui/public/i18n/it/translation.ftl index 04a8368fb9..9fec182ae1 100644 --- a/gui/public/i18n/it/translation.ftl +++ b/gui/public/i18n/it/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = Nessuno Stato diff --git a/gui/public/i18n/ja/translation.ftl b/gui/public/i18n/ja/translation.ftl index c361b63df1..374f9da8f8 100644 --- a/gui/public/i18n/ja/translation.ftl +++ b/gui/public/i18n/ja/translation.ftl @@ -93,7 +93,7 @@ widget-overlay-is_mirrored_label = オーバーレイをミラーとして表示 ## Widget: Developer settings widget-developer_mode = 開発者モード -widget-developer_mode-high_contrast = ハイコントラスト +widget-developer_mode-high_contrast = ハイ コントラスト widget-developer_mode-precise_rotation = 正確な回転角度を表示 widget-developer_mode-fast_data_feed = 高速表示モード widget-developer_mode-filter_slimes_and_hmd = SlimeVRとHMDのみを表示 @@ -104,7 +104,7 @@ widget-developer_mode-more_info = 他情報 ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = ステータスなし diff --git a/gui/public/i18n/ko/translation.ftl b/gui/public/i18n/ko/translation.ftl index f980d1e79c..a27da06a02 100644 --- a/gui/public/i18n/ko/translation.ftl +++ b/gui/public/i18n/ko/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = No Status diff --git a/gui/public/i18n/pl/translation.ftl b/gui/public/i18n/pl/translation.ftl index 74a6062999..979f009f93 100644 --- a/gui/public/i18n/pl/translation.ftl +++ b/gui/public/i18n/pl/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = Brak Statusu diff --git a/gui/public/i18n/pt-BR/translation.ftl b/gui/public/i18n/pt-BR/translation.ftl index c706d54e9e..899732ddd7 100644 --- a/gui/public/i18n/pt-BR/translation.ftl +++ b/gui/public/i18n/pt-BR/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = Sem Status diff --git a/gui/public/i18n/vi/translation.ftl b/gui/public/i18n/vi/translation.ftl index 5b8382160c..4f67db7095 100644 --- a/gui/public/i18n/vi/translation.ftl +++ b/gui/public/i18n/vi/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = Không có tình trạng diff --git a/gui/public/i18n/zh-Hans/translation.ftl b/gui/public/i18n/zh-Hans/translation.ftl index 81ed4bc995..7bf783967b 100644 --- a/gui/public/i18n/zh-Hans/translation.ftl +++ b/gui/public/i18n/zh-Hans/translation.ftl @@ -104,7 +104,7 @@ widget-developer_mode-more_info = More info ## Widget: IMU Visualizer widget-imu_visualizer = Rotation widget-imu_visualizer-rotation_raw = Raw -widget-imu_visualizer-rotation_adjusted = Adjusted +widget-imu_visualizer-rotation_preview = Preview ## Tracker status tracker-status-none = 无状态 diff --git a/gui/src/components/widgets/IMUVisualizerWidget.tsx b/gui/src/components/widgets/IMUVisualizerWidget.tsx index bb3903238d..46b427457a 100644 --- a/gui/src/components/widgets/IMUVisualizerWidget.tsx +++ b/gui/src/components/widgets/IMUVisualizerWidget.tsx @@ -131,7 +131,7 @@ export function IMUVisualizerWidget({ tracker }: { tracker: TrackerDataT }) { const [enabled, setEnabled] = useState(false); const quat = tracker?.rotationIdentityAdjusted || new THREE.Quaternion(); - const { useRawRotationEulerDegrees, useRefAdjRotationEulerDegrees } = + const { useRawRotationEulerDegrees, useIdentAdjRotationEulerDegrees } = useTracker(tracker); return ( @@ -151,16 +151,16 @@ export function IMUVisualizerWidget({ tracker }: { tracker: TrackerDataT }) {
- {l10n.getString('widget-imu_visualizer-rotation_adjusted')} + {l10n.getString('widget-imu_visualizer-rotation_preview')} - {formatVector3(useRefAdjRotationEulerDegrees(), 2)} + {formatVector3(useIdentAdjRotationEulerDegrees(), 2)}
{!enabled && ( )} {enabled && } diff --git a/gui/src/hooks/tracker.ts b/gui/src/hooks/tracker.ts index 48b44006a7..f40848488a 100644 --- a/gui/src/hooks/tracker.ts +++ b/gui/src/hooks/tracker.ts @@ -66,7 +66,7 @@ export function useTracker(tracker: TrackerDataT) { () => QuaternionToEulerDegrees(tracker?.rotationReferenceAdjusted), [tracker.rotationReferenceAdjusted] ), - useRefAdjRotationDebugEulerDegrees: () => + useIdentAdjRotationEulerDegrees: () => useMemo( () => QuaternionToEulerDegrees(tracker?.rotationIdentityAdjusted), [tracker.rotationIdentityAdjusted]