mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
46 lines
912 B
JavaScript
46 lines
912 B
JavaScript
/**
|
|
* @author mrdoob / http://mrdoob.com/
|
|
*/
|
|
|
|
Menubar.Help = function (editor) {
|
|
|
|
var container = new UI.Panel();
|
|
container.setClass('menu');
|
|
|
|
var title = new UI.Panel();
|
|
title.setClass('title');
|
|
title.setTextContent('帮助');
|
|
container.add(title);
|
|
|
|
var options = new UI.Panel();
|
|
options.setClass('options');
|
|
container.add(options);
|
|
|
|
// Source code
|
|
|
|
var option = new UI.Row();
|
|
option.setClass('option');
|
|
option.setTextContent('源码');
|
|
option.onClick(function () {
|
|
|
|
window.open('https://github.com/mrdoob/three.js/tree/master/editor', '_blank')
|
|
|
|
});
|
|
options.add(option);
|
|
|
|
// About
|
|
|
|
var option = new UI.Row();
|
|
option.setClass('option');
|
|
option.setTextContent('关于');
|
|
option.onClick(function () {
|
|
|
|
window.open('http://threejs.org', '_blank');
|
|
|
|
});
|
|
options.add(option);
|
|
|
|
return container;
|
|
|
|
};
|