fix:界面拉伸适配. add:支持cocos animation,spine,dragonbones等文件导入.

This commit is contained in:
YipLee
2021-01-22 00:02:49 +08:00
parent c4f716c8e9
commit c232a91a41
23 changed files with 2590 additions and 2028 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -27,20 +27,20 @@
"__id__": 10
},
{
"__id__": 20
"__id__": 24
},
{
"__id__": 32
"__id__": 36
}
],
"_active": true,
"_components": [
{
"__id__": 62
"__id__": 66
}
],
"_prefab": {
"__id__": 63
"__id__": 67
},
"_opacity": 255,
"_color": {
@@ -373,22 +373,25 @@
"_children": [
{
"__id__": 11
},
{
"__id__": 15
}
],
"_active": true,
"_components": [
{
"__id__": 15
"__id__": 19
},
{
"__id__": 16
"__id__": 20
},
{
"__id__": 17
"__id__": 21
}
],
"_prefab": {
"__id__": 19
"__id__": 23
},
"_opacity": 255,
"_color": {
@@ -439,7 +442,7 @@
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_name": "tri",
"_objFlags": 0,
"_parent": {
"__id__": 10
@@ -458,6 +461,143 @@
"__id__": 14
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 220,
"g": 220,
"b": 220,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 173
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
145,
0,
0,
0,
0,
1,
6.123233995736766e-17,
0.08,
0.08,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 180
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 7,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "d5067326-2ed3-4e1a-91a4-706a7e1ba65e"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "d2a69c7f-2a5f-40da-9dcc-ef17c9a856be"
},
"fileId": "27/82N9gVHJJF2/FU7Rh6Z",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "New Label",
"_objFlags": 0,
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 16
},
{
"__id__": 17
}
],
"_prefab": {
"__id__": 18
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
@@ -467,7 +607,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 153,
"width": 130,
"height": 40.32
},
"_anchorPoint": {
@@ -509,14 +649,14 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 15
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 2,
"_right": 5,
"_right": 28,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
@@ -536,7 +676,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 11
"__id__": 15
},
"_enabled": true,
"_materials": [
@@ -639,38 +779,40 @@
"__id__": 10
},
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
},
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 18
"__id__": 22
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$transition": 1,
"transition": 1,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 220,
"g": 220,
"b": 220,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"r": 120,
"g": 120,
"b": 120,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"r": 120,
"g": 120,
"b": 120,
"a": 255
},
"_N$hoverColor": {
@@ -689,9 +831,9 @@
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"r": 120,
"g": 120,
"b": 120,
"a": 255
},
"_N$normalSprite": null,
@@ -700,7 +842,9 @@
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_N$target": {
"__id__": 11
},
"_id": ""
},
{
@@ -732,24 +876,24 @@
"__id__": 1
},
"_children": [
{
"__id__": 21
},
{
"__id__": 25
}
],
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
}
],
"_active": true,
"_components": [
{
"__id__": 32
},
{
"__id__": 33
}
],
"_prefab": {
"__id__": 31
"__id__": 35
},
"_opacity": 255,
"_color": {
@@ -803,20 +947,20 @@
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 20
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 22
"__id__": 26
},
{
"__id__": 23
"__id__": 27
}
],
"_prefab": {
"__id__": 24
"__id__": 28
},
"_opacity": 255,
"_color": {
@@ -870,7 +1014,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 25
},
"_enabled": true,
"_materials": [
@@ -902,7 +1046,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
"__id__": 25
},
"_enabled": true,
"alignMode": 1,
@@ -940,17 +1084,17 @@
"_name": "lab",
"_objFlags": 0,
"_parent": {
"__id__": 20
"__id__": 24
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 26
"__id__": 30
}
],
"_prefab": {
"__id__": 27
"__id__": 31
},
"_opacity": 255,
"_color": {
@@ -1004,7 +1148,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 25
"__id__": 29
},
"_enabled": true,
"_materials": [
@@ -1045,7 +1189,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 24
},
"_enabled": true,
"alignMode": 1,
@@ -1072,7 +1216,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 20
"__id__": 24
},
"_enabled": true,
"_normalMaterial": null,
@@ -1081,7 +1225,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 30
"__id__": 34
}
],
"_N$interactable": true,
@@ -1169,20 +1313,20 @@
},
"_children": [
{
"__id__": 33
"__id__": 37
},
{
"__id__": 50
"__id__": 54
}
],
"_active": true,
"_components": [
{
"__id__": 60
"__id__": 64
}
],
"_prefab": {
"__id__": 61
"__id__": 65
},
"_opacity": 255,
"_color": {
@@ -1236,27 +1380,27 @@
"_name": "number",
"_objFlags": 0,
"_parent": {
"__id__": 32
"__id__": 36
},
"_children": [
{
"__id__": 34
},
{
"__id__": 38
},
{
"__id__": 42
},
{
"__id__": 46
}
],
"_active": true,
"_components": [
{
"__id__": 46
"__id__": 50
}
],
"_prefab": {
"__id__": 49
"__id__": 53
},
"_opacity": 255,
"_color": {
@@ -1310,20 +1454,20 @@
"_name": "BACKGROUND_SPRITE",
"_objFlags": 0,
"_parent": {
"__id__": 33
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
"__id__": 39
},
{
"__id__": 36
"__id__": 40
}
],
"_prefab": {
"__id__": 37
"__id__": 41
},
"_opacity": 255,
"_color": {
@@ -1377,7 +1521,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 38
},
"_enabled": true,
"_materials": [
@@ -1409,7 +1553,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 34
"__id__": 38
},
"_enabled": true,
"alignMode": 0,
@@ -1447,20 +1591,20 @@
"_name": "TEXT_LABEL",
"_objFlags": 0,
"_parent": {
"__id__": 33
"__id__": 37
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 39
"__id__": 43
},
{
"__id__": 40
"__id__": 44
}
],
"_prefab": {
"__id__": 41
"__id__": 45
},
"_opacity": 255,
"_color": {
@@ -1514,7 +1658,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 42
},
"_enabled": true,
"_materials": [],
@@ -1540,7 +1684,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 38
"__id__": 42
},
"_enabled": true,
"alignMode": 0,
@@ -1578,20 +1722,20 @@
"_name": "PLACEHOLDER_LABEL",
"_objFlags": 0,
"_parent": {
"__id__": 33
"__id__": 37
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 43
"__id__": 47
},
{
"__id__": 44
"__id__": 48
}
],
"_prefab": {
"__id__": 45
"__id__": 49
},
"_opacity": 255,
"_color": {
@@ -1645,7 +1789,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 46
},
"_enabled": true,
"_materials": [
@@ -1675,7 +1819,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 42
"__id__": 46
},
"_enabled": true,
"alignMode": 0,
@@ -1713,7 +1857,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 33
"__id__": 37
},
"_enabled": true,
"_useOriginalSize": false,
@@ -1723,24 +1867,24 @@
"_tabIndex": 0,
"editingDidBegan": [
{
"__id__": 47
"__id__": 51
}
],
"textChanged": [
{
"__id__": 48
"__id__": 52
}
],
"editingDidEnded": [],
"editingReturn": [],
"_N$textLabel": {
"__id__": 39
},
"_N$placeholderLabel": {
"__id__": 43
},
"_N$placeholderLabel": {
"__id__": 47
},
"_N$background": {
"__id__": 35
"__id__": 39
},
"_N$inputFlag": 5,
"_N$inputMode": 6,
@@ -1783,24 +1927,24 @@
"_name": "boolean",
"_objFlags": 0,
"_parent": {
"__id__": 32
"__id__": 36
},
"_children": [
{
"__id__": 51
"__id__": 55
},
{
"__id__": 54
"__id__": 58
}
],
"_active": false,
"_components": [
{
"__id__": 57
"__id__": 61
}
],
"_prefab": {
"__id__": 59
"__id__": 63
},
"_opacity": 255,
"_color": {
@@ -1854,17 +1998,17 @@
"_name": "Background",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 54
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 52
"__id__": 56
}
],
"_prefab": {
"__id__": 53
"__id__": 57
},
"_opacity": 255,
"_color": {
@@ -1918,7 +2062,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 51
"__id__": 55
},
"_enabled": true,
"_materials": [
@@ -1961,17 +2105,17 @@
"_name": "checkmark",
"_objFlags": 0,
"_parent": {
"__id__": 50
"__id__": 54
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
"__id__": 59
}
],
"_prefab": {
"__id__": 56
"__id__": 60
},
"_opacity": 255,
"_color": {
@@ -2025,7 +2169,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 54
"__id__": 58
},
"_enabled": true,
"_materials": [
@@ -2068,7 +2212,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 50
"__id__": 54
},
"_enabled": true,
"_normalMaterial": {
@@ -2131,16 +2275,16 @@
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 51
"__id__": 55
},
"_N$isChecked": true,
"toggleGroup": null,
"checkMark": {
"__id__": 55
"__id__": 59
},
"checkEvents": [
{
"__id__": 58
"__id__": 62
}
],
"_id": ""
@@ -2171,7 +2315,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 32
"__id__": 36
},
"_enabled": true,
"alignMode": 1,
@@ -2216,13 +2360,13 @@
"__id__": 2
},
"ParamName": {
"__id__": 13
"__id__": 17
},
"LogicNode": {
"__id__": 20
"__id__": 24
},
"ValueNode": {
"__id__": 32
"__id__": 36
},
"_id": ""
},

View File

@@ -24,17 +24,17 @@
"_active": true,
"_components": [
{
"__id__": 5
},
{
"__id__": 7
"__id__": 6
},
{
"__id__": 8
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 9
"__id__": 10
},
"_opacity": 255,
"_color": {
@@ -95,10 +95,13 @@
"_components": [
{
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 4
"__id__": 5
},
"_opacity": 255,
"_color": {
@@ -147,6 +150,33 @@
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 5,
"_right": 5,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 200,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
@@ -204,7 +234,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 6
"__id__": 7
}
],
"_N$interactable": true,
@@ -325,7 +355,7 @@
},
"_enabled": true,
"NameLabel": {
"__id__": 3
"__id__": 4
},
"_id": ""
},

View File

@@ -397,8 +397,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 35,
"height": 35
"width": 30,
"height": 30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -553,7 +553,7 @@
"_target": null,
"_alignFlags": 32,
"_left": 0,
"_right": 12.5,
"_right": 15,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
@@ -576,7 +576,9 @@
"__id__": 10
},
"_enabled": true,
"_normalMaterial": null,
"_normalMaterial": {
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
},
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
@@ -587,27 +589,27 @@
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 0,
"transition": 0,
"_N$transition": 1,
"transition": 1,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"r": 220,
"g": 220,
"b": 220,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"r": 120,
"g": 120,
"b": 120,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"r": 120,
"g": 120,
"b": 120,
"a": 255
},
"_N$hoverColor": {
@@ -626,9 +628,9 @@
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"r": 120,
"g": 120,
"b": 120,
"a": 255
},
"_N$normalSprite": null,
@@ -637,7 +639,9 @@
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": null,
"_N$target": {
"__id__": 11
},
"_id": ""
},
{

View File

@@ -19,22 +19,22 @@
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 8
"__id__": 6
},
{
"__id__": 10
"__id__": 7
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 11
"__id__": 10
},
"_opacity": 255,
"_color": {
@@ -83,113 +83,6 @@
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 145,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9cc36e23-5b41-44ad-8512-a0a6bbf8e7b1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "bd11cbb4-2878-4444-a558-63960f0ca931"
},
"fileId": "9eZGS5RWpKlachTtOIsQ4f",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "New Label",
@@ -201,11 +94,14 @@
"_active": true,
"_components": [
{
"__id__": 6
"__id__": 3
},
{
"__id__": 4
}
],
"_prefab": {
"__id__": 7
"__id__": 5
},
"_opacity": 255,
"_color": {
@@ -217,7 +113,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 145,
"width": 135,
"height": 50.4
},
"_anchorPoint": {
@@ -254,12 +150,39 @@
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 40,
"_left": 5,
"_right": 5,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 135,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
"__id__": 2
},
"_enabled": true,
"_materials": [
@@ -295,6 +218,38 @@
"fileId": "4d6ZMnzSdJHauzrxuxF0uV",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9cc36e23-5b41-44ad-8512-a0a6bbf8e7b1"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
@@ -311,7 +266,7 @@
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 9
"__id__": 8
}
],
"_N$interactable": true,
@@ -366,9 +321,7 @@
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 2
},
"_N$target": null,
"_id": ""
},
{
@@ -390,7 +343,7 @@
},
"_enabled": true,
"ParamName": {
"__id__": 6
"__id__": 4
},
"_id": ""
},