mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Update sliders
This commit is contained in:
parent
fb740631c4
commit
54ab6a5f61
@ -1,6 +1,6 @@
|
|||||||
import { WiredActionDefinition } from '@nitrots/nitro-renderer';
|
import { WiredActionDefinition } from '@nitrots/nitro-renderer';
|
||||||
import Slider from 'rc-slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
@ -34,10 +34,11 @@ export const WiredActionBaseView: FC<WiredActionBaseViewProps> = props =>
|
|||||||
</> }
|
</> }
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.delay', [ 'seconds' ], [ GetWiredTimeLocale(delay) ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.delay', [ 'seconds' ], [ GetWiredTimeLocale(delay) ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ delay }
|
className={ 'nitro-slider' }
|
||||||
min={ 0 }
|
min={ 0 }
|
||||||
max={ 20 }
|
max={ 20 }
|
||||||
|
value={ delay }
|
||||||
onChange={ event => setDelay(event) } />
|
onChange={ event => setDelay(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredBaseView>
|
</WiredBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -105,14 +105,13 @@ export const WiredActionGiveRewardView: FC<{}> = props =>
|
|||||||
{ !limitEnabled && <div className="bg-muted rounded small text-black p-1 text-center">
|
{ !limitEnabled && <div className="bg-muted rounded small text-black p-1 text-center">
|
||||||
Reward limit not set. Make sure rewards are badges or non-tradeable items.
|
Reward limit not set. Make sure rewards are badges or non-tradeable items.
|
||||||
</div> }
|
</div> }
|
||||||
{ limitEnabled && <Slider
|
{ limitEnabled &&
|
||||||
defaultValue={ rewardsLimit }
|
<ReactSlider
|
||||||
dots={ true }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1000 }
|
max={ 1000 }
|
||||||
step={ 1 }
|
value={ rewardsLimit }
|
||||||
onChange={ event => setRewardsLimit(event) }
|
onChange={ event => setRewardsLimit(event) } /> }
|
||||||
/> }
|
|
||||||
<hr className="my-1 mb-2 bg-dark" />
|
<hr className="my-1 mb-2 bg-dark" />
|
||||||
<div className="fw-bold">How ofter can a user be rewarded?</div>
|
<div className="fw-bold">How ofter can a user be rewarded?</div>
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -37,18 +37,20 @@ export const WiredActionGiveScoreToPredefinedTeamView: FC<{}> = props =>
|
|||||||
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group mb-2">
|
<div className="form-group mb-2">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setpoints', [ 'points' ], [ points.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setpoints', [ 'points' ], [ points.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ points }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 100 }
|
max={ 100 }
|
||||||
|
value={ points }
|
||||||
onChange={ event => setPoints(event) } />
|
onChange={ event => setPoints(event) } />
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group mb-2">
|
<div className="form-group mb-2">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settimesingame', [ 'times' ], [ time.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settimesingame', [ 'times' ], [ time.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 10 }
|
max={ 10 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -34,18 +34,20 @@ export const WiredActionGiveScoreView: FC<{}> = props =>
|
|||||||
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group mb-2">
|
<div className="form-group mb-2">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setpoints', [ 'points' ], [ points.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setpoints', [ 'points' ], [ points.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ points }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 100 }
|
max={ 100 }
|
||||||
|
value={ points }
|
||||||
onChange={ event => setPoints(event) } />
|
onChange={ event => setPoints(event) } />
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settimesingame', [ 'times' ], [ time.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settimesingame', [ 'times' ], [ time.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 10 }
|
max={ 10 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredActionBaseView>
|
</WiredActionBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -53,10 +53,11 @@ export const WiredActionMoveFurniToView: FC<{}> = props =>
|
|||||||
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_BY_ID_OR_BY_TYPE } save={ save }>
|
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_BY_ID_OR_BY_TYPE } save={ save }>
|
||||||
<div className="form-group mb-2">
|
<div className="form-group mb-2">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.emptytiles', [ 'tiles' ], [ spacing.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.emptytiles', [ 'tiles' ], [ spacing.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ spacing }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 5 }
|
max={ 5 }
|
||||||
|
value={ spacing }
|
||||||
onChange={ event => setSpacing(event) } />
|
onChange={ event => setSpacing(event) } />
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -27,10 +27,11 @@ export const WiredActionMuteUserView: FC<{}> = props =>
|
|||||||
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredActionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group mb-2">
|
<div className="form-group mb-2">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.length.minutes', ['minutes'], [ time.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.length.minutes', ['minutes'], [ time.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 10 }
|
max={ 10 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
@ -25,10 +25,11 @@ export const WiredConditionTimeElapsedLessView: FC<{}> = props =>
|
|||||||
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.allowbefore', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.allowbefore', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1200 }
|
max={ 1200 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredConditionBaseView>
|
</WiredConditionBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
@ -25,10 +25,11 @@ export const WiredConditionTimeElapsedMoreView: FC<{}> = props =>
|
|||||||
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.allowafter', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.allowafter', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1200 }
|
max={ 1200 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredConditionBaseView>
|
</WiredConditionBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -34,18 +34,20 @@ export const WiredConditionUserCountInRoomView: FC<{}> = props =>
|
|||||||
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group mb-2">
|
<div className="form-group mb-2">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.usercountmin', [ 'value' ], [ min.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.usercountmin', [ 'value' ], [ min.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ min }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 50 }
|
max={ 50 }
|
||||||
|
value={ min }
|
||||||
onChange={ event => setMin(event) } />
|
onChange={ event => setMin(event) } />
|
||||||
</div>
|
</div>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.usercountmax', [ 'value' ], [ max.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.usercountmax', [ 'value' ], [ max.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ max }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 50 }
|
max={ 50 }
|
||||||
|
value={ max }
|
||||||
onChange={ event => setMax(event) } />
|
onChange={ event => setMax(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredConditionBaseView>
|
</WiredConditionBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
@ -25,10 +25,11 @@ export const WiredTriggeExecuteOnceView: FC<{}> = props =>
|
|||||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1200 }
|
max={ 1200 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { FriendlyTime } from '@nitrots/nitro-renderer';
|
import { FriendlyTime } from '@nitrots/nitro-renderer';
|
||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -25,10 +25,11 @@ export const WiredTriggeExecutePeriodicallyLongView: FC<{}> = props =>
|
|||||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setlongtime', [ 'time' ], [ FriendlyTime.format(time * 5).toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 120 }
|
max={ 120 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
@ -25,10 +25,11 @@ export const WiredTriggeExecutePeriodicallyView: FC<{}> = props =>
|
|||||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.settime', [ 'seconds' ], [ GetWiredTimeLocale(time) ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ time }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 60 }
|
max={ 60 }
|
||||||
|
value={ time }
|
||||||
onChange={ event => setTime(event) } />
|
onChange={ event => setTime(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import Slider from 'rc-slider/lib/Slider';
|
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../utils/LocalizeText';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../../WiredView.types';
|
||||||
@ -24,10 +24,11 @@ export const WiredTriggeScoreAchievedView: FC<{}> = props =>
|
|||||||
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
<WiredTriggerBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } save={ save }>
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</label>
|
<label className="fw-bold">{ LocalizeText('wiredfurni.params.setscore', [ 'points' ], [ points.toString() ]) }</label>
|
||||||
<Slider
|
<ReactSlider
|
||||||
value={ points }
|
className={ 'nitro-slider' }
|
||||||
min={ 1 }
|
min={ 1 }
|
||||||
max={ 1000 }
|
max={ 1000 }
|
||||||
|
value={ points }
|
||||||
onChange={ event => setPoints(event) } />
|
onChange={ event => setPoints(event) } />
|
||||||
</div>
|
</div>
|
||||||
</WiredTriggerBaseView>
|
</WiredTriggerBaseView>
|
||||||
|
Loading…
Reference in New Issue
Block a user