Fix autodetection settings page

This commit is contained in:
Tamius Han 2019-02-28 23:55:37 +01:00
parent 8253b6e8a5
commit 812f3e6b69

View File

@ -21,10 +21,9 @@
Frequency while playing: Frequency while playing:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
step="any"
v-model="settings.active.arDetect.timers.playing" v-model="settings.active.arDetect.timers.playing"
> />
</div> </div>
</div> </div>
<div class="flex flex-row row-padding"> <div class="flex flex-row row-padding">
@ -32,10 +31,9 @@
Frequency while paused: Frequency while paused:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
step="any"
v-model="settings.active.arDetect.timers.paused" v-model="settings.active.arDetect.timers.paused"
> />
</div> </div>
</div> </div>
<div v-if="showAdvancedOptions" class="flex flex-row row-padding"> <div v-if="showAdvancedOptions" class="flex flex-row row-padding">
@ -43,10 +41,9 @@
Error timeout: Error timeout:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
step="any"
v-model="settings.active.arDetect.timers.error" v-model="settings.active.arDetect.timers.error"
> />
</div> </div>
</div> </div>
</div> </div>
@ -63,10 +60,9 @@
Tick rate: Tick rate:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
step="any"
v-model="settings.active.arDetect.timers.tickrate" v-model="settings.active.arDetect.timers.tickrate"
> />
</div> </div>
</div> </div>
</div> </div>
@ -99,10 +95,9 @@
Safety border thickness (in px) Safety border thickness (in px)
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
step="any"
v-model="settings.active.arDetect.fallbackMode.safetyBorderPx" v-model="settings.active.arDetect.fallbackMode.safetyBorderPx"
> />
</div> </div>
</div> </div>
<div v-if="showAdvancedOptions" class="flex flex-row row-padding"> <div v-if="showAdvancedOptions" class="flex flex-row row-padding">
@ -110,10 +105,9 @@
Don't react if detected edge is less than this many pixels thick: Don't react if detected edge is less than this many pixels thick:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
step="any"
v-model="settings.active.arDetect.fallbackMode.noTriggerZonePx" v-model="settings.active.arDetect.fallbackMode.noTriggerZonePx"
> />
</div> </div>
</div> </div>
</div> </div>
@ -128,7 +122,7 @@
Letterbox misalignment threshold Letterbox misalignment threshold
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="" <input type="text"
v-model="settings.active.arDetect.allowedMisaligned" v-model="settings.active.arDetect.allowedMisaligned"
/> />
</div> </div>
@ -150,7 +144,7 @@
Static sample columns: Static sample columns:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.sampling.staticCols" v-model="settings.active.arDetect.sampling.staticCols"
/> />
</div> </div>
@ -160,7 +154,7 @@
Random sample columns: Random sample columns:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.sampling.randomCols" v-model="settings.active.arDetect.sampling.randomCols"
/> />
</div> </div>
@ -170,7 +164,7 @@
Static rows: Static rows:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.sampling.staticRows" v-model="settings.active.arDetect.sampling.staticRows"
/> />
</div> </div>
@ -180,7 +174,7 @@
Sample width: Sample width:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.canvasDimensions.sampleCanvas.width" v-model="settings.active.arDetect.canvasDimensions.sampleCanvas.width"
/> />
</div> </div>
@ -190,7 +184,7 @@
Static rows: Static rows:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.canvasDimensions.sampleCanvas.height" v-model="settings.active.arDetect.canvasDimensions.sampleCanvas.height"
/> />
</div> </div>
@ -222,7 +216,7 @@
Black level: Black level:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.blackbar.blackLevel" v-model="settings.active.arDetect.blackbar.blackLevel"
/> />
</div> </div>
@ -232,7 +226,7 @@
Threshold: Threshold:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.blackbar.threshold" v-model="settings.active.arDetect.blackbar.threshold"
/> />
</div> </div>
@ -250,7 +244,7 @@
Image threshold Image threshold
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.blackbar.imageThreshold" v-model="settings.active.arDetect.blackbar.imageThreshold"
/> />
</div> </div>
@ -260,7 +254,7 @@
Gradient threshold: Gradient threshold:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.blackbar.gradientThreshold" v-model="settings.active.arDetect.blackbar.gradientThreshold"
/> />
</div> </div>
@ -270,7 +264,7 @@
Gradient sample size: Gradient sample size:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.blackbar.gradientSampleSize" v-model="settings.active.arDetect.blackbar.gradientSampleSize"
/> />
</div> </div>
@ -292,7 +286,7 @@
Blackframe sample width: Blackframe sample width:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.canvasDimensions.blackframeCanvas.width" v-model="settings.active.arDetect.canvasDimensions.blackframeCanvas.width"
/> />
</div> </div>
@ -302,7 +296,7 @@
Blackframe sample height: Blackframe sample height:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.canvasDimensions.blackframeCanvas.height" v-model="settings.active.arDetect.canvasDimensions.blackframeCanvas.height"
/> />
</div> </div>
@ -312,7 +306,7 @@
Cumulative threshold: Cumulative threshold:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.blackframe.cumulativeThreshold" v-model="settings.active.arDetect.blackframe.cumulativeThreshold"
/> />
</div> </div>
@ -347,7 +341,7 @@
Sample width: Sample width:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.edgeDetection.sampleWidth" v-model="settings.active.arDetect.edgeDetection.sampleWidth"
/> />
</div> </div>
@ -357,7 +351,7 @@
Detection threshold (px): Detection threshold (px):
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.edgeDetection.detectionThreshold" v-model="settings.active.arDetect.edgeDetection.detectionThreshold"
/> />
</div> </div>
@ -428,7 +422,7 @@
Ignore edge margin: Ignore edge margin:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.guardLine.ignoreEdgeMargin" v-model="settings.active.arDetect.guardLine.ignoreEdgeMargin"
/> />
</div> </div>
@ -438,7 +432,7 @@
Image threshold: Image threshold:
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.guardLine.imageTestThreshold" v-model="settings.active.arDetect.guardLine.imageTestThreshold"
/> />
</div> </div>
@ -448,7 +442,7 @@
Edge tolerance (px): Edge tolerance (px):
</div> </div>
<div class="flex flex-input"> <div class="flex flex-input">
<input type="number" <input type="text"
v-model="settings.active.arDetect.guardLine.edgeTolerancePx" v-model="settings.active.arDetect.guardLine.edgeTolerancePx"
/> />
</div> </div>