|
|
|
@ -29,6 +29,7 @@ import { BabylonTool } from "../../tool/babylon-tool";
|
|
|
|
|
import { LoadTool } from "../../tool/load-tool"; |
|
|
|
|
import { MeshPool, MeshPoolInfo } from "../../tool/mesh-pool"; |
|
|
|
|
import { ParticleSystemTool } from "../../tool/particle-system-tool"; |
|
|
|
|
import { SpeakingTool } from "../../tool/speaking-tool"; |
|
|
|
|
import { BuildingUIItem } from "../building-window/building-ui-item"; |
|
|
|
|
import { BuildingWindow } from "../building-window/building-window"; |
|
|
|
|
import { IndoorFloorUIItem } from "../indoor-window/indoor-floorui-item"; |
|
|
|
@ -302,6 +303,7 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
* @param planId 方案 |
|
|
|
|
* @param nodeId 节点 |
|
|
|
|
* @param changeBuildingByUI 是否在沙盘状态下,点UI切层、建筑 |
|
|
|
|
* @param readDescribe 朗读描述 |
|
|
|
|
*/ |
|
|
|
|
selectMarkNode(planId: number, nodeId: number, changeBuildingByUI: boolean = false, readDescribe = false) { |
|
|
|
|
// //还原数据
|
|
|
|
@ -356,11 +358,16 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
this.currentMarkNodeInfo = new MarkNodeInfo(markPlanData, this.currentMarkNodeDataCopy); |
|
|
|
|
//this.currentMarkNodeDataCopy = classToClass(this.currentMarkNodeInfo.nodeData); //更新备份数据
|
|
|
|
|
this.updateNodeInfo(); |
|
|
|
|
if (readDescribe) { |
|
|
|
|
this.readDescribe(nodeCopy.describe); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 新建方案(一级节点) |
|
|
|
|
* @param name 新方案名称 |
|
|
|
@ -1499,6 +1506,17 @@ export class MarkWindow extends UIBase {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 朗读描述 |
|
|
|
|
* @param describe
|
|
|
|
|
*/ |
|
|
|
|
readDescribe(describe: string) { |
|
|
|
|
if (describe != null) { |
|
|
|
|
SpeakingTool.Instance.clear(); |
|
|
|
|
SpeakingTool.Instance.speak(describe); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|