@@ -24,12 +24,11 @@ function createIconImg() {
24
24
} )
25
25
return IMG
26
26
}
27
+ const MENU_ID = `${ PACKAGE . name } :menu` as `animated_java:menu`
27
28
const BLOCKBENCH_MENU_BAR = document . querySelector ( '#menu_bar' ) as HTMLDivElement
28
- export const MENU = createBarMenu (
29
- `${ PACKAGE . name } :menu` ,
30
- [ ] ,
31
- ( ) => Format === BLUEPRINT_FORMAT
32
- ) as BarMenu & { label : HTMLDivElement }
29
+ export const MENU = createBarMenu ( MENU_ID , [ ] , ( ) => Format === BLUEPRINT_FORMAT ) as BarMenu & {
30
+ label : HTMLDivElement
31
+ }
33
32
MENU . label . style . display = 'inline-block'
34
33
MENU . label . innerHTML = 'Animated Java'
35
34
MENU . label . prepend ( createIconImg ( ) )
@@ -74,19 +73,30 @@ MenuBar.addAction(
74
73
MENU . id
75
74
)
76
75
76
+ MenuBar . menus [ MENU_ID ] . structure . push ( {
77
+ id : 'animated_java:extract-open' ,
78
+ name : translate ( 'action.extract.name' ) ,
79
+ icon : 'fa-trash-can' ,
80
+ searchable : false ,
81
+ children : [ ] ,
82
+ condition ( ) {
83
+ return Format === BLUEPRINT_FORMAT
84
+ } ,
85
+ } )
86
+
77
87
MenuBar . addAction (
78
88
createAction ( `${ PACKAGE . name } :extract` , {
79
89
icon : 'fa-trash-can' ,
80
90
category : 'animated_java' ,
81
- name : translate ( 'action.extract.name ' ) ,
91
+ name : translate ( 'action.extract.confirm ' ) ,
82
92
condition ( ) {
83
93
return Format === BLUEPRINT_FORMAT
84
94
} ,
85
95
click ( ) {
86
96
void cleanupExportedFiles ( )
87
97
} ,
88
98
} ) ,
89
- MENU . id
99
+ MENU_ID + '.animated_java:extract-open'
90
100
)
91
101
92
102
MenuBar . addAction (
0 commit comments