nitro-v36-with-renderer-v36
/
src /
components /
wired /
views /
actions /
WiredActionGiveFurniFromChestView.tsx
WiredActionGiveFurniFromChestView.tsx 917 o
Télécharger le fichier
import { FC } from 'react';
import { WiredActionChestRewardBaseView } from './WiredActionChestRewardBaseView';
// Official give furni from chest (46): the shared chest reward editor, with the iteration order
// (0 random, 1 oldest first, 2 newest first) as the sixth int; nothing to choose when giving everything.
const ITERATION_TYPE = {
titleKey: 'wiredfurni.params.chest_iteration_type',
title: 'What is given:',
options: [
{ value: 0, key: 'wiredfurni.params.chest_iteration_type.0', label: 'Random' },
{ value: 1, key: 'wiredfurni.params.chest_iteration_type.1', label: 'Oldest item first' },
{ value: 2, key: 'wiredfurni.params.chest_iteration_type.2', label: 'Most recent item first' }
],
defaultValue: 0,
disabledWhenEverything: true
};
export const WiredActionGiveFurniFromChestView: FC<{}> = () => <WiredActionChestRewardBaseView extra={ITERATION_TYPE} />;
