This commit is contained in:
PC-20230316NUNE\Administrator 2024-01-20 19:01:45 +08:00
parent 8af1ac9484
commit c6710e7dfa
78 changed files with 10027 additions and 4250 deletions

Binary file not shown.

Binary file not shown.

View File

@ -27,9 +27,6 @@
],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 16
},
@ -48,8 +45,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 360,
"y": 640,
"x": 640,
"y": 360.00000000000006,
"z": 0
},
"_lrot": {
@ -138,7 +135,7 @@
"_priority": 1,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 640,
"_orthoHeight": 360,
"_near": 0,
"_far": 1000,
"_color": {
@ -206,10 +203,13 @@
},
{
"__id__": 11
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 13
"__id__": 15
},
"_lpos": {
"__type__": "cc.Vec3",
@ -254,8 +254,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -336,6 +336,42 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "4dAbnesxlMxI5/HwZJY6FE"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 6
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_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": 1280,
"_originalHeight": 720,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4fmrucoylPyLBP/KmW1F2R"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@ -359,12 +395,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 15
"__id__": 17
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -387,7 +423,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 17
"__id__": 19
},
"_cameraComponent": {
"__id__": 3
@ -409,7 +445,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 19
"__id__": 21
},
"_alignFlags": 45,
"_target": null,
@ -445,7 +481,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 21
"__id__": 23
},
"root": {
"__id__": 6
@ -456,27 +492,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "a5cWASUqZFWbJeQJ2MLLd6"
},
{
"__type__": "1c16bQ/GLJGbqTREE81sG8h",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 23
},
"transform": {
"__id__": 7
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b5pMzUMX9Fvb5rlBSoZKr2"
},
{
"__type__": "cc.PrefabInfo",
"root": {

View File

@ -42,8 +42,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 360,
"y": 640,
"x": 640,
"y": 360,
"z": 0
},
"_lrot": {
@ -286,8 +286,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",

View File

@ -5,22 +5,67 @@
"tig": "金币礼包",
"limit": 1,
"limitValue": 0,
"price": 6,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,
"id": 90002,
"value": 20
"id": 90001,
"value": 1000
}
]
},
{
"id": 180002,
"name": "好多金币礼包",
"tig": "好多金币礼包",
"limit": 1,
"limitValue": 0,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,
"id": 90001,
"value": 1000
},
{
"type": 1,
"id": 90001,
"value": 1000
},
{
"type": 1,
"id": 90001,
"value": 1000
},
{
"type": 1,
"id": 90001,
"value": 1000
}
]
},
{
"id": 190001,
"name": "限购金币礼包",
"tig": "限购金币礼包",
"name": "限购矿石礼包",
"tig": "每日限购矿石礼包",
"limit": 2,
"limitValue": 1,
"price": 6,
"limitValue": 5,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,
@ -31,11 +76,16 @@
},
{
"id": 200001,
"name": "每日限购金币礼包",
"tig": "每日限购金币礼包",
"name": "每日矿石礼包",
"tig": "每日限购矿石礼包",
"limit": 3,
"limitValue": 1,
"price": 6,
"limitValue": 5,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,

View File

@ -6,12 +6,17 @@
},
{
"id": 2,
"tig": "限购金币礼包",
"giftId": 190001
"tig": "好多金币礼包",
"giftId": 180002
},
{
"id": 3,
"tig": "每日限购金币礼包",
"tig": "限购矿石礼包",
"giftId": 190001
},
{
"id": 4,
"tig": "每日矿石礼包",
"giftId": 200001
}
]

View File

@ -544,6 +544,9 @@
"__uuid__": "e989c288-5957-41c1-953c-190622651f52",
"__expectedType__": "cc.Prefab"
},
"objects": {
"__id__": 20
},
"_id": ""
},
{

View File

@ -166,7 +166,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 400,
"y": 250,
"z": 0
},
"_lrot": {
@ -615,7 +615,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 346.8,
"y": 196.8,
"z": 0
},
"_lrot": {
@ -783,7 +783,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 313.6,
"y": 163.60000000000002,
"z": 0
},
"_lrot": {
@ -823,7 +823,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"width": 900,
"height": 0
},
"_anchorPoint": {
@ -983,8 +983,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 900
"width": 900,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1125,8 +1125,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1188,7 +1188,7 @@
"__id__": 55
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"text": {
"__id__": 20

View File

@ -38,18 +38,15 @@
},
{
"__id__": 58
},
{
"__id__": 60
}
],
"_prefab": {
"__id__": 62
"__id__": 60
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -190,
"y": 560,
"x": -105,
"y": 280,
"z": 0
},
"_lrot": {
@ -1263,42 +1260,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "e9rBw2jx1IiJEwcWsaXui9"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 59
},
"_alignFlags": 9,
"_target": null,
"_left": 20,
"_right": 0,
"_top": 20,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9cDjiZptREL6KKSKrTqdhL"
},
{
"__type__": "fea8etRHZ5Gg6Z4BeSYoHGo",
"_name": "",
@ -1309,7 +1270,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 61
"__id__": 59
},
"playerNameLabel": {
"__id__": 21
@ -1332,7 +1293,6 @@
"__id__": 0
},
"fileId": "fdayH6FM5D7KxxkfPBzFJ/",
"instance": null,
"targetOverrides": null
}
]

View File

@ -2260,8 +2260,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2323,7 +2323,7 @@
"__id__": 106
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"views": {
"__id__": 45

View File

@ -99,8 +99,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -200,
"x": 280,
"y": 0,
"z": 0
},
"_lrot": {
@ -154,7 +154,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -340,
"y": -260,
"z": 0
},
"_lrot": {
@ -220,7 +220,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 390,
"y": 310,
"z": 0
},
"_lrot": {
@ -457,7 +457,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 12,
"height": 780
"height": 620
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -749,7 +749,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 780
"height": 620
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1491,7 +1491,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 780
"height": 620
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1637,7 +1637,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 780
"height": 620
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1733,7 +1733,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -390,
"y": -310,
"z": 0
},
"_lrot": {
@ -2822,7 +2822,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 880
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2892,11 +2892,11 @@
"__prefab": {
"__id__": 145
},
"_alignFlags": 45,
"_alignFlags": 37,
"_target": null,
"_left": 0,
"_left": 280,
"_right": 0,
"_top": 400,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
@ -2943,8 +2943,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -3006,7 +3006,7 @@
"__id__": 152
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"content": {
"__id__": 22

View File

@ -34,19 +34,16 @@
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 19
"__id__": 17
}
],
"_prefab": {
"__id__": 21
"__id__": 19
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -615,
"y": -125.21600000000001,
"z": 0
},
"_lrot": {
@ -251,7 +248,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"width": 680,
"height": 50
},
"_anchorPoint": {
@ -311,7 +308,7 @@
"fileId": "47iddbWj9HxZT0NQ/GsZJP"
},
{
"__type__": "cc.Widget",
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
@ -322,45 +319,9 @@
"__prefab": {
"__id__": 15
},
"_alignFlags": 44,
"_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": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9awU3hjhVK9qjW9bMJin6E"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"clickEvents": [
{
"__id__": 18
"__id__": 16
}
],
"_interactable": true,
@ -424,7 +385,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 20
"__id__": 18
},
"text": {
"__id__": 5
@ -444,7 +405,6 @@
"__id__": 0
},
"fileId": "0dwM6BvXxAIb2ADj9Thh37",
"instance": null,
"targetOverrides": null
}
]

View File

@ -38,18 +38,15 @@
},
{
"__id__": 72
},
{
"__id__": 74
}
],
"_prefab": {
"__id__": 76
"__id__": 74
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -0.5,
"y": 223.109,
"x": 0,
"y": 275,
"z": 0
},
"_lrot": {
@ -108,7 +105,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -299.5,
"x": -235,
"y": 0,
"z": 0
},
@ -587,7 +584,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -239.5,
"x": -175,
"y": 0,
"z": 0
},
@ -796,7 +793,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 479,
"width": 350,
"height": 120
},
"_anchorPoint": {
@ -941,7 +938,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 479,
"width": 350,
"height": 120
},
"_anchorPoint": {
@ -1117,7 +1114,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 299.5,
"x": 235,
"y": 0,
"z": 0
},
@ -1517,7 +1514,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 719,
"width": 590,
"height": 120
},
"_anchorPoint": {
@ -1576,42 +1573,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "19pPQvdvdMCJ7w/Z+yYIek"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 73
},
"_alignFlags": 40,
"_target": null,
"_left": 0,
"_right": 1,
"_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": "41TovpTmVCz4oCICCj50W/"
},
{
"__type__": "fe2adMH7MZF5KXgR4KwvwJX",
"_name": "",
@ -1622,7 +1583,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 75
"__id__": 73
},
"views": {
"__id__": 46
@ -1642,7 +1603,6 @@
"__id__": 0
},
"fileId": "cfqtEvOKpHO7NzoHh8DAIM",
"instance": null,
"targetOverrides": null
}
]

View File

@ -220,7 +220,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 500,
"y": 300,
"z": 0
},
"_lrot": {
@ -313,7 +313,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"width": 720,
"height": 20
},
"_anchorPoint": {
@ -428,8 +428,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 1000
"width": 720,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -592,7 +592,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 300,
"x": 360,
"y": 0,
"z": 0
},
@ -770,7 +770,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 12,
"height": 1000
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -955,8 +955,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 1000
"width": 720,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1077,8 +1077,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 1000
"width": 720,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1181,8 +1181,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1244,7 +1244,7 @@
"__id__": 59
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"views": {
"__id__": 37

View File

@ -139,8 +139,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1550
"width": 1280,
"height": 990
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -274,7 +274,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -404.685,
"y": -192.195,
"z": 0
},
"_lrot": {
@ -443,7 +443,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -459.803,
"y": -247.313,
"z": 0
},
"_lrot": {
@ -730,8 +730,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "cd941042-c0fa-4838-8cca-a067ec79f2f6",
"files": [],
"subMetas": {},
"userData": {}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.49",
"importer": "prefab",
"imported": true,
"uuid": "666a38d1-f88b-41ba-ad80-540baf963180",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "商店礼包"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.49",
"importer": "prefab",
"imported": true,
"uuid": "eb705d9d-4332-4106-be01-77d09f73c4d1",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "商店页面"
}
}

View File

@ -3058,8 +3058,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -3121,7 +3121,7 @@
"__id__": 148
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"petNameLabel": {
"__id__": 7

View File

@ -1576,8 +1576,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1639,7 +1639,7 @@
"__id__": 76
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": false,
"views": {
"__id__": 19

View File

@ -220,7 +220,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 300,
"y": 200,
"z": 0
},
"_lrot": {
@ -313,7 +313,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"width": 800,
"height": 40
},
"_anchorPoint": {
@ -428,8 +428,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 600
"width": 800,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -592,7 +592,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 275,
"x": 400,
"y": 0,
"z": 0
},
@ -770,7 +770,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 12,
"height": 600
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -955,8 +955,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 600
"width": 800,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1077,8 +1077,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 800
"width": 800,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1181,8 +1181,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1244,7 +1244,7 @@
"__id__": 59
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"list": {
"__id__": 37

View File

@ -955,8 +955,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1018,7 +1018,7 @@
"__id__": 52
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"icon": null,
"attribute": null,

View File

@ -0,0 +1,268 @@
[
{
"__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__": "02a7c444-c227-42df-824c-9ab8fdc733bd",
"__expectedType__": "cc.Prefab"
},
"fileId": "02c3tqHwFAbp7zhkA22zq9",
"instance": {
"__id__": 4
},
"targetOverrides": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "f4cK6ZBx9EsJwbAVF8jVVb",
"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__": "fccbdeSR9pMjaj5bstdqupO",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"icon": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4b3468j1pPMqGuA2+/MV9U"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "02c3tqHwFAbp7zhkA22zq9",
"instance": null,
"targetOverrides": [
{
"__id__": 15
}
],
"nestedPrefabInstanceRoots": [
{
"__id__": 2
}
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 12
},
"sourceInfo": null,
"propertyPath": [
"icon"
],
"target": {
"__id__": 2
},
"targetInfo": {
"__id__": 16
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"f41dkcJe1C2o7zoUiZe10Y"
]
}
]

View File

@ -0,0 +1,13 @@
{
"ver": "1.1.49",
"importer": "prefab",
"imported": true,
"uuid": "ad520c41-1e35-4006-a74e-9f2d37afd503",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "缩放动画列表奖励ICON"
}
}

View File

@ -25,17 +25,17 @@
"_active": true,
"_components": [
{
"__id__": 64
"__id__": 81
},
{
"__id__": 66
"__id__": 83
},
{
"__id__": 68
"__id__": 85
}
],
"_prefab": {
"__id__": 70
"__id__": 87
},
"_lpos": {
"__type__": "cc.Vec3",
@ -80,22 +80,25 @@
},
{
"__id__": 13
},
{
"__id__": 57
}
],
"_active": true,
"_components": [
{
"__id__": 57
"__id__": 74
},
{
"__id__": 59
"__id__": 76
},
{
"__id__": 61
"__id__": 78
}
],
"_prefab": {
"__id__": 63
"__id__": 80
},
"_lpos": {
"__type__": "cc.Vec3",
@ -156,7 +159,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 458.2,
"y": 273.181,
"z": 0
},
"_lrot": {
@ -297,7 +300,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_top": -14.980999999999995,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
@ -367,7 +370,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -29.849999999999966,
"y": -14.869,
"z": 0
},
"_lrot": {
@ -427,7 +430,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 400,
"y": 200,
"z": 0
},
"_lrot": {
@ -520,7 +523,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"width": 1000,
"height": 40
},
"_anchorPoint": {
@ -635,8 +638,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 800
"width": 1000,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1126,7 +1129,7 @@
"__id__": 45
},
"itemPrefab": {
"__uuid__": "6e8bc3fd-d622-4f2e-9ad8-35af8d6396ea",
"__uuid__": "ad520c41-1e35-4006-a74e-9f2d37afd503",
"__expectedType__": "cc.Prefab"
},
"_id": ""
@ -1162,8 +1165,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 800
"width": 1000,
"height": 400
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1237,8 +1240,8 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 129.84999999999997,
"_bottom": 70.15000000000003,
"_top": 114.869,
"_bottom": 85.131,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@ -1270,6 +1273,398 @@
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "关闭按钮",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 58
}
],
"_active": true,
"_components": [
{
"__id__": 66
},
{
"__id__": 68
},
{
"__id__": 70
}
],
"_prefab": {
"__id__": 73
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -278.292,
"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": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 57
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 59
},
{
"__id__": 61
},
{
"__id__": 63
}
],
"_prefab": {
"__id__": 65
},
"_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__": 58
},
"_enabled": true,
"__prefab": {
"__id__": 60
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4eIWag0hVM1afCoWTYPqXU"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 58
},
"_enabled": true,
"__prefab": {
"__id__": 62
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "关闭",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 26,
"_fontSize": 26,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 1,
"_enableWrapText": false,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bf1MBAIkZJupNTxw5GXqWx"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 58
},
"_enabled": true,
"__prefab": {
"__id__": 64
},
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 3,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "52Gk7dceZAxYdBz5Nbe0jJ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "4dwZAl3xVOcKsnXJfMFQ3p",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 67
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "62pSHdxJ1EHLlJGaocyDHo"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 69
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@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": "27VK3s4p9ItJ2vcTazpcjE"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 57
},
"_enabled": true,
"__prefab": {
"__id__": 71
},
"clickEvents": [
{
"__id__": 72
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 214,
"g": 214,
"b": 214,
"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": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_hoverSprite": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_pressedSprite": {
"__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_disabledSprite": {
"__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
"__id__": 57
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "52DEKuqlBF16+gUDBozHNL"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "e4a39lR3XlFYr6bgyWmDWEr",
"handler": "close",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "da1yd+ndZFlry9XVW28JoW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@ -1280,12 +1675,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 58
"__id__": 75
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 1000
"width": 1000,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1308,7 +1703,7 @@
},
"_enabled": false,
"__prefab": {
"__id__": 60
"__id__": 77
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@ -1353,7 +1748,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 62
"__id__": 79
},
"_id": ""
},
@ -1384,12 +1779,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 65
"__id__": 82
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1412,7 +1807,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 67
"__id__": 84
},
"_alignFlags": 45,
"_target": null,
@ -1448,10 +1843,10 @@
},
"_enabled": true,
"__prefab": {
"__id__": 69
"__id__": 86
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"views": {
"__id__": 47

View File

@ -35,18 +35,15 @@
},
{
"__id__": 48
},
{
"__id__": 50
}
],
"_prefab": {
"__id__": 52
"__id__": 50
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 14.153,
"y": 479.694,
"x": 0,
"y": 250,
"z": 0
},
"_lrot": {
@ -280,7 +277,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -24,
"y": -29,
"z": 0
},
"_lrot": {
@ -1025,7 +1022,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 60
"height": 70
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1083,42 +1080,6 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "85sGtNcRFEZ6uas0veM0GO"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 49
},
"_alignFlags": 1,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 130.30599999999998,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "58+NYe5CFKzLz2VGok5XlR"
},
{
"__type__": "b2374yvVElBk4il/xfjEdKc",
"_name": "",
@ -1129,7 +1090,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 51
"__id__": 49
},
"title": {
"__id__": 5
@ -1152,7 +1113,6 @@
"__id__": 0
},
"fileId": "9eultbNU5HCLypkPXqoRGA",
"instance": null,
"targetOverrides": null
}
]

View File

@ -142,8 +142,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -277,7 +277,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"y": 78.146,
"z": 0
},
"_lrot": {
@ -449,7 +449,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -60.89300000000003,
"y": 17.253,
"z": 0
},
"_lrot": {
@ -902,7 +902,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -186.378,
"y": -108.232,
"z": 0
},
"_lrot": {
@ -1277,8 +1277,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1341,6 +1341,7 @@
},
"mask": false,
"maskOpcity": 80,
"isClickMaskeClose": false,
"text": {
"__id__": 35
},

View File

@ -145,8 +145,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -284,7 +284,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 360.189,
"y": 120,
"z": 0
},
"_lrot": {
@ -630,8 +630,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -155.012,
"y": 34.013,
"x": -300,
"y": 120,
"z": 0
},
"_lrot": {
@ -977,8 +977,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 149.179,
"y": 31.734,
"x": 300,
"y": 120,
"z": 0
},
"_lrot": {
@ -1331,7 +1331,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -351.056,
"y": -220,
"z": 0
},
"_lrot": {
@ -2064,7 +2064,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"width": 1280,
"height": 280
},
"_anchorPoint": {
@ -2135,7 +2135,7 @@
"__prefab": {
"__id__": 92
},
"_alignFlags": 40,
"_alignFlags": 44,
"_target": null,
"_left": 0,
"_right": 0,
@ -2186,8 +2186,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2214,6 +2214,7 @@
},
"mask": false,
"maskOpcity": 80,
"isClickMaskeClose": false,
"selects": [
{
"__id__": 10

View File

@ -139,8 +139,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -281,7 +281,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -640,
"y": -360,
"z": 0
},
"_lrot": {
@ -336,7 +336,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -360,
"x": -640,
"y": 0,
"z": 0
},
@ -503,6 +503,8 @@
"__id__": 0
},
"fileId": "6dxMJc0zxIEpiISGg2rCXY",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@ -519,7 +521,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"width": 1280,
"height": 1280
},
"_anchorPoint": {
@ -739,7 +741,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -915,
"x": -635,
"y": 0,
"z": 0
},
@ -924,7 +926,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"width": 1280,
"height": 1280
},
"_anchorPoint": {
@ -1069,8 +1071,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1132,7 +1134,7 @@
"__id__": 55
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"_id": ""
},

View File

@ -25,20 +25,20 @@
"_active": true,
"_components": [
{
"__id__": 87
"__id__": 68
},
{
"__id__": 89
"__id__": 70
},
{
"__id__": 91
"__id__": 72
},
{
"__id__": 93
"__id__": 74
}
],
"_prefab": {
"__id__": 95
"__id__": 76
},
"_lpos": {
"__type__": "cc.Vec3",
@ -83,29 +83,26 @@
},
{
"__id__": 47
},
{
"__id__": 61
}
],
"_active": true,
"_components": [
{
"__id__": 80
"__id__": 61
},
{
"__id__": 82
"__id__": 63
},
{
"__id__": 84
"__id__": 65
}
],
"_prefab": {
"__id__": 86
"__id__": 67
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"x": 315,
"y": 0,
"z": 0
},
@ -169,7 +166,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 200,
"y": 75,
"z": 0
},
"_lrot": {
@ -229,7 +226,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 440,
"y": 285,
"z": 0
},
"_lrot": {
@ -322,7 +319,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"width": 650,
"height": 20
},
"_anchorPoint": {
@ -437,8 +434,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 880
"width": 650,
"height": 570
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -601,7 +598,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 360,
"x": 325,
"y": 0,
"z": 0
},
@ -779,7 +776,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 12,
"height": 880
"height": 570
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -964,8 +961,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 880
"width": 650,
"height": 570
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1040,7 +1037,7 @@
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 400,
"_bottom": 150,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@ -1167,7 +1164,7 @@
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 209.31799999999998,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@ -1213,7 +1210,7 @@
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": -355.682,
"y": -285,
"z": 0
}
},
@ -1270,437 +1267,6 @@
"ff4kiM0zJEWo5aejn8NX1c"
]
},
{
"__type__": "cc.Node",
"_name": "Button",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 62
}
],
"_active": true,
"_components": [
{
"__id__": 70
},
{
"__id__": 72
},
{
"__id__": 74
},
{
"__id__": 77
}
],
"_prefab": {
"__id__": 79
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -530,
"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": "Label",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 61
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 63
},
{
"__id__": 65
},
{
"__id__": 67
}
],
"_prefab": {
"__id__": 69
},
"_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__": 62
},
"_enabled": true,
"__prefab": {
"__id__": 64
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1cMpciVeFG95kL8zzMj1fO"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 62
},
"_enabled": true,
"__prefab": {
"__id__": 66
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "关闭",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 50,
"_overflow": 1,
"_enableWrapText": false,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e9F94xOZFBZqe5WCEEpqZG"
},
{
"__type__": "cc.LabelOutline",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 62
},
"_enabled": true,
"__prefab": {
"__id__": 68
},
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_width": 4,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b3aoAS9hlB9Igl6OdyRwtF"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "05qulMfHREcbNMTPaRC5pf",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 71
},
"_contentSize": {
"__type__": "cc.Size",
"width": 140,
"height": 120
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a3pFblJbpOoIpI1z38vife"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 73
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@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": "adPExZ621BDIpeU7p4jFjt"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 75
},
"clickEvents": [
{
"__id__": 76
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 214,
"g": 214,
"b": 214,
"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": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_hoverSprite": {
"__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_pressedSprite": {
"__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_disabledSprite": {
"__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
"__id__": 61
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d0h3N8tJdCtK9s/rLQSz24"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "7eb7cCuUd1DfaN/gN/Pz8fS",
"handler": "close",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 61
},
"_enabled": true,
"__prefab": {
"__id__": 78
},
"_alignFlags": 4,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 50,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d70QwD5K9EB7oFKlhZ1My2"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "99m6Ed0KhHB6hDLqxzrHVi",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
@ -1711,12 +1277,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 81
"__id__": 62
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 650,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1739,7 +1305,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 83
"__id__": 64
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@ -1784,9 +1350,9 @@
},
"_enabled": true,
"__prefab": {
"__id__": 85
"__id__": 66
},
"_alignFlags": 45,
"_alignFlags": 32,
"_target": null,
"_left": 0,
"_right": 0,
@ -1800,15 +1366,15 @@
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6bCBog0gBLrYdmSKs8qasN"
"fileId": "06n7Vn0ypGHrFSA7nfvzYG"
},
{
"__type__": "cc.PrefabInfo",
@ -1833,12 +1399,12 @@
},
"_enabled": true,
"__prefab": {
"__id__": 88
"__id__": 69
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1861,7 +1427,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 90
"__id__": 71
},
"_alignFlags": 45,
"_target": null,
@ -1897,11 +1463,11 @@
},
"_enabled": true,
"__prefab": {
"__id__": 92
"__id__": 73
},
"mask": false,
"maskOpcity": 80,
"isClickMaskeClose": false,
"mask": true,
"maskOpcity": 140,
"isClickMaskeClose": true,
"rankings": {
"__id__": 37
},
@ -1922,7 +1488,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 94
"__id__": 75
},
"_id": ""
},
@ -1942,7 +1508,7 @@
"instance": null,
"targetOverrides": [
{
"__id__": 96
"__id__": 77
}
],
"nestedPrefabInstanceRoots": [
@ -1954,7 +1520,7 @@
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 91
"__id__": 72
},
"sourceInfo": null,
"propertyPath": [
@ -1964,7 +1530,7 @@
"__id__": 47
},
"targetInfo": {
"__id__": 97
"__id__": 78
}
},
{

View File

@ -945,8 +945,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1008,7 +1008,7 @@
"__id__": 46
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": false,
"content": {
"__id__": 2

View File

@ -2093,8 +2093,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2156,7 +2156,7 @@
"__id__": 95
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": false,
"account": {
"__id__": 28

View File

@ -93,8 +93,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 360,
"y": 530,
"x": 640,
"y": 230,
"z": 0
},
"_lrot": {
@ -510,7 +510,7 @@
"_target": null,
"_left": 0,
"_right": 0,
"_top": 60,
"_top": 80,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
@ -557,8 +557,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",

View File

@ -1848,8 +1848,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1910,8 +1910,8 @@
"__prefab": {
"__id__": 85
},
"mask": false,
"maskOpcity": 80,
"mask": true,
"maskOpcity": 140,
"isClickMaskeClose": false,
"titleLabel": {
"__id__": 7

View File

@ -223,7 +223,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 340,
"y": 240,
"z": 0
},
"_lrot": {
@ -316,7 +316,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"width": 700,
"height": 40
},
"_anchorPoint": {
@ -431,8 +431,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 680
"width": 700,
"height": 480
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -595,7 +595,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 300,
"x": 350,
"y": 0,
"z": 0
},
@ -773,7 +773,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 12,
"height": 680
"height": 480
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -958,8 +958,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 680
"width": 700,
"height": 480
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1109,7 +1109,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -340,
"y": -240,
"z": 0
},
"_lrot": {
@ -1171,7 +1171,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -230,
"x": -260,
"y": 0,
"z": 0
},
@ -1712,7 +1712,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -115,
"x": -130,
"y": 0,
"z": 0
},
@ -2794,7 +2794,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 115,
"x": 130,
"y": 0,
"z": 0
},
@ -3335,7 +3335,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 230,
"x": 260,
"y": 0,
"z": 0
},
@ -3854,7 +3854,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 560,
"width": 620,
"height": 120
},
"_anchorPoint": {
@ -3882,8 +3882,8 @@
},
"_alignFlags": 44,
"_target": null,
"_left": 20,
"_right": 20,
"_left": 40,
"_right": 40,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
@ -3928,7 +3928,7 @@
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 15,
"_spacingX": 30,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 0,
@ -3969,8 +3969,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 600,
"height": 800
"width": 700,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -4073,8 +4073,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -4136,7 +4136,7 @@
"__id__": 192
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"views": {
"__id__": 37

View File

@ -159,8 +159,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 450,
"x": -300,
"y": 300,
"z": 0
},
"_lrot": {
@ -262,8 +262,8 @@
],
"value": {
"__type__": "cc.Vec3",
"x": -146.352,
"y": -148.623,
"x": 0,
"y": -206.161,
"z": 0
}
},
@ -328,8 +328,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 108.301,
"y": -246.74,
"x": -0.382,
"y": -376.734,
"z": 0
},
"_lrot": {
@ -704,8 +704,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 300
"width": 300,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -730,10 +730,10 @@
"__prefab": {
"__id__": 32
},
"_alignFlags": 41,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_right": 600,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
@ -745,7 +745,7 @@
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 0,
"_originalHeight": 300,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
@ -803,8 +803,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -85,
"x": 150,
"y": 0,
"z": 0
},
"_lrot": {
@ -864,7 +864,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 235,
"y": 300,
"z": 0
},
"_lrot": {
@ -957,7 +957,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"width": 600,
"height": 40
},
"_anchorPoint": {
@ -1072,8 +1072,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 470
"width": 600,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1236,7 +1236,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 275,
"x": 300,
"y": 0,
"z": 0
},
@ -1414,7 +1414,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 12,
"height": 470
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1599,8 +1599,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 470
"width": 600,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -1672,10 +1672,10 @@
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_left": 300,
"_right": 0,
"_top": 300,
"_bottom": 130,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
@ -1740,8 +1740,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -385,
"x": -287.692,
"y": -235,
"z": 0
},
"_lrot": {
@ -2152,8 +2152,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 550,
"height": 900
"width": 900,
"height": 600
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2256,8 +2256,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@ -2319,7 +2319,7 @@
"__id__": 109
},
"mask": true,
"maskOpcity": 80,
"maskOpcity": 140,
"isClickMaskeClose": true,
"views": {
"__id__": 68

View File

@ -2,8 +2,8 @@
"__type__": "cc.RenderTexture",
"content": {
"base": "2,2,0,0,0,0",
"w": 720,
"h": 1280,
"w": 1280,
"h": 720,
"n": "WorldCamera"
}
}

View File

@ -15,8 +15,8 @@
"name": "spriteFrame",
"userData": {
"imageUuidOrDatabaseUri": "a0d1e275-5512-493e-8e15-7d2db8beb48e",
"width": 720,
"height": 1280
"width": 1280,
"height": 720
},
"ver": "1.0.0",
"imported": true,
@ -27,8 +27,8 @@
}
},
"userData": {
"width": 720,
"height": 1280,
"width": 1280,
"height": 720,
"anisotropy": 0,
"minfilter": "linear",
"magfilter": "linear",

View File

@ -4,6 +4,7 @@ import BaseData from "./data/BaseData";
import ChatData from "./data/ChatData";
import GBattleData from "./data/GBattleData";
import GOnHookData from "./data/GOnHookData";
import GiftData from "./data/GiftData";
import PetEquipData from "./data/PetEquipData";
import PlayerData from "./data/PlayerData";
import PlayerPetData from "./data/PlayerPetData";
@ -18,6 +19,7 @@ export class AppData extends SystemBase{
loadings:BaseData[] = [
PlayerData.getIns(), //玩家信息
PetEquipData.getIns(), //宠物装备数据类
GiftData.getIns(), //玩家礼包信息
PlayerPetData.getIns(), //玩家宠物信息
ChatData.getIns(), //聊天
PlayerTacticalData.getIns(), //阵法

View File

@ -10,6 +10,7 @@ import GBattleData from "../../data/GBattleData";
import GAttributeData from "../base/values/GAttributeData";
import JNFrameTime from "../../../../extensions/ngame/assets/ngame/sync/frame/game/time/JNFrameTime";
import { GAPI } from "../../consts/GAPI";
import { Node } from "cc";
const { ccclass, property } = _decorator;
export interface GDungeonModeData{

View File

@ -42,14 +42,7 @@ export enum GOnHookModeState{
*/
@ccclass('GOnHookMode')
export default class GOnHookMode extends GNormalModeBase<{},{}>{
@property(Node)
objects: Node = null;
get scene():Node{
return this.objects;
}
//玩家宠物
playerRoles: GRoleDefault[] = [];
//敌方宠物

View File

@ -27,7 +27,7 @@ export default class GDefaultMode<T,DT> extends GBaseMode<T,DT>{
let scale = this.mapInfo.scale;
this.map1.init(app.battleRes.getMap(mapId)[0],1,app.battleRes.getMap(mapId)[0].width * scale,app.battleRes.getMap(mapId)[0].height * scale);
this.map2.init(app.battleRes.getMap(mapId)[1],1,app.battleRes.getMap(mapId)[1].width * scale,app.battleRes.getMap(mapId)[1].height * scale);
this.map3.init(app.battleRes.getMap(mapId)[2],1,app.battleRes.getMap(mapId)[1].width * scale,1048 * scale);
this.map3.init(app.battleRes.getMap(mapId)[2],1,app.battleRes.getMap(mapId)[1].width * scale,1280 * scale);
//更新地图
this.onUpdateMap(0);

View File

@ -10,6 +10,7 @@ import JNFrameTime from "../../../../../extensions/ngame/assets/ngame/sync/frame
import { v3 } from "cc";
import { GModeEvent } from "../GMode";
import { app } from "../../../App";
import { Node } from "cc";
const { ccclass, property } = _decorator;
@ -31,6 +32,13 @@ export default class GNormalModeBase<T,DT> extends GDefaultMode<T,DT>{
@property(Prefab)
enemyPrefab: Prefab = null;
@property(Node)
objects: Node = null;
get scene():Node{
return this.objects;
}
//玩家宠物
playerRoles: GRoleDefault[] = [];
//敌方宠物
@ -58,7 +66,7 @@ export default class GNormalModeBase<T,DT> extends GDefaultMode<T,DT>{
//调整相机
this.camera.enabled = true;
let camreaPos = this.camera.node.worldPosition;
this.camera.node.worldPosition = v3(0,750,camreaPos.z)
this.camera.node.worldPosition = v3(0,450,camreaPos.z)
}
//获取配置

View File

@ -1165,8 +1165,8 @@ export class TbGGift {
this.limit = _json_.limit
if (_json_.limitValue === undefined) { throw new Error() }
this.limitValue = _json_.limitValue
if (_json_.price === undefined) { throw new Error() }
this.price = _json_.price
if (_json_.exchanges === undefined) { throw new Error() }
{ this.exchanges = []; for(let _ele of _json_.exchanges) { let _e; _e = new TbGEntity.TResource(_ele); this.exchanges.push(_e);}}
if (_json_.rewards === undefined) { throw new Error() }
{ this.rewards = []; for(let _ele of _json_.rewards) { let _e; _e = new TbGEntity.TReward(_ele); this.rewards.push(_e);}}
}
@ -1192,9 +1192,9 @@ export class TbGGift {
*/
readonly limitValue: number
/**
*
*
*/
readonly price: number
readonly exchanges: TbGEntity.TResource[]
/**
*
*/

View File

@ -1,4 +1,5 @@
import { app } from "../App";
import { TbGEntity } from "../config/data/schema";
import PlayerPetData from "../data/PlayerPetData";
import ResourceData from "../data/ResourceData";
import { GUI } from "../ui/UIConfig";
@ -141,6 +142,24 @@ export interface PetEquipForgingOV{
}
//礼包每天充值记录
export interface GiftRecord{
giftId:number; //礼包Id
playerId:number; //玩家Id
giftCfgId:number; //礼包配置表Id
giftCfgName; //礼包名称
giftCfgRewards:TbGEntity.TReward[]; //礼包奖励
giftCfgPrice:number; //礼包价格
giftBuyingTime:number; //礼包购买时间戳
}
export interface GiftDayRecord{
giftDayId:number; //充值Id
playerId:number; //玩家Id
giftId:number; //礼包Id
giftCfgId:number; //礼包配置表Id
}
export const API = {
/********** debugger *****************/
@ -179,5 +198,10 @@ export const API = {
PetEquipForgingUp: async () => RData(await app.api.post(`/game/equip/forging/up`),true) as EquipForgingBench, //升级锻造台
PetEquipUseSpeed: async (resType:number) => RData(await app.api.post(`/game/equip/use/speed/${resType}`),true) as EquipForgingBench, //加速锻造台升级
/*********** 礼包接口 ******************/
GetGiftRecord: async () => RData(await app.api.get(`/game/gift/record/all`),false) as GiftRecord[], //查询当天购买记录
GetGiftDayRecord: async () => RData(await app.api.get(`/game/gift/record/day`),false) as GiftDayRecord[], //查询当天购买记录
BuyGift: async (giftId:number) => RData(await app.api.post(`/game/gift/buy/${giftId}`),true) as Boolean, //查询当天购买记录
}

View File

@ -0,0 +1,45 @@
import { app } from "../App";
import { API, GiftDayRecord, GiftRecord } from "../consts/API";
import BaseData from "./BaseData";
export enum GiftDataEnum{
BUY = "GiftDataEnum_Buy", //礼包购买
}
//礼包数据
export default class GiftData extends BaseData{
records:GiftRecord[] = [];
dayRecords:GiftDayRecord[] = [];
onInit() {
}
//查询充值记录
async UpdateGiftRecord(){
return this.records = await API.GetGiftRecord();
}
//查询当天充值记录
async UpdateGiftDayRecord(){
return this.dayRecords = await API.GetGiftDayRecord();
}
//查询指定礼包每天的购买次数
getGiftDayRecordCount(giftId:number){
return this.dayRecords.filter(item => item.giftCfgId == giftId).length;
}
//查询礼包购买次数
getGiftRecordCount(giftId:number){
return this.records.filter(item => item.giftCfgId == giftId).length;
}
//购买礼包
async buy(giftId:number){
await API.BuyGift(giftId);
app.event.emit(GiftDataEnum.BUY);
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "cab5c60b-8521-4aed-a3f1-a23f7751725b",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -38,7 +38,7 @@ export class ModeRender extends Component {
let hitNode = instantiate(this.hitPrefab);
this.node.addChild(hitNode);
hitNode.position = rolePos.add(v3(0,100,0));
hitNode.position = rolePos.add(v3(0,40,0));
hitNode.getComponent(ModeRenderHitText).setText(info.hit);

View File

@ -17,10 +17,6 @@ export class TablePetIcon extends Component {
info:TB.TbGRole;
onLoad(){
this.onUpdateView();
}
//刷新页面
onUpdateView(){

View File

@ -16,11 +16,21 @@ export class RewardClaimView extends JNGLayerBase {
onJNLoad(data?: TbGEntity.TReward[]): void {
super.onJNLoad(data);
this.data = data;
}
onJNLoadAnimEnd(): void {
this.onUpdateView();
}
onUpdateView(){
this.views.refreshData(this.data);
//逐个出现
this.data.forEach((item,index) => {
this.scheduleOnce(() => {
this.views.addData(item);
},.1 * index);
})
}
}

View File

@ -0,0 +1,30 @@
import { _decorator, Component, Node } from 'cc';
import { RewardIcon } from './RewardIcon';
import { TbGEntity } from '../../../config/data/schema';
import JNScrollViewItem from '../../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
import { tween } from 'cc';
import { v3 } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('RewardIconScrollScaleAnim')
export class RewardIconScrollScaleAnim extends JNScrollViewItem<TbGEntity.TReward> {
@property(RewardIcon)
icon:RewardIcon;
onLoad(){
//播放缩放动画
this.node.scale = v3(0,0,0);
tween(this.node)
.to(.2,{scale:v3(1,1,1)})
.start();
}
onInit(data:TbGEntity.TReward){
this.icon.set(data);
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "fccbd792-47da-4c8d-a8f9-6ecb5daaea4e",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -128,6 +128,11 @@ export class MainView extends JNGLayerBase {
app.layer.Open(GUI.PacksackView);
}
//点击商店页面
onClickShop(){
app.layer.Open(GUI.ShopView);
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "f9441538-3d5c-43d4-9bf1-1ede88d23161",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -0,0 +1,53 @@
import { _decorator, Component, Node } from 'cc';
import { TB, TbGEnum } from '../../config/data/schema';
import JNScrollViewItem from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollViewItem';
import { TD } from '../../App';
import { Label } from 'cc';
import JNScrollView from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollView';
import GiftData from '../../data/GiftData';
const { ccclass, property } = _decorator;
@ccclass('ShopGiftItem')
export class ShopGiftItem extends JNScrollViewItem<TB.TbGShop> {
@property(Label)
giftName:Label; //礼包名称
@property(Label)
giftLimit:Label; //限购
@property(JNScrollView)
views:JNScrollView; //礼包列表
gift: TB.TbGGift;
onInit(data: TB.TbGShop): void {
this.gift = TD.TbGGift.get(data.giftId);
}
protected start(): void {
this.giftName.string = this.data.tig;
if(this.gift.limit == TbGEnum.TGiftLimit.Unlimited)
this.giftLimit.string = "( 无限 )";
if(this.gift.limit == TbGEnum.TGiftLimit.DayLimit)
this.giftLimit.string = `每天( ${GiftData.getIns().getGiftDayRecordCount(this.gift.id)}/${this.gift.limitValue} )`;
if(this.gift.limit == TbGEnum.TGiftLimit.Limit)
this.giftLimit.string = `限制( ${GiftData.getIns().getGiftRecordCount(this.gift.id)}/${this.gift.limitValue} )`;
this.views.refreshData(this.gift.rewards);
}
//点击购买礼包
async onClickBuy(){
await GiftData.getIns().buy(this.gift.id)
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "3c689f59-1914-4f82-b32f-9b60142cd8f8",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -0,0 +1,43 @@
import { _decorator, Component, Node } from 'cc';
import JNLayerBase from '../../../../extensions/ngame/assets/ngame/ui/base/JNLayerBase';
import JNScrollView from '../../../../extensions/ngame/assets/ngame/util/components/scrollview/JNScrollView';
import { app, TD } from '../../App';
import GiftData, { GiftDataEnum } from '../../data/GiftData';
const { ccclass, property } = _decorator;
//商店页面
@ccclass('ShopView')
export class ShopView extends JNLayerBase {
//商店礼包列表
@property(JNScrollView)
views:JNScrollView
async onJNLoad(data?: any) {
super.onJNLoad(data);
await this.onUpdateView();
//监听
app.event.on(GiftDataEnum.BUY,this.onUpdateView,this)
}
onJNClose(): void {
super.onJNClose();
app.event.off(GiftDataEnum.BUY,this.onUpdateView,this)
}
async onUpdateView() {
await GiftData.getIns().UpdateGiftRecord();
await GiftData.getIns().UpdateGiftDayRecord();
this.views.refreshData(TD.TbGShop.getDataList());
}
}

View File

@ -0,0 +1,9 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"uuid": "eb3d9ece-55ba-4a24-8103-75b6ae2c3f4d",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@ -26,6 +26,7 @@ export enum GUI{
MainOnHookView = "MainOnHookView", //挂机弹窗
MapSelectView = "MapSelectView", //地图选择页面
PacksackView = "PacksackView", //背包页面
ShopView = "ShopView", //商店页面
/** 副本 */
DungeonView = "DungeonView", //副本页面
@ -54,6 +55,12 @@ const BackOutScale:JNLayerAnimInfo = {
front:JNLayerAnim.BackOutOpen,
back:JNLayerAnim.BackInClose
}
const BackOutMove:JNLayerAnimInfo = {
front:JNLayerAnim.Enlarge,
back:JNLayerAnim.Smaller,
frontInfo:{key:"position",start:v3(1280,0,0),end:v3(0,0,0)},
backInfo:{key:"position",start:v3(0,0,0),end:v3(1280,0,0)}
}
//系统UI
@ -92,7 +99,7 @@ const UISystemConfig:{ [key: string]: JNLayerInfo; } = {
},
},
[GUI.RewardClaimView]:{
layer:GLayer.View,
layer:GLayer.Popup,
uri: "prefab/ui/常用预制体/奖励/领取奖励页面",
anims:BackOutScale
},
@ -103,12 +110,7 @@ const UIMainConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.MainChat]:{
layer:GLayer.Popup,
uri: "prefab/ui/主页/聊天/MainChatView",
anims:{
front:JNLayerAnim.Enlarge,
back:JNLayerAnim.Smaller,
frontInfo:{key:"position",start:v3(0,-1280,0),end:v3(0,0,0)},
backInfo:{key:"position",start:v3(0,0,0),end:v3(0,-1280,0)}
}
anims:BackOutMove
},
[GUI.IntoBattleView]:{
layer:GLayer.Popup,
@ -130,6 +132,11 @@ const UIMainConfig:{ [key: string]: JNLayerInfo; } = {
uri: "prefab/ui/资源/资源背包页面",
anims:BackOutScale,
},
[GUI.ShopView]:{
layer:GLayer.Popup,
uri: "prefab/ui/商店/商店页面",
anims:BackOutMove,
},
}
//宠物页面
@ -198,7 +205,12 @@ const UIGModeConfig:{ [key: string]: JNLayerInfo; } = {
[GUI.OnHookRinkingView]:{
layer:GLayer.Popup,
uri: "prefab/ui/模式/OnHook/OnHook排行榜",
anims:BackOutScale
anims:{
front:JNLayerAnim.Enlarge,
back:JNLayerAnim.Smaller,
frontInfo:{key:"position",start:v3(1280,0,0),end:v3(0,0,0)},
backInfo:{key:"position",start:v3(0,0,0),end:v3(1280,0,0)}
}
},
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,134 @@
{
"ver": "1.0.26",
"importer": "image",
"imported": true,
"uuid": "2245088d-96e9-4055-82c1-b4e6f05efaf8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2245088d-96e9-4055-82c1-b4e6f05efaf8@6c48a",
"displayName": "90007",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2245088d-96e9-4055-82c1-b4e6f05efaf8",
"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": "2245088d-96e9-4055-82c1-b4e6f05efaf8@f9941",
"displayName": "90007",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 15,
"trimY": 11,
"width": 150,
"height": 159,
"rawWidth": 180,
"rawHeight": 180,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-75,
-79.5,
0,
75,
-79.5,
0,
-75,
79.5,
0,
75,
79.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
15,
169,
165,
169,
15,
10,
165,
10
],
"nuv": [
0.08333333333333333,
0.05555555555555555,
0.9166666666666666,
0.05555555555555555,
0.08333333333333333,
0.9388888888888889,
0.9166666666666666,
0.9388888888888889
],
"minPos": [
-75,
-79.5,
0
],
"maxPos": [
75,
79.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2245088d-96e9-4055-82c1-b4e6f05efaf8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2245088d-96e9-4055-82c1-b4e6f05efaf8@f9941"
}
}

@ -1 +1 @@
Subproject commit 3d09378c19db0f7c4c45aff7fa7674d9ddee8c3a
Subproject commit a98403e0e131001f21f870c9d511c3c63fbbc486

View File

@ -2,8 +2,10 @@
"__version__": "1.0.6",
"general": {
"designResolution": {
"width": 720,
"height": 1280
"width": 1280,
"height": 720,
"fitWidth": false,
"fitHeight": true
}
},
"layer": [

View File

@ -21,7 +21,7 @@ public final class TbGGift extends AbstractBean {
tig = _buf.get("tig").getAsString();
limit = _buf.get("limit").getAsInt();
limitValue = _buf.get("limitValue").getAsInt();
price = _buf.get("price").getAsInt();
{ com.google.gson.JsonArray _json0_ = _buf.get("exchanges").getAsJsonArray(); int __n0 = _json0_.size(); exchanges = new cfg.TbGEntity.TResource[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.TbGEntity.TResource __v0; __v0 = cfg.TbGEntity.TResource.deserialize(__e0.getAsJsonObject()); exchanges[__index0++] = __v0; } }
{ com.google.gson.JsonArray _json0_ = _buf.get("rewards").getAsJsonArray(); int __n0 = _json0_.size(); rewards = new cfg.TbGEntity.TReward[__n0]; int __index0=0; for(JsonElement __e0 : _json0_) { cfg.TbGEntity.TReward __v0; __v0 = cfg.TbGEntity.TReward.deserialize(__e0.getAsJsonObject()); rewards[__index0++] = __v0; } }
}
@ -50,9 +50,9 @@ public final class TbGGift extends AbstractBean {
*/
public final int limitValue;
/**
* 价格
* 兑换的资源
*/
public final int price;
public final cfg.TbGEntity.TResource[] exchanges;
/**
* 奖励
*/
@ -71,7 +71,7 @@ public final class TbGGift extends AbstractBean {
+ "(format_field_name __code_style field.name):" + tig + ","
+ "(format_field_name __code_style field.name):" + limit + ","
+ "(format_field_name __code_style field.name):" + limitValue + ","
+ "(format_field_name __code_style field.name):" + price + ","
+ "(format_field_name __code_style field.name):" + exchanges + ","
+ "(format_field_name __code_style field.name):" + rewards + ","
+ "}";
}

View File

@ -224,7 +224,7 @@ public class GPlayerEquipController {
if(Objects.isNull(nextForgingInfo)) return NewsResource.onFail("已满级");
//扣除材料
ArrayList<ResourceUpdateOV> resources = new ArrayList<>(resourceService.deduct(player,nextForgingInfo.materials));
ArrayList<ResourceUpdateOV> resources = new ArrayList<>(resourceService.deduct(player.getPlayerId(),nextForgingInfo.materials));
info.setForgingQuality(nextLevel);
//保存升级结束时间

View File

@ -7,6 +7,8 @@ import cn.jisol.game.controller.argsresolver.CurrentPlayer;
import cn.jisol.game.controller.exception.ResourceNotException;
import cn.jisol.game.data.ResourceId;
import cn.jisol.game.data.TD;
import cn.jisol.game.entity.data.GResource;
import cn.jisol.game.entity.data.GReward;
import cn.jisol.game.entity.table.GiftDayRecord;
import cn.jisol.game.entity.table.GiftRecord;
import cn.jisol.game.entity.table.Player;
@ -30,6 +32,7 @@ import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
@Api(value = "JNGameDemo - API", tags = {"礼包 - API"})
@RestController
@ -71,7 +74,7 @@ public class GiftController {
}
}
resourceService.addResourceValue(player.getPlayerId(), ResourceId.GiftCoupons.id, (long) -gift.price);
resourceService.deduct(player.getPlayerId(), gift.exchanges);
//发放奖励
List<ResourceUpdateOV> ovs = resourceService.rewards(player.getPlayerId(), gift.rewards);
@ -81,8 +84,9 @@ public class GiftController {
.playerId(player.getPlayerId())
.giftCfgId(gift.id)
.giftCfgName(gift.name)
.giftCfgRewards(Arrays.asList(gift.rewards))
.giftCfgPrice(gift.price)
.giftCfgRewards(Arrays.stream(gift.rewards).map(GReward::toBuild).collect(Collectors.toList()))
// .giftCfgRewards(Arrays.asList(gift.rewards))
.giftCfgExchanges(Arrays.stream(gift.exchanges).map(GResource::toBuild).collect(Collectors.toList()))
.giftBuyingTime(new Date().getTime())
.build();
@ -99,6 +103,17 @@ public class GiftController {
}
//查询所有充值记录
@ApiImplicitParams({})
@ApiOperation(value = "查询所有充值记录")
@GetMapping("/record/all")
public NewsContext<List<GiftRecord>> getGiftRecord(@CurrentPlayer Player player){
return NewsContext.onSuccess("查询成功",giftRecordService.list(
Wrappers.lambdaQuery(GiftRecord.class)
.eq(GiftRecord::getPlayerId,player.getPlayerId())
));
}
//查询当天购买记录
@ApiImplicitParams({})
@ApiOperation(value = "查询当天购买记录")

View File

@ -0,0 +1,28 @@
package cn.jisol.game.entity.data;
import cfg.TbGEntity.TResource;
import cfg.TbGEntity.TReward;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Builder
public class GResource {
/**
* 资源Id
*/
private Integer id;
/**
* 资源数量
*/
private Integer value;
public static GResource toBuild(TResource reward){
return GResource.builder()
.id(reward.id)
.value(reward.value)
.build();
}
}

View File

@ -0,0 +1,34 @@
package cn.jisol.game.entity.data;
import cfg.TbGEntity.TReward;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Builder
public class GReward {
/**
* 奖励类型
*/
private Integer type;
/**
* 奖励Id
*/
private Integer id;
/**
* 奖励数量
*/
private Integer value;
public static GReward toBuild(TReward reward){
return GReward.builder()
.id(reward.id)
.type(reward.type)
.value(reward.value)
.build();
}
}

View File

@ -1,19 +1,26 @@
package cn.jisol.game.entity.table;
import cfg.TbGEntity.TResource;
import cfg.TbGEntity.TReward;
import cn.jisol.game.entity.data.GResource;
import cn.jisol.game.entity.data.GReward;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
@TableName("`gift_record`")
@TableName(value = "`gift_record`",autoResultMap = true)
public class GiftRecord {
@TableId(type = IdType.AUTO)
@ -23,9 +30,10 @@ public class GiftRecord {
private String giftCfgName; //礼包名称
@TableField(typeHandler = FastjsonTypeHandler.class)
private List<TReward> giftCfgRewards; //礼包奖励
private List<GReward> giftCfgRewards; //礼包奖励
@TableField(typeHandler = FastjsonTypeHandler.class)
private List<GResource> giftCfgExchanges; //礼包价格
private Integer giftCfgPrice; //礼包价格
private Long giftBuyingTime; //礼包购买时间戳
}

View File

@ -20,7 +20,7 @@ public interface ResourceService extends IService<Resource> {
public Resource initResource(Resource resource);
//扣除玩家材料
public ArrayList<ResourceUpdateOV> deduct(Player player, cfg.TbGEntity.TResource[] materials);
public ArrayList<ResourceUpdateOV> deduct(Long playerId, cfg.TbGEntity.TResource[] materials);
//扣除通用加速卷
public ResourceUpdateOV deductSpeedUp(Player player, int type);

View File

@ -22,11 +22,9 @@ import org.springframework.retry.RetryException;
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.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
@Service
public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> implements ResourceService {
@ -104,12 +102,12 @@ public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> i
}
@Override
public ArrayList<ResourceUpdateOV> deduct(Player player, TResource[] materials) {
public ArrayList<ResourceUpdateOV> deduct(Long playerId, TResource[] materials) {
ArrayList<ResourceUpdateOV> list = new ArrayList<>();
for (TResource res : materials) {
Resource data = this.addResourceValue(player.getPlayerId(), res.id, -((long) res.value));
Resource data = this.addResourceValue(playerId, res.id, -((long) res.value));
if (Objects.isNull(data)) {
throw new ResourceNotException("资源不够");
} else {
@ -137,12 +135,16 @@ public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> i
@Override
public List<ResourceUpdateOV> rewards(Long playerId, TReward[] rewards) {
return Arrays.stream(rewards).map(reward -> {
if(reward.type == cfg.TbGEnum.TReward.Resource){
return ResourceUpdateOV.onUpdate(this.addResourceValue(playerId, reward.id, (long) reward.value));
}
return null;
}).collect(Collectors.toList());
//将同样的奖励合并
Map<Integer,List<TReward>> rewardsGroup = Arrays.stream(rewards).collect(Collectors.groupingBy(item -> item.id));
return rewardsGroup.values().stream().map(
(List<TReward> values) ->
ResourceUpdateOV.onUpdate(addResourceValue(playerId,values.get(0).id, values.stream().mapToLong(item -> item.value).sum())
))
.collect(Collectors.toList());
}

View File

@ -4,8 +4,8 @@ spring:
datasource:
username: pet_jisol_cn
password: sThsBwjfDcaw2wJR
url: jdbc:mysql://kyu.jisol.cn:3306/pet_jisol_cn?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&allowMultiQueries=true
# url: jdbc:mysql://localhost:3306/pet_jisol_cn?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&allowMultiQueries=true
# url: jdbc:mysql://kyu.jisol.cn:3306/pet_jisol_cn?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&allowMultiQueries=true
url: jdbc:mysql://localhost:3306/pet_jisol_cn?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&allowMultiQueries=true
driver-class-name: com.mysql.cj.jdbc.Driver
jackson:
serialization:

View File

@ -5,22 +5,67 @@
"tig": "金币礼包",
"limit": 1,
"limitValue": 0,
"price": 6,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,
"id": 90002,
"value": 20
"id": 90001,
"value": 1000
}
]
},
{
"id": 180002,
"name": "好多金币礼包",
"tig": "好多金币礼包",
"limit": 1,
"limitValue": 0,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,
"id": 90001,
"value": 1000
},
{
"type": 1,
"id": 90001,
"value": 1000
},
{
"type": 1,
"id": 90001,
"value": 1000
},
{
"type": 1,
"id": 90001,
"value": 1000
}
]
},
{
"id": 190001,
"name": "限购金币礼包",
"tig": "限购金币礼包",
"name": "限购矿石礼包",
"tig": "每日限购矿石礼包",
"limit": 2,
"limitValue": 1,
"price": 6,
"limitValue": 5,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,
@ -31,11 +76,16 @@
},
{
"id": 200001,
"name": "每日限购金币礼包",
"tig": "每日限购金币礼包",
"name": "每日矿石礼包",
"tig": "每日限购矿石礼包",
"limit": 3,
"limitValue": 1,
"price": 6,
"limitValue": 5,
"exchanges": [
{
"id": 90007,
"value": 6
}
],
"rewards": [
{
"type": 1,

View File

@ -6,12 +6,17 @@
},
{
"id": 2,
"tig": "限购金币礼包",
"giftId": 190001
"tig": "好多金币礼包",
"giftId": 180002
},
{
"id": 3,
"tig": "每日限购金币礼包",
"tig": "限购矿石礼包",
"giftId": 190001
},
{
"id": 4,
"tig": "每日矿石礼包",
"giftId": 200001
}
]