diff --git a/assets/resources/gui/element/sbox.prefab b/assets/resources/gui/element/sbox.prefab index b49a026e..6905b38e 100644 --- a/assets/resources/gui/element/sbox.prefab +++ b/assets/resources/gui/element/sbox.prefab @@ -25,23 +25,26 @@ "__id__": 116 }, { - "__id__": 158 + "__id__": 240 }, { - "__id__": 166 + "__id__": 282 + }, + { + "__id__": 290 } ], "_active": true, "_components": [ { - "__id__": 172 + "__id__": 296 }, { - "__id__": 174 + "__id__": 298 } ], "_prefab": { - "__id__": 176 + "__id__": 300 }, "_lpos": { "__type__": "cc.Vec3", @@ -100,7 +103,7 @@ "__id__": 83 } ], - "_active": true, + "_active": false, "_components": [ { "__id__": 111 @@ -2640,7 +2643,7 @@ }, { "__type__": "cc.Node", - "_name": "Mask", + "_name": "sbg", "_objFlags": 0, "__editorExtras__": {}, "_parent": { @@ -2651,23 +2654,847 @@ "__id__": 117 }, { - "__id__": 123 + "__id__": 133 }, { - "__id__": 131 + "__id__": 149 }, { - "__id__": 137 + "__id__": 165 }, { - "__id__": 143 + "__id__": 181 + }, + { + "__id__": 197 } ], "_active": true, "_components": [ { - "__id__": 149 + "__id__": 235 }, + { + "__id__": 237 + } + ], + "_prefab": { + "__id__": 239 + }, + "_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": "green", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 116 + }, + "_children": [ + { + "__id__": 118 + } + ], + "_active": false, + "_components": [ + { + "__id__": 126 + }, + { + "__id__": 128 + }, + { + "__id__": 130 + } + ], + "_prefab": { + "__id__": 132 + }, + "_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": 0.2, + "y": 0.2, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "SkillFrame_01_Border_Blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 117 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 119 + }, + { + "__id__": 121 + }, + { + "__id__": 123 + } + ], + "_prefab": { + "__id__": 125 + }, + "_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": 2, + "y": 2, + "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__": 118 + }, + "_enabled": true, + "__prefab": { + "__id__": 120 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 158, + "height": 158 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e1ohTpEX1PoZihAHxFKFt7" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 118 + }, + "_enabled": true, + "__prefab": { + "__id__": 122 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d1286", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "aacaBtsUROz73f/RBcnbiz" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 118 + }, + "_enabled": true, + "__prefab": { + "__id__": 124 + }, + "_alignFlags": 45, + "_target": null, + "_left": -8, + "_right": -8, + "_top": -8, + "_bottom": -8, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 56, + "_originalHeight": 58, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "13VV/TbVRBD45bn6xaP+5g" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "eae0dvbEJH44AGCt1MAP8W", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 117 + }, + "_enabled": true, + "__prefab": { + "__id__": 127 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 300 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "98mLbMK0FCI7yU1PeAThep" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 117 + }, + "_enabled": true, + "__prefab": { + "__id__": 129 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 158, + "g": 255, + "b": 134, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d8db6", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f7S2GKdVNOibW5VaBgXKV6" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 117 + }, + "_enabled": true, + "__prefab": { + "__id__": 131 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "47NKBoTThDLLFblYJRfw5g" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "cbsWQ0dblMkLxOob4vy54D", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 116 + }, + "_children": [ + { + "__id__": 134 + } + ], + "_active": false, + "_components": [ + { + "__id__": 142 + }, + { + "__id__": 144 + }, + { + "__id__": 146 + } + ], + "_prefab": { + "__id__": 148 + }, + "_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": 0.2, + "y": 0.2, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "SkillFrame_01_Border_Blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 133 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 135 + }, + { + "__id__": 137 + }, + { + "__id__": 139 + } + ], + "_prefab": { + "__id__": 141 + }, + "_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": 2, + "y": 2, + "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__": 134 + }, + "_enabled": true, + "__prefab": { + "__id__": 136 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 158, + "height": 158 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "74RTSBySRPdpFLLAmrqwHb" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 134 + }, + "_enabled": true, + "__prefab": { + "__id__": 138 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@654c0", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3bfiIPrqxFmaOVbU6mymYZ" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 134 + }, + "_enabled": true, + "__prefab": { + "__id__": 140 + }, + "_alignFlags": 45, + "_target": null, + "_left": -8, + "_right": -8, + "_top": -8, + "_bottom": -8, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 56, + "_originalHeight": 58, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0ePLSCgy5IiIQFyltI8BWV" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "47XlLIwthAPqzpffWlrDw5", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 133 + }, + "_enabled": true, + "__prefab": { + "__id__": 143 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 300 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "86735vU7NCnqltkPy2rGjv" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 133 + }, + "_enabled": true, + "__prefab": { + "__id__": 145 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 92, + "g": 185, + "b": 247, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d8db6", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "15yjBD421NjJ9/AWkPvvVf" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 133 + }, + "_enabled": true, + "__prefab": { + "__id__": 147 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8buVnnSrhJeK110DoOD1Pw" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "43UGb1vHJIk4AHXPjHWfOc", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "purple", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 116 + }, + "_children": [ + { + "__id__": 150 + } + ], + "_active": false, + "_components": [ + { + "__id__": 158 + }, + { + "__id__": 160 + }, + { + "__id__": 162 + } + ], + "_prefab": { + "__id__": 164 + }, + "_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": 0.2, + "y": 0.2, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "SkillFrame_01_Border_Blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 149 + }, + "_children": [], + "_active": true, + "_components": [ { "__id__": 151 }, @@ -2694,6 +3521,1965 @@ "z": 0, "w": 1 }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 2, + "y": 2, + "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__": 150 + }, + "_enabled": true, + "__prefab": { + "__id__": 152 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 158, + "height": 158 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6aJeBY6LJP+oWohxI8GRY/" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 150 + }, + "_enabled": true, + "__prefab": { + "__id__": 154 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@900a1", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c9CpaEHV5MboCM8EweVzVB" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 150 + }, + "_enabled": true, + "__prefab": { + "__id__": 156 + }, + "_alignFlags": 45, + "_target": null, + "_left": -8, + "_right": -8, + "_top": -8, + "_bottom": -8, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 56, + "_originalHeight": 58, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e0sv/6F2dNkrsxgKzgtCFi" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "c4u5YuD/xKlYKneabrNzTD", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 149 + }, + "_enabled": true, + "__prefab": { + "__id__": 159 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 300 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8QX8pZaRFgaHb0AC+r7Jp" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 149 + }, + "_enabled": true, + "__prefab": { + "__id__": 161 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 228, + "g": 194, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d8db6", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8eFB3y5ORGXK2pyxJvBh5Q" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 149 + }, + "_enabled": true, + "__prefab": { + "__id__": 163 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b5mEbu8fRG04BKPl5ykaE1" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "3clu0DVzJO/qMU8tRVx/mB", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "red", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 116 + }, + "_children": [ + { + "__id__": 166 + } + ], + "_active": false, + "_components": [ + { + "__id__": 174 + }, + { + "__id__": 176 + }, + { + "__id__": 178 + } + ], + "_prefab": { + "__id__": 180 + }, + "_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": 0.2, + "y": 0.2, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "SkillFrame_01_Border_Blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 165 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 167 + }, + { + "__id__": 169 + }, + { + "__id__": 171 + } + ], + "_prefab": { + "__id__": 173 + }, + "_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": 2, + "y": 2, + "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__": 166 + }, + "_enabled": true, + "__prefab": { + "__id__": 168 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 158, + "height": 158 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "24NYOv0NhG6ocVFjwzNRLx" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 166 + }, + "_enabled": true, + "__prefab": { + "__id__": 170 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@4f590", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a1TkO8ulhC67uUzLuEGlbK" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 166 + }, + "_enabled": true, + "__prefab": { + "__id__": 172 + }, + "_alignFlags": 45, + "_target": null, + "_left": -8, + "_right": -8, + "_top": -8, + "_bottom": -8, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 56, + "_originalHeight": 58, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "61GInthWpNSojh75gm9ocP" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "b4kAm5RQlD7b6Z62tbh2pp", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 165 + }, + "_enabled": true, + "__prefab": { + "__id__": 175 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 300 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1aKNGL9ZNJXLXlzVOWAIuZ" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 165 + }, + "_enabled": true, + "__prefab": { + "__id__": 177 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 179, + "b": 179, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d8db6", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8axaiku5pF+ILYbDWps/qf" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 165 + }, + "_enabled": true, + "__prefab": { + "__id__": 179 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "8f3ya0VMNIR45Kk86ftuQ6" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "39Xcqz4CZESbJQyjV+L7Ov", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "yellow", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 116 + }, + "_children": [ + { + "__id__": 182 + } + ], + "_active": false, + "_components": [ + { + "__id__": 190 + }, + { + "__id__": 192 + }, + { + "__id__": 194 + } + ], + "_prefab": { + "__id__": 196 + }, + "_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": 0.2, + "y": 0.2, + "z": 1 + }, + "_mobility": 0, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "SkillFrame_01_Border_Blue", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 181 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 183 + }, + { + "__id__": 185 + }, + { + "__id__": 187 + } + ], + "_prefab": { + "__id__": 189 + }, + "_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": 2, + "y": 2, + "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__": 182 + }, + "_enabled": true, + "__prefab": { + "__id__": 184 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 158, + "height": 158 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "a5V4mQK6NLCKq8ORTRgEdA" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 182 + }, + "_enabled": true, + "__prefab": { + "__id__": 186 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@2eb28", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "58ZIDuwrpPOoVHe/A+0NPC" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 182 + }, + "_enabled": true, + "__prefab": { + "__id__": 188 + }, + "_alignFlags": 45, + "_target": null, + "_left": -8, + "_right": -8, + "_top": -8, + "_bottom": -8, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 56, + "_originalHeight": 58, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6dKNAv7j1MsLTXDuNTS1Vj" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "cahYJpgqpBIL/cj74nPS6d", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 181 + }, + "_enabled": true, + "__prefab": { + "__id__": 191 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 300 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f0bEUzl1VNo4BFSA2O2AMW" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 181 + }, + "_enabled": true, + "__prefab": { + "__id__": 193 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 246, + "b": 139, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d8db6", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73", + "__expectedType__": "cc.SpriteAtlas" + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "3fywYi/w5NNITtSabHNPp7" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 181 + }, + "_enabled": true, + "__prefab": { + "__id__": 195 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "4f/sVzxL1L1ICrbSgOydMj" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "8980sbj79Km65upYjmC4WC", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "item", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 116 + }, + "_children": [ + { + "__id__": 198 + }, + { + "__id__": 206 + }, + { + "__id__": 214 + }, + { + "__id__": 222 + } + ], + "_active": true, + "_components": [ + { + "__id__": 230 + }, + { + "__id__": 232 + } + ], + "_prefab": { + "__id__": 234 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": -0.25, + "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": "ItemFrame_Square_03_Bg", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 197 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 199 + }, + { + "__id__": 201 + }, + { + "__id__": 203 + } + ], + "_prefab": { + "__id__": 205 + }, + "_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.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 198 + }, + "_enabled": true, + "__prefab": { + "__id__": 200 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "83P4sVbBxHe71l75/tRNjY" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 198 + }, + "_enabled": true, + "__prefab": { + "__id__": 202 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@85dcd", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cfPVSItrRIEZqukjGGvu3f" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 198 + }, + "_enabled": true, + "__prefab": { + "__id__": 204 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c83zi51EVEzKE7qvYKNbbc" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "f7XgwV7d1DzYZvA8DVY8v9", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ItemFrame_Square_03_InnerBorder1", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 197 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 207 + }, + { + "__id__": 209 + }, + { + "__id__": 211 + } + ], + "_prefab": { + "__id__": 213 + }, + "_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.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 206 + }, + "_enabled": true, + "__prefab": { + "__id__": 208 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 66, + "height": 66.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "1aw4GfFWhHqIf+lgck1P7l" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 206 + }, + "_enabled": true, + "__prefab": { + "__id__": 210 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 87, + "g": 126, + "b": 185, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@9bd48", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ddCfLLhWlOnJwY9OyW0zDf" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 206 + }, + "_enabled": true, + "__prefab": { + "__id__": 212 + }, + "_alignFlags": 45, + "_target": null, + "_left": 2, + "_right": 2, + "_top": 2, + "_bottom": 2, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 48, + "_originalHeight": 48, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "48EAfuarRKwKeOKKKCdr/n" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "86Kkhd+AlAb6r9V1RG3D4o", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ItemFrame_Square_03_InnerBorder2", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 197 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 215 + }, + { + "__id__": 217 + }, + { + "__id__": 219 + } + ], + "_prefab": { + "__id__": 221 + }, + "_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.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 214 + }, + "_enabled": true, + "__prefab": { + "__id__": 216 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 58, + "height": 58.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "ecnsLXt8JDhaks57yhUGcF" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 214 + }, + "_enabled": true, + "__prefab": { + "__id__": 218 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 38, + "g": 61, + "b": 112, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@d2e99", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b0iWfxyZxELoDgi5MS95Fy" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 214 + }, + "_enabled": true, + "__prefab": { + "__id__": 220 + }, + "_alignFlags": 45, + "_target": null, + "_left": 6, + "_right": 6, + "_top": 6, + "_bottom": 6, + "_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": "abk4gW/nVEYonxHN4HhtMP" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "9fUeoGYTtCRoWTuE7brMp3", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "ItemFrame_Square_03_Border", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 197 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 223 + }, + { + "__id__": 225 + }, + { + "__id__": 227 + } + ], + "_prefab": { + "__id__": 229 + }, + "_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.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 222 + }, + "_enabled": true, + "__prefab": { + "__id__": 224 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "dbucZ8H09MU4QKWtxwzmpf" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 222 + }, + "_enabled": true, + "__prefab": { + "__id__": 226 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 28, + "g": 23, + "b": 50, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "cb93c900-b440-4571-91d1-7da1636e3d73@3b8af", + "__expectedType__": "cc.SpriteFrame" + }, + "_type": 1, + "_fillType": 0, + "_sizeMode": 0, + "_fillCenter": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0 + }, + "_fillStart": 0, + "_fillRange": 0, + "_isTrimmedMode": true, + "_useGrayscale": false, + "_atlas": null, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "40v/GTJ29CiLzPBaA9jxKo" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 222 + }, + "_enabled": true, + "__prefab": { + "__id__": 228 + }, + "_alignFlags": 45, + "_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": 52, + "_originalHeight": 52, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c8TO/X1lBDuoGJkmvmZzIw" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "80Rw6raPJOaI9t5Ii4FSfP", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 197 + }, + "_enabled": true, + "__prefab": { + "__id__": 231 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 70, + "height": 70.5 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e14VVYGSBKLoDfQrNILK6T" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 197 + }, + "_enabled": true, + "__prefab": { + "__id__": 233 + }, + "_alignFlags": 45, + "_target": null, + "_left": -5, + "_right": -5, + "_top": -5, + "_bottom": -5.5, + "_horizontalCenter": 0, + "_verticalCenter": 0, + "_isAbsLeft": true, + "_isAbsRight": true, + "_isAbsTop": true, + "_isAbsBottom": true, + "_isAbsHorizontalCenter": true, + "_isAbsVerticalCenter": true, + "_originalWidth": 100, + "_originalHeight": 100, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "02QeDiAEpO+rKwkoQzhtyZ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "89kJHxRcJOIJQFPQPDOrKo", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 116 + }, + "_enabled": true, + "__prefab": { + "__id__": 236 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 60 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f7SnSWg1pHfrCbnVeJpCtC" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "__editorExtras__": {}, + "node": { + "__id__": 116 + }, + "_enabled": true, + "__prefab": { + "__id__": 238 + }, + "_alignFlags": 45, + "_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": 80, + "_originalHeight": 80, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "aagHiGgyhDEqu1wT/16Ydr" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "3b9jp9vP1Mx73uDbr3KY6t", + "instance": null, + "targetOverrides": null, + "nestedPrefabInstanceRoots": null + }, + { + "__type__": "cc.Node", + "_name": "Mask", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 241 + }, + { + "__id__": 247 + }, + { + "__id__": 255 + }, + { + "__id__": 261 + }, + { + "__id__": 267 + } + ], + "_active": true, + "_components": [ + { + "__id__": 273 + }, + { + "__id__": 275 + }, + { + "__id__": 277 + }, + { + "__id__": 279 + } + ], + "_prefab": { + "__id__": 281 + }, + "_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, @@ -2716,20 +5502,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 116 + "__id__": 240 }, "_children": [], "_active": true, "_components": [ { - "__id__": 118 + "__id__": 242 }, { - "__id__": 120 + "__id__": 244 } ], "_prefab": { - "__id__": 122 + "__id__": 246 }, "_lpos": { "__type__": "cc.Vec3", @@ -2766,11 +5552,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 117 + "__id__": 241 }, "_enabled": true, "__prefab": { - "__id__": 119 + "__id__": 243 }, "_contentSize": { "__type__": "cc.Size", @@ -2794,11 +5580,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 117 + "__id__": 241 }, "_enabled": true, "__prefab": { - "__id__": 121 + "__id__": 245 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2852,23 +5638,23 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 116 + "__id__": 240 }, "_children": [], "_active": true, "_components": [ { - "__id__": 124 + "__id__": 248 }, { - "__id__": 126 + "__id__": 250 }, { - "__id__": 128 + "__id__": 252 } ], "_prefab": { - "__id__": 130 + "__id__": 254 }, "_lpos": { "__type__": "cc.Vec3", @@ -2905,11 +5691,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 123 + "__id__": 247 }, "_enabled": true, "__prefab": { - "__id__": 125 + "__id__": 249 }, "_contentSize": { "__type__": "cc.Size", @@ -2933,11 +5719,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 123 + "__id__": 247 }, "_enabled": true, "__prefab": { - "__id__": 127 + "__id__": 251 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -2978,11 +5764,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 123 + "__id__": 247 }, "_enabled": true, "__prefab": { - "__id__": 129 + "__id__": 253 }, "_alignFlags": 45, "_target": null, @@ -3027,20 +5813,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 116 + "__id__": 240 }, "_children": [], "_active": false, "_components": [ { - "__id__": 132 + "__id__": 256 }, { - "__id__": 134 + "__id__": 258 } ], "_prefab": { - "__id__": 136 + "__id__": 260 }, "_lpos": { "__type__": "cc.Vec3", @@ -3077,11 +5863,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 131 + "__id__": 255 }, "_enabled": true, "__prefab": { - "__id__": 133 + "__id__": 257 }, "_contentSize": { "__type__": "cc.Size", @@ -3105,11 +5891,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 131 + "__id__": 255 }, "_enabled": true, "__prefab": { - "__id__": 135 + "__id__": 259 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3163,20 +5949,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 116 + "__id__": 240 }, "_children": [], "_active": false, "_components": [ { - "__id__": 138 + "__id__": 262 }, { - "__id__": 140 + "__id__": 264 } ], "_prefab": { - "__id__": 142 + "__id__": 266 }, "_lpos": { "__type__": "cc.Vec3", @@ -3213,11 +5999,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 261 }, "_enabled": true, "__prefab": { - "__id__": 139 + "__id__": 263 }, "_contentSize": { "__type__": "cc.Size", @@ -3241,11 +6027,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 137 + "__id__": 261 }, "_enabled": true, "__prefab": { - "__id__": 141 + "__id__": 265 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3299,20 +6085,20 @@ "_objFlags": 0, "__editorExtras__": {}, "_parent": { - "__id__": 116 + "__id__": 240 }, "_children": [], "_active": false, "_components": [ { - "__id__": 144 + "__id__": 268 }, { - "__id__": 146 + "__id__": 270 } ], "_prefab": { - "__id__": 148 + "__id__": 272 }, "_lpos": { "__type__": "cc.Vec3", @@ -3349,11 +6135,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 143 + "__id__": 267 }, "_enabled": true, "__prefab": { - "__id__": 145 + "__id__": 269 }, "_contentSize": { "__type__": "cc.Size", @@ -3377,11 +6163,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 143 + "__id__": 267 }, "_enabled": true, "__prefab": { - "__id__": 147 + "__id__": 271 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3435,11 +6221,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 116 + "__id__": 240 }, "_enabled": true, "__prefab": { - "__id__": 150 + "__id__": 274 }, "_contentSize": { "__type__": "cc.Size", @@ -3463,11 +6249,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 116 + "__id__": 240 }, "_enabled": true, "__prefab": { - "__id__": 152 + "__id__": 276 }, "_type": 0, "_inverted": false, @@ -3485,11 +6271,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 116 + "__id__": 240 }, "_enabled": true, "__prefab": { - "__id__": 154 + "__id__": 278 }, "_alignFlags": 45, "_target": null, @@ -3521,11 +6307,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 116 + "__id__": 240 }, "_enabled": true, "__prefab": { - "__id__": 156 + "__id__": 280 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3586,17 +6372,17 @@ "_active": false, "_components": [ { - "__id__": 159 + "__id__": 283 }, { - "__id__": 161 + "__id__": 285 }, { - "__id__": 163 + "__id__": 287 } ], "_prefab": { - "__id__": 165 + "__id__": 289 }, "_lpos": { "__type__": "cc.Vec3", @@ -3633,11 +6419,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 158 + "__id__": 282 }, "_enabled": true, "__prefab": { - "__id__": 160 + "__id__": 284 }, "_contentSize": { "__type__": "cc.Size", @@ -3661,11 +6447,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 158 + "__id__": 282 }, "_enabled": true, "__prefab": { - "__id__": 162 + "__id__": 286 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3709,11 +6495,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 158 + "__id__": 282 }, "_enabled": true, "__prefab": { - "__id__": 164 + "__id__": 288 }, "_alignFlags": 45, "_target": null, @@ -3764,14 +6550,14 @@ "_active": false, "_components": [ { - "__id__": 167 + "__id__": 291 }, { - "__id__": 169 + "__id__": 293 } ], "_prefab": { - "__id__": 171 + "__id__": 295 }, "_lpos": { "__type__": "cc.Vec3", @@ -3808,11 +6594,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 166 + "__id__": 290 }, "_enabled": true, "__prefab": { - "__id__": 168 + "__id__": 292 }, "_contentSize": { "__type__": "cc.Size", @@ -3836,11 +6622,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 166 + "__id__": 290 }, "_enabled": true, "__prefab": { - "__id__": 170 + "__id__": 294 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -3921,7 +6707,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 173 + "__id__": 297 }, "_contentSize": { "__type__": "cc.Size", @@ -3949,19 +6735,19 @@ }, "_enabled": true, "__prefab": { - "__id__": 175 + "__id__": 299 }, "icon_node": { - "__id__": 123 + "__id__": 116 }, "bg_node": { "__id__": 2 }, "num_label": { - "__id__": 169 + "__id__": 293 }, "cd_mask": { - "__id__": 158 + "__id__": 282 }, "iboxPrefab": { "__uuid__": "348ec900-f7b9-440a-911e-75f9590254c7", diff --git a/assets/script/game/map/EquipBoxComp.ts b/assets/script/game/map/EquipBoxComp.ts index cebf6b39..7028635e 100644 --- a/assets/script/game/map/EquipBoxComp.ts +++ b/assets/script/game/map/EquipBoxComp.ts @@ -164,8 +164,8 @@ export class EquipBoxComp extends CCComp { /** 长按时长(秒) */ private static readonly LONG_PRESS_TIME: number = 0.5; - /** IBox 相对图标的 Y 轴偏移(像素) */ - private static readonly IBOX_OFFSET_Y: number = 80; + /** IBox 顶部相对图标的 Y 轴偏移(像素,弹窗顶部锚定在该点并向下生长) */ + private static readonly IBOX_OFFSET_Y: number = 60; /** 信息框是否已弹出(区分长按完成与短按取消) */ private info_shown: boolean = false; diff --git a/assets/script/game/map/IBoxComp.ts b/assets/script/game/map/IBoxComp.ts index 5bfc7509..0f1f81e8 100644 --- a/assets/script/game/map/IBoxComp.ts +++ b/assets/script/game/map/IBoxComp.ts @@ -19,7 +19,7 @@ * - SkillSet / FieldSkillSet(SkillSet)—— 技能/光环静态配置 * - EquipSet(findEquipByUuid)—— 装备静态配置 */ -import { _decorator, Label, NodeEventType, RichText } from "cc"; +import { _decorator, Label, NodeEventType, RichText, UITransform, Node, v3, Widget } from "cc"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; import { CCComp } from "../../../../extensions/oops-plugin-framework/assets/module/common/CCComp"; import { SkillSet, SkillOverrides } from "../common/config/SkillSet"; @@ -57,6 +57,14 @@ export class IBoxComp extends CCComp { @property(RichText) massage_node: RichText = null! + // ======================== 布局常量 ======================== + /** 内容顶部留白(像素) */ + private static readonly PADDING_TOP: number = 10; + /** 内容底部留白(像素) */ + private static readonly PADDING_BOTTOM: number = 10; + /** 根节点最小高度(像素),防止过矮 */ + private static readonly MIN_HEIGHT: number = 60; + /** * 初始化并渲染弹窗内容。 * @param args 见 IBoxInitArgs @@ -148,6 +156,48 @@ export class IBoxComp extends CCComp { if (this.massage_node && this.massage_node.isValid) { this.massage_node.string = text; } + // 文本变更后,下一帧 RichText 完成排版再刷新弹窗高度 + this.scheduleOnce(() => this.refreshLayout(), 0); + } + + /** + * 根据 RichText 实际排版高度自适应弹窗尺寸。 + * 弹窗(Bg 背景 + 根节点)采用"顶部锚定"模式: + * 顶部固定在图标上方偏移处,内容条数越多向下生长越高, + * 因此展示位置无需随高度补偿。 + */ + private refreshLayout() { + if (!this.node || !this.node.isValid) return; + const rootUI = this.node.getComponent(UITransform); + const bgNode = this.node.getChildByName("Bg"); + const bgUI = bgNode?.getComponent(UITransform) ?? null; + const richNode = this.massage_node?.node ?? null; + const richUI = richNode?.getComponent(UITransform) ?? null; + if (!rootUI || !bgUI || !richNode || !richUI) return; + + // 1. 计算目标高度:RichText 排版后的实际高度 + 上下留白 + const contentH = richUI.height; + const targetH = Math.max( + IBoxComp.MIN_HEIGHT, + contentH + IBoxComp.PADDING_TOP + IBoxComp.PADDING_BOTTOM + ); + + // 2. 根节点:直接设为顶部锚定(0.5, 1),锚点 y=0 即弹窗顶边, + // 调用方仍按原逻辑把节点放到"图标上方偏移"处即可。 + rootUI.setAnchorPoint(0.5, 1); + rootUI.setContentSize(rootUI.width, targetH); + + // 3. Bg 背景:同步顶部锚定并撑满根节点(Bg 相对根节点 y=0 即为顶边) + // 预制体中 Bg 带有旧版 Widget(强制拉伸),必须禁用,否则会覆盖本处布局 + const bgWidget = bgNode!.getComponent(Widget); + if (bgWidget) bgWidget.enabled = false; + bgUI.setAnchorPoint(0.5, 1); + bgUI.setContentSize(bgUI.width, targetH); + bgNode!.setPosition(0, 0, bgNode!.position.z); + + // 4. RichText:锚点改为顶部锚定,贴齐顶部留白处 + richUI.setAnchorPoint(0.5, 1); + richNode.setPosition(v3(richNode.position.x, -IBoxComp.PADDING_TOP, richNode.position.z)); } /** diff --git a/assets/script/game/map/SkillBoxComp.ts b/assets/script/game/map/SkillBoxComp.ts index 7b42812a..80ab8fa9 100644 --- a/assets/script/game/map/SkillBoxComp.ts +++ b/assets/script/game/map/SkillBoxComp.ts @@ -164,8 +164,8 @@ export class SkillBoxComp extends CCComp { /** 长按时长(秒) */ private static readonly LONG_PRESS_TIME: number = 0.5; - /** IBox 相对图标的 Y 轴偏移(像素) */ - private static readonly IBOX_OFFSET_Y: number = 80; + /** IBox 顶部相对图标的 Y 轴偏移(像素,弹窗顶部锚定在该点并向下生长) */ + private static readonly IBOX_OFFSET_Y: number = 60; /** 信息框是否已弹出(区分长按完成与短按取消) */ private info_shown: boolean = false;