mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-18 21:36:27 +01:00
Update triggers again
This commit is contained in:
parent
7e54c5a219
commit
6fa35f9bcf
@ -23,12 +23,14 @@ export const WiredTriggeExecuteOnceView: FC<{}> = props =>
|
||||
|
||||
return (
|
||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||
<div className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</div>
|
||||
<Slider
|
||||
value={ time }
|
||||
min={ 1 }
|
||||
max={ 1200 }
|
||||
onChange={ event => setTime(event) } />
|
||||
<div className="form-group">
|
||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||
<Slider
|
||||
value={ time }
|
||||
min={ 1 }
|
||||
max={ 1200 }
|
||||
onChange={ event => setTime(event) } />
|
||||
</div>
|
||||
</WiredTriggerBaseView>
|
||||
);
|
||||
}
|
||||
|
@ -23,12 +23,14 @@ export const WiredTriggeExecutePeriodicallyLongView: FC<{}> = props =>
|
||||
|
||||
return (
|
||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||
<div className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</div>
|
||||
<Slider
|
||||
value={ time }
|
||||
min={ 1 }
|
||||
max={ 120 }
|
||||
onChange={ event => setTime(event) } />
|
||||
<div className="form-group">
|
||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</label>
|
||||
<Slider
|
||||
value={ time }
|
||||
min={ 1 }
|
||||
max={ 120 }
|
||||
onChange={ event => setTime(event) } />
|
||||
</div>
|
||||
</WiredTriggerBaseView>
|
||||
);
|
||||
}
|
||||
|
@ -23,12 +23,14 @@ export const WiredTriggeExecutePeriodicallyView: FC<{}> = props =>
|
||||
|
||||
return (
|
||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||
<div className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</div>
|
||||
<Slider
|
||||
value={ time }
|
||||
min={ 1 }
|
||||
max={ 60 }
|
||||
onChange={ event => setTime(event) }/>
|
||||
<div className="form-group">
|
||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||
<Slider
|
||||
value={ time }
|
||||
min={ 1 }
|
||||
max={ 60 }
|
||||
onChange={ event => setTime(event) } />
|
||||
</div>
|
||||
</WiredTriggerBaseView>
|
||||
);
|
||||
}
|
||||
|
@ -22,13 +22,15 @@ export const WiredTriggeScoreAchievedView: FC<{}> = props =>
|
||||
|
||||
return (
|
||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||
<div className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</div>
|
||||
<Slider
|
||||
value={ points }
|
||||
min={ 1 }
|
||||
max={ 1000 }
|
||||
step={ 1 }
|
||||
onChange={ event => setPoints(event) } />
|
||||
<div className="form-group">
|
||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</label>
|
||||
<Slider
|
||||
value={ points }
|
||||
min={ 1 }
|
||||
max={ 1000 }
|
||||
step={ 1 }
|
||||
onChange={ event => setPoints(event) } />
|
||||
</div>
|
||||
</WiredTriggerBaseView>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user