Merge branch 'fix-wired-wearing-avatar-effect' into 'dev'

Fix issue #261 - WiredConditionActorIsWearingEffectView

See merge request nitro/nitro-react!87
This commit is contained in:
Bill 2022-10-16 00:49:24 +00:00
commit b91f5eaed8

View File

@ -13,13 +13,13 @@ export const WiredConditionActorIsWearingEffectView: FC<{}> = props =>
useEffect(() =>
{
setEffect((trigger.intData.length > 0) ? trigger.intData[0] : 0);
setEffect((trigger?.stringData !== '') ? parseInt(trigger?.stringData!) : 0);
}, [ trigger ]);
return (
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } hasSpecialInput={ true } save={ save }>
<Column gap={ 1 }>
<Text bold>{ LocalizeText('wiredfurni.params.effectid') }</Text>
<Text bold>{ LocalizeText('wiredfurni.tooltip.effectid') }</Text>
<input type="number" className="form-control form-control-sm" value={ effect } onChange={ event => setEffect(parseInt(event.target.value)) } />
</Column>
</WiredConditionBaseView>