File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 12
12
import FileSelect from ' ./dialogItems/fileSelect.svelte'
13
13
import FolderSelect from ' ./dialogItems/folderSelect.svelte'
14
14
import CodeInput from ' ./dialogItems/codeInput.svelte'
15
+ import Select from ' ./dialogItems/select.svelte'
16
+ import { DIALOG_ID } from ' ../interface/animationPropertiesDialog'
15
17
16
18
import HeartIcon from ' ../assets/heart.png'
17
19
import KoFiImage from ' ../assets/kofi_s_tag_white.webp'
27
29
</script >
28
30
29
31
<script lang =" ts" >
30
- import Select from ' ./dialogItems/select.svelte'
31
-
32
32
export let blueprintName: Valuable <string >
33
33
export let textureSizeX: Valuable <number >
34
34
export let textureSizeY: Valuable <number >
356
356
}
357
357
</script >
358
358
359
+ <div style ="--aj-dialog-id: ' {DIALOG_ID }';" />
360
+
359
361
<div >
360
362
<LineInput
361
363
label ={translate (' dialog.blueprint_settings.blueprint_name.title' )}
744
746
}
745
747
}
746
748
747
- :global(.dialog_wrapper .dialog_content ) {
749
+ :global(dialog #animated_java \: blueprintSettingsDialog .dialog_wrapper .dialog_content ) {
748
750
overflow-y : auto !important ;
749
751
}
750
752
div {
Original file line number Diff line number Diff line change @@ -4,14 +4,16 @@ import { Valuable } from '../util/stores'
4
4
import { SvelteDialog } from '../util/svelteDialog'
5
5
import { translate } from '../util/translation'
6
6
7
+ export const DIALOG_ID = `${ PACKAGE . name } :animationPropertiesDialog`
8
+
7
9
export function openAnimationPropertiesDialog ( animation : _Animation ) {
8
10
const animationName = new Valuable ( animation . name )
9
11
const loopMode = new Valuable ( animation . loop )
10
12
const loopDelay = new Valuable ( Number ( animation . loop_delay ) || 0 )
11
13
const excludedNodes = new Valuable ( animation . excluded_nodes )
12
14
13
15
new SvelteDialog ( {
14
- id : ` ${ PACKAGE . name } :animationPropertiesDialog` ,
16
+ id : DIALOG_ID ,
15
17
title : translate ( 'dialog.animation_properties.title' , animation . name ) ,
16
18
width : 600 ,
17
19
svelteComponent : AniamtionPropertiesSvelteComponent ,
You can’t perform that action at this time.
0 commit comments