Move around reset settings in GUI and add titles

This commit is contained in:
Erimel committed 2026-07-24 19:16:02 -04:00
1 parent 540c291ccb
commit 4e1e53ee0a
3 files changed
+111 -85

No files matched your search

+6 -4
View File
@@ -523,7 +523,8 @@ settings-general-tracker_mechanics-filtering-type-smoothing-description = Smooth
settings-general-tracker_mechanics-filtering-type-prediction = Prediction
settings-general-tracker_mechanics-filtering-type-prediction-description = Reduces latency and makes movements more snappy, but may increase jitter.
settings-general-tracker_mechanics-filtering-amount = Amount
settings-general-tracker_mechanics-yaw-reset-smooth-time = Yaw reset smooth time (0s disables smoothing)
settings-general-tracker_mechanics-yaw-reset-smooth-time = Yaw reset smooth time
settings-general-tracker_mechanics-yaw-reset-smooth-time-description = Smooths the trackers' rotations upon doing a yaw reset. 0s disables smoothing.
settings-general-tracker_mechanics-drift_compensation_warning-cancel = Cancel
settings-general-tracker_mechanics-drift_compensation_warning-done = I understand
settings-general-tracker_mechanics-drift_compensation-amount-label = Compensation amount
@@ -619,8 +620,8 @@ settings-general-fk_settings-leg_tweak-floor_clip-description = Floor-clip can r
settings-general-fk_settings-leg_tweak-toe_snap-description = Toe-snap attempts to guess the rotation of your feet if foot trackers are not in use.
settings-general-fk_settings-leg_tweak-foot_plant-description = Foot-plant rotates your feet to be parallel to the ground when in contact.
settings-general-fk_settings-leg_fk = Leg tracking
settings-general-fk_settings-leg_fk-reset_mounting_feet-description-v1 = Force feet mounting calibration during body mounting calibration.
settings-general-fk_settings-leg_fk-reset_mounting_feet-v1 = Force feet mounting calibration
settings-general-fk_settings-leg_fk-reset_mounting_feet-description-v1 = Force feet mounting calibration during body mounting calibration.
settings-general-fk_settings-enforce_joint_constraints = Skeletal Limits
settings-general-fk_settings-enforce_joint_constraints-enforce_constraints = Enforce constraints
settings-general-fk_settings-enforce_joint_constraints-enforce_constraints-description = Prevents joints from rotating past their limit
@@ -636,9 +637,10 @@ settings-general-fk_settings-arm_fk = Arm tracking
settings-general-fk_settings-arm_fk-description = Force arms to be tracked from the headset (HMD) even if positional hand data is available.
settings-general-fk_settings-arm_fk-force_arms = Force arms from HMD
settings-general-fk_settings-resets_settings = Resets Settings
settings-general-fk_settings-reset_settings-reset_hmd_pitch-description = Reset the HMD's pitch (vertical rotation) upon doing a full reset. Useful if wearing an HMD on the forehead for VTubing or mocap. Do not enable for VR.
settings-general-fk_settings-reset_settings-reset_hmd_pitch = Reset HMD pitch
settings-general-fk_settings-arm_fk-reset_mode-description = Change which arm pose is expected for mounting calibration.
settings-general-fk_settings-reset_settings-reset_hmd_pitch-description = Reset the HMD's vertical rotation upon doing a full reset. Useful if wearing an HMD on the forehead for VTubing or mocap. Do not enable for VR.
settings-general-fk_settings-arm_fk-reset_mode = Arms reset mode
settings-general-fk_settings-arm_fk-reset_mode-description = Change which arm pose is expected for resets.
settings-general-fk_settings-arm_fk-back = Back
settings-general-fk_settings-arm_fk-back-description = The default mode, with the upper arms going back and lower arms going forward.
settings-general-fk_settings-arm_fk-tpose_up = T-pose (up)
@@ -98,90 +98,65 @@ export function ResetsSettings() {
return (
<>
<div className="flex md:flex-row flex-col pt-5 pb-1">
<div className="flex flex-col pt-5 gap-1">
<Typography variant="section-title">
{l10n.getString(
'settings-general-fk_settings-leg_fk-reset_mounting_feet-v1'
)}
</Typography>
<Typography>
{l10n.getString(
'settings-general-fk_settings-leg_fk-reset_mounting_feet-description-v1'
)}
</Typography>
<CheckBox
variant="toggle"
outlined
control={control}
name="resetMountingFeet"
label={l10n.getString(
'settings-general-fk_settings-leg_fk-reset_mounting_feet-v1'
)}
/>
</div>
<div className="flex flex-col pt-5 gap-1">
<Typography variant="section-title">
{l10n.getString(
'settings-general-tracker_mechanics-yaw-reset-smooth-time'
)}
</Typography>
</div>
<NumberSelector
control={control}
name="yawResetSmoothTime"
valueLabelFormat={(value) => secondsFormat.format(value)}
min={0.0}
max={0.5}
step={0.05}
/>
<div className="flex flex-col pt-5 pb-2">
<Typography variant="section-title">
<Typography>
{l10n.getString(
'settings-general-tracker_mechanics-save_mounting_reset'
'settings-general-tracker_mechanics-yaw-reset-smooth-time-description'
)}
</Typography>
<Localized
id="settings-general-tracker_mechanics-save_mounting_reset-description"
elems={{ b: <b /> }}
>
<Typography />
</Localized>
</div>
<CheckBox
variant="toggle"
outlined
control={control}
name="saveMountingReset"
label={l10n.getString(
'settings-general-tracker_mechanics-save_mounting_reset-enabled-label'
)}
/>
<div className="flex flex-col pt-5">
<div className="grid grid-cols-2 gap-2">
<div className="flex flex-col gap-2">
<Typography>
{l10n.getString(
'settings-general-fk_settings-reset_settings-reset_hmd_pitch-description'
)}
</Typography>
<CheckBox
variant="toggle"
outlined
control={control}
name="resetHmdPitch"
label={l10n.getString(
'settings-general-fk_settings-reset_settings-reset_hmd_pitch'
)}
/>
</div>
<div className="flex flex-col gap-2 justify-end">
<Typography>
{l10n.getString(
'settings-general-fk_settings-leg_fk-reset_mounting_feet-description-v1'
)}
</Typography>
<CheckBox
variant="toggle"
outlined
control={control}
name="resetMountingFeet"
label={l10n.getString(
'settings-general-fk_settings-leg_fk-reset_mounting_feet-v1'
)}
/>
</div>
</div>
<NumberSelector
control={control}
name="yawResetSmoothTime"
valueLabelFormat={(value) => secondsFormat.format(value)}
min={0.0}
max={0.5}
step={0.05}
/>
</div>
<div className="flex flex-col pt-5">
<div className="flex flex-col pt-5 pb-2 gap-1">
<Typography variant="section-title">
{l10n.getString('settings-general-fk_settings-arm_fk-reset_mode')}
</Typography>
<Typography>
{l10n.getString(
'settings-general-fk_settings-arm_fk-reset_mode-description'
)}
</Typography>
<div className="grid md:grid-cols-2 flex-col gap-3 pt-2 pb-3">
<div className="grid md:grid-cols-2 flex-col gap-3">
<Radio
control={control}
name="armsResetMode"
@@ -226,6 +201,55 @@ export function ResetsSettings() {
/>
</div>
</div>
<div className="flex flex-col pt-5 gap-1">
<Typography variant="section-title">
{l10n.getString(
'settings-general-fk_settings-reset_settings-reset_hmd_pitch'
)}
</Typography>
<Typography>
{l10n.getString(
'settings-general-fk_settings-reset_settings-reset_hmd_pitch-description'
)}
</Typography>
<CheckBox
variant="toggle"
outlined
control={control}
name="resetHmdPitch"
label={l10n.getString(
'settings-general-fk_settings-reset_settings-reset_hmd_pitch'
)}
/>
</div>
<div className="flex flex-col pt-5 gap-1">
<Typography variant="section-title">
{l10n.getString(
'settings-general-tracker_mechanics-save_mounting_reset'
)}
</Typography>
<Localized
id="settings-general-tracker_mechanics-save_mounting_reset-description"
elems={{ b: <b /> }}
>
<Typography />
</Localized>
<CheckBox
variant="toggle"
outlined
control={control}
name="saveMountingReset"
label={l10n.getString(
'settings-general-tracker_mechanics-save_mounting_reset-enabled-label'
)}
/>
</div>
</>
);
}
@@ -215,20 +215,6 @@ export function TapDetectionSettings() {
items={bodyParts}
/>
</div>
<div>
<Typography variant="section-title">
{l10n.getString(
'settings-general-gesture_control-mountingResetTracker'
)}
</Typography>
<Dropdown
display="block"
control={control}
placeholder={''}
name="mountingResetTracker"
items={bodyParts}
/>
</div>
<div>
<Typography variant="section-title">
{l10n.getString(
@@ -243,6 +229,20 @@ export function TapDetectionSettings() {
items={bodyParts}
/>
</div>
<div>
<Typography variant="section-title">
{l10n.getString(
'settings-general-gesture_control-mountingResetTracker'
)}
</Typography>
<Dropdown
display="block"
control={control}
placeholder={''}
name="mountingResetTracker"
items={bodyParts}
/>
</div>
</div>
</div>
<div className="grid sm:grid-cols-3 gap-5 pb-2">