diff --git a/DataTables/Datas/副本系统/副本表.xlsx b/DataTables/Datas/副本系统/副本表.xlsx index 919c1d29..ff290e55 100644 Binary files a/DataTables/Datas/副本系统/副本表.xlsx and b/DataTables/Datas/副本系统/副本表.xlsx differ diff --git a/DataTables/Datas/副本系统/金币副本表.xlsx b/DataTables/Datas/副本系统/金币副本表.xlsx index 084ada6e..d2f3c132 100644 Binary files a/DataTables/Datas/副本系统/金币副本表.xlsx and b/DataTables/Datas/副本系统/金币副本表.xlsx differ diff --git a/DataTables/Datas/常用/资源表.xlsx b/DataTables/Datas/常用/资源表.xlsx index fab6a265..4c20a708 100644 Binary files a/DataTables/Datas/常用/资源表.xlsx and b/DataTables/Datas/常用/资源表.xlsx differ diff --git a/JisolGameCocos/assets/resources/config/json/tbgresource.json b/JisolGameCocos/assets/resources/config/json/tbgresource.json index 90315e3c..120010d4 100644 --- a/JisolGameCocos/assets/resources/config/json/tbgresource.json +++ b/JisolGameCocos/assets/resources/config/json/tbgresource.json @@ -1,38 +1,50 @@ [ { "id": 90001, + "icon": "90001", "name": "金币", "tig": "金币 (目前叫做金币 名称还没有定) 游戏的基础资源 用于升级宠物", - "args": "" + "args": "", + "quality": 1 }, { "id": 90002, + "icon": "90002", "name": "锻造石", "tig": "锻造石 可以锻造装备的石头", - "args": "" + "args": "", + "quality": 1 }, { "id": 90003, + "icon": "90003", "name": "通用加速卷", "tig": "加速卷 用来加速一切需要时间的东西 减少冷却:60s", - "args": "60" + "args": "60", + "quality": 1 }, { "id": 90004, + "icon": "90004", "name": "钥匙:金币副本", "tig": "金币副本的钥匙", - "args": "" + "args": "", + "quality": 1 }, { "id": 90005, + "icon": "90005", "name": "钥匙:锻造石副本", "tig": "锻造石副本的钥匙", - "args": "" + "args": "", + "quality": 1 }, { "id": 90006, + "icon": "90006", "name": "魂:一品宠物魂", "tig": "用于宠物升星", - "args": "" + "args": "", + "quality": 1 } ] \ No newline at end of file diff --git a/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon.meta b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon.meta new file mode 100644 index 00000000..7dbd4605 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "3f0ee55f-fcc7-420d-bbca-1340a4c092fc", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon/玩家资源ICON.prefab b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon/玩家资源ICON.prefab new file mode 100644 index 00000000..f1001862 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon/玩家资源ICON.prefab @@ -0,0 +1,241 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "玩家资源ICON", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "玩家资源ICON", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 10 + }, + { + "__id__": 12 + } + ], + "_prefab": { + "__id__": 14 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_prefab": { + "__id__": 3 + }, + "__editorExtras__": {} + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 2 + }, + "asset": { + "__uuid__": "3cae9ed5-dfa7-4128-b332-3ea99d399121", + "__expectedType__": "cc.Prefab" + }, + "fileId": "02c3tqHwFAbp7zhkA22zq9", + "instance": { + "__id__": 4 + }, + "targetOverrides": null + }, + { + "__type__": "cc.PrefabInstance", + "fileId": "ed5tPxTilMA6R3egdw7M/L", + "prefabRootNode": { + "__id__": 1 + }, + "mountedChildren": [], + "mountedComponents": [], + "propertyOverrides": [ + { + "__id__": 5 + }, + { + "__id__": 7 + }, + { + "__id__": 8 + }, + { + "__id__": 9 + } + ], + "removedComponents": [] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_name" + ], + "value": "资源ICON" + }, + { + "__type__": "cc.TargetInfo", + "localID": [ + "02c3tqHwFAbp7zhkA22zq9" + ] + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lpos" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_lrot" + ], + "value": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + } + }, + { + "__type__": "CCPropertyOverrideInfo", + "targetInfo": { + "__id__": 6 + }, + "propertyPath": [ + "_euler" + ], + "value": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + } + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "60HDOce21EU4mT/teH3tKt" + }, + { + "__type__": "69b49TO9kRI6am69+bhlckt", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 13 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "268KVlguhFv5OIouxO8TjA" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "02c3tqHwFAbp7zhkA22zq9", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": [ + { + "__id__": 2 + } + ] + } +] \ No newline at end of file diff --git a/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon/玩家资源ICON.prefab.meta b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon/玩家资源ICON.prefab.meta new file mode 100644 index 00000000..bd839df9 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/icon/玩家资源ICON.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.49", + "importer": "prefab", + "imported": true, + "uuid": "1bc9536b-8271-482d-8330-5bd3ab212cab", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "玩家资源ICON" + } +} diff --git a/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/资源ICON.prefab b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/资源ICON.prefab new file mode 100644 index 00000000..4bec4170 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/资源ICON.prefab @@ -0,0 +1,739 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "资源ICON", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "资源ICON", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 8 + }, + { + "__id__": 22 + } + ], + "_active": true, + "_components": [ + { + "__id__": 30 + }, + { + "__id__": 32 + } + ], + "_prefab": { + "__id__": 34 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "背景", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + }, + { + "__id__": 5 + } + ], + "_prefab": { + "__id__": 7 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 4 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5dXmPodeBIzK9ZudCJ0lyM" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 6 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "20sb9VIT5KFIQeKj9xXgfd" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "5fFj0bKJZKHaJ1M3mytw3C", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "资源遮罩", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 9 + } + ], + "_active": true, + "_components": [ + { + "__id__": 15 + }, + { + "__id__": 17 + }, + { + "__id__": 19 + } + ], + "_prefab": { + "__id__": 21 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Sprite", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 8 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 10 + }, + { + "__id__": 12 + } + ], + "_prefab": { + "__id__": 14 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 9 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "25alLvKOtKF50Ax8vwjjXJ" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 9 + }, + "_enabled": true, + "__prefab": { + "__id__": 13 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": null, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "70nwIs5DNEdZlxo43eL/ak" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "0bJ3xFlaZFqIQTEe6gKXth", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 8 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "91h3J1Qo9NKp8P7pZ/ijRa" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 8 + }, + "_enabled": true, + "__prefab": { + "__id__": 18 + }, + "_type": 0, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "bay7jjytVJP6Fzx/k5RFdU" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 8 + }, + "_enabled": true, + "__prefab": { + "__id__": 20 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4fJHZYu41AYIvcwxfCrJ6o" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "fc1fm88XdG0IiJpjOWJQQH", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "数量", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 25 + }, + { + "__id__": 27 + } + ], + "_prefab": { + "__id__": 29 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -33.647, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 4, + "height": 54.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4c5h6T0flJt5JRab2+oYMO" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 20, + "_fontSize": 20, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "62+4SzXqFA8qi5LTvf4hNx" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "76GD7mt+pBzIkY1rSwIkaJ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "21MjGY6ndKiZ3M6O5l/pbL", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 31 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "60HDOce21EU4mT/teH3tKt" + }, + { + "__type__": "8f263w3T/9HHYCAD6ZfiOUn", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 33 + }, + "quality": { + "__id__": 5 + }, + "icon": { + "__id__": 12 + }, + "num": { + "__id__": 25 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "92PDN+paRDnawowS6zMYgn" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "02c3tqHwFAbp7zhkA22zq9", + "instance": null, + "targetOverrides": null + } +] \ No newline at end of file diff --git a/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/资源ICON.prefab.meta b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/资源ICON.prefab.meta new file mode 100644 index 00000000..2eae1167 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/常用预制体/资源/资源ICON.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.49", + "importer": "prefab", + "imported": true, + "uuid": "3cae9ed5-dfa7-4128-b332-3ea99d399121", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "资源ICON" + } +} diff --git a/JisolGameCocos/assets/resources/prefab/ui/资源.meta b/JisolGameCocos/assets/resources/prefab/ui/资源.meta new file mode 100644 index 00000000..2198fe11 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/资源.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "6b10b32e-d2ae-4689-8c0b-1d4d3981d52c", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/resources/prefab/ui/资源/资源背包页面.prefab b/JisolGameCocos/assets/resources/prefab/ui/资源/资源背包页面.prefab new file mode 100644 index 00000000..118a37bb --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/资源/资源背包页面.prefab @@ -0,0 +1,4159 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "资源背包页面", + "_objFlags": 0, + "__editorExtras__": {}, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false + }, + { + "__type__": "cc.Node", + "_name": "资源背包页面", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + } + ], + "_active": true, + "_components": [ + { + "__id__": 187 + }, + { + "__id__": 189 + }, + { + "__id__": 191 + } + ], + "_prefab": { + "__id__": 193 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "content", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + }, + { + "__id__": 47 + } + ], + "_active": true, + "_components": [ + { + "__id__": 180 + }, + { + "__id__": 182 + }, + { + "__id__": 184 + } + ], + "_prefab": { + "__id__": 186 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "资源列表", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 4 + }, + { + "__id__": 22 + } + ], + "_active": true, + "_components": [ + { + "__id__": 40 + }, + { + "__id__": 42 + }, + { + "__id__": 44 + }, + { + "__id__": 37 + } + ], + "_prefab": { + "__id__": 46 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 60, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "view", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 3 + }, + "_children": [ + { + "__id__": 5 + } + ], + "_active": true, + "_components": [ + { + "__id__": 13 + }, + { + "__id__": 15 + }, + { + "__id__": 17 + }, + { + "__id__": 19 + } + ], + "_prefab": { + "__id__": 21 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 340, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "content", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 4 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 6 + }, + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_prefab": { + "__id__": 12 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 600, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ac4F8xohJNQpAwWJSNQS4+" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "_resizeMode": 1, + "_layoutType": 3, + "_cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_startAxis": 0, + "_paddingLeft": 10, + "_paddingRight": 0, + "_paddingTop": 20, + "_paddingBottom": 20, + "_spacingX": 8, + "_spacingY": 8, + "_verticalDirection": 1, + "_horizontalDirection": 0, + "_constraint": 0, + "_constraintNum": 2, + "_affectedByScale": false, + "_isAlign": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "15iB5ZgiVJ3rMmerEROWX/" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": { + "__id__": 11 + }, + "_alignFlags": 40, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 220, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "155zACyTBAHY93+Q2Rdg5f" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "8bbk/jLqZBJbrcq3xLg4Qh", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 4 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 600, + "height": 680 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "22ggNHAe5DfKijpNjUtJKS" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 4 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "_type": 0, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "58REDJDF5HpJkbd8aAwpwi" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 4 + }, + "_enabled": true, + "__prefab": { + "__id__": 18 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cfkszut/hK+ISJyuyWkArv" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 4 + }, + "_enabled": true, + "__prefab": { + "__id__": 20 + }, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 240, + "_originalHeight": 250, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "73ggNr5R1EaYadLEcax7lR" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "1e+yoAUFFBNrbwSecVoFnS", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "scrollBar", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 3 + }, + "_children": [ + { + "__id__": 23 + } + ], + "_active": true, + "_components": [ + { + "__id__": 29 + }, + { + "__id__": 31 + }, + { + "__id__": 33 + }, + { + "__id__": 35 + } + ], + "_prefab": { + "__id__": 39 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 300, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "bar", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 22 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 24 + }, + { + "__id__": 26 + } + ], + "_prefab": { + "__id__": 28 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -11, + "y": -31.25, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 23 + }, + "_enabled": true, + "__prefab": { + "__id__": 25 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 10, + "height": 156.25 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "08pnZ3aLVMgLdVmMu9UZSS" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 23 + }, + "_enabled": true, + "__prefab": { + "__id__": 27 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_spriteFrame": { + "__uuid__": "afc47931-f066-46b0-90be-9fe61f213428@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1ee+diLodFn59SygbEg6ex" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "0foL6ggxdOkqkREcVIkyQz", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 30 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 12, + "height": 680 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 1, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "88KGjwlyxGZquqSx38bMZY" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_spriteFrame": { + "__uuid__": "ffb88a8f-af62-48f4-8f1d-3cb606443a43@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8bLLZ5tf9Hb43afDycNIzv" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 34 + }, + "_alignFlags": 37, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 0, + "_originalHeight": 250, + "_alignMode": 1, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1996WzJP5IEIGZHd/WFio0" + }, + { + "__type__": "cc.ScrollBar", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 22 + }, + "_enabled": true, + "__prefab": { + "__id__": 36 + }, + "_scrollView": { + "__id__": 37 + }, + "_handle": { + "__id__": 26 + }, + "_direction": 1, + "_enableAutoHide": true, + "_autoHideTime": 1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "12gveOv/VKiJWulXyDJT/n" + }, + { + "__type__": "563f2c1JcVKmrpHhC0vl3PI", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 38 + }, + "bounceDuration": 0.23, + "brake": 0.75, + "elastic": true, + "inertia": true, + "horizontal": false, + "vertical": true, + "cancelInnerEvents": true, + "scrollEvents": [], + "_content": { + "__id__": 5 + }, + "_horizontalScrollBar": null, + "_verticalScrollBar": { + "__id__": 35 + }, + "itemPrefab": { + "__uuid__": "fb89fccc-c24a-4c03-913d-fe23d9d8d5ae", + "__expectedType__": "cc.Prefab" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c5gay+y61Aj4I5rXOYhPUJ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "94CcQ95RRGd4sf801fddL/", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 41 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 600, + "height": 680 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d9LKrfkbtLkq10PdIedJWk" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 43 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "b730527c-3233-41c2-aaf7-7cdab58f9749@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8bxZQN17pG5bVJ3ohaB/83" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 45 + }, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 120, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 240, + "_originalHeight": 250, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "bbvByW+CNPo6Gj4IxQCy3k" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "cfGK4kItlBULjXlhHYLdp6", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "底部标签", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 2 + }, + "_children": [ + { + "__id__": 48 + }, + { + "__id__": 73 + }, + { + "__id__": 98 + }, + { + "__id__": 123 + }, + { + "__id__": 148 + } + ], + "_active": true, + "_components": [ + { + "__id__": 173 + }, + { + "__id__": 175 + }, + { + "__id__": 177 + } + ], + "_prefab": { + "__id__": 179 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -340, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "底部标签1", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [ + { + "__id__": 49 + }, + { + "__id__": 55 + } + ], + "_active": true, + "_components": [ + { + "__id__": 63 + }, + { + "__id__": 65 + }, + { + "__id__": 67 + }, + { + "__id__": 69 + } + ], + "_prefab": { + "__id__": 72 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -230, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "背景", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 48 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 50 + }, + { + "__id__": 52 + } + ], + "_prefab": { + "__id__": 54 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 49 + }, + "_enabled": true, + "__prefab": { + "__id__": 51 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "83g6YkH+tNBKpppG1oHnh5" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 49 + }, + "_enabled": true, + "__prefab": { + "__id__": 53 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 182, + "g": 182, + "b": 182, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "75++eBdwJJFpMVHNg9fgOF" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "40tXW3+G5HGYTga0dnYfGO", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "文本", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 48 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 56 + }, + { + "__id__": 58 + }, + { + "__id__": 60 + } + ], + "_prefab": { + "__id__": 62 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 55 + }, + "_enabled": true, + "__prefab": { + "__id__": 57 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 56.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "dd46gJj+lORqmi/cwDC77+" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 55 + }, + "_enabled": true, + "__prefab": { + "__id__": 59 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "全部", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 24, + "_fontSize": 24, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4frygGGo1P3qaR+CmFPGJN" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 55 + }, + "_enabled": true, + "__prefab": { + "__id__": 61 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "baDmQHtPROj4cqkDjzAoVi" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "27HElcKBhPK5vKxHf71nUP", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 48 + }, + "_enabled": true, + "__prefab": { + "__id__": 64 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c5/bttn+NBermtGtfv3XjG" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 48 + }, + "_enabled": true, + "__prefab": { + "__id__": 66 + }, + "_type": 1, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "08Ka9kdTxKdbJEsN2UM+31" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 48 + }, + "_enabled": true, + "__prefab": { + "__id__": 68 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cb1jHgO0hD6724BPCwczT4" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 48 + }, + "_enabled": true, + "__prefab": { + "__id__": 70 + }, + "clickEvents": [ + { + "__id__": 71 + } + ], + "_interactable": true, + "_transition": 3, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8xuhZiCJLMJAMsL6qyqtI" + }, + { + "__type__": "cc.ClickEvent", + "target": null, + "component": "", + "_componentId": "b51bfKvsidNPKBbFirAFgQI", + "handler": "onClickDungeon", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7dRn3G1vlPxa4EIhzpKl9S", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "底部标签2", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [ + { + "__id__": 74 + }, + { + "__id__": 80 + } + ], + "_active": true, + "_components": [ + { + "__id__": 88 + }, + { + "__id__": 90 + }, + { + "__id__": 92 + }, + { + "__id__": 94 + } + ], + "_prefab": { + "__id__": 97 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -115, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "背景", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 73 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 75 + }, + { + "__id__": 77 + } + ], + "_prefab": { + "__id__": 79 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 74 + }, + "_enabled": true, + "__prefab": { + "__id__": 76 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f8QfElSstIoopgF566a8fj" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 74 + }, + "_enabled": true, + "__prefab": { + "__id__": 78 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 182, + "g": 182, + "b": 182, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5cS5vEgaxPU6VmmirLpfQK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "b22DIWm+xAhbpfo/x0MNI7", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "文本", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 73 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 81 + }, + { + "__id__": 83 + }, + { + "__id__": 85 + } + ], + "_prefab": { + "__id__": 87 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 80 + }, + "_enabled": true, + "__prefab": { + "__id__": 82 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 56.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d4KT52HWlIQ40B1rEhI7be" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 80 + }, + "_enabled": true, + "__prefab": { + "__id__": 84 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "全部", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 24, + "_fontSize": 24, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0aLI/G3mZEIq//6fHXEGFV" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 80 + }, + "_enabled": true, + "__prefab": { + "__id__": 86 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d9+3GXdeRB9puilXh4Bk3E" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a6uBoNgb1Ek4oAHfvR5oI+", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 89 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "52JY3as91MR7l3GDpuar/V" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 91 + }, + "_type": 1, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7996YMbddOSpxh1z8s8dPe" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 93 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "5aG5jaMvxAqLonL1Szu162" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 73 + }, + "_enabled": true, + "__prefab": { + "__id__": 95 + }, + "clickEvents": [ + { + "__id__": 96 + } + ], + "_interactable": true, + "_transition": 3, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "59JcadUQVIsbSgA2z4TqX8" + }, + { + "__type__": "cc.ClickEvent", + "target": null, + "component": "", + "_componentId": "b51bfKvsidNPKBbFirAFgQI", + "handler": "onClickDungeon", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f3Tm57nptCqb5yUpKYqTd/", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "底部标签3", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [ + { + "__id__": 99 + }, + { + "__id__": 105 + } + ], + "_active": true, + "_components": [ + { + "__id__": 113 + }, + { + "__id__": 115 + }, + { + "__id__": 117 + }, + { + "__id__": 119 + } + ], + "_prefab": { + "__id__": 122 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "背景", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 98 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 100 + }, + { + "__id__": 102 + } + ], + "_prefab": { + "__id__": 104 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 99 + }, + "_enabled": true, + "__prefab": { + "__id__": 101 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "88l30Lkh9Es6APbmnth1OP" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 99 + }, + "_enabled": true, + "__prefab": { + "__id__": 103 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 182, + "g": 182, + "b": 182, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cf8/s5DqtNwIUnN1qXajf0" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "84nUjDQYlNm7XM8TNb1Iln", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "文本", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 98 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 106 + }, + { + "__id__": 108 + }, + { + "__id__": 110 + } + ], + "_prefab": { + "__id__": 112 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 105 + }, + "_enabled": true, + "__prefab": { + "__id__": 107 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 56.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e62KHFYKJIUIfcaERUMs0S" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 105 + }, + "_enabled": true, + "__prefab": { + "__id__": 109 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "全部", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 24, + "_fontSize": 24, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a5S4h0Un1NOLC+J6HbIYgO" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 105 + }, + "_enabled": true, + "__prefab": { + "__id__": 111 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "47WWGmK4tMOZ3IJ+KjNyrY" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "64Z6Z3ZupFnKef1DIvXsxy", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 98 + }, + "_enabled": true, + "__prefab": { + "__id__": 114 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "7atqdduWdHmpDcP7VYyKgO" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 98 + }, + "_enabled": true, + "__prefab": { + "__id__": 116 + }, + "_type": 1, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f0kYy9mT9NqKbmhkS0IpsV" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 98 + }, + "_enabled": true, + "__prefab": { + "__id__": 118 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "70IQSpyLBM/Zkqpzxf7kY2" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 98 + }, + "_enabled": true, + "__prefab": { + "__id__": 120 + }, + "clickEvents": [ + { + "__id__": 121 + } + ], + "_interactable": true, + "_transition": 3, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "31U7KHiLZEN47d4+vA1ijw" + }, + { + "__type__": "cc.ClickEvent", + "target": null, + "component": "", + "_componentId": "b51bfKvsidNPKBbFirAFgQI", + "handler": "onClickDungeon", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "a4b0gyPv5Ky4Q0NAV5MUrO", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "底部标签4", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [ + { + "__id__": 124 + }, + { + "__id__": 130 + } + ], + "_active": true, + "_components": [ + { + "__id__": 138 + }, + { + "__id__": 140 + }, + { + "__id__": 142 + }, + { + "__id__": 144 + } + ], + "_prefab": { + "__id__": 147 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 115, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "背景", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 123 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 125 + }, + { + "__id__": 127 + } + ], + "_prefab": { + "__id__": 129 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 124 + }, + "_enabled": true, + "__prefab": { + "__id__": 126 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "366RKlWu5GPLUruq0eaLY/" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 124 + }, + "_enabled": true, + "__prefab": { + "__id__": 128 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 182, + "g": 182, + "b": 182, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b3kvW6lIJILpK5LZGOnQ43" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "63pHYZxTNHz5Gua0sLGdYU", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "文本", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 123 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 131 + }, + { + "__id__": 133 + }, + { + "__id__": 135 + } + ], + "_prefab": { + "__id__": 137 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 130 + }, + "_enabled": true, + "__prefab": { + "__id__": 132 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 56.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "74O0cV2QFG3oj78p9eqr6O" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 130 + }, + "_enabled": true, + "__prefab": { + "__id__": 134 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "全部", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 24, + "_fontSize": 24, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "fcKyGe0qVMFovlAt61cyEV" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 130 + }, + "_enabled": true, + "__prefab": { + "__id__": 136 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e3DBqeExlAarW5dUYiDIdy" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "48vDtuX2RB/I8vO9pq8IOJ", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 123 + }, + "_enabled": true, + "__prefab": { + "__id__": 139 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6NxyU2l1L7YrLPwxdRjGv" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 123 + }, + "_enabled": true, + "__prefab": { + "__id__": 141 + }, + "_type": 1, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0a6FL964BFTYFPxEaF7tUd" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 123 + }, + "_enabled": true, + "__prefab": { + "__id__": 143 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "48d/nvyf1NHoE5/7IkjKZS" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 123 + }, + "_enabled": true, + "__prefab": { + "__id__": 145 + }, + "clickEvents": [ + { + "__id__": 146 + } + ], + "_interactable": true, + "_transition": 3, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "acI9nXQfVJ56xeRBJOyGuV" + }, + { + "__type__": "cc.ClickEvent", + "target": null, + "component": "", + "_componentId": "b51bfKvsidNPKBbFirAFgQI", + "handler": "onClickDungeon", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "44wm44xpFJOIAWR0pyHiI+", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "底部标签5", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 47 + }, + "_children": [ + { + "__id__": 149 + }, + { + "__id__": 155 + } + ], + "_active": true, + "_components": [ + { + "__id__": 163 + }, + { + "__id__": 165 + }, + { + "__id__": 167 + }, + { + "__id__": 169 + } + ], + "_prefab": { + "__id__": 172 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 230, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "背景", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 148 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 150 + }, + { + "__id__": 152 + } + ], + "_prefab": { + "__id__": 154 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 149 + }, + "_enabled": true, + "__prefab": { + "__id__": 151 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2ba+zLK8lAhLzERyNPIVAJ" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 149 + }, + "_enabled": true, + "__prefab": { + "__id__": 153 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 182, + "g": 182, + "b": 182, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d2g1uBF2dJa7b+Twn/7i6w" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "63X/Ho5Y5MHJaXOfhxeU9c", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "文本", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 148 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 156 + }, + { + "__id__": 158 + }, + { + "__id__": 160 + } + ], + "_prefab": { + "__id__": 162 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_mobility": 0, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 155 + }, + "_enabled": true, + "__prefab": { + "__id__": 157 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 54, + "height": 56.4 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "58Tqs5pX9PRJIJUl5qyO5e" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 155 + }, + "_enabled": true, + "__prefab": { + "__id__": 159 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_string": "全部", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 24, + "_fontSize": 24, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": true, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c7VHAZ7FJPDKy8xwEISFxw" + }, + { + "__type__": "cc.LabelOutline", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 155 + }, + "_enabled": true, + "__prefab": { + "__id__": 161 + }, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_width": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "56+x4yxsdFxoXA8vja6Dy+" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f94SxrYyxI3rpEYh8nw90o", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 148 + }, + "_enabled": true, + "__prefab": { + "__id__": 164 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 100, + "height": 100 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "63tzrDl+JJbrH7dsYaO4FM" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 148 + }, + "_enabled": true, + "__prefab": { + "__id__": 166 + }, + "_type": 1, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0aWTc/MTNNy5aUCkxHnb3y" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 148 + }, + "_enabled": true, + "__prefab": { + "__id__": 168 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4b/BgLNqtPHaBr6kXNTCjK" + }, + { + "__type__": "cc.Button", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 148 + }, + "_enabled": true, + "__prefab": { + "__id__": 170 + }, + "clickEvents": [ + { + "__id__": 171 + } + ], + "_interactable": true, + "_transition": 3, + "_normalColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_hoverColor": { + "__type__": "cc.Color", + "r": 211, + "g": 211, + "b": 211, + "a": 255 + }, + "_pressedColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_disabledColor": { + "__type__": "cc.Color", + "r": 124, + "g": 124, + "b": 124, + "a": 255 + }, + "_normalSprite": null, + "_hoverSprite": null, + "_pressedSprite": null, + "_disabledSprite": null, + "_duration": 0.1, + "_zoomScale": 1.2, + "_target": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6dmH/LYnZFP47CfY8rdyce" + }, + { + "__type__": "cc.ClickEvent", + "target": null, + "component": "", + "_componentId": "b51bfKvsidNPKBbFirAFgQI", + "handler": "onClickDungeon", + "customEventData": "" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d1FnQ77qBPl5tPWbNTYF0I", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 47 + }, + "_enabled": true, + "__prefab": { + "__id__": 174 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 560, + "height": 120 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ddrGhUldlAA6c6tN3qOY+S" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 47 + }, + "_enabled": true, + "__prefab": { + "__id__": 176 + }, + "_alignFlags": 44, + "_target": null, + "_left": 20, + "_right": 20, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e6TXGkCEtK3bBezuEtNAJv" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 47 + }, + "_enabled": true, + "__prefab": { + "__id__": 178 + }, + "_resizeMode": 1, + "_layoutType": 1, + "_cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_startAxis": 0, + "_paddingLeft": 0, + "_paddingRight": 0, + "_paddingTop": 0, + "_paddingBottom": 0, + "_spacingX": 15, + "_spacingY": 0, + "_verticalDirection": 1, + "_horizontalDirection": 0, + "_constraint": 0, + "_constraintNum": 2, + "_affectedByScale": false, + "_isAlign": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a1o+gJ7YVGMrOhn0ec5QpK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "edr3xPn7tHD62twI7ZdDE8", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 181 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 600, + "height": 800 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13ov9yBmlJ1qtJlZGH3eRG" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 183 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 0, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "664iSL/SBE9psYRMeSLUPj" + }, + { + "__type__": "cc.BlockInputEvents", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 185 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "46IC2D9/5Mv6OfgNG0uc63" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f5F0XQeN1PbJNvOrjuwjQ3", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 188 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 720, + "height": 1280 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1dgJxmIH5HIpXD6y0/xMwI" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 190 + }, + "_alignFlags": 45, + "_target": null, + "_left": 0, + "_right": 0, + "_top": 0, + "_bottom": 0, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "582zBz6m5DKqmkTkiS/LE0" + }, + { + "__type__": "e2953LRtVZAkYSKcTf9U73P", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 192 + }, + "mask": true, + "maskOpcity": 80, + "isClickMaskeClose": true, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ddn3XWfBJJb5i2JutRK7Ty" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "08xLpDDa9NlK3pgR7XiOqb", + "instance": null, + "targetOverrides": [] + } +] \ No newline at end of file diff --git a/JisolGameCocos/assets/resources/prefab/ui/资源/资源背包页面.prefab.meta b/JisolGameCocos/assets/resources/prefab/ui/资源/资源背包页面.prefab.meta new file mode 100644 index 00000000..28882f89 --- /dev/null +++ b/JisolGameCocos/assets/resources/prefab/ui/资源/资源背包页面.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.49", + "importer": "prefab", + "imported": true, + "uuid": "c14c6748-8114-41f9-9422-e1327884b2d6", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "资源背包页面" + } +} diff --git a/JisolGameCocos/assets/script/config/data/schema.ts b/JisolGameCocos/assets/script/config/data/schema.ts index a9772e31..aa3c7287 100644 --- a/JisolGameCocos/assets/script/config/data/schema.ts +++ b/JisolGameCocos/assets/script/config/data/schema.ts @@ -288,18 +288,26 @@ export class TbGResource { constructor(_json_: any) { if (_json_.id === undefined) { throw new Error() } this.id = _json_.id + if (_json_.icon === undefined) { throw new Error() } + this.icon = _json_.icon if (_json_.name === undefined) { throw new Error() } this.name = _json_.name if (_json_.tig === undefined) { throw new Error() } this.tig = _json_.tig if (_json_.args === undefined) { throw new Error() } this.args = _json_.args + if (_json_.quality === undefined) { throw new Error() } + this.quality = _json_.quality } /** * id */ readonly id: number + /** + * 资源图片 + */ + readonly icon: string /** * 资源名称 */ @@ -312,6 +320,10 @@ export class TbGResource { * 额外参数 */ readonly args: string + /** + * 资源品质 + */ + readonly quality: number resolve(tables:Tables) { diff --git a/JisolGameCocos/assets/script/consts/API.ts b/JisolGameCocos/assets/script/consts/API.ts index 8c14ee7b..84257c5e 100644 --- a/JisolGameCocos/assets/script/consts/API.ts +++ b/JisolGameCocos/assets/script/consts/API.ts @@ -91,7 +91,7 @@ export interface ResourceOV{ playerId:number; //玩家Id resourceTbId:number; //资源配置表Id resourceValue:number; //资源数量 - version:number; //版本号 + version:number; //版本号 } export interface ModeOnHookRankingOV{ diff --git a/JisolGameCocos/assets/script/data/ResourceData.ts b/JisolGameCocos/assets/script/data/ResourceData.ts index d40616a4..2cb72fb9 100644 --- a/JisolGameCocos/assets/script/data/ResourceData.ts +++ b/JisolGameCocos/assets/script/data/ResourceData.ts @@ -23,6 +23,8 @@ export enum ResourceUpdateType{ ADD = 2, //添加资源数量 } +//资源信息 + //玩家资源数据 export default class ResourceData extends BaseData{ diff --git a/JisolGameCocos/assets/script/tools/TbResource.ts b/JisolGameCocos/assets/script/tools/TbResource.ts index d455041b..8794d887 100644 --- a/JisolGameCocos/assets/script/tools/TbResource.ts +++ b/JisolGameCocos/assets/script/tools/TbResource.ts @@ -5,6 +5,7 @@ import { Component } from "cc"; export enum IconTypeEnum{ 品质 = "品质", 宠物装备 = "宠物装备", + 资源 = "资源", } export default class TbResource { diff --git a/JisolGameCocos/assets/script/ui/Consts/Resource/ResourceIcon.ts b/JisolGameCocos/assets/script/ui/Consts/Resource/ResourceIcon.ts new file mode 100644 index 00000000..503ee4d7 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Consts/Resource/ResourceIcon.ts @@ -0,0 +1,43 @@ +import { Label } from 'cc'; +import { Sprite } from 'cc'; +import { _decorator, Component, Node } from 'cc'; +import { TD } from '../../../App'; +import TbResource, { IconTypeEnum } from '../../../tools/TbResource'; +const { ccclass, property } = _decorator; + +@ccclass('ResourceIcon') +export class ResourceIcon extends Component { + + //资源品质 + @property(Sprite) + quality:Sprite; + + //资源图标 + @property(Sprite) + icon:Sprite; + + //资源数量 + @property(Label) + num:Label; + + //设置icon + set(id:number,value:number){ + + let config = TD.TbGResource.get(id); + + //设置ICON + TbResource.loadSpriteIcon(IconTypeEnum.资源,config.icon,this.icon,this); + //设置品质 + TbResource.loadSpriteIcon(IconTypeEnum.品质,config.quality,this.quality,this); + + this.num.string = ``; + if(value > 1){ + //显示数量 + this.num.string = `${value}`; + } + + } + +} + + diff --git a/JisolGameCocos/assets/script/ui/Consts/Resource/ResourceIcon.ts.meta b/JisolGameCocos/assets/script/ui/Consts/Resource/ResourceIcon.ts.meta new file mode 100644 index 00000000..99831a36 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Consts/Resource/ResourceIcon.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "8f263c37-4fff-471d-8080-0fa65f88e527", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/script/ui/Consts/Resource/icon.meta b/JisolGameCocos/assets/script/ui/Consts/Resource/icon.meta new file mode 100644 index 00000000..1d303b5b --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Consts/Resource/icon.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "c2a043f8-f6d7-41a1-a090-6c52eb12fce8", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/script/ui/Consts/Resource/icon/PlayerResourceIcon.ts b/JisolGameCocos/assets/script/ui/Consts/Resource/icon/PlayerResourceIcon.ts new file mode 100644 index 00000000..92538fc8 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Consts/Resource/icon/PlayerResourceIcon.ts @@ -0,0 +1,18 @@ +import { _decorator, Component, Node } from 'cc'; +import { ResourceIcon } from '../ResourceIcon'; +const { ccclass, property } = _decorator; + +@ccclass('PlayerResourceIcon') +export class PlayerResourceIcon extends Component { + + @property(ResourceIcon) + icon:ResourceIcon; + + //设置 ( 资源Id ) + set(id:number){ + + } + +} + + diff --git a/JisolGameCocos/assets/script/ui/Consts/Resource/icon/PlayerResourceIcon.ts.meta b/JisolGameCocos/assets/script/ui/Consts/Resource/icon/PlayerResourceIcon.ts.meta new file mode 100644 index 00000000..b311f618 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Consts/Resource/icon/PlayerResourceIcon.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "69b494ce-f644-48e9-a9ba-f7e6e195c92d", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/script/ui/Resource.meta b/JisolGameCocos/assets/script/ui/Resource.meta new file mode 100644 index 00000000..7c7b05ee --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Resource.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "20b32230-d874-412e-a657-bce1296e932f", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/script/ui/Resource/PacksackView.ts b/JisolGameCocos/assets/script/ui/Resource/PacksackView.ts new file mode 100644 index 00000000..a772b4d4 --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Resource/PacksackView.ts @@ -0,0 +1,20 @@ +import { _decorator, Component, Node } from 'cc'; +import JNLayerBase from '../../../../extensions/ngame/assets/ngame/ui/base/JNLayerBase'; +const { ccclass, property } = _decorator; + +//背包页面 +@ccclass('PacksackView') +export class PacksackView extends JNLayerBase { + + onJNLoad(data?: any): void { + super.onJNLoad(data) + } + + //更新页面 + onUpdateView(){ + + } + +} + + diff --git a/JisolGameCocos/assets/script/ui/Resource/PacksackView.ts.meta b/JisolGameCocos/assets/script/ui/Resource/PacksackView.ts.meta new file mode 100644 index 00000000..95a3c53d --- /dev/null +++ b/JisolGameCocos/assets/script/ui/Resource/PacksackView.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "e29532d1-b556-4091-848a-7137fd53bdcf", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源.meta b/JisolGameCocos/assets/tbresource/icon/资源.meta new file mode 100644 index 00000000..7cebfdb7 --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源.meta @@ -0,0 +1,9 @@ +{ + "ver": "1.2.0", + "importer": "directory", + "imported": true, + "uuid": "31f06088-630f-456d-93e9-46eed123164a", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90001.png b/JisolGameCocos/assets/tbresource/icon/资源/90001.png new file mode 100644 index 00000000..71ce105c Binary files /dev/null and b/JisolGameCocos/assets/tbresource/icon/资源/90001.png differ diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90001.png.meta b/JisolGameCocos/assets/tbresource/icon/资源/90001.png.meta new file mode 100644 index 00000000..481822e7 --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源/90001.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "261e6570-4ad5-4c99-a789-ba78f96b27ed", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "261e6570-4ad5-4c99-a789-ba78f96b27ed@6c48a", + "displayName": "90001", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "261e6570-4ad5-4c99-a789-ba78f96b27ed", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "261e6570-4ad5-4c99-a789-ba78f96b27ed@f9941", + "displayName": "90001", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": -1, + "offsetY": -2, + "trimX": 12, + "trimY": 31, + "width": 102, + "height": 70, + "rawWidth": 128, + "rawHeight": 128, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -51, + -35, + 0, + 51, + -35, + 0, + -51, + 35, + 0, + 51, + 35, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 12, + 97, + 114, + 97, + 12, + 27, + 114, + 27 + ], + "nuv": [ + 0.09375, + 0.2109375, + 0.890625, + 0.2109375, + 0.09375, + 0.7578125, + 0.890625, + 0.7578125 + ], + "minPos": [ + -51, + -35, + 0 + ], + "maxPos": [ + 51, + 35, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "261e6570-4ad5-4c99-a789-ba78f96b27ed@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "261e6570-4ad5-4c99-a789-ba78f96b27ed@f9941" + } +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90002.png b/JisolGameCocos/assets/tbresource/icon/资源/90002.png new file mode 100644 index 00000000..d3686ed2 Binary files /dev/null and b/JisolGameCocos/assets/tbresource/icon/资源/90002.png differ diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90002.png.meta b/JisolGameCocos/assets/tbresource/icon/资源/90002.png.meta new file mode 100644 index 00000000..bc95231b --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源/90002.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "5d4b4f78-06a0-42a3-98db-3fefb696416a", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "5d4b4f78-06a0-42a3-98db-3fefb696416a@6c48a", + "displayName": "90002", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "5d4b4f78-06a0-42a3-98db-3fefb696416a", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "5d4b4f78-06a0-42a3-98db-3fefb696416a@f9941", + "displayName": "90002", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 128, + "height": 128, + "rawWidth": 128, + "rawHeight": 128, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -64, + -64, + 0, + 64, + -64, + 0, + -64, + 64, + 0, + 64, + 64, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 128, + 128, + 128, + 0, + 0, + 128, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -64, + -64, + 0 + ], + "maxPos": [ + 64, + 64, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "5d4b4f78-06a0-42a3-98db-3fefb696416a@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "5d4b4f78-06a0-42a3-98db-3fefb696416a@f9941" + } +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90003.png b/JisolGameCocos/assets/tbresource/icon/资源/90003.png new file mode 100644 index 00000000..9a62d863 Binary files /dev/null and b/JisolGameCocos/assets/tbresource/icon/资源/90003.png differ diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90003.png.meta b/JisolGameCocos/assets/tbresource/icon/资源/90003.png.meta new file mode 100644 index 00000000..d640abb7 --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源/90003.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "35920b88-3d9c-4639-be2b-6b33a61a5643", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "35920b88-3d9c-4639-be2b-6b33a61a5643@6c48a", + "displayName": "90003", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "35920b88-3d9c-4639-be2b-6b33a61a5643", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "35920b88-3d9c-4639-be2b-6b33a61a5643@f9941", + "displayName": "90003", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 6, + "offsetY": -1, + "trimX": 24, + "trimY": 19, + "width": 464, + "height": 464, + "rawWidth": 500, + "rawHeight": 500, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -232, + -232, + 0, + 232, + -232, + 0, + -232, + 232, + 0, + 232, + 232, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 24, + 481, + 488, + 481, + 24, + 17, + 488, + 17 + ], + "nuv": [ + 0.048, + 0.034, + 0.976, + 0.034, + 0.048, + 0.962, + 0.976, + 0.962 + ], + "minPos": [ + -232, + -232, + 0 + ], + "maxPos": [ + 232, + 232, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "35920b88-3d9c-4639-be2b-6b33a61a5643@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "35920b88-3d9c-4639-be2b-6b33a61a5643@f9941" + } +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90004.png b/JisolGameCocos/assets/tbresource/icon/资源/90004.png new file mode 100644 index 00000000..e2f8728e Binary files /dev/null and b/JisolGameCocos/assets/tbresource/icon/资源/90004.png differ diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90004.png.meta b/JisolGameCocos/assets/tbresource/icon/资源/90004.png.meta new file mode 100644 index 00000000..6c03ff67 --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源/90004.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "daec5462-a349-4bc1-8cf8-f0f119e50b5d", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "daec5462-a349-4bc1-8cf8-f0f119e50b5d@6c48a", + "displayName": "90004", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "daec5462-a349-4bc1-8cf8-f0f119e50b5d", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "daec5462-a349-4bc1-8cf8-f0f119e50b5d@f9941", + "displayName": "90004", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": -4, + "offsetY": -0.5, + "trimX": 16, + "trimY": 13, + "width": 80, + "height": 95, + "rawWidth": 120, + "rawHeight": 120, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -40, + -47.5, + 0, + 40, + -47.5, + 0, + -40, + 47.5, + 0, + 40, + 47.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 16, + 107, + 96, + 107, + 16, + 12, + 96, + 12 + ], + "nuv": [ + 0.13333333333333333, + 0.1, + 0.8, + 0.1, + 0.13333333333333333, + 0.8916666666666667, + 0.8, + 0.8916666666666667 + ], + "minPos": [ + -40, + -47.5, + 0 + ], + "maxPos": [ + 40, + 47.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "daec5462-a349-4bc1-8cf8-f0f119e50b5d@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "daec5462-a349-4bc1-8cf8-f0f119e50b5d@f9941" + } +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90005.png b/JisolGameCocos/assets/tbresource/icon/资源/90005.png new file mode 100644 index 00000000..e30b9952 Binary files /dev/null and b/JisolGameCocos/assets/tbresource/icon/资源/90005.png differ diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90005.png.meta b/JisolGameCocos/assets/tbresource/icon/资源/90005.png.meta new file mode 100644 index 00000000..48f71729 --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源/90005.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "2b95fcd0-80da-4829-8e3b-83b7af96a89f", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "2b95fcd0-80da-4829-8e3b-83b7af96a89f@6c48a", + "displayName": "90005", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "2b95fcd0-80da-4829-8e3b-83b7af96a89f", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "2b95fcd0-80da-4829-8e3b-83b7af96a89f@f9941", + "displayName": "90005", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 1, + "offsetY": -2.5, + "trimX": 14, + "trimY": 6, + "width": 102, + "height": 121, + "rawWidth": 128, + "rawHeight": 128, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -51, + -60.5, + 0, + 51, + -60.5, + 0, + -51, + 60.5, + 0, + 51, + 60.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 14, + 122, + 116, + 122, + 14, + 1, + 116, + 1 + ], + "nuv": [ + 0.109375, + 0.0078125, + 0.90625, + 0.0078125, + 0.109375, + 0.953125, + 0.90625, + 0.953125 + ], + "minPos": [ + -51, + -60.5, + 0 + ], + "maxPos": [ + 51, + 60.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "2b95fcd0-80da-4829-8e3b-83b7af96a89f@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "2b95fcd0-80da-4829-8e3b-83b7af96a89f@f9941" + } +} diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90006.png b/JisolGameCocos/assets/tbresource/icon/资源/90006.png new file mode 100644 index 00000000..08e1d24d Binary files /dev/null and b/JisolGameCocos/assets/tbresource/icon/资源/90006.png differ diff --git a/JisolGameCocos/assets/tbresource/icon/资源/90006.png.meta b/JisolGameCocos/assets/tbresource/icon/资源/90006.png.meta new file mode 100644 index 00000000..4dbe0de3 --- /dev/null +++ b/JisolGameCocos/assets/tbresource/icon/资源/90006.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.26", + "importer": "image", + "imported": true, + "uuid": "9bf9b03c-e983-434f-8d6a-ab04df85ea55", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "9bf9b03c-e983-434f-8d6a-ab04df85ea55@6c48a", + "displayName": "90006", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "imageUuidOrDatabaseUri": "9bf9b03c-e983-434f-8d6a-ab04df85ea55", + "isUuid": true, + "visible": false, + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "9bf9b03c-e983-434f-8d6a-ab04df85ea55@f9941", + "displayName": "90006", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 3, + "trimX": 12, + "trimY": 3, + "width": 104, + "height": 116, + "rawWidth": 128, + "rawHeight": 128, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -52, + -58, + 0, + 52, + -58, + 0, + -52, + 58, + 0, + 52, + 58, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 12, + 125, + 116, + 125, + 12, + 9, + 116, + 9 + ], + "nuv": [ + 0.09375, + 0.0703125, + 0.90625, + 0.0703125, + 0.09375, + 0.9765625, + 0.90625, + 0.9765625 + ], + "minPos": [ + -52, + -58, + 0 + ], + "maxPos": [ + 52, + 58, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "9bf9b03c-e983-434f-8d6a-ab04df85ea55@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.12", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "hasAlpha": true, + "fixAlphaTransparencyArtifacts": false, + "redirect": "9bf9b03c-e983-434f-8d6a-ab04df85ea55@f9941" + } +} diff --git a/JisolGameServer/Main/src/main/java/cfg/TB/TbGResource.java b/JisolGameServer/Main/src/main/java/cfg/TB/TbGResource.java index 9ee5cf0f..d83a5ada 100644 --- a/JisolGameServer/Main/src/main/java/cfg/TB/TbGResource.java +++ b/JisolGameServer/Main/src/main/java/cfg/TB/TbGResource.java @@ -17,9 +17,11 @@ import com.google.gson.JsonObject; public final class TbGResource extends AbstractBean { public TbGResource(JsonObject _buf) { id = _buf.get("id").getAsInt(); + icon = _buf.get("icon").getAsString(); name = _buf.get("name").getAsString(); tig = _buf.get("tig").getAsString(); args = _buf.get("args").getAsString(); + quality = _buf.get("quality").getAsInt(); } public static TbGResource deserialize(JsonObject _buf) { @@ -30,6 +32,10 @@ public final class TbGResource extends AbstractBean { * id */ public final int id; + /** + * 资源图片 + */ + public final String icon; /** * 资源名称 */ @@ -42,6 +48,10 @@ public final class TbGResource extends AbstractBean { * 额外参数 */ public final String args; + /** + * 资源品质 + */ + public final int quality; public static final int __ID__ = 1780642599; @@ -52,9 +62,11 @@ public final class TbGResource extends AbstractBean { public String toString() { return "{ " + "(format_field_name __code_style field.name):" + id + "," + + "(format_field_name __code_style field.name):" + icon + "," + "(format_field_name __code_style field.name):" + name + "," + "(format_field_name __code_style field.name):" + tig + "," + "(format_field_name __code_style field.name):" + args + "," + + "(format_field_name __code_style field.name):" + quality + "," + "}"; } } diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/controller/game/mode/GDungeonController.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/controller/game/mode/GDungeonController.java new file mode 100644 index 00000000..5407574a --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/controller/game/mode/GDungeonController.java @@ -0,0 +1,117 @@ +package cn.jisol.game.controller.game.mode; + +import cfg.TB.TbGSysDungeon; +import cfg.TbGEntity.TDungeon; +import cn.jisol.game.controller.argsresolver.CurrentPlayer; +import cn.jisol.game.data.TD; +import cn.jisol.game.entity.mode.ModeDungeonType; +import cn.jisol.game.entity.table.Dungeon; +import cn.jisol.game.entity.table.Player; +import cn.jisol.game.service.DungeonService; +import cn.jisol.game.service.ResourceService; +import cn.jisol.game.table.TableUtil; +import cn.jisol.game.vo.news.NewsResource; +import cn.jisol.game.vo.news.ov.ResourceUpdateOV; +import cn.jisol.ngame.util.NewsContext; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.retry.RetryException; +import org.springframework.retry.annotation.Retryable; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.web.bind.annotation.*; + +import java.util.*; +import java.util.stream.Collectors; + +@Api(value = "JNGameDemo - API", tags = {"副本 - API"}) +@RestController +@RequestMapping("/game/mode/dungeon") +@ResponseBody +public class GDungeonController { + + @Autowired + ResourceService resourceService; + @Autowired + DungeonService dungeonService; + + //获取副本信息 + @ApiImplicitParams({}) + @ApiOperation(value = "获取副本信息") + @PostMapping("/info") + public NewsContext> getInfos(@CurrentPlayer Player player){ + + //获取所有副本信息 + List list = dungeonService.list(Wrappers.lambdaQuery(Dungeon.class).eq(Dungeon::getPlayerId, player.getPlayerId())); + + Map dungeons = new HashMap<>(); + //获取全部副本 + TD.DATA.getTbGSysDungeon().getDataList().forEach(info -> { + Dungeon dungeon = null; + try{ + dungeon = list.stream().filter(item -> info.id == item.getDungeonCfgId()).collect(Collectors.toList()).get(0); + }catch (Exception ignored){} + + if(Objects.isNull(dungeon)){ + //如果没有数据则生成数据 + try{ + //获取当前副本最小的进度 + Object table = Objects.requireNonNull(TableUtil.getDataList(Objects.requireNonNull(TableUtil.getTDObject(info.tigs)))).get(0); + dungeon = Dungeon.builder() + .playerId(player.getPlayerId()) + .dungeonCfgId(info.id) + .dungeonCfgItemId(TableUtil.getTableId(table)) + .build(); + dungeonService.save(dungeon); + }catch (Exception ignored){ + assert dungeonService != null; + dungeon = dungeonService.getOne(Wrappers.lambdaQuery(Dungeon.class).eq(Dungeon::getPlayerId,player.getPlayerId()).eq(Dungeon::getDungeonCfgId,info.id)); + } + } + dungeons.put(dungeon.getDungeonCfgId(),dungeon); + }); + + return NewsContext.onSuccess("获取成功",dungeons); + } + + //消耗钥匙挑战副本 + @ApiImplicitParams({}) + @ApiOperation(value = "消耗钥匙挑战普通副本") + @PostMapping("/challenge/dungeon/{dungeonId}/{dungeonItemId}") + @Transactional + public NewsResource> challengeDungeon(@CurrentPlayer Player player, @PathVariable Integer dungeonId, @PathVariable Integer dungeonItemId){ + + TbGSysDungeon tbGSysDungeon = TD.DATA.getTbGSysDungeon().get(dungeonId); + if(Objects.isNull(tbGSysDungeon)) return NewsResource.onFail("不存在该副本"); + if(!tbGSysDungeon.type.equals(ModeDungeonType.GDungeonMode)) return NewsResource.onFail("错误副本"); + + //获取副本信息 + Map infos = this.getInfos(player).data; + + //禁止越级挑战 + if(infos.get(dungeonId).getDungeonCfgItemId() < dungeonItemId) return NewsResource.onFail("请不要越级挑战哦"); + + //获取副本 + TableUtil.TableData tableData = Objects.requireNonNull(TableUtil.getTableData(tbGSysDungeon.tigs)); + //获取等级数据 + TDungeon dungeon = Objects.requireNonNull((TDungeon) tableData.get(dungeonItemId).getData()); + + //扣除消耗 + resourceService.addResourceValue(player.getPlayerId(), tbGSysDungeon.consume.id, (long) -tbGSysDungeon.consume.value); + + //更新等级 + if(infos.get(dungeonId).getDungeonCfgItemId().equals(dungeonItemId)){ + if(Objects.nonNull(tableData.get(dungeonItemId + 1))){ + infos.get(dungeonId).setDungeonCfgItemId(dungeonItemId + 1); + dungeonService.saveOrUpdate(infos.get(dungeonId)); + } + } + + //发放奖励 + return NewsResource.onSuccess("挑战成功",infos,resourceService.rewards(player.getPlayerId(), dungeon.rewards)); + + } + +} diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/entity/mode/ModeDungeonType.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/entity/mode/ModeDungeonType.java new file mode 100644 index 00000000..9c8ae022 --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/entity/mode/ModeDungeonType.java @@ -0,0 +1,8 @@ +package cn.jisol.game.entity.mode; + +//副本模式类型 +public interface ModeDungeonType { + + static String GDungeonMode = "GDungeonMode"; //普通模式 + +} diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/entity/table/Dungeon.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/entity/table/Dungeon.java new file mode 100644 index 00000000..bf3e1719 --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/entity/table/Dungeon.java @@ -0,0 +1,20 @@ +package cn.jisol.game.entity.table; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Builder; +import lombok.Data; + +@Builder +@Data +@TableName("`dungeon`") +public class Dungeon { + + @TableId(type = IdType.AUTO) + private Long dungeonId; //副本唯一Id + private Long playerId; //副本玩家Id + private Integer dungeonCfgId; //副本配置表Id + private Integer dungeonCfgItemId; //副本进度表Id + +} diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/mapper/DungeonMapper.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/mapper/DungeonMapper.java new file mode 100644 index 00000000..3ae44e2d --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/mapper/DungeonMapper.java @@ -0,0 +1,11 @@ +package cn.jisol.game.mapper; + +import cn.jisol.game.entity.table.Dungeon; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.springframework.stereotype.Component; + +@Component +public interface DungeonMapper extends BaseMapper { + + +} \ No newline at end of file diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/service/DungeonService.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/DungeonService.java new file mode 100644 index 00000000..e04a84b8 --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/DungeonService.java @@ -0,0 +1,8 @@ +package cn.jisol.game.service; + +import cn.jisol.game.entity.table.Dungeon; +import com.baomidou.mybatisplus.extension.service.IService; + +public interface DungeonService extends IService { + +} diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/service/ResourceService.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/ResourceService.java index 2a544294..a64867c1 100644 --- a/JisolGameServer/Main/src/main/java/cn/jisol/game/service/ResourceService.java +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/ResourceService.java @@ -1,11 +1,13 @@ package cn.jisol.game.service; +import cfg.TbGEntity.TResource; import cn.jisol.game.entity.table.Player; import cn.jisol.game.entity.table.Resource; import cn.jisol.game.vo.news.ov.ResourceUpdateOV; import com.baomidou.mybatisplus.extension.service.IService; import java.util.ArrayList; +import java.util.List; public interface ResourceService extends IService { @@ -25,6 +27,7 @@ public interface ResourceService extends IService { //返回通用加速卷 减少的时间(ms) public long timeSpeedUp(int type); - + //发放奖励 + public List rewards(Long playerId,TResource[] rewards); } diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/DungeonServiceImpl.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/DungeonServiceImpl.java new file mode 100644 index 00000000..db793dd0 --- /dev/null +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/DungeonServiceImpl.java @@ -0,0 +1,14 @@ +package cn.jisol.game.service.impl; + +import cn.jisol.game.entity.table.Dungeon; +import cn.jisol.game.entity.table.EquipForgingBench; +import cn.jisol.game.mapper.DungeonMapper; +import cn.jisol.game.mapper.EquipForgingBenchMapper; +import cn.jisol.game.service.DungeonService; +import cn.jisol.game.service.EquipForgingBenchService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +@Service +public class DungeonServiceImpl extends ServiceImpl implements DungeonService { +} diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/ResourceServiceImpl.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/ResourceServiceImpl.java index 57f7be3b..597c9c40 100644 --- a/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/ResourceServiceImpl.java +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/service/impl/ResourceServiceImpl.java @@ -22,7 +22,9 @@ import org.springframework.stereotype.Service; import java.lang.reflect.Array; import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import java.util.Objects; +import java.util.stream.Collectors; @Service public class ResourceServiceImpl extends ServiceImpl implements ResourceService { @@ -130,5 +132,10 @@ public class ResourceServiceImpl extends ServiceImpl i return Integer.parseInt(TD.DATA.getTbGResource().get(type).args) * 1000L; } + @Override + public List rewards(Long playerId, TResource[] rewards) { + return Arrays.stream(rewards).map(reward -> ResourceUpdateOV.onUpdate(this.addResourceValue(playerId, reward.id, (long) reward.value))).collect(Collectors.toList()); + } + } diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/table/GTbGOnHookLevels.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/table/GTbGOnHookLevels.java index 9217f8c7..240b93da 100644 --- a/JisolGameServer/Main/src/main/java/cn/jisol/game/table/GTbGOnHookLevels.java +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/table/GTbGOnHookLevels.java @@ -33,13 +33,7 @@ public class GTbGOnHookLevels { } public int getId(){ - try { - Field idField = data.getClass().getField("id"); - return (int)idField.get(data); - } catch (NoSuchFieldException | IllegalAccessException e) { - e.printStackTrace(); - return -1; - } + return TableUtil.getTableId(this.data); } public TOnHookLevel getData(){ @@ -56,30 +50,20 @@ public class GTbGOnHookLevels { //通过Id获取关卡 public GTbGOnHookLevel get(int key){ - try { - Method method = this.data.getClass().getMethod("get",int.class); - Object data = method.invoke(this.data,key); - if(Objects.isNull(data)) return null; - return new GTbGOnHookLevel(data); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - return null; - } + Object data = TableUtil.getId(this.data,key); + if(Objects.isNull(data)) return null; + return new GTbGOnHookLevel(data); } //获取全部关卡 public List getDataList(){ - try { - Method method = null; - method = this.data.getClass().getMethod("getDataList"); - Object data = method.invoke(this.data); - if(Objects.isNull(data) || !(data instanceof ArrayList)){ - return null; - } - return (List) ((ArrayList)data).stream().map((Object i) -> new GTbGOnHookLevel(i)).collect(Collectors.toList()); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { + Object data = TableUtil.getDataList(this.data); + if(Objects.isNull(data) || !(data instanceof ArrayList)){ return null; } + return (List) ((ArrayList)data).stream().map((Object i) -> new GTbGOnHookLevel(i)).collect(Collectors.toList()); + } } diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/table/TableUtil.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/table/TableUtil.java index 90191ce0..8008f0e8 100644 --- a/JisolGameServer/Main/src/main/java/cn/jisol/game/table/TableUtil.java +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/table/TableUtil.java @@ -2,13 +2,59 @@ package cn.jisol.game.table; import cn.jisol.game.data.TD; +import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; //文档工具类 public class TableUtil { + public static class TableData{ + //表数据 + Object data; + + public TableData(Object data) { + this.data = data; + } + + public Table get(Integer Id){ + return new Table(TableUtil.getId(this.data,Id)); + } + + public List getDataList(){ + return Objects.requireNonNull(TableUtil.getDataList(this.data)).stream().map(Table::new).collect(Collectors.toList()); + } + + } + + public static class Table{ + + //表行数据 + Object data; + + public Table(Object data) { + this.data = data; + } + + public Integer getId(){ + return TableUtil.getTableId(this.data); + } + + public Object getData(){ + return TableUtil.getTableKey(this.data,"data"); + } + + } + + //获取对象 + public static TableData getTableData(String sign){ + return new TableData(TableUtil.getTDObject(sign)); + } + //获取名字的对象 public static Object getTDObject(String sign){ try { @@ -19,4 +65,57 @@ public class TableUtil { } } + //获取配置列表 + public static List getDataList(Object config){ + try { + Method method = null; + method = config.getClass().getMethod("getDataList"); + Object data = method.invoke(config); + if(Objects.isNull(data) || !(data instanceof ArrayList)){ + return null; + } + return (ArrayList)data; + } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { + return null; + } + } + + //通过Id获取表数据 + public static Object getId(Object config,Integer id){ + + try { + Method method = config.getClass().getMethod("get",int.class); + Object data = method.invoke(config,id); + if(Objects.isNull(data)) return null; + return data; + } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { + return null; + } + + } + + //获取数据Id + public static int getTableId(Object table){ + + Object id = TableUtil.getTableKey(table,"id"); + if (Objects.isNull(id)){ + return -1; + } + return (int) id; + + } + + //获取指定Key数据 + public static Object getTableKey(Object table,String key){ + + try { + Field idField = table.getClass().getField(key); + return idField.get(table); + } catch (NoSuchFieldException | IllegalAccessException e) { + e.printStackTrace(); + return null; + } + + } + } diff --git a/JisolGameServer/Main/src/main/java/cn/jisol/game/vo/news/NewsResource.java b/JisolGameServer/Main/src/main/java/cn/jisol/game/vo/news/NewsResource.java index 5441e4fc..4f186899 100644 --- a/JisolGameServer/Main/src/main/java/cn/jisol/game/vo/news/NewsResource.java +++ b/JisolGameServer/Main/src/main/java/cn/jisol/game/vo/news/NewsResource.java @@ -37,6 +37,9 @@ public class NewsResource extends NewsContext { public static NewsResource onSuccess(String msg,T data,ResourceUpdateOV... resource){ return onMessage(msg,data,NEWS_STATE_SUCCESS, Arrays.asList(resource)); } + public static NewsResource onSuccess(String msg,T data,List resource){ + return onMessage(msg,data,NEWS_STATE_SUCCESS, resource); + } public static NewsResource onFail(String msg){ return onMessage(msg,null,NEWS_STATE_FAIL,new ArrayList<>()); diff --git a/JisolGameServer/Main/src/main/resources/json/tbgresource.json b/JisolGameServer/Main/src/main/resources/json/tbgresource.json index 90315e3c..120010d4 100644 --- a/JisolGameServer/Main/src/main/resources/json/tbgresource.json +++ b/JisolGameServer/Main/src/main/resources/json/tbgresource.json @@ -1,38 +1,50 @@ [ { "id": 90001, + "icon": "90001", "name": "金币", "tig": "金币 (目前叫做金币 名称还没有定) 游戏的基础资源 用于升级宠物", - "args": "" + "args": "", + "quality": 1 }, { "id": 90002, + "icon": "90002", "name": "锻造石", "tig": "锻造石 可以锻造装备的石头", - "args": "" + "args": "", + "quality": 1 }, { "id": 90003, + "icon": "90003", "name": "通用加速卷", "tig": "加速卷 用来加速一切需要时间的东西 减少冷却:60s", - "args": "60" + "args": "60", + "quality": 1 }, { "id": 90004, + "icon": "90004", "name": "钥匙:金币副本", "tig": "金币副本的钥匙", - "args": "" + "args": "", + "quality": 1 }, { "id": 90005, + "icon": "90005", "name": "钥匙:锻造石副本", "tig": "锻造石副本的钥匙", - "args": "" + "args": "", + "quality": 1 }, { "id": 90006, + "icon": "90006", "name": "魂:一品宠物魂", "tig": "用于宠物升星", - "args": "" + "args": "", + "quality": 1 } ] \ No newline at end of file