|
|
@ -965,7 +965,8 @@ export class MarkWindow extends UIBase { |
|
|
|
* @param eventData
|
|
|
|
* @param eventData
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
onKeyboardInput(eventData: Event_KeyboardInput) { |
|
|
|
onKeyboardInput(eventData: Event_KeyboardInput) { |
|
|
|
if (eventData.data.key == "Delete") // 删除。 后期看是否加入 Backspace 退格
|
|
|
|
console.log("onKeyboardInput", eventData); |
|
|
|
|
|
|
|
if (eventData.data != null && eventData.data.key == "Delete") // 删除。 后期看是否加入 Backspace 退格
|
|
|
|
{ |
|
|
|
{ |
|
|
|
this.deleteMarkInfo(this.currentMarkInfo); |
|
|
|
this.deleteMarkInfo(this.currentMarkInfo); |
|
|
|
} |
|
|
|
} |
|
|
@ -1162,7 +1163,7 @@ export class MarkWindow extends UIBase { |
|
|
|
markInfo.belongToBuilding = buildingInfo; |
|
|
|
markInfo.belongToBuilding = buildingInfo; |
|
|
|
instance.setMarkTransform(isLocalPos, isNew, buildingInfo, markInfo.modelBox, markInfo); |
|
|
|
instance.setMarkTransform(isLocalPos, isNew, buildingInfo, markInfo.modelBox, markInfo); |
|
|
|
markInfo.modelBox.isPickable = true; |
|
|
|
markInfo.modelBox.isPickable = true; |
|
|
|
// console.log("成功创建模型", markInfo);
|
|
|
|
console.log("成功创建模型", markInfo); |
|
|
|
instance.currentMarkNodeInfo.addMarkInfo(markInfo, isNew); |
|
|
|
instance.currentMarkNodeInfo.addMarkInfo(markInfo, isNew); |
|
|
|
markInfo.onCreate(isNew); |
|
|
|
markInfo.onCreate(isNew); |
|
|
|
Event_MarkInfoChange.dispatch(MarkInfoChangeType.Create, markInfo); |
|
|
|
Event_MarkInfoChange.dispatch(MarkInfoChangeType.Create, markInfo); |
|
|
|