|
|
|
@ -466,7 +466,9 @@ export class FacilityInfoInSceneWindow extends UIBase {
|
|
|
|
|
selectJYJFrom3D(pickInfo: PickingInfo) { |
|
|
|
|
|
|
|
|
|
if (this.currentSelectJYJInfo != null) { |
|
|
|
|
this.playJYJSelectEffect(false, this.currentSelectJYJInfo); |
|
|
|
|
let facilityItem: FacilityInfoUIItem = FacilityInfoInSceneWindow.instance.getFacilityItem(this.currentSelectJYJInfo); |
|
|
|
|
facilityItem.onSelect(false); |
|
|
|
|
// this.playJYJSelectEffect(false, this.currentSelectJYJInfo);
|
|
|
|
|
this.currentSelectJYJInfo = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -511,10 +513,12 @@ export class FacilityInfoInSceneWindow extends UIBase {
|
|
|
|
|
|
|
|
|
|
if (result != null) { |
|
|
|
|
|
|
|
|
|
this.playJYJSelectEffect(true, result); |
|
|
|
|
//this.playJYJSelectEffect(true, result);
|
|
|
|
|
let facilityItem: FacilityInfoUIItem = FacilityInfoInSceneWindow.instance.getFacilityItem(result); |
|
|
|
|
console.log("场景中选中设备", facilityItem); //通知前端
|
|
|
|
|
FacilityInfoInSceneWindow.instance.selectFacilityItemToThree([facilityItem], true); |
|
|
|
|
facilityItem.onSelect(true); |
|
|
|
|
//FacilityInfoInSceneWindow.instance.selectFacilityItemToThree([facilityItem], true);
|
|
|
|
|
//console.log(facilityItem.getHeadUIPos());
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|