From ff0b32d4483f19f55421b85ec28b100f58e13ac2 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@63.com> Date: 星期二, 05 七月 2022 14:51:59 +0800 Subject: [PATCH] # --- static/js/object/StoreGoods.js | 10 ++++++++++ static/js/data/BuildingData.js | 34 +++++++++++++++++----------------- 2 files changed, 27 insertions(+), 17 deletions(-) diff --git a/static/js/data/BuildingData.js b/static/js/data/BuildingData.js index 92a3772..aa1973d 100644 --- a/static/js/data/BuildingData.js +++ b/static/js/data/BuildingData.js @@ -15,22 +15,22 @@ color: 0x5F7480, } }, - // { - // objectName: 'floor', - // objectType: 'cube', - // length: 2750, - // width: 600, - // height: 5, - // position: { - // x: 1375, - // y: 297, - // z: 300 - // }, - // style:{ - // color: 0x5F7480, - // transparent:1, - // opacity:0.8 - // } - // } + { + objectName: 'floor', + objectType: 'cube', + length: 2750, + width: 600, + height: 5, + position: { + x: 1375, + y: 297, + z: 300 + }, + style:{ + color: 0x5F7480, + transparent:1, + opacity:0.35 + } + } ] } diff --git a/static/js/object/StoreGoods.js b/static/js/object/StoreGoods.js index cd62075..f8b85aa 100644 --- a/static/js/object/StoreGoods.js +++ b/static/js/object/StoreGoods.js @@ -74,6 +74,11 @@ positionZ -= 138 + 20; break case 'roller': + positionX = ref.position.x || 0; + positionY = ref.position.y || 0; + positionZ = ref.position.z || 0; + + positionY += 20; break default: break @@ -133,6 +138,11 @@ positionZ -= 138 + 20; break case 'roller': + positionX = ref.position.x || 0; + positionY = ref.position.y || 0; + positionZ = ref.position.z || 0; + + positionY += 20; break default: break -- Gitblit v1.9.1