Skip to content

Commit

Permalink
Fix constant mode UI min/max/step and tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
SutekhVRC committed Dec 23, 2023
1 parent fa99fad commit 3ef1304
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src-tauri/src/toy_handling/handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ async fn mode_processor<'toy_parameter>(
)
.await;
}
// Never called with Boolean type yet (todo)

ModeProcessorInputType::Boolean(b_input) => {
// Input Processor & Boolean
return mode_processor_logic(
Expand All @@ -482,7 +482,7 @@ async fn mode_processor<'toy_parameter>(
)
.await;
}
// Never called with Boolean type yet (todo)

ModeProcessorInputType::Boolean(b_input) => {
// Raw Input & Boolean
return mode_processor_logic(
Expand Down
8 changes: 4 additions & 4 deletions src/features/FeatureForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,16 @@ export default function FeatureForm({
/>
<FourPanel
text="Constant Level"
tooltip="This uses contant mode on the float input."
tooltip="The intensity your toy will activate when you have constant mode enabled."
three={
<Slider
accent={
feature.penetration_system.pen_system_processing_mode ==
"Constant"
}
min={1}
max={20}
step={1}
min={0.01}
max={1.0}
step={0.01}
value={[levels.constant_level]}
onValueChange={(e) => handleLevels("constant_level", e[0])}
onValueCommit={handleCommit}
Expand Down

0 comments on commit 3ef1304

Please sign in to comment.