mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
dbfcae5231
- add UI for wf_trg_leave_room, wf_trg_stuff_state, wf_trg_period_short, wf_trg_click_furni, wf_trg_click_tile, wf_trg_click_user and wf_trg_user_performs_action\n- add state snapshot mode options for wf_trg_stuff_state\n- add sign and dance filters for wf_trg_user_performs_action
21 lines
725 B
TypeScript
21 lines
725 B
TypeScript
import { FC, useEffect } from 'react';
|
|
import { WiredFurniType } from '../../../../api';
|
|
import { useWired } from '../../../../hooks';
|
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
|
|
|
const CLICK_TILE_INTERACTION_TYPES = [ 'room_invisible_click_tile' ];
|
|
|
|
export const WiredTriggerClickTileView: FC<{}> = () =>
|
|
{
|
|
const { setAllowedInteractionTypes } = useWired();
|
|
|
|
useEffect(() =>
|
|
{
|
|
setAllowedInteractionTypes(CLICK_TILE_INTERACTION_TYPES);
|
|
|
|
return () => setAllowedInteractionTypes(null);
|
|
}, [ setAllowedInteractionTypes ]);
|
|
|
|
return <WiredTriggerBaseView hasSpecialInput={ false } requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_BY_ID_OR_BY_TYPE } save={ null } />;
|
|
};
|