Files
behavior3editor/render-process/Editor/index.tsx
T
2020-10-16 11:30:30 +08:00

37 lines
1.0 KiB
TypeScript

import * as React from 'react';
import GGEditor, { Mind, RegisterNode } from 'gg-editor';
import { MindData } from 'gg-editor/lib/common/interfaces';
import { Row, Col } from 'antd';
import './Editor.css';
import NodePanel from './NodePanel';
import BehaviorTree from './BehaviorTree';
export interface EditorProps {
}
export default class Editor extends React.Component<EditorProps> {
render() {
return (
<GGEditor className="editor">
<Row className="editorBd">
<Col span={18} className="editorContent">
<BehaviorTree />
</Col>
<Col span={6} className="editorSidebar">
<NodePanel />
</Col>
</Row>
{/* <MindContextMenu />
<MindCopy />
<MindPaste />
<MindSave />
<RegisterBehaviour name="dblclickItemEditLabel" behaviour={() => { }} /> */}
</GGEditor>
);
}
}
function getExclamationMarks(numChars: number) {
return Array(numChars + 1).join('!');
}