From 2aaf57beff04eabfa2ebe1ec4d9d6cfc7caef92d Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sat, 15 Feb 2020 08:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E5=9B=BE=E8=8F=9C=E5=8D=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.Web/locales/zh-CN.json | 5 ++- .../src/editor/menu/EditorMenuBar.jsx | 2 + ShadowEditor.Web/src/editor/menu/ViewMenu.jsx | 44 +++++++++++++++++++ 3 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 ShadowEditor.Web/src/editor/menu/ViewMenu.jsx diff --git a/ShadowEditor.Web/locales/zh-CN.json b/ShadowEditor.Web/locales/zh-CN.json index 715c8202..ce80e863 100644 --- a/ShadowEditor.Web/locales/zh-CN.json +++ b/ShadowEditor.Web/locales/zh-CN.json @@ -1006,5 +1006,8 @@ "Please click the sky ball in the MapPanel.": "请点击贴图面板中的天空球。", "Sky Ball": "天空球", "The map you clicked is not sky ball.": "你点击的贴图不是天空球。", - "Clear Tools": "清空工具" + "Clear Tools": "清空工具", + "View": "视图", + "Stats": "性能监视器", + "Camera View": "视角帮助器" } \ No newline at end of file diff --git a/ShadowEditor.Web/src/editor/menu/EditorMenuBar.jsx b/ShadowEditor.Web/src/editor/menu/EditorMenuBar.jsx index c0e6afcf..14c633e1 100644 --- a/ShadowEditor.Web/src/editor/menu/EditorMenuBar.jsx +++ b/ShadowEditor.Web/src/editor/menu/EditorMenuBar.jsx @@ -9,6 +9,7 @@ import ComponentMenu from './ComponentMenu.jsx'; import PlayMenu from './PlayMenu.jsx'; import VisualMenu from './VisualMenu.jsx'; import ToolMenu from './ToolMenu.jsx'; +import ViewMenu from './ViewMenu.jsx'; import ExampleMenu from './ExampleMenu.jsx'; import OptionsMenu from './OptionsMenu.jsx'; import SystemMenu from './SystemMenu.jsx'; @@ -38,6 +39,7 @@ class EditorMenuBar extends React.Component { {/* {!enableAuthority || isAdmin ? : null} */} {!enableAuthority || isAdmin ? : null} {!enableAuthority || isAdmin ? : null} + diff --git a/ShadowEditor.Web/src/editor/menu/ViewMenu.jsx b/ShadowEditor.Web/src/editor/menu/ViewMenu.jsx new file mode 100644 index 00000000..fe6d0a40 --- /dev/null +++ b/ShadowEditor.Web/src/editor/menu/ViewMenu.jsx @@ -0,0 +1,44 @@ +import { MenuItem, MenuItemSeparator } from '../../third_party'; + +/** + * 视图菜单 + * @author tengge / https://github.com/tengge1 + */ +class ViewMenu extends React.Component { + constructor(props) { + super(props); + + this.handleShowStats = this.handleShowStats.bind(this); + this.handleShowGrid = this.handleShowGrid.bind(this); + this.handleShowView = this.handleShowView.bind(this); + } + + render() { + return + + + + + ; + } + + handleShowStats() { + + } + + handleShowGrid() { + + } + + handleShowView() { + + } +} + +export default ViewMenu; \ No newline at end of file