woso_javan 4 päivää sitten
vanhempi
commit
eef3e84112

+ 11 - 8
assets/bundles/game/ShelveLocker.prefab

@@ -373,8 +373,8 @@
     },
     "_lpos": {
       "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 33,
+      "x": 2,
+      "y": 35.517,
       "z": 0
     },
     "_lrot": {
@@ -414,8 +414,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 17.34765625,
-      "height": 36.76
+      "width": 21.89,
+      "height": 30
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -458,15 +458,18 @@
     "_fontFamily": "Arial",
     "_lineHeight": 26,
     "_overflow": 0,
-    "_enableWrapText": true,
-    "_font": null,
-    "_isSystemFontUsed": true,
+    "_enableWrapText": false,
+    "_font": {
+      "__uuid__": "b396e0a4-493d-4c5b-af06-66ba37f8dc1e",
+      "__expectedType__": "cc.TTFFont"
+    },
+    "_isSystemFontUsed": false,
     "_spacingX": 0,
     "_isItalic": false,
     "_isBold": false,
     "_isUnderline": false,
     "_underlineHeight": 2,
-    "_cacheMode": 0,
+    "_cacheMode": 2,
     "_enableOutline": true,
     "_outlineColor": {
       "__type__": "cc.Color",

+ 1 - 1
assets/bundles/game/Stage.prefab

@@ -4100,7 +4100,7 @@
         "__id__": 191
       }
     ],
-    "_active": true,
+    "_active": false,
     "_components": [
       {
         "__id__": 209

+ 2 - 2
assets/scripts/game/CommonShelve.ts

@@ -126,8 +126,8 @@ export class CommonShelve extends ShelveBase {
         const pos: Vec3 = v3()
         pos.x = (slotId - 1) * (this.uiTrans.width - 10) / 3
         // pos.y = layer * Global.Goods_Offset
-        const baseY = layer * Global.Goods_Offset
-        pos.y = slotId === 1 ? baseY + Global.Goods_Offset * 2 : baseY - 20
+        const baseY = layer * Global.Goods_Offset - 20
+        pos.y = slotId === 1 ? baseY + Global.Goods_Offset * 2 : baseY
         layerNode.addChild(goodsNode)
         goodsNode.setScale(0.6, 0.6, 0.6)
         goodsNode.setPosition(pos)