|
|
|
@ -40,9 +40,9 @@ import { WeatherTool } from "./weather-tool";
|
|
|
|
|
export class MarkWindow extends UIBase { |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 游离节点特殊Key |
|
|
|
|
* 游离节点特殊名称 |
|
|
|
|
*/ |
|
|
|
|
readonly c_leaveNode: string = "node_leave_"; |
|
|
|
|
readonly c_leaveNodeName: string = ""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static instance: MarkWindow; |
|
|
|
@ -255,10 +255,16 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
let copyNodeData = classToClass(this.currentMarkNodeDataCopy);//覆盖数据
|
|
|
|
|
copyNodeData.id = oldNodeData.id; |
|
|
|
|
copyNodeData.index = oldNodeData.index; |
|
|
|
|
if (newName != null && newName != this.c_leaveNode) { |
|
|
|
|
if (newName != null && newName != this.c_leaveNodeName) { |
|
|
|
|
copyNodeData.name = newName; |
|
|
|
|
} |
|
|
|
|
// copyNodeData.name = oldNodeData.name;
|
|
|
|
|
if (copyNodeData.name == this.c_leaveNodeName) //如果来自空节点,则保留原名
|
|
|
|
|
{ |
|
|
|
|
copyNodeData.name = oldNodeData.name; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log("记录的数据", copyNodeData.texture, this.currentMarkNodeInfo.nodeData.texture); |
|
|
|
|
|
|
|
|
|
markPlaneData.setNodeData(nodeId, copyNodeData);//覆盖数据
|
|
|
|
|
|
|
|
|
|
this.saveAllMarkPlanData(); |
|
|
|
@ -368,8 +374,10 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
//清空
|
|
|
|
|
this.currentMarkNodeDataCopy = nodeCopy;//更新备份数据
|
|
|
|
|
this.currentMarkNodeInfo = new MarkNodeInfo(markPlanData, this.currentMarkNodeDataCopy); |
|
|
|
|
|
|
|
|
|
//this.currentMarkNodeDataCopy = classToClass(this.currentMarkNodeInfo.nodeData); //更新备份数据
|
|
|
|
|
this.updateNodeInfo(readDescribe); |
|
|
|
|
PlanComponent.instance.updateBeforePlanNode(); |
|
|
|
|
// let instance = this;
|
|
|
|
|
// if (readDescribe) { //镜头移动完,开始说话
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
@ -1022,7 +1030,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
* 创建一个游离的节点,用于没有选中已经创建的节点时,存放标绘信息 |
|
|
|
|
*/ |
|
|
|
|
createLeaveNode() { |
|
|
|
|
let result = new MarkNodeData(0, this.c_leaveNode); |
|
|
|
|
let result = new MarkNodeData(0, this.c_leaveNodeName); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|