feat(gui): 为通知弹窗添加入场和出场动画

- 新增 notify.anim 动画文件,实现从右向左滑入和淡出效果
- 调整弹窗尺寸和文本布局以适配动画效果
- 启用动画组件并配置默认播放
This commit is contained in:
walkpan
2026-03-28 14:32:40 +08:00
parent 7a3d7dba2f
commit 3faa5862b7
3 changed files with 583 additions and 13 deletions

View File

@@ -146,7 +146,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 680,
"height": 120
"height": 80
},
"_anchorPoint": {
"__type__": "cc.Vec2",
@@ -182,7 +182,7 @@
"a": 255
},
"_spriteFrame": {
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@091ff",
"__uuid__": "6165ffc9-a838-4a33-b569-bdbaaab0e6b4@7f50d",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
@@ -285,7 +285,7 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 15,
"x": 0,
"y": 0,
"z": 0
},
@@ -326,7 +326,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 610,
"width": 650,
"height": 70
},
"_anchorPoint": {
@@ -363,10 +363,10 @@
"a": 255
},
"_string": "信息",
"_horizontalAlign": 0,
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 31,
"_fontSize": 30,
"_actualFontSize": 26,
"_fontSize": 25,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 2,
@@ -442,8 +442,8 @@
},
"_alignFlags": 45,
"_target": null,
"_left": 60,
"_right": 30,
"_left": 25,
"_right": 25,
"_top": 40,
"_bottom": 40,
"_horizontalCenter": 0,
@@ -486,7 +486,7 @@
"__id__": 1
},
"_children": [],
"_active": true,
"_active": false,
"_components": [
{
"__id__": 21
@@ -691,13 +691,21 @@
"node": {
"__id__": 1
},
"_enabled": false,
"_enabled": true,
"__prefab": {
"__id__": 31
},
"playOnLoad": true,
"_clips": [],
"_defaultClip": null,
"_clips": [
{
"__uuid__": "c0d7c1dc-c150-4a47-80b7-826fa74203dd",
"__expectedType__": "cc.AnimationClip"
}
],
"_defaultClip": {
"__uuid__": "c0d7c1dc-c150-4a47-80b7-826fa74203dd",
"__expectedType__": "cc.AnimationClip"
},
"_id": ""
},
{