Browse Source

Editor: Add manual link. (#22175)

Michael Herzog 4 years ago
parent
commit
e4a3057042
2 changed files with 15 additions and 0 deletions
  1. 12 0
      editor/js/Menubar.Help.js
  2. 3 0
      editor/js/Strings.js

+ 12 - 0
editor/js/Menubar.Help.js

@@ -54,6 +54,18 @@ function MenubarHelp( editor ) {
 	} );
 	options.add( option );
 
+	// Manual
+
+	var option = new UIRow();
+	option.setClass( 'option' );
+	option.setTextContent( strings.getKey( 'menubar/help/manual' ) );
+	option.onClick( function () {
+
+		window.open( 'https://github.com/mrdoob/three.js/wiki/Editor-Manual', '_blank' );
+
+	} );
+	options.add( option );
+
 	return container;
 
 }

+ 3 - 0
editor/js/Strings.js

@@ -78,6 +78,7 @@ function Strings( config ) {
 			'menubar/help/source_code': 'Source Code',
 			'menubar/help/icons': 'Icon Pack',
 			'menubar/help/about': 'About',
+			'menubar/help/manual': 'Manual',
 
 			'sidebar/animations': 'Animations',
 			'sidebar/animations/play': 'Play',
@@ -412,6 +413,7 @@ function Strings( config ) {
 			'menubar/help/source_code': 'Code Source',
 			'menubar/help/icons': 'Icon Pack',
 			'menubar/help/about': 'A propos',
+			'menubar/help/manual': 'Manual',
 
 			'sidebar/animations': 'Animations',
 			'sidebar/animations/play': 'Play',
@@ -746,6 +748,7 @@ function Strings( config ) {
 			'menubar/help/source_code': '源码',
 			'menubar/help/icons': '图标组件包',
 			'menubar/help/about': '关于',
+			'menubar/help/manual': 'Manual',
 
 			'sidebar/animations': '动画',
 			'sidebar/animations/play': '播放',