changeFloor_m selectPoint & ps

This commit is contained in:
oc 2019-06-03 12:45:23 +08:00
parent 6525718127
commit b63c06d982
3 changed files with 6 additions and 2 deletions

View File

@ -224,7 +224,7 @@ changeFloor_m
/* changeFloor_m /* changeFloor_m
tooltip : 楼梯, 传送门, 如果目标楼层有多个楼梯, 写upFloor或downFloor可能会导致到达的楼梯不确定, 这时候请使用loc方式来指定具体的点位置 tooltip : 楼梯, 传送门, 如果目标楼层有多个楼梯, 写upFloor或downFloor可能会导致到达的楼梯不确定, 这时候请使用loc方式来指定具体的点位置
helpUrl : https://h5mota.com/games/template/_docs/#/element?id=%e8%b7%af%e9%9a%9c%ef%bc%8c%e6%a5%bc%e6%a2%af%ef%bc%8c%e4%bc%a0%e9%80%81%e9%97%a8 helpUrl : https://h5mota.com/games/template/_docs/#/element?id=%e8%b7%af%e9%9a%9c%ef%bc%8c%e6%a5%bc%e6%a2%af%ef%bc%8c%e4%bc%a0%e9%80%81%e9%97%a8
default : [null,"MT1",null,0,0,null,500,null] default : [null,"MTx",null,0,0,null,500,null]
var toFloorId = IdString_0; var toFloorId = IdString_0;
if (Floor_List_0!='floorId') toFloorId = Floor_List_0; if (Floor_List_0!='floorId') toFloorId = Floor_List_0;
var loc = ', "loc": ['+Number_0+', '+Number_1+']'; var loc = ', "loc": ['+Number_0+', '+Number_1+']';
@ -1068,7 +1068,7 @@ changeFloor_s
/* changeFloor_s /* changeFloor_s
tooltip : changeFloor: 楼层切换,动画时间可不填 tooltip : changeFloor: 楼层切换,动画时间可不填
helpUrl : https://h5mota.com/games/template/_docs/#/event?id=changefloor%EF%BC%9A%E6%A5%BC%E5%B1%82%E5%88%87%E6%8D%A2 helpUrl : https://h5mota.com/games/template/_docs/#/event?id=changefloor%EF%BC%9A%E6%A5%BC%E5%B1%82%E5%88%87%E6%8D%A2
default : ["MT1","0","0",null,500] default : ["MTx","0","0",null,500]
colour : this.dataColor colour : this.dataColor
DirectionEx_List_0 = DirectionEx_List_0 && (', "direction": "'+DirectionEx_List_0+'"'); DirectionEx_List_0 = DirectionEx_List_0 && (', "direction": "'+DirectionEx_List_0+'"');
Int_0 = (Int_0!=='') ?(', "time": '+Int_0):''; Int_0 = (Int_0!=='') ?(', "time": '+Int_0):'';

View File

@ -775,6 +775,10 @@ function omitedcheckUpdateFunction(event) {
} }
block.setFieldValue(xv+"", arr[0]); block.setFieldValue(xv+"", arr[0]);
block.setFieldValue(yv+"", arr[1]); block.setFieldValue(yv+"", arr[1]);
if (block.type == 'changeFloor_m') {
block.setFieldValue("floorId", "Floor_List_0");
block.setFieldValue("loc", "Stair_List_0");
}
}); });
} }

Binary file not shown.