mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-19 05:46: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 (
|
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">
|
||||||
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||||
<Slider
|
<Slider
|
||||||
value={ time }
|
value={ time }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1200 }
|
max={ 1200 }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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">
|
||||||
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</label>
|
||||||
<Slider
|
<Slider
|
||||||
value={ time }
|
value={ time }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 120 }
|
max={ 120 }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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">
|
||||||
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||||
<Slider
|
<Slider
|
||||||
value={ time }
|
value={ time }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 60 }
|
max={ 60 }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -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">
|
||||||
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</label>
|
||||||
<Slider
|
<Slider
|
||||||
value={ points }
|
value={ points }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1000 }
|
max={ 1000 }
|
||||||
step={ 1 }
|
step={ 1 }
|
||||||
onChange={ event => setPoints(event) } />
|
onChange={ event => setPoints(event) } />
|
||||||
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user