reimplement the editor use lastest antd and other libs, feature of this commit:

1. file manger
2. highlight for click input or output
3. selector of subtress
4. autocomplete for input or output
This commit is contained in:
codetypes committed 2024-04-17 10:35:51 +08:00
1 parent 91da6f0071
commit 2e5c08b2ad
84 files changed
+14250 -11038

No files matched your search

+8 -10
View File
@@ -24,13 +24,12 @@
"id": 4,
"name": "Sequence",
"desc": "新建行为树",
"args": {},
"path": "subtree2.json"
"path": "workdir/subtree2.json"
}
]
},
{
"id": 6,
"id": 7,
"name": "Cmp",
"args": {
"gt": 50,
@@ -41,24 +40,23 @@
]
},
{
"id": 7,
"name": "Log",
"id": 8,
"name": "TestB3",
"desc": "攻击",
"args": {
"str": "Attack!"
},
"children": []
}
},
{
"id": 8,
"id": 9,
"name": "Sequence",
"desc": "新建行为树",
"path": "subtree1.json"
"path": "workdir/subtree1.json"
}
]
},
{
"id": 11,
"id": 12,
"name": "Log",
"desc": "逃跑",
"args": {
+31
View File
@@ -0,0 +1,31 @@
{
"name": "subtree1",
"root": {
"id": 1,
"name": "Sequence",
"desc": "新建行为树",
"children": [
{
"id": 2,
"name": "Log",
"args": {
"str": "hello"
}
},
{
"id": 3,
"name": "Wait",
"args": {
"time": 1
},
"children": [
{
"id": 4,
"name": "unknow"
}
]
}
]
},
"desc": "子树1"
}
+26
View File
@@ -0,0 +1,26 @@
{
"name": "subtree2",
"root": {
"id": 1,
"name": "Sequence",
"desc": "新建行为树",
"children": [
{
"id": 2,
"name": "Cmp",
"args": {},
"input": [
""
]
},
{
"id": 3,
"name": "Attack",
"input": [
"in"
]
}
]
},
"desc": "子树2"
}
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "subtree",
"name": "subtree1",
"root": {
"id": 1,
"name": "Sequence",