1. 重构IBoxComp组件,移除旧的标题名称渲染逻辑 2. 添加动态背景节点,根据RichText内容自动调整高度 3. 优化cardbg和herobox预制体样式,调整尺寸与透明度 4. 新增通用背景预制体hbg,支持多配色快速复用 5. 重写ibox预制体结构,适配新的组件逻辑
498 lines
8.6 KiB
Plaintext
498 lines
8.6 KiB
Plaintext
[
|
|
{
|
|
"__type__": "cc.Prefab",
|
|
"_name": "ibox",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_native": "",
|
|
"data": {
|
|
"__id__": 1
|
|
},
|
|
"optimizationPolicy": 0,
|
|
"persistent": false
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "ibox",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": null,
|
|
"_children": [
|
|
{
|
|
"__id__": 2
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 18
|
|
},
|
|
{
|
|
"__id__": 20
|
|
},
|
|
{
|
|
"__id__": 22
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 24
|
|
},
|
|
"_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": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "bg",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 1
|
|
},
|
|
"_children": [
|
|
{
|
|
"__id__": 3
|
|
}
|
|
],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 11
|
|
},
|
|
{
|
|
"__id__": 13
|
|
},
|
|
{
|
|
"__id__": 15
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 17
|
|
},
|
|
"_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": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.Node",
|
|
"_name": "RichText",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"_parent": {
|
|
"__id__": 2
|
|
},
|
|
"_children": [],
|
|
"_active": true,
|
|
"_components": [
|
|
{
|
|
"__id__": 4
|
|
},
|
|
{
|
|
"__id__": 6
|
|
},
|
|
{
|
|
"__id__": 8
|
|
}
|
|
],
|
|
"_prefab": {
|
|
"__id__": 10
|
|
},
|
|
"_lpos": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 13.23,
|
|
"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": 1073741824,
|
|
"_euler": {
|
|
"__type__": "cc.Vec3",
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 3
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 5
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 680,
|
|
"height": 26.46
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 1
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "f9P0FitIBPiarjn19qXfN9"
|
|
},
|
|
{
|
|
"__type__": "cc.RichText",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 3
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 7
|
|
},
|
|
"_lineHeight": 21,
|
|
"_string": "ewrwerwer",
|
|
"_horizontalAlign": 0,
|
|
"_verticalAlign": 0,
|
|
"_fontSize": 20,
|
|
"_fontColor": {
|
|
"__type__": "cc.Color",
|
|
"r": 255,
|
|
"g": 255,
|
|
"b": 255,
|
|
"a": 255
|
|
},
|
|
"_maxWidth": 680,
|
|
"_fontFamily": "Arial",
|
|
"_font": null,
|
|
"_isSystemFontUsed": true,
|
|
"_userDefinedFont": null,
|
|
"_cacheMode": 0,
|
|
"_imageAtlas": null,
|
|
"_handleTouchEvent": true,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "98HP2TxSJGp6RnjjSj4Qiz"
|
|
},
|
|
{
|
|
"__type__": "cc.Widget",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 3
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 9
|
|
},
|
|
"_alignFlags": 2,
|
|
"_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": 0,
|
|
"_originalHeight": 0,
|
|
"_alignMode": 2,
|
|
"_lockFlags": 0,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "d4XhOEYOdPU6CgV2ZyFjaA"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "e1kNzT6pdIZ5/Pc7d4F8c5",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 12
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 710,
|
|
"height": 150
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "b8MCmHMq5A1q3NRlL90DLh"
|
|
},
|
|
{
|
|
"__type__": "cc.Sprite",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 14
|
|
},
|
|
"_customMaterial": null,
|
|
"_srcBlendFactor": 2,
|
|
"_dstBlendFactor": 4,
|
|
"_color": {
|
|
"__type__": "cc.Color",
|
|
"r": 54,
|
|
"g": 151,
|
|
"b": 255,
|
|
"a": 255
|
|
},
|
|
"_spriteFrame": {
|
|
"__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@f5d5c",
|
|
"__expectedType__": "cc.SpriteFrame"
|
|
},
|
|
"_type": 1,
|
|
"_fillType": 0,
|
|
"_sizeMode": 0,
|
|
"_fillCenter": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"_fillStart": 0,
|
|
"_fillRange": 0,
|
|
"_isTrimmedMode": true,
|
|
"_useGrayscale": true,
|
|
"_atlas": null,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "4311l14b1DvJVpJKdqMvF3"
|
|
},
|
|
{
|
|
"__type__": "cc.Widget",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 2
|
|
},
|
|
"_enabled": false,
|
|
"__prefab": {
|
|
"__id__": 16
|
|
},
|
|
"_alignFlags": 40,
|
|
"_target": null,
|
|
"_left": 5,
|
|
"_right": 5,
|
|
"_top": 620,
|
|
"_bottom": 620,
|
|
"_horizontalCenter": 0,
|
|
"_verticalCenter": 0,
|
|
"_isAbsLeft": true,
|
|
"_isAbsRight": true,
|
|
"_isAbsTop": true,
|
|
"_isAbsBottom": true,
|
|
"_isAbsHorizontalCenter": true,
|
|
"_isAbsVerticalCenter": true,
|
|
"_originalWidth": 40,
|
|
"_originalHeight": 40,
|
|
"_alignMode": 2,
|
|
"_lockFlags": 0,
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "0dQJIxbaBKwofpTM9AD0z1"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "cf0Pbjyg1HU74pnxq7zQ2O",
|
|
"instance": null,
|
|
"targetOverrides": null,
|
|
"nestedPrefabInstanceRoots": null
|
|
},
|
|
{
|
|
"__type__": "cc.UITransform",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 19
|
|
},
|
|
"_contentSize": {
|
|
"__type__": "cc.Size",
|
|
"width": 720,
|
|
"height": 150
|
|
},
|
|
"_anchorPoint": {
|
|
"__type__": "cc.Vec2",
|
|
"x": 0.5,
|
|
"y": 0.5
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "53s5rNSsdM1rRVM8XF85z1"
|
|
},
|
|
{
|
|
"__type__": "ac90fNha41BoplcQri3SjpL",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 21
|
|
},
|
|
"massage_node": {
|
|
"__id__": 6
|
|
},
|
|
"bg_node": {
|
|
"__id__": 2
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "caFlytW6dOyKuX32MnVcBt"
|
|
},
|
|
{
|
|
"__type__": "cc.BlockInputEvents",
|
|
"_name": "",
|
|
"_objFlags": 0,
|
|
"__editorExtras__": {},
|
|
"node": {
|
|
"__id__": 1
|
|
},
|
|
"_enabled": true,
|
|
"__prefab": {
|
|
"__id__": 23
|
|
},
|
|
"_id": ""
|
|
},
|
|
{
|
|
"__type__": "cc.CompPrefabInfo",
|
|
"fileId": "a6TSZyZXZJl5pquoyibxvV"
|
|
},
|
|
{
|
|
"__type__": "cc.PrefabInfo",
|
|
"root": {
|
|
"__id__": 1
|
|
},
|
|
"asset": {
|
|
"__id__": 0
|
|
},
|
|
"fileId": "0bP5AdjVNKbIVXJK2hNWPD",
|
|
"instance": null,
|
|
"targetOverrides": null
|
|
}
|
|
] |