File tree Expand file tree Collapse file tree 7 files changed +20
-18
lines changed
blockbench-additions/outliner-elements
systems/datapack-compiler Expand file tree Collapse file tree 7 files changed +20
-18
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,9 @@ interface BlockDisplayOptions {
26
26
visibility ?: boolean
27
27
}
28
28
29
+ @fixClassPropertyInheritance
29
30
export class BlockDisplay extends ResizableOutlinerElement {
30
- static type = `${ PACKAGE . name } :vanilla_block_display `
31
+ static type = `${ PACKAGE . name } :block_display `
31
32
static selected : BlockDisplay [ ] = [ ]
32
33
static all : BlockDisplay [ ] = [ ]
33
34
@@ -406,8 +407,8 @@ createBlockbenchMod(
406
407
}
407
408
)
408
409
409
- export const CREATE_ACTION = createAction ( `${ PACKAGE . name } :create_vanilla_block_display ` , {
410
- name : translate ( 'action.create_vanilla_block_display .title' ) ,
410
+ export const CREATE_ACTION = createAction ( `${ PACKAGE . name } :create_block_display ` , {
411
+ name : translate ( 'action.create_block_display .title' ) ,
411
412
icon : 'deployed_code' ,
412
413
category : 'animated_java' ,
413
414
condition ( ) {
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ interface ItemDisplayOptions {
23
23
visibility ?: boolean
24
24
}
25
25
26
+ @fixClassPropertyInheritance
26
27
export class ItemDisplay extends ResizableOutlinerElement {
27
- static type = `${ PACKAGE . name } :vanilla_item_display `
28
+ static type = `${ PACKAGE . name } :item_display `
28
29
static selected : ItemDisplay [ ] = [ ]
29
30
static all : ItemDisplay [ ] = [ ]
30
31
@@ -406,8 +407,8 @@ createBlockbenchMod(
406
407
}
407
408
)
408
409
409
- export const CREATE_ACTION = createAction ( `${ PACKAGE . name } :create_vanilla_item_display ` , {
410
- name : translate ( 'action.create_vanilla_item_display .title' ) ,
410
+ export const CREATE_ACTION = createAction ( `${ PACKAGE . name } :create_item_display ` , {
411
+ name : translate ( 'action.create_item_display .title' ) ,
411
412
icon : 'icecream' ,
412
413
category : 'animated_java' ,
413
414
condition ( ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export namespace TAGS {
22
22
23
23
export const GLOBAL_NODE = ( ) => 'aj.global.node'
24
24
export const GLOBAL_DISPLAY_NODE = ( ) => 'aj.global.display_node'
25
- export const GLOBAL_VANILLA_DISPLAY_NODE = ( ) => 'aj.global.vanilla_display_node '
25
+ export const GLOBAL_VANILLA_DISPLAY_NODE = ( ) => 'aj.global.display_node '
26
26
export const GLOBAL_BONE = ( ) => 'aj.global.bone'
27
27
export const GLOBAL_ITEM_DISPLAY = ( ) => 'aj.global.item_display'
28
28
export const GLOBAL_BLOCK_DISPLAY = ( ) => 'aj.global.block_display'
@@ -97,7 +97,7 @@ export namespace TAGS {
97
97
export const PROJECT_DISPLAY_NODE = ( ) =>
98
98
`aj.${ createTagPrefixFromBlueprintID ( Project ! . animated_java . id ) } .display_node`
99
99
export const PROJECT_VANILLA_DISPLAY_NODE = ( ) =>
100
- `aj.${ createTagPrefixFromBlueprintID ( Project ! . animated_java . id ) } .vanilla_display_node `
100
+ `aj.${ createTagPrefixFromBlueprintID ( Project ! . animated_java . id ) } .display_node `
101
101
export const PROJECT_BONE = ( ) =>
102
102
`aj.${ createTagPrefixFromBlueprintID ( Project ! . animated_java . id ) } .bone`
103
103
export const PROJECT_ITEM_DISPLAY = ( ) =>
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function openBlockDisplayConfigDialog(display: BlockDisplay) {
31
31
32
32
new SvelteDialog ( {
33
33
id : `${ PACKAGE . name } :vanillaItemDisplayConfigDialog` ,
34
- title : translate ( 'dialog.vanilla_block_display_config .title' ) ,
34
+ title : translate ( 'dialog.block_display_config .title' ) ,
35
35
width : 400 ,
36
36
component : BlockDisplayConfigDialog ,
37
37
props : {
@@ -96,10 +96,10 @@ export function openBlockDisplayConfigDialog(display: BlockDisplay) {
96
96
}
97
97
98
98
export const VANILLA_BLOCK_DISPLAY_CONFIG_ACTION = createAction (
99
- `${ PACKAGE . name } :open_vanilla_block_display_config ` ,
99
+ `${ PACKAGE . name } :open_block_display_config ` ,
100
100
{
101
101
icon : 'settings' ,
102
- name : translate ( 'action.open_vanilla_block_display_config .name' ) ,
102
+ name : translate ( 'action.open_block_display_config .name' ) ,
103
103
condition : ( ) => isCurrentFormat ( ) ,
104
104
click : ( ) => {
105
105
if ( BlockDisplay . selected . length === 0 ) return
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export function openItemDisplayConfigDialog(display: ItemDisplay) {
31
31
32
32
new SvelteDialog ( {
33
33
id : `${ PACKAGE . name } :vanillaItemDisplayConfigDialog` ,
34
- title : translate ( 'dialog.vanilla_item_display_config .title' ) ,
34
+ title : translate ( 'dialog.item_display_config .title' ) ,
35
35
width : 400 ,
36
36
component : ItemDisplayConfigDialog ,
37
37
props : {
@@ -96,10 +96,10 @@ export function openItemDisplayConfigDialog(display: ItemDisplay) {
96
96
}
97
97
98
98
export const VANILLA_ITEM_DISPLAY_CONFIG_ACTION = createAction (
99
- `${ PACKAGE . name } :open_vanilla_item_display_config ` ,
99
+ `${ PACKAGE . name } :open_item_display_config ` ,
100
100
{
101
101
icon : 'settings' ,
102
- name : translate ( 'action.open_vanilla_item_display_config .name' ) ,
102
+ name : translate ( 'action.open_item_display_config .name' ) ,
103
103
condition : ( ) => isCurrentFormat ( ) ,
104
104
click : ( ) => {
105
105
if ( ItemDisplay . selected . length === 0 ) return
Original file line number Diff line number Diff line change 24
24
</script >
25
25
26
26
<p class ="panel_toolbar_label label" style ={!! visible ? ' ' : ' visibility:hidden; height: 0px;' }>
27
- {translate (' panel.vanilla_block_display .title' )}
27
+ {translate (' panel.block_display .title' )}
28
28
</p >
29
29
30
30
<div
31
31
class =" toolbar custom-toolbar"
32
32
style ={!! visible ? ' ' : ' visibility:hidden; height: 0px;' }
33
- title ={translate (' panel.vanilla_block_display .description' )}
33
+ title ={translate (' panel.block_display .description' )}
34
34
>
35
35
<div class =" content" style =" width: 95%;" >
36
36
<input type ="text" bind:value ={$block } />
Original file line number Diff line number Diff line change 31
31
</script >
32
32
33
33
<p class ="panel_toolbar_label label" style ={!! visible ? ' ' : ' visibility:hidden; height: 0px;' }>
34
- {translate (' panel.vanilla_item_display .title' )}
34
+ {translate (' panel.item_display .title' )}
35
35
</p >
36
36
37
37
<div
38
38
class =" toolbar custom-toolbar"
39
39
style ={!! visible ? ' ' : ' visibility:hidden; height: 0px;' }
40
- title ={translate (' panel.vanilla_item_display .description' )}
40
+ title ={translate (' panel.item_display .description' )}
41
41
>
42
42
<div class =" content" style =" width: 95%;" >
43
43
<input type ="text" bind:value ={$item } />
You can’t perform that action at this time.
0 commit comments