Browse Source

首页格子

甘艺伟 1 week ago
parent
commit
8a6f35a12c

BIN
assets/bundle/FGUI/Home/Home.bin


BIN
assets/bundle/FGUI/Home/Home_atlas0.png


+ 8 - 8
assets/bundle/FGUI/Home/Home_atlas0.png.meta

@@ -8,8 +8,8 @@
   "premultiplyAlpha": false,
   "genMipmaps": false,
   "packable": true,
-  "width": 1024,
-  "height": 2048,
+  "width": 512,
+  "height": 256,
   "platformSettings": {},
   "subMetas": {
     "Home_atlas0": {
@@ -20,14 +20,14 @@
       "trimType": "auto",
       "trimThreshold": 1,
       "rotated": false,
-      "offsetX": -134.5,
-      "offsetY": 226.5,
+      "offsetX": -3,
+      "offsetY": 64,
       "trimX": 0,
       "trimY": 0,
-      "width": 755,
-      "height": 1595,
-      "rawWidth": 1024,
-      "rawHeight": 2048,
+      "width": 506,
+      "height": 128,
+      "rawWidth": 512,
+      "rawHeight": 256,
       "borderTop": 0,
       "borderBottom": 0,
       "borderLeft": 0,

+ 13 - 0
assets/bundle/gridMap.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.3",
+  "uuid": "bbf93489-b7ce-44e4-8cf2-4ca7befe5db4",
+  "importer": "folder",
+  "isBundle": true,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 540 - 0
assets/bundle/gridMap/UECell.prefab

@@ -0,0 +1,540 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "",
+    "_objFlags": 0,
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "asyncLoadAssets": false,
+    "readonly": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "UECell",
+    "_objFlags": 0,
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 6
+      },
+      {
+        "__id__": 11
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 14
+      }
+    ],
+    "_prefab": {
+      "__id__": 15
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "sp_quality",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 4
+      }
+    ],
+    "_prefab": {
+      "__id__": 5
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 96,
+      "height": 96
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
+    },
+    "_type": 0,
+    "_sizeMode": 0,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": 2,
+    "_right": 2,
+    "_top": 2,
+    "_bottom": 2,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 100,
+    "_originalHeight": 100,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "0aXk2o6AVGwYH63KgOWxjp",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "itemNode",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 7
+      }
+    ],
+    "_active": true,
+    "_components": [],
+    "_prefab": {
+      "__id__": 10
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 0,
+      "height": 0
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "New Sprite",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 6
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 8
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 40,
+      "height": 36
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 7
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "8cdb44ac-a3f6-449f-b354-7cd48cf84061"
+    },
+    "_type": 0,
+    "_sizeMode": 1,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "33zkUgO6dJxIldeuiZmUE4",
+    "sync": false
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "430adYqyxBLaiHOaq6w0m0",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "lbt_num",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 12
+      }
+    ],
+    "_prefab": {
+      "__id__": 13
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 138,
+      "g": 255,
+      "b": 0,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 22.25,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_string": "1",
+    "_N$string": "1",
+    "_fontSize": 40,
+    "_lineHeight": 40,
+    "_enableWrapText": true,
+    "_N$file": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_batchAsBitmap": false,
+    "_styleFlags": 0,
+    "_underlineHeight": 0,
+    "_N$horizontalAlign": 1,
+    "_N$verticalAlign": 1,
+    "_N$fontFamily": "Arial",
+    "_N$overflow": 0,
+    "_N$cacheMode": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "5eC2ShfUdKU4YbXvNlqkE4",
+    "sync": false
+  },
+  {
+    "__type__": "127a6WmCdhPBLhJXYio7wal",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "itemNode": {
+      "__id__": 6
+    },
+    "lbt_num": {
+      "__id__": 12
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "",
+    "sync": false
+  }
+]

+ 9 - 0
assets/bundle/gridMap/UECell.prefab.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.3.2",
+  "uuid": "b8920836-86d2-466d-951c-df24fe0d55c0",
+  "importer": "prefab",
+  "optimizationPolicy": "AUTO",
+  "asyncLoadAssets": false,
+  "readonly": false,
+  "subMetas": {}
+}

+ 427 - 0
assets/bundle/gridMap/UEGridMap.prefab

@@ -0,0 +1,427 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "",
+    "_objFlags": 0,
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "asyncLoadAssets": false,
+    "readonly": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "UEGridMap",
+    "_objFlags": 0,
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 5
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 10
+      },
+      {
+        "__id__": 11
+      }
+    ],
+    "_prefab": {
+      "__id__": 12
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 750,
+      "height": 1334
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        375,
+        667,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "bg",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      }
+    ],
+    "_prefab": {
+      "__id__": 4
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 728,
+      "height": 1422
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "745e7674-2464-4d94-bc20-c61fb04473f1"
+    },
+    "_type": 0,
+    "_sizeMode": 1,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "50r/f+hahAqrXoS4uVPxgd",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "gridCenter",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 6
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 8
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 700,
+      "height": 800
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "gridLayer",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 5
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [],
+    "_prefab": {
+      "__id__": 7
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 700,
+      "height": 800
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "5cgHJnjjhI9Jmb3wjBMzXK",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 5
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 40,
+    "_left": 25,
+    "_right": 25,
+    "_top": 667,
+    "_bottom": 667,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "2cyC6r67tCwqwSh4PkhwMn",
+    "sync": false
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 45,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "78cfdkqgqNFlIqiHBHo6HRn",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "cellPrefab": {
+      "__uuid__": "b8920836-86d2-466d-951c-df24fe0d55c0"
+    },
+    "gridCenter": {
+      "__id__": 5
+    },
+    "gridLayer": {
+      "__id__": 6
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "",
+    "sync": false
+  }
+]

+ 9 - 0
assets/bundle/gridMap/UEGridMap.prefab.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.3.2",
+  "uuid": "f961f183-c2d3-438f-883b-ae8771446744",
+  "importer": "prefab",
+  "optimizationPolicy": "AUTO",
+  "asyncLoadAssets": false,
+  "readonly": false,
+  "subMetas": {}
+}

+ 13 - 0
assets/bundle/gridMap/mapBgs.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.3",
+  "uuid": "64d5c052-4f18-4fb5-ab75-5d0c7aa4d5d1",
+  "importer": "folder",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

BIN
assets/bundle/gridMap/mapBgs/imgBg.jpg


+ 38 - 0
assets/bundle/gridMap/mapBgs/imgBg.jpg.meta

@@ -0,0 +1,38 @@
+{
+  "ver": "2.3.7",
+  "uuid": "bd6c24cf-ee34-4de9-9a16-ee896be3d252",
+  "importer": "texture",
+  "type": "sprite",
+  "wrapMode": "clamp",
+  "filterMode": "bilinear",
+  "premultiplyAlpha": false,
+  "genMipmaps": false,
+  "packable": true,
+  "width": 728,
+  "height": 1422,
+  "platformSettings": {},
+  "subMetas": {
+    "imgBg": {
+      "ver": "1.0.6",
+      "uuid": "745e7674-2464-4d94-bc20-c61fb04473f1",
+      "importer": "sprite-frame",
+      "rawTextureUuid": "bd6c24cf-ee34-4de9-9a16-ee896be3d252",
+      "trimType": "auto",
+      "trimThreshold": 1,
+      "rotated": false,
+      "offsetX": 0,
+      "offsetY": 0,
+      "trimX": 0,
+      "trimY": 0,
+      "width": 728,
+      "height": 1422,
+      "rawWidth": 728,
+      "rawHeight": 1422,
+      "borderTop": 0,
+      "borderBottom": 0,
+      "borderLeft": 0,
+      "borderRight": 0,
+      "subMetas": {}
+    }
+  }
+}

+ 2 - 4
assets/scene/game.fire

@@ -455,10 +455,8 @@
     "handMaskView": {
       "__uuid__": "4e5ed5ee-545e-4e48-834f-25caad2c1c77"
     },
-    "dialogView": null,
-    "mapPrefab": null,
-    "mapLayer": {
-      "__id__": 5
+    "dialogView": {
+      "__uuid__": "6bd7f276-ea03-4101-8d25-b7cc01c4b14a"
     },
     "safeAreaNode": {
       "__uuid__": "f854640e-2269-4e36-bfd7-4a820ab8fcba"

+ 12 - 0
assets/script/logic/fgui/Home/Home/HomeCtrl.ts

@@ -6,14 +6,26 @@
 /// created by chenwb 2024
 
 import GameDataCenter from "../../../../data/GameDataCenter";
+import { ResCollector } from "../../../../frameWork/compment/ResCollector";
 import FguiMgr from "../../../../frameWork/fgui/FguiMgr";
 import { FguiViewCtrl } from "../../../../frameWork/fgui/mvc/FguiViewCtrl";
 import { GameServerConfig } from "../../../../network/GameServerConfig";
 import { TsrpcNet } from "../../../../network/TsrpcNet";
+import AssetMgr from "../../../../utils/AssetMgr";
+import AssetsBundleMgr from "../../../../utils/AssetsBundleMgr";
+import UEGridMap from "../../../gridMap/UEGridMap";
 import { HomeVM } from "./HomeVM";
 import { HomeView } from "./HomeView";
 export class HomeCtrl extends FguiViewCtrl<HomeVM> {
+    ueGridMap: UEGridMap = null!;
+    onCollectRes(resCollector: ResCollector, param: any): void {
+        resCollector.AddUEClass([UEGridMap])
+    }
+
     OnInited(): void {
+        this.ueGridMap = AssetMgr.instantiateUE(UEGridMap);
+        this.VM.GridRoot.node.addChild(this.ueGridMap.node);
+        this.ueGridMap.Init();
     }
     async OnShow(intent?: any): Promise<void> {
         this.AddListeners();

+ 2 - 4
assets/script/logic/fgui/Home/Home/HomeVM.ts

@@ -9,8 +9,7 @@ import { FguiViewModel } from "../../../../frameWork/fgui/mvc/FguiViewModel";
 
 export class HomeVM extends FguiViewModel {
 
-    readonly ImgBg: fgui.GImage;
-    readonly HeadCom: fgui.GComponent;
+    readonly GridRoot: fgui.GComponent;
     readonly HdList: fgui.GList;
     readonly Top: fgui.GGroup;
     readonly EquipCom1: fgui.GComponent;
@@ -37,8 +36,7 @@ export class HomeVM extends FguiViewModel {
 
     constructor(panel: fgui.GComponent) {
         super(panel);
-        this.ImgBg = panel.getChild("ImgBg") as fgui.GImage;
-        this.HeadCom = panel.getChild("HeadCom") as fgui.GComponent;
+        this.GridRoot = panel.getChild("gridRoot") as fgui.GComponent;
         this.HdList = panel.getChild("hdList") as fgui.GList;
         this.Top = panel.getChild("top") as fgui.GGroup;
         this.EquipCom1 = panel.getChild("EquipCom1") as fgui.GComponent;

+ 13 - 0
assets/script/logic/gridMap.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.3",
+  "uuid": "07930e5c-c7a7-467e-ae00-6f5bdc8f86d1",
+  "importer": "folder",
+  "isBundle": false,
+  "bundleName": "",
+  "priority": 1,
+  "compressionType": {},
+  "optimizeHotUpdate": {},
+  "inlineSpriteFrames": {},
+  "isRemoteBundle": {},
+  "subMetas": {}
+}

+ 9 - 0
assets/script/logic/gridMap/GridConstant.ts

@@ -0,0 +1,9 @@
+/** 地图格子参数配置 */
+
+export class GridConstant {
+    static readonly ROW = 6;
+    static readonly COL = 7;
+    static readonly CELL_WIDTH = 80;
+    static readonly CELL_HEIGHT = 80;
+    static readonly CELL_SIZE = cc.size(GridConstant.CELL_WIDTH, GridConstant.CELL_HEIGHT);
+}

+ 10 - 0
assets/script/logic/gridMap/GridConstant.ts.meta

@@ -0,0 +1,10 @@
+{
+  "ver": "1.1.0",
+  "uuid": "29e307fa-f5c2-41f5-a5d6-951d74dba4bd",
+  "importer": "typescript",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 82 - 0
assets/script/logic/gridMap/UECell.ts

@@ -0,0 +1,82 @@
+import UEBase from "../../frameWork/compment/UEBase";
+
+const { ccclass, property } = cc._decorator;
+
+export interface I_CellData {
+
+}
+@ccclass
+export default class UECell extends UEBase {
+    static readonly BundleKey: string = "gridMap";
+    static readonly PrefabUrl: string = "UECell";
+    static readonly CLS: string = "UECell";
+
+    @property(cc.Node)
+    private itemNode: cc.Node = null!;
+    @property(cc.Label)
+    private lbt_num: cc.Label = null!;
+
+    private itemType: number = 0; // 物品类型
+    private itemLevel: number = 0; // 物品等级
+    private originalPos: cc.Vec3 = cc.v3(0, 0);
+
+    Init(idx: number) {
+        this.lbt_num.string = idx.toString();
+        this.originalPos = this.node.position;
+    }
+
+    hasItem(): boolean {
+        return this.itemType !== 0;
+    }
+
+    startDrag(): void {
+        if (this.itemNode) {
+            this.itemNode.zIndex = 100;
+            this.itemNode.opacity = 180;
+        }
+    }
+
+    updateDragPosition(pos: cc.Vec3): void {
+        if (this.itemNode) {
+            this.itemNode.position = pos.sub(this.node.position);
+        }
+    }
+
+    endDrag(): void {
+        if (this.itemNode) {
+            this.itemNode.zIndex = 1;
+            this.itemNode.opacity = 255;
+            this.itemNode.position = cc.Vec3.ZERO;
+        }
+    }
+
+    canMergeWith(other: UECell): boolean {
+        return this.itemType === other.itemType && this.itemLevel === other.itemLevel;
+    }
+
+    mergeFrom(other: UECell): void {
+        if (this.canMergeWith(other)) {
+            this.itemLevel++;
+            // 更新显示
+            this.updateItemDisplay();
+            // 清空原来的格子
+            other.clearItem();
+        }
+    }
+
+    clearItem(): void {
+        this.itemType = 0;
+        this.itemLevel = 0;
+        if (this.itemNode) {
+            this.itemNode.active = false;
+        }
+    }
+
+    private updateItemDisplay(): void {
+        // 根据 itemType 和 itemLevel 更新物品显示
+        if (this.itemNode) {
+            this.itemNode.active = true;
+            // TODO: 更新物品的具体显示效果
+        }
+    }
+}

+ 10 - 0
assets/script/logic/gridMap/UECell.ts.meta

@@ -0,0 +1,10 @@
+{
+  "ver": "1.1.0",
+  "uuid": "127a65a6-09d8-4f04-b849-5d88a8ef06a5",
+  "importer": "typescript",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 101 - 0
assets/script/logic/gridMap/UEGridMap.ts

@@ -0,0 +1,101 @@
+import UEBase from "../../frameWork/compment/UEBase";
+import { GridConstant } from "./GridConstant";
+import UECell from "./UECell";
+
+const { ccclass, property } = cc._decorator;
+
+@ccclass
+export default class UEGridMap extends UEBase {
+    static readonly BundleKey: string = "gridMap";
+    static readonly PrefabUrl: string = "UEGridMap";
+    static readonly CLS: string = "UEGridMap";
+    @property(cc.Prefab)
+    cellPrefab: cc.Prefab = null!;
+    @property(cc.Node)
+    gridCenter: cc.Node = null;
+    @property(cc.Node)
+    gridLayer: cc.Node = null;
+    gridMap: UECell[][] = [];
+    private isDragging: boolean = false;
+    private dragStartPos: cc.Vec2 = cc.v2(0, 0);
+    private selectedCell: UECell = null!;
+
+    Init() {
+        const startX = -(GridConstant.ROW * GridConstant.CELL_WIDTH) / 2;
+        const startY = (GridConstant.COL * GridConstant.CELL_HEIGHT) / 2;
+        this.gridLayer.setContentSize(GridConstant.CELL_WIDTH * GridConstant.ROW, GridConstant.CELL_HEIGHT * GridConstant.COL);
+        let idx = 0;
+        for (let i = 0; i < GridConstant.COL; i++) {
+            let row = [];
+            for (let j = 0; j < GridConstant.ROW; j++) {
+                let cell = cc.instantiate(this.cellPrefab).getComponent(UECell);
+                this.gridLayer.addChild(cell.node);
+                cell.node.width = GridConstant.CELL_WIDTH;
+                cell.node.height = GridConstant.CELL_HEIGHT;
+                cell.node.setPosition(cc.v2(
+                    startX + j * GridConstant.CELL_WIDTH + GridConstant.CELL_WIDTH / 2,
+                    startY - i * GridConstant.CELL_HEIGHT - GridConstant.CELL_HEIGHT / 2
+                ));
+                row.push(cell);
+                cell.Init(idx);
+                idx++;
+            }
+            this.gridMap.push(row);
+        }
+        this.initEvent();
+    }
+
+    initEvent(): void {
+        this.gridLayer.on(cc.Node.EventType.TOUCH_START, this.onTouchStart, this);
+        this.gridLayer.on(cc.Node.EventType.TOUCH_MOVE, this.onTouchMove, this);
+        this.gridLayer.on(cc.Node.EventType.TOUCH_END, this.onTouchEnd, this);
+        this.gridLayer.on(cc.Node.EventType.TOUCH_CANCEL, this.onTouchEnd, this);
+    }
+
+    private onTouchStart(event: cc.Event.EventTouch): void {
+        const touchPos = this.node.convertToNodeSpaceAR(event.getLocation());
+        const cell = this.getCellByPos(touchPos);
+        if (cell && cell.hasItem()) {
+            this.isDragging = true;
+            this.dragStartPos = touchPos;
+            this.selectedCell = cell;
+            cell.startDrag();
+        }
+    }
+
+    private onTouchMove(event: cc.Event.EventTouch): void {
+        if (!this.isDragging || !this.selectedCell) return;
+        const touchPos = this.node.convertToNodeSpaceAR(event.getLocation());
+        this.selectedCell.updateDragPosition(cc.v3(touchPos.x, touchPos.y));
+    }
+
+    private onTouchEnd(event: cc.Event.EventTouch): void {
+        if (!this.isDragging || !this.selectedCell) return;
+        const touchPos = this.node.convertToNodeSpaceAR(event.getLocation());
+        const targetCell = this.getCellByPos(touchPos);
+
+        if (targetCell && targetCell !== this.selectedCell) {
+            this.tryMergeItems(this.selectedCell, targetCell);
+        }
+
+        this.selectedCell.endDrag();
+        this.isDragging = false;
+        this.selectedCell = null;
+    }
+
+    private getCellByPos(pos: cc.Vec2): UECell | null {
+        const row = Math.floor(-pos.y / GridConstant.CELL_HEIGHT);
+        const col = Math.floor(pos.x / GridConstant.CELL_WIDTH);
+
+        if (row >= 0 && row < GridConstant.ROW && col >= 0 && col < GridConstant.COL) {
+            return this.gridMap[row][col];
+        }
+        return null;
+    }
+
+    private tryMergeItems(fromCell: UECell, toCell: UECell): void {
+        if (fromCell.canMergeWith(toCell)) {
+            toCell.mergeFrom(fromCell);
+        }
+    }
+}

+ 10 - 0
assets/script/logic/gridMap/UEGridMap.ts.meta

@@ -0,0 +1,10 @@
+{
+  "ver": "1.1.0",
+  "uuid": "78cfd92a-82a3-4594-8aa2-1c11e8e87467",
+  "importer": "typescript",
+  "isPlugin": false,
+  "loadPluginInWeb": true,
+  "loadPluginInNative": true,
+  "loadPluginInEditor": false,
+  "subMetas": {}
+}

+ 1 - 3
assets/script/logic/ui/scene/UIGame.ts

@@ -23,8 +23,6 @@ export default class UIGame extends cc.Component {
 	handMaskView: cc.Prefab = null
 	@property(cc.Prefab)
 	dialogView: cc.Prefab = null
-	@property(cc.Prefab) mapPrefab: cc.Prefab = null
-	@property(cc.Node) mapLayer: cc.Node = null
 	// @property(cc.Prefab) uiMapGuideSkip: cc.Prefab = null
 	@property(cc.Prefab) safeAreaNode: cc.Prefab = null
 	public static Instance: UIGame;
@@ -49,7 +47,7 @@ export default class UIGame extends cc.Component {
 		// AssetMgr.instantiate(cc.director.getScene(), this.uiHand)
 		AssetMgr.instantiate(cc.director.getScene(), this.guideView)
 		AssetMgr.instantiate(cc.director.getScene(), this.handMaskView)
-		// AssetMgr.instantiate(cc.director.getScene(), this.dialogView)
+		AssetMgr.instantiate(cc.director.getScene(), this.dialogView)
 		AssetMgr.instantiate(cc.director.getScene(), this.uiMask)
 		AssetMgr.instantiate(cc.director.getScene(), this.netMask)
 		this.EnterGame();

+ 2 - 0
assets/script/network/GameServerConfig.ts

@@ -3,9 +3,11 @@
 /** 游戏服务器配置,给客户端读取使用 */
 export class GameServerConfig {
     public static isLocalServer: boolean = false;
+    public LOGIN_SERVER: string = "http://106.55.54.28:7001";
     /** 游戏服务器地址 */
     // public static GAME_SERVER = 'wss://localcc.xmsgame.com:6000';
     public static GAME_SERVER = 'ws://106.55.54.28:7000';
+
     // public static GAME_SERVER = 'ws://192.168.31.231:4000';
     // public static GAME_SERVER = 'ws://192.168.31.229:3000';
     // public static GAME_SERVER = 'ws://192.168.31.8:3000';

+ 0 - 1
assets/script/server/GameServerModel.ts

@@ -8,7 +8,6 @@ import IDataModel from "../data/model/IDataModel";
 import UIHelp, { DialogParams } from "../logic/ui/UIHelp";
 import GameController from "../GameController";
 import { I18n } from "../utils/I18nUtil";
-import EventMng from "../manager/EventMng";
 
 
 /** 游戏服 */

+ 4 - 5
fgui-project/assets/Home/Home.xml

@@ -1,16 +1,15 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="750,1334">
+<component size="750,1334" opaque="false">
   <displayList>
-    <image id="n1_tw8r" name="ImgBg" src="miq91" fileName="Images/imgBg.jpg" xy="375,667" pivot="0.5,0.5" anchor="true" size="750,1334" aspect="true">
+    <component id="n27_qj2k" name="gridRoot" src="e0jk8c" fileName="Components/EmptyCom.xml" pkg="rd135cfr" xy="375,667" pivot="0.5,0.5" anchor="true">
       <relation target="" sidePair="center-center,middle-middle"/>
-    </image>
-    <component id="n27_sp2x" name="HeadCom" src="miq9g" fileName="Components/HeadTopCom.xml" xy="375,149" pivot="0.5,0.5" anchor="true" group="n26_miq9"/>
+    </component>
     <list id="n25_miq9" name="hdList" xy="10,163" pivot="0,0.5" anchor="true" size="387,80" group="n26_miq9" layout="row" overflow="scroll" scroll="horizontal" colGap="20" defaultItem="ui://1xjqm8v2miq9e">
       <item/>
       <item/>
       <item/>
     </list>
-    <group id="n26_miq9" name="top" xy="0,-1" size="750,300" advanced="true">
+    <group id="n26_miq9" name="top" xy="10,123" size="387,80" advanced="true">
       <relation target="" sidePair="top-top"/>
     </group>
     <component id="n3_miq9" name="EquipCom1" src="miq92" fileName="Components/EquipCom.xml" xy="71,1154" pivot="0.5,0.5" anchor="true" group="n11_miq9" scale="0.8,0.8"/>