- MVP架构重构聊天逻辑

- 优化聊天气泡体验
- 修复prompt bug
- 实现聊天次数限制功能(未接服务端)
- 实现情绪切视频功能
This commit is contained in:
2025-08-27 16:12:19 +08:00
parent 9004f77e8d
commit e57818d498
27 changed files with 1713 additions and 687 deletions
+175 -146
View File
@@ -28,23 +28,23 @@
"__id__": 131
},
{
"__id__": 326
"__id__": 328
}
],
"_active": true,
"_components": [
{
"__id__": 356
},
{
"__id__": 358
},
{
"__id__": 360
},
{
"__id__": 362
}
],
"_prefab": {
"__id__": 362
"__id__": 364
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -100,23 +100,23 @@
"__id__": 175
},
{
"__id__": 263
"__id__": 265
}
],
"_active": true,
"_components": [
{
"__id__": 319
},
{
"__id__": 321
},
{
"__id__": 323
},
{
"__id__": 325
}
],
"_prefab": {
"__id__": 325
"__id__": 327
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -640,6 +640,8 @@
"__id__": 0
},
"fileId": "72Zr8T/ixB7bYZRSWtwmd/",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -836,6 +838,8 @@
"__id__": 0
},
"fileId": "39EnTuibZGCr652I/KtAjK",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
@@ -3979,10 +3983,13 @@
},
{
"__id__": 260
},
{
"__id__": 262
}
],
"_prefab": {
"__id__": 262
"__id__": 264
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6010,6 +6017,25 @@
"__type__": "cc.CompPrefabInfo",
"fileId": "32nKXN2pZIQYfZpP+3u9ug"
},
{
"__type__": "cc.UIOpacity",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 175
},
"_enabled": true,
"__prefab": {
"__id__": 263
},
"_opacity": 255,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5buqvlFA9O36SAhnzWV/t8"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -6033,29 +6059,29 @@
},
"_children": [
{
"__id__": 264
"__id__": 266
},
{
"__id__": 272
"__id__": 274
},
{
"__id__": 297
"__id__": 299
}
],
"_active": true,
"_components": [
{
"__id__": 312
},
{
"__id__": 314
},
{
"__id__": 316
},
{
"__id__": 318
}
],
"_prefab": {
"__id__": 318
"__id__": 320
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6092,23 +6118,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 263
"__id__": 265
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 265
},
{
"__id__": 267
},
{
"__id__": 269
},
{
"__id__": 271
}
],
"_prefab": {
"__id__": 271
"__id__": 273
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6145,11 +6171,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 264
"__id__": 266
},
"_enabled": true,
"__prefab": {
"__id__": 266
"__id__": 268
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6173,11 +6199,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 264
"__id__": 266
},
"_enabled": true,
"__prefab": {
"__id__": 268
"__id__": 270
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6218,11 +6244,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 264
"__id__": 266
},
"_enabled": true,
"__prefab": {
"__id__": 270
"__id__": 272
},
"_alignFlags": 40,
"_target": null,
@@ -6267,21 +6293,18 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 263
"__id__": 265
},
"_children": [
{
"__id__": 273
"__id__": 275
},
{
"__id__": 279
"__id__": 281
}
],
"_active": true,
"_components": [
{
"__id__": 287
},
{
"__id__": 289
},
@@ -6289,11 +6312,14 @@
"__id__": 291
},
{
"__id__": 294
"__id__": 293
},
{
"__id__": 296
}
],
"_prefab": {
"__id__": 296
"__id__": 298
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6330,20 +6356,20 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 272
"__id__": 274
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 274
"__id__": 276
},
{
"__id__": 276
"__id__": 278
}
],
"_prefab": {
"__id__": 278
"__id__": 280
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6380,11 +6406,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 273
"__id__": 275
},
"_enabled": true,
"__prefab": {
"__id__": 275
"__id__": 277
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6408,11 +6434,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 273
"__id__": 275
},
"_enabled": true,
"__prefab": {
"__id__": 277
"__id__": 279
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6489,23 +6515,23 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 272
"__id__": 274
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 280
},
{
"__id__": 282
},
{
"__id__": 284
},
{
"__id__": 286
}
],
"_prefab": {
"__id__": 286
"__id__": 288
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6542,11 +6568,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 279
"__id__": 281
},
"_enabled": true,
"__prefab": {
"__id__": 281
"__id__": 283
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6570,11 +6596,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 279
"__id__": 281
},
"_enabled": true,
"__prefab": {
"__id__": 283
"__id__": 285
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6638,11 +6664,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 279
"__id__": 281
},
"_enabled": true,
"__prefab": {
"__id__": 285
"__id__": 287
},
"languageKey": "chatpanel.inputplaceholder",
"defaultText": "",
@@ -6672,11 +6698,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 272
"__id__": 274
},
"_enabled": true,
"__prefab": {
"__id__": 288
"__id__": 290
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6700,11 +6726,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 272
"__id__": 274
},
"_enabled": false,
"__prefab": {
"__id__": 290
"__id__": 292
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -6745,25 +6771,25 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 272
"__id__": 274
},
"_enabled": true,
"__prefab": {
"__id__": 292
"__id__": 294
},
"editingDidBegan": [],
"textChanged": [],
"editingDidEnded": [],
"editingReturn": [
{
"__id__": 293
"__id__": 295
}
],
"_textLabel": {
"__id__": 276
"__id__": 278
},
"_placeholderLabel": {
"__id__": 282
"__id__": 284
},
"_returnType": 0,
"_string": "",
@@ -6797,11 +6823,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 272
"__id__": 274
},
"_enabled": true,
"__prefab": {
"__id__": 295
"__id__": 297
},
"_alignFlags": 44,
"_target": null,
@@ -6846,27 +6872,27 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 263
"__id__": 265
},
"_children": [
{
"__id__": 298
"__id__": 300
}
],
"_active": true,
"_components": [
{
"__id__": 304
},
{
"__id__": 306
},
{
"__id__": 308
},
{
"__id__": 310
}
],
"_prefab": {
"__id__": 311
"__id__": 313
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6903,20 +6929,20 @@
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 297
"__id__": 299
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 299
"__id__": 301
},
{
"__id__": 301
"__id__": 303
}
],
"_prefab": {
"__id__": 303
"__id__": 305
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -6953,11 +6979,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 298
"__id__": 300
},
"_enabled": true,
"__prefab": {
"__id__": 300
"__id__": 302
},
"_contentSize": {
"__type__": "cc.Size",
@@ -6981,11 +7007,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 298
"__id__": 300
},
"_enabled": true,
"__prefab": {
"__id__": 302
"__id__": 304
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -7062,11 +7088,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 297
"__id__": 299
},
"_enabled": true,
"__prefab": {
"__id__": 305
"__id__": 307
},
"_contentSize": {
"__type__": "cc.Size",
@@ -7090,11 +7116,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 297
"__id__": 299
},
"_enabled": true,
"__prefab": {
"__id__": 307
"__id__": 309
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -7135,15 +7161,15 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 297
"__id__": 299
},
"_enabled": true,
"__prefab": {
"__id__": 309
"__id__": 311
},
"clickEvents": [
{
"__id__": 310
"__id__": 312
}
],
"_interactable": true,
@@ -7195,7 +7221,7 @@
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
"__id__": 297
"__id__": 299
},
"_id": ""
},
@@ -7232,11 +7258,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 263
"__id__": 265
},
"_enabled": true,
"__prefab": {
"__id__": 313
"__id__": 315
},
"_contentSize": {
"__type__": "cc.Size",
@@ -7260,11 +7286,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 263
"__id__": 265
},
"_enabled": true,
"__prefab": {
"__id__": 315
"__id__": 317
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -7305,11 +7331,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 263
"__id__": 265
},
"_enabled": true,
"__prefab": {
"__id__": 317
"__id__": 319
},
"_alignFlags": 44,
"_target": null,
@@ -7358,7 +7384,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 320
"__id__": 322
},
"_contentSize": {
"__type__": "cc.Size",
@@ -7386,7 +7412,7 @@
},
"_enabled": false,
"__prefab": {
"__id__": 322
"__id__": 324
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -7431,7 +7457,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 324
"__id__": 326
},
"_alignFlags": 45,
"_target": null,
@@ -7480,20 +7506,20 @@
},
"_children": [
{
"__id__": 327
"__id__": 329
}
],
"_active": true,
"_components": [
{
"__id__": 351
"__id__": 353
},
{
"__id__": 353
"__id__": 355
}
],
"_prefab": {
"__id__": 355
"__id__": 357
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -7530,24 +7556,24 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 326
"__id__": 328
},
"_children": [
{
"__id__": 328
"__id__": 330
}
],
"_active": true,
"_components": [
{
"__id__": 346
"__id__": 348
},
{
"__id__": 348
"__id__": 350
}
],
"_prefab": {
"__id__": 350
"__id__": 352
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -7584,27 +7610,27 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 327
"__id__": 329
},
"_children": [
{
"__id__": 329
"__id__": 331
}
],
"_active": true,
"_components": [
{
"__id__": 339
},
{
"__id__": 341
},
{
"__id__": 343
},
{
"__id__": 345
}
],
"_prefab": {
"__id__": 345
"__id__": 347
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -7641,14 +7667,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 328
"__id__": 330
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 330
},
{
"__id__": 332
},
@@ -7657,10 +7680,13 @@
},
{
"__id__": 336
},
{
"__id__": 338
}
],
"_prefab": {
"__id__": 338
"__id__": 340
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -7697,11 +7723,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 329
"__id__": 331
},
"_enabled": true,
"__prefab": {
"__id__": 331
"__id__": 333
},
"_contentSize": {
"__type__": "cc.Size",
@@ -7725,11 +7751,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 329
"__id__": 331
},
"_enabled": true,
"__prefab": {
"__id__": 333
"__id__": 335
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -7767,11 +7793,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 329
"__id__": 331
},
"_enabled": true,
"__prefab": {
"__id__": 335
"__id__": 337
},
"_alignFlags": 12,
"_target": null,
@@ -7803,11 +7829,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 329
"__id__": 331
},
"_enabled": true,
"__prefab": {
"__id__": 337
"__id__": 339
},
"clickEvents": [],
"_interactable": true,
@@ -7872,11 +7898,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 328
"__id__": 330
},
"_enabled": true,
"__prefab": {
"__id__": 340
"__id__": 342
},
"_contentSize": {
"__type__": "cc.Size",
@@ -7900,11 +7926,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 328
"__id__": 330
},
"_enabled": true,
"__prefab": {
"__id__": 342
"__id__": 344
},
"_type": 3,
"_inverted": false,
@@ -7922,11 +7948,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 328
"__id__": 330
},
"_enabled": true,
"__prefab": {
"__id__": 344
"__id__": 346
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -7980,11 +8006,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 327
"__id__": 329
},
"_enabled": true,
"__prefab": {
"__id__": 347
"__id__": 349
},
"_contentSize": {
"__type__": "cc.Size",
@@ -8008,11 +8034,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 327
"__id__": 329
},
"_enabled": true,
"__prefab": {
"__id__": 349
"__id__": 351
},
"_customMaterial": null,
"_srcBlendFactor": 2,
@@ -8066,11 +8092,11 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 326
"__id__": 328
},
"_enabled": true,
"__prefab": {
"__id__": 352
"__id__": 354
},
"_contentSize": {
"__type__": "cc.Size",
@@ -8094,14 +8120,14 @@
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 326
"__id__": 328
},
"_enabled": true,
"__prefab": {
"__id__": 354
"__id__": 356
},
"image": {
"__id__": 332
"__id__": 334
},
"_id": ""
},
@@ -8132,7 +8158,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 357
"__id__": 359
},
"_contentSize": {
"__type__": "cc.Size",
@@ -8160,7 +8186,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 359
"__id__": 361
},
"_alignFlags": 45,
"_target": null,
@@ -8196,11 +8222,14 @@
},
"_enabled": true,
"__prefab": {
"__id__": 361
"__id__": 363
},
"m_rootNode": null,
"payToTalkPanel": {
"__id__": 260
},
"editBox": {
"__id__": 291
"__id__": 293
},
"girlName": {
"__id__": 26
@@ -8215,7 +8244,7 @@
"__id__": 96
},
"popUpImage": {
"__id__": 353
"__id__": 355
},
"_id": ""
},