|
3 | 3 | import { validateDataPackFolder, validateZipPath } from '../../../formats/blueprint/settings' |
4 | 4 | import BoxSelect from '../../../svelteComponents/sidebarDialogItems/boxSelect.svelte' |
5 | 5 | import Checkbox from '../../../svelteComponents/sidebarDialogItems/checkbox.svelte' |
6 | | - import NumberSlider from '../../../svelteComponents/sidebarDialogItems/numberSlider.svelte' |
7 | 6 | import SelectFile from '../../../svelteComponents/sidebarDialogItems/selectFile.svelte' |
8 | 7 | import SelectFolder from '../../../svelteComponents/sidebarDialogItems/selectFolder.svelte' |
9 | 8 | import { createScopedTranslator } from '../../../util/lang' |
|
15 | 14 | let animationSystem = $state( |
16 | 15 | Project.animated_java.use_storage_for_animation ? 'storage' : 'functions' |
17 | 16 | ) |
18 | | - let interpolationDuration = $state(Project.animated_java.interpolation_duration) |
19 | | - let teleportationDuration = $state(Project.animated_java.teleportation_duration) |
20 | 17 | let autoUpdateRigOrientation = $state(Project.animated_java.auto_update_rig_orientation) |
21 | 18 |
|
22 | 19 | onDestroy(() => { |
23 | 20 | Project.animated_java.data_pack_export_mode = dataPackExportFormat |
24 | 21 | Project.animated_java.data_pack = dataPackLocation |
25 | 22 | Project.animated_java.use_storage_for_animation = animationSystem === 'storage' |
26 | | - Project.animated_java.interpolation_duration = interpolationDuration |
27 | | - Project.animated_java.teleportation_duration = teleportationDuration |
28 | 23 | Project.animated_java.auto_update_rig_orientation = autoUpdateRigOrientation |
29 | 24 | }) |
30 | 25 | </script> |
|
71 | 66 | {/if} |
72 | 67 |
|
73 | 68 | {#if dataPackExportFormat !== 'none'} |
74 | | - <NumberSlider |
75 | | - label={translate('interpolation_duration.title')} |
76 | | - description={translate('interpolation_duration.description')} |
77 | | - bind:value={interpolationDuration} |
78 | | - step={1} |
79 | | - min={0} |
80 | | - max={2147483647} |
81 | | - /> |
82 | | - |
83 | | - <NumberSlider |
84 | | - label={translate('teleportation_duration.title')} |
85 | | - description={translate('teleportation_duration.description')} |
86 | | - bind:value={teleportationDuration} |
87 | | - step={1} |
88 | | - min={0} |
89 | | - max={2147483647} |
90 | | - /> |
91 | | - |
92 | 69 | <Checkbox |
93 | 70 | label={translate('auto_update_rig_orientation.title')} |
94 | 71 | description={translate('auto_update_rig_orientation.description')} |
|
0 commit comments