mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Move wired around
This commit is contained in:
parent
bf06c4a58f
commit
8abd271800
@ -5,3 +5,4 @@
|
|||||||
@import './inventory/InventoryView';
|
@import './inventory/InventoryView';
|
||||||
@import './navigator/NavigatorView';
|
@import './navigator/NavigatorView';
|
||||||
@import './toolbar/ToolbarView';
|
@import './toolbar/ToolbarView';
|
||||||
|
@import './wired/WiredView';
|
||||||
|
@ -6,9 +6,8 @@ import { SendMessageHook } from '../../hooks/messages';
|
|||||||
import { GetWiredLayout } from './common/GetWiredLayout';
|
import { GetWiredLayout } from './common/GetWiredLayout';
|
||||||
import { WiredContextProvider } from './context/WiredContext';
|
import { WiredContextProvider } from './context/WiredContext';
|
||||||
import { WiredMessageHandler } from './WiredMessageHandler';
|
import { WiredMessageHandler } from './WiredMessageHandler';
|
||||||
import { WiredFurniSelectorViewProps } from './WiredView.types';
|
|
||||||
|
|
||||||
export const WiredView: FC<WiredFurniSelectorViewProps> = props =>
|
export const WiredView: FC<{}> = props =>
|
||||||
{
|
{
|
||||||
const [ trigger, setTrigger ] = useState<Triggerable>(null);
|
const [ trigger, setTrigger ] = useState<Triggerable>(null);
|
||||||
const [ intParams, setIntParams ] = useState<number[]>(null);
|
const [ intParams, setIntParams ] = useState<number[]>(null);
|
@ -1,28 +1,28 @@
|
|||||||
import { WiredActionBotChangeFigureView } from '../views/actions/bot-change-figure/WiredActionBotChangeFigureView';
|
import { WiredActionBotChangeFigureView } from '../views/actions/WiredActionBotChangeFigureView';
|
||||||
import { WiredActionBotFollowAvatarView } from '../views/actions/bot-follow-avatar/WiredActionBotFollowAvatarView';
|
import { WiredActionBotFollowAvatarView } from '../views/actions/WiredActionBotFollowAvatarView';
|
||||||
import { WiredActionBotGiveHandItemView } from '../views/actions/bot-give-hand-item/WiredActionBotGiveHandItemView';
|
import { WiredActionBotGiveHandItemView } from '../views/actions/WiredActionBotGiveHandItemView';
|
||||||
import { WiredActionBotMoveView } from '../views/actions/bot-move/WiredActionBotMoveView';
|
import { WiredActionBotMoveView } from '../views/actions/WiredActionBotMoveView';
|
||||||
import { WiredActionBotTalkToAvatarView } from '../views/actions/bot-talk-to-avatar/WiredActionBotTalkToAvatarView';
|
import { WiredActionBotTalkToAvatarView } from '../views/actions/WiredActionBotTalkToAvatarView';
|
||||||
import { WiredActionBotTalkView } from '../views/actions/bot-talk/WiredActionBotTalkView';
|
import { WiredActionBotTalkView } from '../views/actions/WiredActionBotTalkView';
|
||||||
import { WiredActionBotTeleportView } from '../views/actions/bot-teleport/WiredActionBotTeleportView';
|
import { WiredActionBotTeleportView } from '../views/actions/WiredActionBotTeleportView';
|
||||||
import { WiredActionCallAnotherStackView } from '../views/actions/call-another-stack/WiredActionCallAnotherStackView';
|
import { WiredActionCallAnotherStackView } from '../views/actions/WiredActionCallAnotherStackView';
|
||||||
import { WiredActionChaseView } from '../views/actions/chase/WiredActionChaseView';
|
import { WiredActionChaseView } from '../views/actions/WiredActionChaseView';
|
||||||
import { WiredActionChatView } from '../views/actions/chat/WiredActionChatView';
|
import { WiredActionChatView } from '../views/actions/WiredActionChatView';
|
||||||
import { WiredActionFleeView } from '../views/actions/flee/WiredActionFleeView';
|
import { WiredActionFleeView } from '../views/actions/WiredActionFleeView';
|
||||||
import { WiredActionGiveRewardView } from '../views/actions/give-reward/WiredActionGiveRewardView';
|
import { WiredActionGiveRewardView } from '../views/actions/WiredActionGiveRewardView';
|
||||||
import { WiredActionGiveScoreToPredefinedTeamView } from '../views/actions/give-score-to-predefined-team/WiredActionGiveScoreToPredefinedTeamView';
|
import { WiredActionGiveScoreToPredefinedTeamView } from '../views/actions/WiredActionGiveScoreToPredefinedTeamView';
|
||||||
import { WiredActionGiveScoreView } from '../views/actions/give-score/WiredActionGiveScoreView';
|
import { WiredActionGiveScoreView } from '../views/actions/WiredActionGiveScoreView';
|
||||||
import { WiredActionJoinTeamView } from '../views/actions/join-team/WiredActionJoinTeamView';
|
import { WiredActionJoinTeamView } from '../views/actions/WiredActionJoinTeamView';
|
||||||
import { WiredActionKickFromRoomView } from '../views/actions/kick-from-room/WiredActionKickFromRoomView';
|
import { WiredActionKickFromRoomView } from '../views/actions/WiredActionKickFromRoomView';
|
||||||
import { WiredActionLeaveTeamView } from '../views/actions/leave-team/WiredActionLeaveTeamView';
|
import { WiredActionLeaveTeamView } from '../views/actions/WiredActionLeaveTeamView';
|
||||||
import { WiredActionMoveAndRotateFurniView } from '../views/actions/move-and-rotate-furni/WiredActionMoveAndRotateFurniView';
|
import { WiredActionMoveAndRotateFurniView } from '../views/actions/WiredActionMoveAndRotateFurniView';
|
||||||
import { WiredActionMoveFurniToView } from '../views/actions/move-furni-to/WiredActionMoveFurniToView';
|
import { WiredActionMoveFurniToView } from '../views/actions/WiredActionMoveFurniToView';
|
||||||
import { WiredActionMoveFurniView } from '../views/actions/move-furni/WiredActionMoveFurniView';
|
import { WiredActionMoveFurniView } from '../views/actions/WiredActionMoveFurniView';
|
||||||
import { WiredActionMuteUserView } from '../views/actions/mute-user/WiredActionMuteUserView';
|
import { WiredActionMuteUserView } from '../views/actions/WiredActionMuteUserView';
|
||||||
import { WiredActionResetView } from '../views/actions/reset/WiredActionResetView';
|
import { WiredActionResetView } from '../views/actions/WiredActionResetView';
|
||||||
import { WiredActionSetFurniStateToView } from '../views/actions/set-furni-state-to/WiredActionSetFurniStateToView';
|
import { WiredActionSetFurniStateToView } from '../views/actions/WiredActionSetFurniStateToView';
|
||||||
import { WiredActionTeleportView } from '../views/actions/teleport/WiredActionTeleportView';
|
import { WiredActionTeleportView } from '../views/actions/WiredActionTeleportView';
|
||||||
import { WiredActionToggleFurniStateView } from '../views/actions/toggle-furni-state/WiredActionToggleFurniStateView';
|
import { WiredActionToggleFurniStateView } from '../views/actions/WiredActionToggleFurniStateView';
|
||||||
import { WiredActionLayout } from './WiredActionLayoutCode';
|
import { WiredActionLayout } from './WiredActionLayoutCode';
|
||||||
|
|
||||||
export function GetWiredActionLayout(code: number): JSX.Element
|
export function GetWiredActionLayout(code: number): JSX.Element
|
@ -1,18 +1,18 @@
|
|||||||
import { WiredConditionActorHasHandItemView } from '../views/conditions/actor-has-hand-item/WiredConditionActorHasHandItem';
|
import { WiredConditionActorHasHandItemView } from '../views/conditions/WiredConditionActorHasHandItem';
|
||||||
import { WiredConditionActorIsGroupMemberView } from '../views/conditions/actor-is-group-member/WiredConditionActorIsGroupMemberView';
|
import { WiredConditionActorIsGroupMemberView } from '../views/conditions/WiredConditionActorIsGroupMemberView';
|
||||||
import { WiredConditionActorIsOnFurniView } from '../views/conditions/actor-is-on-furni/WiredConditionActorIsOnFurniView';
|
import { WiredConditionActorIsOnFurniView } from '../views/conditions/WiredConditionActorIsOnFurniView';
|
||||||
import { WiredConditionActorIsTeamMemberView } from '../views/conditions/actor-is-team-member/WiredConditionActorIsTeamMemberView';
|
import { WiredConditionActorIsTeamMemberView } from '../views/conditions/WiredConditionActorIsTeamMemberView';
|
||||||
import { WiredConditionActorIsWearingBadgeView } from '../views/conditions/actor-is-wearing-badge/WiredConditionActorIsWearingBadgeView';
|
import { WiredConditionActorIsWearingBadgeView } from '../views/conditions/WiredConditionActorIsWearingBadgeView';
|
||||||
import { WiredConditionActorIsWearingEffectView } from '../views/conditions/actor-is-wearing-effect/WiredConditionActorIsWearingEffectView';
|
import { WiredConditionActorIsWearingEffectView } from '../views/conditions/WiredConditionActorIsWearingEffectView';
|
||||||
import { WiredConditionDateRangeView } from '../views/conditions/date-range/WiredConditionDateRangeView';
|
import { WiredConditionDateRangeView } from '../views/conditions/WiredConditionDateRangeView';
|
||||||
import { WiredConditionFurniHasAvatarOnView } from '../views/conditions/furni-has-avatar-on/WiredConditionFurniHasAvatarOnView';
|
import { WiredConditionFurniHasAvatarOnView } from '../views/conditions/WiredConditionFurniHasAvatarOnView';
|
||||||
import { WiredConditionFurniHasFurniOnView } from '../views/conditions/furni-has-furni-on/WiredConditionFurniHasFurniOnView';
|
import { WiredConditionFurniHasFurniOnView } from '../views/conditions/WiredConditionFurniHasFurniOnView';
|
||||||
import { WiredConditionFurniHasNotFurniOnView } from '../views/conditions/furni-has-not-furni-on/WiredConditionFurniHasNotFurniOnView';
|
import { WiredConditionFurniHasNotFurniOnView } from '../views/conditions/WiredConditionFurniHasNotFurniOnView';
|
||||||
import { WiredConditionFurniIsOfTypeView } from '../views/conditions/furni-is-of-type/WiredConditionFurniIsOfTypeView';
|
import { WiredConditionFurniIsOfTypeView } from '../views/conditions/WiredConditionFurniIsOfTypeView';
|
||||||
import { WiredConditionFurniMatchesSnapshotView } from '../views/conditions/furni-matches-snapshot/WiredConditionFurniMatchesSnapshotView';
|
import { WiredConditionFurniMatchesSnapshotView } from '../views/conditions/WiredConditionFurniMatchesSnapshotView';
|
||||||
import { WiredConditionTimeElapsedLessView } from '../views/conditions/time-elapsed-less/WiredConditionTimeElapsedLessView';
|
import { WiredConditionTimeElapsedLessView } from '../views/conditions/WiredConditionTimeElapsedLessView';
|
||||||
import { WiredConditionTimeElapsedMoreView } from '../views/conditions/time-elapsed-more/WiredConditionTimeElapsedMoreView';
|
import { WiredConditionTimeElapsedMoreView } from '../views/conditions/WiredConditionTimeElapsedMoreView';
|
||||||
import { WiredConditionUserCountInRoomView } from '../views/conditions/user-count-in-room/WiredConditionUserCountInRoomView';
|
import { WiredConditionUserCountInRoomView } from '../views/conditions/WiredConditionUserCountInRoomView';
|
||||||
import { WiredConditionlayout } from './WiredConditionLayoutCode';
|
import { WiredConditionlayout } from './WiredConditionLayoutCode';
|
||||||
|
|
||||||
export function GetWiredConditionLayout(code: number): JSX.Element
|
export function GetWiredConditionLayout(code: number): JSX.Element
|
@ -1,17 +1,17 @@
|
|||||||
import { WiredTriggerAvatarEnterRoomView } from '../views/triggers/avatar-enter-room/WiredTriggerAvatarEnterRoomView';
|
import { WiredTriggerAvatarEnterRoomView } from '../views/triggers/WiredTriggerAvatarEnterRoomView';
|
||||||
import { WiredTriggerAvatarSaysSomethingView } from '../views/triggers/avatar-says-something/WiredTriggerAvatarSaysSomethingView';
|
import { WiredTriggerAvatarSaysSomethingView } from '../views/triggers/WiredTriggerAvatarSaysSomethingView';
|
||||||
import { WiredTriggerAvatarWalksOffFurniView } from '../views/triggers/avatar-walks-off-furni/WiredTriggerAvatarWalksOffFurniView';
|
import { WiredTriggerAvatarWalksOffFurniView } from '../views/triggers/WiredTriggerAvatarWalksOffFurniView';
|
||||||
import { WiredTriggerAvatarWalksOnFurniView } from '../views/triggers/avatar-walks-on-furni/WiredTriggerAvatarWalksOnFurni';
|
import { WiredTriggerAvatarWalksOnFurniView } from '../views/triggers/WiredTriggerAvatarWalksOnFurni';
|
||||||
import { WiredTriggerBotReachedAvatarView } from '../views/triggers/bot-reached-avatar/WiredTriggerBotReachedAvatarView';
|
import { WiredTriggerBotReachedAvatarView } from '../views/triggers/WiredTriggerBotReachedAvatarView';
|
||||||
import { WiredTriggerBotReachedStuffView } from '../views/triggers/bot-reached-stuff/WiredTriggerBotReachedStuffView';
|
import { WiredTriggerBotReachedStuffView } from '../views/triggers/WiredTriggerBotReachedStuffView';
|
||||||
import { WiredTriggerCollisionView } from '../views/triggers/collision/WiredTriggerCollisionView';
|
import { WiredTriggerCollisionView } from '../views/triggers/WiredTriggerCollisionView';
|
||||||
import { WiredTriggeExecuteOnceView } from '../views/triggers/execute-once/WiredTriggerExecuteOnceView';
|
import { WiredTriggeExecuteOnceView } from '../views/triggers/WiredTriggerExecuteOnceView';
|
||||||
import { WiredTriggeExecutePeriodicallyLongView } from '../views/triggers/execute-periodically-long/WiredTriggerExecutePeriodicallyLongView';
|
import { WiredTriggeExecutePeriodicallyLongView } from '../views/triggers/WiredTriggerExecutePeriodicallyLongView';
|
||||||
import { WiredTriggeExecutePeriodicallyView } from '../views/triggers/execute-periodically/WiredTriggerExecutePeriodicallyView';
|
import { WiredTriggeExecutePeriodicallyView } from '../views/triggers/WiredTriggerExecutePeriodicallyView';
|
||||||
import { WiredTriggerGameEndsView } from '../views/triggers/game-ends/WiredTriggerGameEndsView';
|
import { WiredTriggerGameEndsView } from '../views/triggers/WiredTriggerGameEndsView';
|
||||||
import { WiredTriggerGameStartsView } from '../views/triggers/game-starts/WiredTriggerGameStartsView';
|
import { WiredTriggerGameStartsView } from '../views/triggers/WiredTriggerGameStartsView';
|
||||||
import { WiredTriggeScoreAchievedView } from '../views/triggers/score-achieved/WiredTriggerScoreAchievedView';
|
import { WiredTriggeScoreAchievedView } from '../views/triggers/WiredTriggerScoreAchievedView';
|
||||||
import { WiredTriggerToggleFurniView } from '../views/triggers/toggle-furni/WiredTriggerToggleFurniView';
|
import { WiredTriggerToggleFurniView } from '../views/triggers/WiredTriggerToggleFurniView';
|
||||||
import { WiredTriggerLayout } from './WiredTriggerLayoutCode';
|
import { WiredTriggerLayout } from './WiredTriggerLayoutCode';
|
||||||
|
|
||||||
export function GetWiredTriggerLayout(code: number): JSX.Element
|
export function GetWiredTriggerLayout(code: number): JSX.Element
|
@ -1,6 +1,3 @@
|
|||||||
export class WiredFurniSelectorViewProps
|
|
||||||
{}
|
|
||||||
|
|
||||||
export class WiredFurniType
|
export class WiredFurniType
|
||||||
{
|
{
|
||||||
public static STUFF_SELECTION_OPTION_NONE: number = 0;
|
public static STUFF_SELECTION_OPTION_NONE: number = 0;
|
||||||
@ -8,5 +5,3 @@ export class WiredFurniType
|
|||||||
public static STUFF_SELECTION_OPTION_BY_ID_OR_BY_TYPE: number = 2;
|
public static STUFF_SELECTION_OPTION_BY_ID_OR_BY_TYPE: number = 2;
|
||||||
public static STUFF_SELECTION_OPTION_BY_ID_BY_TYPE_OR_FROM_CONTEXT: number = 3;
|
public static STUFF_SELECTION_OPTION_BY_ID_BY_TYPE_OR_FROM_CONTEXT: number = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const WIRED_STRING_DELIMETER: string = '\t';
|
|
1
src/components/wired/common/WiredStringDelimeter.ts
Normal file
1
src/components/wired/common/WiredStringDelimeter.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
export const WIRED_STRING_DELIMETER: string = '\t';
|
36
src/components/wired/context/WiredContext.tsx
Normal file
36
src/components/wired/context/WiredContext.tsx
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
import { Triggerable } from '@nitrots/nitro-renderer';
|
||||||
|
import { createContext, Dispatch, FC, ProviderProps, SetStateAction, useContext } from 'react';
|
||||||
|
|
||||||
|
export interface IWiredContext
|
||||||
|
{
|
||||||
|
trigger: Triggerable;
|
||||||
|
setTrigger: Dispatch<SetStateAction<Triggerable>>;
|
||||||
|
intParams: number[],
|
||||||
|
setIntParams: Dispatch<SetStateAction<number[]>>;
|
||||||
|
stringParam: string;
|
||||||
|
setStringParam: Dispatch<SetStateAction<string>>;
|
||||||
|
furniIds: number[];
|
||||||
|
setFurniIds: Dispatch<SetStateAction<number[]>>;
|
||||||
|
actionDelay: number;
|
||||||
|
setActionDelay: Dispatch<SetStateAction<number>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
const WiredContext = createContext<IWiredContext>({
|
||||||
|
trigger: null,
|
||||||
|
setTrigger: null,
|
||||||
|
intParams: null,
|
||||||
|
setIntParams: null,
|
||||||
|
stringParam: null,
|
||||||
|
setStringParam: null,
|
||||||
|
furniIds: null,
|
||||||
|
setFurniIds: null,
|
||||||
|
actionDelay: null,
|
||||||
|
setActionDelay: null
|
||||||
|
});
|
||||||
|
|
||||||
|
export const WiredContextProvider: FC<ProviderProps<IWiredContext>> = props =>
|
||||||
|
{
|
||||||
|
return <WiredContext.Provider value={ props.value }>{ props.children }</WiredContext.Provider>
|
||||||
|
}
|
||||||
|
|
||||||
|
export const useWiredContext = () => useContext(WiredContext);
|
@ -1,13 +1,19 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { GetSessionDataManager, LocalizeText } from '../../../../api';
|
import { GetSessionDataManager, LocalizeText } from '../../../api';
|
||||||
import { WiredEvent } from '../../../../events';
|
import { WiredEvent } from '../../../events';
|
||||||
import { dispatchUiEvent } from '../../../../hooks/events';
|
import { dispatchUiEvent } from '../../../hooks/events';
|
||||||
import { NitroCardContentView, NitroCardView } from '../../../../layout';
|
import { NitroCardContentView, NitroCardView } from '../../../layout';
|
||||||
import { WiredSelectionVisualizer } from '../../common/WiredSelectionVisualizer';
|
import { WiredFurniType } from '../common/WiredFurniType';
|
||||||
import { useWiredContext } from '../../context/WiredContext';
|
import { WiredSelectionVisualizer } from '../common/WiredSelectionVisualizer';
|
||||||
import { WiredFurniType } from '../../WiredView.types';
|
import { useWiredContext } from '../context/WiredContext';
|
||||||
import { WiredFurniSelectorView } from '../furni-selector/WiredFurniSelectorView';
|
import { WiredFurniSelectorView } from './WiredFurniSelectorView';
|
||||||
import { WiredBaseViewProps } from './WiredBaseView.types';
|
|
||||||
|
export interface WiredBaseViewProps
|
||||||
|
{
|
||||||
|
wiredType: string;
|
||||||
|
requiresFurni: number;
|
||||||
|
save: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
export const WiredBaseView: FC<WiredBaseViewProps> = props =>
|
export const WiredBaseView: FC<WiredBaseViewProps> = props =>
|
||||||
{
|
{
|
@ -1,12 +1,11 @@
|
|||||||
import { FC, useCallback, useEffect } from 'react';
|
import { FC, useCallback, useEffect } from 'react';
|
||||||
import { LocalizeText } from '../../../../api';
|
import { LocalizeText } from '../../../api';
|
||||||
import { WiredSelectObjectEvent } from '../../../../events';
|
import { WiredSelectObjectEvent } from '../../../events';
|
||||||
import { useUiEvent } from '../../../../hooks/events';
|
import { useUiEvent } from '../../../hooks/events';
|
||||||
import { WiredSelectionVisualizer } from '../../common/WiredSelectionVisualizer';
|
import { WiredSelectionVisualizer } from '../common/WiredSelectionVisualizer';
|
||||||
import { useWiredContext } from '../../context/WiredContext';
|
import { useWiredContext } from '../context/WiredContext';
|
||||||
import { WiredFurniSelectorViewProps } from './WiredFurniSelectorView.types';
|
|
||||||
|
|
||||||
export const WiredFurniSelectorView: FC<WiredFurniSelectorViewProps> = props =>
|
export const WiredFurniSelectorView: FC<{}> = props =>
|
||||||
{
|
{
|
||||||
const { trigger = null, furniIds = [], setFurniIds = null } = useWiredContext();
|
const { trigger = null, furniIds = [], setFurniIds = null } = useWiredContext();
|
||||||
|
|
@ -1,12 +1,17 @@
|
|||||||
import { WiredActionDefinition } from '@nitrots/nitro-renderer';
|
import { WiredActionDefinition } from '@nitrots/nitro-renderer';
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredBaseView } from '../../base/WiredBaseView';
|
import { WiredBaseView } from '../WiredBaseView';
|
||||||
import { WiredActionBaseViewProps } from './WiredActionBaseView.types';
|
|
||||||
|
export interface WiredActionBaseViewProps
|
||||||
|
{
|
||||||
|
requiresFurni: number;
|
||||||
|
save: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
export const WiredActionBaseView: FC<WiredActionBaseViewProps> = props =>
|
export const WiredActionBaseView: FC<WiredActionBaseViewProps> = props =>
|
||||||
{
|
{
|
@ -1,9 +1,10 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { GetSessionDataManager, LocalizeText } from '../../../../../api';
|
import { GetSessionDataManager, LocalizeText } from '../../../../api';
|
||||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
import { AvatarImageView } from '../../../../views/shared/avatar-image/AvatarImageView';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType, WIRED_STRING_DELIMETER } from '../../../WiredView.types';
|
import { WIRED_STRING_DELIMETER } from '../../common/WiredStringDelimeter';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
const DEFAULT_FIGURE: string = 'hd-180-1.ch-210-66.lg-270-82.sh-290-81';
|
const DEFAULT_FIGURE: string = 'hd-180-1.ch-210-66.lg-270-82.sh-290-81';
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionBotFollowAvatarView: FC<{}> = props =>
|
export const WiredActionBotFollowAvatarView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
const allowedHanditemIds: number[] = [2, 5, 7, 8, 9, 10, 27];
|
const allowedHanditemIds: number[] = [2, 5, 7, 8, 9, 10, 27];
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionBotMoveView: FC<{}> = props =>
|
export const WiredActionBotMoveView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,7 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../../api';
|
||||||
|
import { WiredFurniType } from '../../../common/WiredFurniType';
|
||||||
|
import { WIRED_STRING_DELIMETER } from '../../../common/WiredStringDelimeter';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { useWiredContext } from '../../../context/WiredContext';
|
||||||
import { WiredFurniType, WIRED_STRING_DELIMETER } from '../../../WiredView.types';
|
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionBotTalkToAvatarView: FC<{}> = props =>
|
export const WiredActionBotTalkToAvatarView: FC<{}> = props =>
|
@ -1,8 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType, WIRED_STRING_DELIMETER } from '../../../WiredView.types';
|
import { WIRED_STRING_DELIMETER } from '../../common/WiredStringDelimeter';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionBotTalkView: FC<{}> = props =>
|
export const WiredActionBotTalkView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionBotTeleportView: FC<{}> = props =>
|
export const WiredActionBotTeleportView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionCallAnotherStackView: FC<{}> = props =>
|
export const WiredActionCallAnotherStackView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionChaseView: FC<{}> = props =>
|
export const WiredActionChaseView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionChatView: FC<{}> = props =>
|
export const WiredActionChatView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionFleeView: FC<{}> = props =>
|
export const WiredActionFleeView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionGiveRewardView: FC<{}> = props =>
|
export const WiredActionGiveRewardView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionGiveScoreToPredefinedTeamView: FC<{}> = props =>
|
export const WiredActionGiveScoreToPredefinedTeamView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionGiveScoreView: FC<{}> = props =>
|
export const WiredActionGiveScoreView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionJoinTeamView: FC<{}> = props =>
|
export const WiredActionJoinTeamView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionKickFromRoomView: FC<{}> = props =>
|
export const WiredActionKickFromRoomView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionLeaveTeamView: FC<{}> = props =>
|
export const WiredActionLeaveTeamView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
const directionOptions: { value: number, icon: string }[] = [
|
const directionOptions: { value: number, icon: string }[] = [
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
const directionOptions: { value: number, icon: string }[] = [
|
const directionOptions: { value: number, icon: string }[] = [
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
const directionOptions: { value: number, icon: string }[] = [
|
const directionOptions: { value: number, icon: string }[] = [
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionMuteUserView: FC<{}> = props =>
|
export const WiredActionMuteUserView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionResetView: FC<{}> = props =>
|
export const WiredActionResetView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionSetFurniStateToView: FC<{}> = props =>
|
export const WiredActionSetFurniStateToView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionTeleportView: FC<{}> = props =>
|
export const WiredActionTeleportView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredActionBaseView } from '../base/WiredActionBaseView';
|
import { WiredActionBaseView } from './WiredActionBaseView';
|
||||||
|
|
||||||
export const WiredActionToggleFurniStateView: FC<{}> = props =>
|
export const WiredActionToggleFurniStateView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
const allowedHanditemIds: number[] = [ 2, 5, 7, 8, 9, 10, 27 ];
|
const allowedHanditemIds: number[] = [ 2, 5, 7, 8, 9, 10, 27 ];
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionActorIsGroupMemberView: FC<{}> = props =>
|
export const WiredConditionActorIsGroupMemberView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionActorIsOnFurniView: FC<{}> = props =>
|
export const WiredConditionActorIsOnFurniView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
const teamIds: number[] = [ 1, 2, 3, 4 ];
|
const teamIds: number[] = [ 1, 2, 3, 4 ];
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionActorIsWearingBadgeView: FC<{}> = props =>
|
export const WiredConditionActorIsWearingBadgeView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionActorIsWearingEffectView: FC<{}> = props =>
|
export const WiredConditionActorIsWearingEffectView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,7 +1,12 @@
|
|||||||
import { FC, useCallback } from 'react';
|
import { FC, useCallback } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredBaseView } from '../../base/WiredBaseView';
|
import { WiredBaseView } from '../WiredBaseView';
|
||||||
import { WiredConditionBaseViewProps } from './WiredConditionBaseView.types';
|
|
||||||
|
export interface WiredConditionBaseViewProps
|
||||||
|
{
|
||||||
|
requiresFurni: number;
|
||||||
|
save: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
export const WiredConditionBaseView: FC<WiredConditionBaseViewProps> = props =>
|
export const WiredConditionBaseView: FC<WiredConditionBaseViewProps> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionDateRangeView: FC<{}> = props =>
|
export const WiredConditionDateRangeView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionFurniHasAvatarOnView: FC<{}> = props =>
|
export const WiredConditionFurniHasAvatarOnView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionFurniHasFurniOnView: FC<{}> = props =>
|
export const WiredConditionFurniHasFurniOnView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionFurniHasNotFurniOnView: FC<{}> = props =>
|
export const WiredConditionFurniHasNotFurniOnView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionFurniIsOfTypeView: FC<{}> = props =>
|
export const WiredConditionFurniIsOfTypeView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionFurniMatchesSnapshotView: FC<{}> = props =>
|
export const WiredConditionFurniMatchesSnapshotView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionTimeElapsedLessView: FC<{}> = props =>
|
export const WiredConditionTimeElapsedLessView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionTimeElapsedMoreView: FC<{}> = props =>
|
export const WiredConditionTimeElapsedMoreView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredConditionBaseView } from '../base/WiredConditionBaseView';
|
import { WiredConditionBaseView } from './WiredConditionBaseView';
|
||||||
|
|
||||||
export const WiredConditionUserCountInRoomView: FC<{}> = props =>
|
export const WiredConditionUserCountInRoomView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerAvatarEnterRoomView: FC<{}> = props =>
|
export const WiredTriggerAvatarEnterRoomView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { GetSessionDataManager, LocalizeText } from '../../../../../api';
|
import { GetSessionDataManager, LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerAvatarSaysSomethingView: FC<{}> = props =>
|
export const WiredTriggerAvatarSaysSomethingView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerAvatarWalksOffFurniView: FC<{}> = props =>
|
export const WiredTriggerAvatarWalksOffFurniView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerAvatarWalksOnFurniView: FC<{}> = props =>
|
export const WiredTriggerAvatarWalksOnFurniView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,7 +1,12 @@
|
|||||||
import { FC, useCallback } from 'react';
|
import { FC, useCallback } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredBaseView } from '../../base/WiredBaseView';
|
import { WiredBaseView } from '../WiredBaseView';
|
||||||
import { WiredTriggerBaseViewProps } from './WiredTriggerBaseView.types';
|
|
||||||
|
export interface WiredTriggerBaseViewProps
|
||||||
|
{
|
||||||
|
requiresFurni: number;
|
||||||
|
save: () => void;
|
||||||
|
}
|
||||||
|
|
||||||
export const WiredTriggerBaseView: FC<WiredTriggerBaseViewProps> = props =>
|
export const WiredTriggerBaseView: FC<WiredTriggerBaseViewProps> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerBotReachedAvatarView: FC<{}> = props =>
|
export const WiredTriggerBotReachedAvatarView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerBotReachedStuffView: FC<{}> = props =>
|
export const WiredTriggerBotReachedStuffView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerCollisionView: FC<{}> = props =>
|
export const WiredTriggerCollisionView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggeExecuteOnceView: FC<{}> = props =>
|
export const WiredTriggeExecuteOnceView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
import { FriendlyTime } from '@nitrots/nitro-renderer';
|
import { FriendlyTime } from '@nitrots/nitro-renderer';
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggeExecutePeriodicallyLongView: FC<{}> = props =>
|
export const WiredTriggeExecutePeriodicallyLongView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,10 +1,10 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { GetWiredTimeLocale } from '../../../common/GetWiredTimeLocale';
|
import { GetWiredTimeLocale } from '../../common/GetWiredTimeLocale';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggeExecutePeriodicallyView: FC<{}> = props =>
|
export const WiredTriggeExecutePeriodicallyView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerGameEndsView: FC<{}> = props =>
|
export const WiredTriggerGameEndsView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerGameStartsView: FC<{}> = props =>
|
export const WiredTriggerGameStartsView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import ReactSlider from 'react-slider';
|
import ReactSlider from 'react-slider';
|
||||||
import { LocalizeText } from '../../../../../api';
|
import { LocalizeText } from '../../../../api';
|
||||||
import { useWiredContext } from '../../../context/WiredContext';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { useWiredContext } from '../../context/WiredContext';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggeScoreAchievedView: FC<{}> = props =>
|
export const WiredTriggeScoreAchievedView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { WiredFurniType } from '../../../WiredView.types';
|
import { WiredFurniType } from '../../common/WiredFurniType';
|
||||||
import { WiredTriggerBaseView } from '../base/WiredTriggerBaseView';
|
import { WiredTriggerBaseView } from './WiredTriggerBaseView';
|
||||||
|
|
||||||
export const WiredTriggerToggleFurniView: FC<{}> = props =>
|
export const WiredTriggerToggleFurniView: FC<{}> = props =>
|
||||||
{
|
{
|
@ -9,7 +9,6 @@
|
|||||||
@import "./right-side/RightSideView";
|
@import "./right-side/RightSideView";
|
||||||
@import "./room/RoomView";
|
@import "./room/RoomView";
|
||||||
@import "./room-host/RoomHostView";
|
@import "./room-host/RoomHostView";
|
||||||
@import "./wired/WiredView";
|
|
||||||
@import "./mod-tools/ModToolsView";
|
@import "./mod-tools/ModToolsView";
|
||||||
@import "./user-settings/UserSettingsView";
|
@import "./user-settings/UserSettingsView";
|
||||||
@import "./user-profile/UserProfileVew";
|
@import "./user-profile/UserProfileVew";
|
||||||
|
@ -8,6 +8,7 @@ import { CatalogView } from '../../components/catalog/CatalogView';
|
|||||||
import { InventoryView } from '../../components/inventory/InventoryView';
|
import { InventoryView } from '../../components/inventory/InventoryView';
|
||||||
import { NavigatorView } from '../../components/navigator/NavigatorView';
|
import { NavigatorView } from '../../components/navigator/NavigatorView';
|
||||||
import { ToolbarView } from '../../components/toolbar/ToolbarView';
|
import { ToolbarView } from '../../components/toolbar/ToolbarView';
|
||||||
|
import { WiredView } from '../../components/wired/WiredView';
|
||||||
import { useRoomSessionManagerEvent } from '../../hooks/events/nitro/session/room-session-manager-event';
|
import { useRoomSessionManagerEvent } from '../../hooks/events/nitro/session/room-session-manager-event';
|
||||||
import { TransitionAnimation, TransitionAnimationTypes } from '../../layout';
|
import { TransitionAnimation, TransitionAnimationTypes } from '../../layout';
|
||||||
import { CampaignView } from '../campaign/CampaignView';
|
import { CampaignView } from '../campaign/CampaignView';
|
||||||
@ -24,7 +25,6 @@ import { RightSideView } from '../right-side/RightSideView';
|
|||||||
import { RoomHostView } from '../room-host/RoomHostView';
|
import { RoomHostView } from '../room-host/RoomHostView';
|
||||||
import { UserProfileView } from '../user-profile/UserProfileView';
|
import { UserProfileView } from '../user-profile/UserProfileView';
|
||||||
import { UserSettingsView } from '../user-settings/UserSettingsView';
|
import { UserSettingsView } from '../user-settings/UserSettingsView';
|
||||||
import { WiredView } from '../wired/WiredView';
|
|
||||||
import { MainViewProps } from './MainView.types';
|
import { MainViewProps } from './MainView.types';
|
||||||
|
|
||||||
export const MainView: FC<MainViewProps> = props =>
|
export const MainView: FC<MainViewProps> = props =>
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
import { createContext, FC, useContext } from 'react';
|
|
||||||
import { IWiredContext, WiredContextProps } from './WiredContext.types';
|
|
||||||
|
|
||||||
const WiredContext = createContext<IWiredContext>({
|
|
||||||
trigger: null,
|
|
||||||
setTrigger: null,
|
|
||||||
intParams: null,
|
|
||||||
setIntParams: null,
|
|
||||||
stringParam: null,
|
|
||||||
setStringParam: null,
|
|
||||||
furniIds: null,
|
|
||||||
setFurniIds: null,
|
|
||||||
actionDelay: null,
|
|
||||||
setActionDelay: null
|
|
||||||
});
|
|
||||||
|
|
||||||
export const WiredContextProvider: FC<WiredContextProps> = props =>
|
|
||||||
{
|
|
||||||
return <WiredContext.Provider value={ props.value }>{ props.children }</WiredContext.Provider>
|
|
||||||
}
|
|
||||||
|
|
||||||
export const useWiredContext = () => useContext(WiredContext);
|
|
@ -1,21 +0,0 @@
|
|||||||
import { Triggerable } from '@nitrots/nitro-renderer';
|
|
||||||
import { Dispatch, ProviderProps, SetStateAction } from 'react';
|
|
||||||
|
|
||||||
export interface IWiredContext
|
|
||||||
{
|
|
||||||
trigger: Triggerable;
|
|
||||||
setTrigger: Dispatch<SetStateAction<Triggerable>>;
|
|
||||||
intParams: number[],
|
|
||||||
setIntParams: Dispatch<SetStateAction<number[]>>;
|
|
||||||
stringParam: string;
|
|
||||||
setStringParam: Dispatch<SetStateAction<string>>;
|
|
||||||
furniIds: number[];
|
|
||||||
setFurniIds: Dispatch<SetStateAction<number[]>>;
|
|
||||||
actionDelay: number;
|
|
||||||
setActionDelay: Dispatch<SetStateAction<number>>;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface WiredContextProps extends ProviderProps<IWiredContext>
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
export interface WiredActionBaseViewProps
|
|
||||||
{
|
|
||||||
requiresFurni: number;
|
|
||||||
save: () => void;
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
export interface WiredBaseViewProps
|
|
||||||
{
|
|
||||||
wiredType: string;
|
|
||||||
requiresFurni: number;
|
|
||||||
save: () => void;
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
export interface WiredConditionBaseViewProps
|
|
||||||
{
|
|
||||||
requiresFurni: number;
|
|
||||||
save: () => void;
|
|
||||||
}
|
|
@ -1,3 +0,0 @@
|
|||||||
export class WiredFurniSelectorViewProps
|
|
||||||
{
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
export interface WiredTriggerBaseViewProps
|
|
||||||
{
|
|
||||||
requiresFurni: number;
|
|
||||||
save: () => void;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user