头像拉伸fix

This commit is contained in:
2025-09-25 11:29:09 +08:00
parent 25daff6d8c
commit b46c07ccad
8 changed files with 780 additions and 574 deletions
+3 -2
View File
@@ -41,8 +41,9 @@ export namespace CommonConfig {
Layer_ui2 = 2, Layer_ui2 = 2,
Layer_dialog = 3, Layer_dialog = 3,
Layer_tips = 4, Layer_tips = 4,
Layer_top = 5,
Layer_navigationbar = 6, Layer_navigationbar = 5,
Layer_top = 6,
} }
} }
+1 -1
View File
@@ -227,7 +227,7 @@ export class ViewManager extends Component {
i_openData, i_openData,
callBack, callBack,
i_prefab, i_prefab,
"tips" "top"
); );
} else { } else {
logger.log("打开界面:", i_prefab); logger.log("打开界面:", i_prefab);
@@ -920,7 +920,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 81.5, "y": 23.375999999999976,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1013,8 +1013,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 865, "width": 865.0920000000001,
"height": 1116 "height": 616.6315682281061
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -1041,8 +1041,8 @@
}, },
"_alignFlags": 42, "_alignFlags": 42,
"_target": null, "_target": null,
"_left": 0, "_left": -0.023000000000045873,
"_right": 0, "_right": -0.022999999999946397,
"_top": 508, "_top": 508,
"_bottom": 508, "_bottom": 508,
"_horizontalCenter": 0, "_horizontalCenter": 0,
@@ -1085,7 +1085,10 @@
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_spriteFrame": null, "_spriteFrame": {
"__uuid__": "777fc276-1999-4eba-a9a4-9bcfb84cbd72@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 0, "_sizeMode": 0,
@@ -1132,8 +1135,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 865, "width": 865.046,
"height": 1116 "height": 616.631568
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -1162,7 +1165,7 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 307.808216,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
@@ -3275,7 +3278,7 @@
"__id__": 34 "__id__": 34
}, },
"_children": [], "_children": [],
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 138 "__id__": 138
@@ -3295,8 +3298,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 342.19899999999996, "x": 372.25199999999995,
"y": 551.768, "y": 268.53600000000006,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -3358,7 +3361,7 @@
"node": { "node": {
"__id__": 137 "__id__": 137
}, },
"_enabled": false, "_enabled": true,
"__prefab": { "__prefab": {
"__id__": 141 "__id__": 141
}, },
@@ -3367,9 +3370,9 @@
"_dstBlendFactor": 4, "_dstBlendFactor": 4,
"_color": { "_color": {
"__type__": "cc.Color", "__type__": "cc.Color",
"r": 124, "r": 214,
"g": 124, "g": 214,
"b": 124, "b": 214,
"a": 255 "a": 255
}, },
"_spriteFrame": { "_spriteFrame": {
@@ -3408,7 +3411,7 @@
"__id__": 143 "__id__": 143
}, },
"clickEvents": [], "clickEvents": [],
"_interactable": false, "_interactable": true,
"_transition": 1, "_transition": 1,
"_normalColor": { "_normalColor": {
"__type__": "cc.Color", "__type__": "cc.Color",
@@ -3480,8 +3483,8 @@
"_alignFlags": 33, "_alignFlags": 33,
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 62.301000000000045, "_right": 32.24800000000005,
"_top": 59.73199999999997, "_top": 342.96399999999994,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
@@ -2,7 +2,7 @@
"ver": "1.1.50", "ver": "1.1.50",
"importer": "prefab", "importer": "prefab",
"imported": true, "imported": true,
"uuid": "afacd1df-6501-429b-9ea5-78e88900e6fa", "uuid": "b74d98b5-cded-438b-aa35-efecb6e3d293",
"files": [ "files": [
".json" ".json"
], ],
@@ -920,7 +920,7 @@
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 0, "x": 0,
"y": 81.5, "y": 23.375999999999976,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -1013,8 +1013,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 865, "width": 865.0920000000001,
"height": 1116 "height": 616.6315682281061
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -1041,8 +1041,8 @@
}, },
"_alignFlags": 42, "_alignFlags": 42,
"_target": null, "_target": null,
"_left": 0, "_left": -0.023000000000045873,
"_right": 0, "_right": -0.022999999999946397,
"_top": 508, "_top": 508,
"_bottom": 508, "_bottom": 508,
"_horizontalCenter": 0, "_horizontalCenter": 0,
@@ -1085,7 +1085,10 @@
"b": 255, "b": 255,
"a": 255 "a": 255
}, },
"_spriteFrame": null, "_spriteFrame": {
"__uuid__": "777fc276-1999-4eba-a9a4-9bcfb84cbd72@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0, "_type": 0,
"_fillType": 0, "_fillType": 0,
"_sizeMode": 0, "_sizeMode": 0,
@@ -1132,8 +1135,8 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 865, "width": 865.046,
"height": 1116 "height": 616.631568
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
@@ -1162,7 +1165,7 @@
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 0, "_right": 0,
"_top": 0, "_top": 307.808216,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
@@ -3295,8 +3298,8 @@
}, },
"_lpos": { "_lpos": {
"__type__": "cc.Vec3", "__type__": "cc.Vec3",
"x": 342.19899999999996, "x": 372.25199999999995,
"y": 551.768, "y": 268.53600000000006,
"z": 0 "z": 0
}, },
"_lrot": { "_lrot": {
@@ -3480,8 +3483,8 @@
"_alignFlags": 33, "_alignFlags": 33,
"_target": null, "_target": null,
"_left": 0, "_left": 0,
"_right": 62.301000000000045, "_right": 32.24800000000005,
"_top": 59.73199999999997, "_top": 342.96399999999994,
"_bottom": 0, "_bottom": 0,
"_horizontalCenter": 0, "_horizontalCenter": 0,
"_verticalCenter": 0, "_verticalCenter": 0,
File diff suppressed because it is too large Load Diff
Binary file not shown.

Before

Width:  |  Height:  |  Size: 277 KiB

After

Width:  |  Height:  |  Size: 269 KiB

+21 -21
View File
@@ -46,10 +46,10 @@
"offsetY": 0, "offsetY": 0,
"trimX": 0, "trimX": 0,
"trimY": 0, "trimY": 0,
"width": 442, "width": 491,
"height": 442, "height": 350,
"rawWidth": 442, "rawWidth": 491,
"rawHeight": 442, "rawHeight": 350,
"borderTop": 0, "borderTop": 0,
"borderBottom": 0, "borderBottom": 0,
"borderLeft": 0, "borderLeft": 0,
@@ -61,17 +61,17 @@
"meshType": 0, "meshType": 0,
"vertices": { "vertices": {
"rawPosition": [ "rawPosition": [
-221, -245.5,
-221, -175,
0, 0,
221, 245.5,
-221, -175,
0, 0,
-221, -245.5,
221, 175,
0, 0,
221, 245.5,
221, 175,
0 0
], ],
"indexes": [ "indexes": [
@@ -84,12 +84,12 @@
], ],
"uv": [ "uv": [
0, 0,
442, 350,
442, 491,
442, 350,
0, 0,
0, 0,
442, 491,
0 0
], ],
"nuv": [ "nuv": [
@@ -103,13 +103,13 @@
1 1
], ],
"minPos": [ "minPos": [
-221, -245.5,
-221, -175,
0 0
], ],
"maxPos": [ "maxPos": [
221, 245.5,
221, 175,
0 0
] ]
}, },
@@ -127,7 +127,7 @@
}, },
"userData": { "userData": {
"type": "sprite-frame", "type": "sprite-frame",
"hasAlpha": false, "hasAlpha": true,
"fixAlphaTransparencyArtifacts": false, "fixAlphaTransparencyArtifacts": false,
"redirect": "777fc276-1999-4eba-a9a4-9bcfb84cbd72@6c48a" "redirect": "777fc276-1999-4eba-a9a4-9bcfb84cbd72@6c48a"
} }