Update triggers again

This commit is contained in:
Bill 2021-06-29 02:41:12 -04:00
parent 7e54c5a219
commit 6fa35f9bcf
4 changed files with 33 additions and 25 deletions

View File

@ -23,12 +23,14 @@ export const WiredTriggeExecuteOnceView: FC<{}> = props =>
return ( return (
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }> <WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
<div className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</div> <div className="form-group">
<Slider <label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
value={ time } <Slider
min={ 1 } value={ time }
max={ 1200 } min={ 1 }
onChange={ event => setTime(event) } /> max={ 1200 }
onChange={ event => setTime(event) } />
</div>
</WiredTriggerBaseView> </WiredTriggerBaseView>
); );
} }

View File

@ -23,12 +23,14 @@ export const WiredTriggeExecutePeriodicallyLongView: FC<{}> = props =>
return ( return (
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }> <WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
<div className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</div> <div className="form-group">
<Slider <label className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</label>
value={ time } <Slider
min={ 1 } value={ time }
max={ 120 } min={ 1 }
onChange={ event => setTime(event) } /> max={ 120 }
onChange={ event => setTime(event) } />
</div>
</WiredTriggerBaseView> </WiredTriggerBaseView>
); );
} }

View File

@ -23,12 +23,14 @@ export const WiredTriggeExecutePeriodicallyView: FC<{}> = props =>
return ( return (
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }> <WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
<div className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</div> <div className="form-group">
<Slider <label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
value={ time } <Slider
min={ 1 } value={ time }
max={ 60 } min={ 1 }
onChange={ event => setTime(event) }/> max={ 60 }
onChange={ event => setTime(event) } />
</div>
</WiredTriggerBaseView> </WiredTriggerBaseView>
); );
} }

View File

@ -22,13 +22,15 @@ export const WiredTriggeScoreAchievedView: FC<{}> = props =>
return ( return (
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }> <WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
<div className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</div> <div className="form-group">
<Slider <label className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</label>
value={ points } <Slider
min={ 1 } value={ points }
max={ 1000 } min={ 1 }
step={ 1 } max={ 1000 }
onChange={ event => setPoints(event) } /> step={ 1 }
onChange={ event => setPoints(event) } />
</div>
</WiredTriggerBaseView> </WiredTriggerBaseView>
); );
} }