@@ -30,26 +30,16 @@ export const MENU = createBarMenu(
3030 [ ] ,
3131 ( ) => Format === BLUEPRINT_FORMAT
3232) as BarMenu & { label : HTMLDivElement }
33- MENU . label . style . display = 'none '
33+ MENU . label . style . display = 'inline-block '
3434MENU . label . innerHTML = 'Animated Java'
3535MENU . label . prepend ( createIconImg ( ) )
3636BLOCKBENCH_MENU_BAR . appendChild ( MENU . label )
3737
38- events . SELECT_PROJECT . subscribe ( project => {
39- MENU . label . style . display = project . format === BLUEPRINT_FORMAT ? 'inline-block' : 'none'
40- } )
41- events . UNSELECT_AJ_PROJECT . subscribe ( ( ) => {
42- MENU . label . style . display = 'none'
43- } )
44-
4538MenuBar . addAction (
4639 createAction ( `${ PACKAGE . name } :about` , {
4740 icon : 'info' ,
4841 category : 'animated_java' ,
4942 name : translate ( 'action.open_about.name' ) ,
50- condition ( ) {
51- return Format === BLUEPRINT_FORMAT
52- } ,
5343 click ( ) {
5444 openAboutDialog ( )
5545 } ,
@@ -58,30 +48,27 @@ MenuBar.addAction(
5848)
5949
6050MenuBar . addAction (
61- createAction ( `${ PACKAGE . name } :blueprint_settings ` , {
62- icon : 'settings ' ,
51+ createAction ( `${ PACKAGE . name } :documentation ` , {
52+ icon : 'find_in_page ' ,
6353 category : 'animated_java' ,
64- name : translate ( 'action.open_blueprint_settings.name' ) ,
65- condition ( ) {
66- return Format === BLUEPRINT_FORMAT
67- } ,
54+ name : translate ( 'action.open_documentation.name' ) ,
6855 click ( ) {
69- openBlueprintSettingsDialog ( )
56+ Blockbench . openLink ( 'https://animated-java.dev/docs' )
7057 } ,
7158 } ) ,
7259 MENU . id
7360)
7461
7562MenuBar . addAction (
76- createAction ( `${ PACKAGE . name } :documentation ` , {
77- icon : 'find_in_page ' ,
63+ createAction ( `${ PACKAGE . name } :blueprint_settings ` , {
64+ icon : 'settings ' ,
7865 category : 'animated_java' ,
79- name : translate ( 'action.open_documentation .name' ) ,
66+ name : translate ( 'action.open_blueprint_settings .name' ) ,
8067 condition ( ) {
8168 return Format === BLUEPRINT_FORMAT
8269 } ,
8370 click ( ) {
84- Blockbench . openLink ( 'https://animated-java.dev/docs' )
71+ openBlueprintSettingsDialog ( )
8572 } ,
8673 } ) ,
8774 MENU . id
0 commit comments