|
|
|
@ -199,7 +199,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
* 开启界面
|
|
|
|
|
*/ |
|
|
|
|
static openWindow(): MarkWindow { |
|
|
|
|
console.log("进入沙盘"); |
|
|
|
|
// console.log("进入沙盘");
|
|
|
|
|
if (MarkWindow.instance == null) { |
|
|
|
|
SceneManager.s_markWindow = UIManager.open(MarkWindow); |
|
|
|
|
} |
|
|
|
@ -222,7 +222,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
MarkWindow.instance.shouWaterSource(false); |
|
|
|
|
UIManager.hide(MarkWindow.instance); |
|
|
|
|
} |
|
|
|
|
console.log("退出沙盘"); |
|
|
|
|
// console.log("退出沙盘");
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -263,7 +263,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
copyNodeData.name = oldNodeData.name; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log("记录的数据", copyNodeData.texture, this.currentMarkNodeInfo.nodeData.texture); |
|
|
|
|
//console.log("记录的数据", copyNodeData.texture, this.currentMarkNodeInfo.nodeData.texture);
|
|
|
|
|
|
|
|
|
|
markPlaneData.setNodeData(nodeId, copyNodeData);//覆盖数据
|
|
|
|
|
|
|
|
|
@ -285,7 +285,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
* 在沙盘节点中点击UI、 切换楼层或室内外,相当于清空 |
|
|
|
|
*/ |
|
|
|
|
changeBuilding(isOutdoor: boolean = false, buildingId: string = null, floorId: string = null) { |
|
|
|
|
console.log("沙盘内切换", isOutdoor, buildingId, floorId); |
|
|
|
|
// console.log("沙盘内切换", isOutdoor, buildingId, floorId);
|
|
|
|
|
if (this.currentMarkNodeInfo == null) { |
|
|
|
|
|
|
|
|
|
this.selectMarkNode(null, null, true); |
|
|
|
@ -362,7 +362,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
if (nodeCopy == null) { |
|
|
|
|
console.log("拷贝游离节点 2"); |
|
|
|
|
// console.log("拷贝游离节点 2");
|
|
|
|
|
nodeCopy = this.createLeaveNode(); |
|
|
|
|
this.savCurrentNodeData(nodeCopy); |
|
|
|
|
} |
|
|
|
@ -875,7 +875,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
|
|
|
|
|
if (eventData.type == PointerEventTypes.POINTERDOUBLETAP) { |
|
|
|
|
//双击标绘物,打开任务界面
|
|
|
|
|
console.log("打开属性面板"); |
|
|
|
|
// console.log("打开属性面板");
|
|
|
|
|
instance.openProperty(l_markInfo); |
|
|
|
|
readyCreateMark = false; //双击,必然不创建标绘物
|
|
|
|
|
} |
|
|
|
@ -883,7 +883,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
if (eventData.event.button == 0)//左键
|
|
|
|
|
{ |
|
|
|
|
if (!instance.isCreateMultiPointMark()) { |
|
|
|
|
console.log("选中标绘物", l_markInfo); |
|
|
|
|
// console.log("选中标绘物", l_markInfo);
|
|
|
|
|
instance.selectMarkDataFrom3d(l_markInfo, true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1069,7 +1069,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
|
|
|
|
|
markNodeData.cameraData.getDataFromCamera(SceneManager.Instance.defaultCamera); |
|
|
|
|
markNodeData.showZP = BuildingWindow.instance.currentZPShow; |
|
|
|
|
console.log("记录节点", markNodeData); |
|
|
|
|
// console.log("记录节点", markNodeData);
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|