diff --git a/assets/resources/expbg.prefab b/assets/resources/expbg.prefab deleted file mode 100644 index 34c221da..00000000 --- a/assets/resources/expbg.prefab +++ /dev/null @@ -1,2386 +0,0 @@ -[ - { - "__type__": "cc.Prefab", - "_name": "expbg", - "_objFlags": 0, - "__editorExtras__": {}, - "_native": "", - "data": { - "__id__": 1 - }, - "optimizationPolicy": 0, - "persistent": false - }, - { - "__type__": "cc.Node", - "_name": "expbg", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": null, - "_children": [ - { - "__id__": 2 - }, - { - "__id__": 10 - }, - { - "__id__": 18 - }, - { - "__id__": 33 - }, - { - "__id__": 41 - }, - { - "__id__": 56 - }, - { - "__id__": 71 - }, - { - "__id__": 79 - }, - { - "__id__": 87 - } - ], - "_active": true, - "_components": [ - { - "__id__": 95 - }, - { - "__id__": 97 - }, - { - "__id__": 99 - } - ], - "_prefab": { - "__id__": 101 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 580, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "drawcall", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 3 - }, - { - "__id__": 5 - }, - { - "__id__": 7 - } - ], - "_prefab": { - "__id__": 9 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -309, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 4 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 128.96875, - "height": 88.64 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "94UCzriJ5EcbpUkzWbgmDI" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 6 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 255, - "b": 0, - "a": 255 - }, - "_string": "dc:0", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 64, - "_fontSize": 64, - "_fontFamily": "Arial", - "_lineHeight": 64, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 4, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "49jerzJA9NPaGowoiIJsh1" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 2 - }, - "_enabled": true, - "__prefab": { - "__id__": 8 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "99cLfkKXlBlqCr+WnkQB34" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "a1I2PB0TtPkqlOtjToYZ0p", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "label", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 11 - }, - { - "__id__": 13 - }, - { - "__id__": 15 - } - ], - "_prefab": { - "__id__": 17 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -151.24299999999997, - "y": 1.0520000000001346, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 12 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 368, - "height": 83.6 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d4TtPEKjVMYpLFGmNUSAlC" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 14 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "多纹理合批:", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 60, - "_fontSize": 60, - "_fontFamily": "Arial", - "_lineHeight": 60, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 4, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "1cy+Lpu/xLBLnKvxWbIJQl" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 10 - }, - "_enabled": true, - "__prefab": { - "__id__": 16 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a8Ht0gTjNMi6eNoiFmpORe" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "b8ALgb+kpAJpzgxGbGOWcU", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Toggle", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 19 - } - ], - "_active": true, - "_components": [ - { - "__id__": 25 - }, - { - "__id__": 27 - }, - { - "__id__": 29 - } - ], - "_prefab": { - "__id__": 32 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 32.985000000000014, - "y": 0.4619999999999891, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.25, - "y": 1.25, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Checkmark", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 18 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 19 - }, - "_enabled": true, - "__prefab": { - "__id__": 21 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 26, - "height": 26 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b2r+0EA45CVYiiazGYuER9" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 19 - }, - "_enabled": true, - "__prefab": { - "__id__": 23 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "158e7e52-3220-4cd7-9694-713e0e6e8278@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_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": "feURfTo4RPZbA+ACbem6hq" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "6959xeMIpKwqJBBLX+sPLA", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 26 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 28, - "height": 28 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "23uFXoUhNOYK1t+cQd3v8A" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 28 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "11bdc4b0-64a8-4eb7-a2a7-9fb9e233e977@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a2nc1IN4FNtrxLtCouDQUC" - }, - { - "__type__": "cc.Toggle", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 18 - }, - "_enabled": true, - "__prefab": { - "__id__": 30 - }, - "clickEvents": [], - "_interactable": true, - "_transition": 0, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": { - "__uuid__": "11bdc4b0-64a8-4eb7-a2a7-9fb9e233e977@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_hoverSprite": null, - "_pressedSprite": null, - "_disabledSprite": null, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 18 - }, - "checkEvents": [ - { - "__id__": 31 - } - ], - "_isChecked": true, - "_checkMark": { - "__id__": 22 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "28mtm7qlJM/IqsTa22Gl+3" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 1 - }, - "component": "", - "_componentId": "05c5aei9mBPJ40s5Y93ON5v", - "handler": "btMultexture", - "customEventData": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "41L4c9zQNB2Y1OpaWgS3aK", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "label", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 34 - }, - { - "__id__": 36 - }, - { - "__id__": 38 - } - ], - "_prefab": { - "__id__": 40 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 64.572, - "y": 1.0519999999999072, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 33 - }, - "_enabled": true, - "__prefab": { - "__id__": 35 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 308, - "height": 83.6 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "dfkIzBWiRFe51/NCLZfLGt" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 33 - }, - "_enabled": true, - "__prefab": { - "__id__": 37 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_string": "动态合图:", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 60, - "_fontSize": 60, - "_fontFamily": "Arial", - "_lineHeight": 60, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": true, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 4, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e6wjxYDG1ANbV4YBz1p5vc" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 33 - }, - "_enabled": true, - "__prefab": { - "__id__": 39 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "2cyl2DlJVARZ4/ZYGcAG3X" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "dbF3R6VYpMGpnMgX6FZIYQ", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Toggle", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 42 - } - ], - "_active": true, - "_components": [ - { - "__id__": 48 - }, - { - "__id__": 50 - }, - { - "__id__": 52 - } - ], - "_prefab": { - "__id__": 55 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 219.53999999999996, - "y": 0.4619999999999891, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1.25, - "y": 1.25, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "Checkmark", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 41 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 43 - }, - { - "__id__": 45 - } - ], - "_prefab": { - "__id__": 47 - }, - "_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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 42 - }, - "_enabled": true, - "__prefab": { - "__id__": 44 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 26, - "height": 26 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "a3h40Ya1BLWrWBxKUcIi42" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 42 - }, - "_enabled": true, - "__prefab": { - "__id__": 46 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "158e7e52-3220-4cd7-9694-713e0e6e8278@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_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": "6c9C3MXwpMsogRI4lmLI+M" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "29D4xcxV9FEYQc+YTgqq2g", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 41 - }, - "_enabled": true, - "__prefab": { - "__id__": 49 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 28, - "height": 28 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "e9aAkdg0dOZKFBSdwDbUbX" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 41 - }, - "_enabled": true, - "__prefab": { - "__id__": 51 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "11bdc4b0-64a8-4eb7-a2a7-9fb9e233e977@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_type": 0, - "_fillType": 0, - "_sizeMode": 1, - "_fillCenter": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0 - }, - "_fillStart": 0, - "_fillRange": 0, - "_isTrimmedMode": true, - "_useGrayscale": false, - "_atlas": null, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b1aQyxudxA95Y+r9ySaBfO" - }, - { - "__type__": "cc.Toggle", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 41 - }, - "_enabled": true, - "__prefab": { - "__id__": 53 - }, - "clickEvents": [], - "_interactable": true, - "_transition": 0, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": null, - "_hoverSprite": null, - "_pressedSprite": null, - "_disabledSprite": null, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 41 - }, - "checkEvents": [ - { - "__id__": 54 - } - ], - "_isChecked": true, - "_checkMark": { - "__id__": 45 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "42Jk5nhgxPD7Yu+v1xDQKJ" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 1 - }, - "component": "", - "_componentId": "05c5aei9mBPJ40s5Y93ON5v", - "handler": "btAutoBatch", - "customEventData": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "e7OMGAQU1LpYFxI5sCI7U9", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "Button", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [ - { - "__id__": 57 - } - ], - "_active": true, - "_components": [ - { - "__id__": 63 - }, - { - "__id__": 65 - }, - { - "__id__": 67 - } - ], - "_prefab": { - "__id__": 70 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 292.053, - "y": 0.795, - "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": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.Node", - "_name": "multexture", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 56 - }, - "_children": [], - "_active": true, - "_components": [ - { - "__id__": 58 - }, - { - "__id__": 60 - } - ], - "_prefab": { - "__id__": 62 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0.3826834323650898, - "w": 0.9238795325112867 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 1, - "y": 1, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 45 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 57 - }, - "_enabled": true, - "__prefab": { - "__id__": 59 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 37.375, - "height": 80.64 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "69+huCaqJFmKSt6tX3SU88" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 57 - }, - "_enabled": true, - "__prefab": { - "__id__": 61 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_string": "+", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 64, - "_fontSize": 64, - "_fontFamily": "Arial", - "_lineHeight": 64, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": true, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 3, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "b9u/yj8T9LdI3GXR8vcu8G" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "5f/ZWIhDtKbYXVxAbP2V7V", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 56 - }, - "_enabled": true, - "__prefab": { - "__id__": 64 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 40, - "height": 40 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "13UQRBG8BAgJVs4W1Pr3c1" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 56 - }, - "_enabled": true, - "__prefab": { - "__id__": 66 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", - "__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": "bbmerQU3ZGobnJF9C8FX1w" - }, - { - "__type__": "cc.Button", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 56 - }, - "_enabled": true, - "__prefab": { - "__id__": 68 - }, - "clickEvents": [ - { - "__id__": 69 - } - ], - "_interactable": true, - "_transition": 3, - "_normalColor": { - "__type__": "cc.Color", - "r": 214, - "g": 214, - "b": 214, - "a": 255 - }, - "_hoverColor": { - "__type__": "cc.Color", - "r": 211, - "g": 211, - "b": 211, - "a": 255 - }, - "_pressedColor": { - "__type__": "cc.Color", - "r": 255, - "g": 255, - "b": 255, - "a": 255 - }, - "_disabledColor": { - "__type__": "cc.Color", - "r": 124, - "g": 124, - "b": 124, - "a": 255 - }, - "_normalSprite": { - "__uuid__": "f12a23c4-b924-4322-a260-3d982428f1e8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_hoverSprite": { - "__uuid__": "20835ba4-6145-4fbc-a58a-051ce700aa3e@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_pressedSprite": { - "__uuid__": "544e49d6-3f05-4fa8-9a9e-091f98fc2ce8@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_disabledSprite": { - "__uuid__": "951249e0-9f16-456d-8b85-a6ca954da16b@f9941", - "__expectedType__": "cc.SpriteFrame" - }, - "_duration": 0.1, - "_zoomScale": 1.2, - "_target": { - "__id__": 56 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "dcEXeYp85PM5tVyL1hT4tu" - }, - { - "__type__": "cc.ClickEvent", - "target": { - "__id__": 1 - }, - "component": "", - "_componentId": "05c5aei9mBPJ40s5Y93ON5v", - "handler": "btExit", - "customEventData": "" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "6fA5C4QzlMi7oXUzEkztZN", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "fps", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 72 - }, - { - "__id__": 74 - }, - { - "__id__": 76 - } - ], - "_prefab": { - "__id__": 78 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -309, - "y": 52.09999999999991, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 71 - }, - "_enabled": true, - "__prefab": { - "__id__": 73 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 128.96875, - "height": 88.64 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5dc3o19dxLfYrYr1dEU/Hq" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 71 - }, - "_enabled": true, - "__prefab": { - "__id__": 75 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 255, - "b": 0, - "a": 255 - }, - "_string": "dc:0", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 64, - "_fontSize": 64, - "_fontFamily": "Arial", - "_lineHeight": 64, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 4, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5a4Dv3YtRApLjHpfemFwJu" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 71 - }, - "_enabled": true, - "__prefab": { - "__id__": 77 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "d3Ke3USYZIsrg59ZqkHyAl" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "03KDOslf9MVZGfwRBcX8pq", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "render", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 80 - }, - { - "__id__": 82 - }, - { - "__id__": 84 - } - ], - "_prefab": { - "__id__": 86 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": -150, - "y": 52.09999999999991, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 79 - }, - "_enabled": true, - "__prefab": { - "__id__": 81 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 128.96875, - "height": 88.64 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "93JuoSlgRCX5fR6X2FbYfg" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 79 - }, - "_enabled": true, - "__prefab": { - "__id__": 83 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 255, - "b": 0, - "a": 255 - }, - "_string": "dc:0", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 64, - "_fontSize": 64, - "_fontFamily": "Arial", - "_lineHeight": 64, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 4, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "391ELfbmNP9ornqavd5lOV" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 79 - }, - "_enabled": true, - "__prefab": { - "__id__": 85 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "00gDiPantORL3MVcS0P06m" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "983jPRGmRNha83ggT6i3cf", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.Node", - "_name": "triangle", - "_objFlags": 0, - "__editorExtras__": {}, - "_parent": { - "__id__": 1 - }, - "_children": [], - "_active": false, - "_components": [ - { - "__id__": 88 - }, - { - "__id__": 90 - }, - { - "__id__": 92 - } - ], - "_prefab": { - "__id__": 94 - }, - "_lpos": { - "__type__": "cc.Vec3", - "x": 60, - "y": 52.09999999999991, - "z": 0 - }, - "_lrot": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - }, - "_lscale": { - "__type__": "cc.Vec3", - "x": 0.5, - "y": 0.5, - "z": 1 - }, - "_mobility": 0, - "_layer": 33554432, - "_euler": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - }, - "_id": "" - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 87 - }, - "_enabled": true, - "__prefab": { - "__id__": 89 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 128.96875, - "height": 88.64 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "5f2QkTd3VP/7klRO17ua34" - }, - { - "__type__": "cc.Label", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 87 - }, - "_enabled": true, - "__prefab": { - "__id__": 91 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 0, - "g": 255, - "b": 0, - "a": 255 - }, - "_string": "dc:0", - "_horizontalAlign": 1, - "_verticalAlign": 1, - "_actualFontSize": 64, - "_fontSize": 64, - "_fontFamily": "Arial", - "_lineHeight": 64, - "_overflow": 0, - "_enableWrapText": true, - "_font": null, - "_isSystemFontUsed": true, - "_spacingX": 0, - "_isItalic": false, - "_isBold": false, - "_isUnderline": false, - "_underlineHeight": 2, - "_cacheMode": 1, - "_enableOutline": false, - "_outlineColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_outlineWidth": 4, - "_enableShadow": false, - "_shadowColor": { - "__type__": "cc.Color", - "r": 0, - "g": 0, - "b": 0, - "a": 255 - }, - "_shadowOffset": { - "__type__": "cc.Vec2", - "x": 2, - "y": 2 - }, - "_shadowBlur": 2, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "bd43BXEJJH27hnUoIamJqm" - }, - { - "__type__": "cc.LabelOutline", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 87 - }, - "_enabled": true, - "__prefab": { - "__id__": 93 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "15BVWUzWtAM5bUcqt2iG49" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "7c+Xw6PZNHLJzmHBOo7Sat", - "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": null - }, - { - "__type__": "cc.UITransform", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 96 - }, - "_contentSize": { - "__type__": "cc.Size", - "width": 640, - "height": 55 - }, - "_anchorPoint": { - "__type__": "cc.Vec2", - "x": 0.5, - "y": 0.5 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "cb48da3JRP15v+Wdkj5Ako" - }, - { - "__type__": "cc.Sprite", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 98 - }, - "_customMaterial": null, - "_srcBlendFactor": 2, - "_dstBlendFactor": 4, - "_color": { - "__type__": "cc.Color", - "r": 46, - "g": 46, - "b": 46, - "a": 255 - }, - "_spriteFrame": { - "__uuid__": "24a704da-2867-446d-8d1a-5e920c75e09d@f9941", - "__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": "f7iBzpA/RNWJiaEeGact2r" - }, - { - "__type__": "05c5aei9mBPJ40s5Y93ON5v", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "node": { - "__id__": 1 - }, - "_enabled": true, - "__prefab": { - "__id__": 100 - }, - "drawcall": { - "__id__": 5 - }, - "fps": { - "__id__": 74 - }, - "render": { - "__id__": 82 - }, - "_id": "" - }, - { - "__type__": "cc.CompPrefabInfo", - "fileId": "49E0yBuLBMSo2MV4djrGhI" - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 1 - }, - "asset": { - "__id__": 0 - }, - "fileId": "588mX12fFBc6tNNhK5kSwP", - "instance": null, - "targetOverrides": null - } -] \ No newline at end of file diff --git a/assets/resources/expbg.prefab.meta b/assets/resources/expbg.prefab.meta deleted file mode 100644 index f33e39d4..00000000 --- a/assets/resources/expbg.prefab.meta +++ /dev/null @@ -1,13 +0,0 @@ -{ - "ver": "1.1.50", - "importer": "prefab", - "imported": true, - "uuid": "21141edb-3848-4481-ac80-0ea8aa4498d4", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": { - "syncNodeName": "expbg" - } -} diff --git a/assets/resources/expbg.ts b/assets/resources/expbg.ts deleted file mode 100644 index d870ee08..00000000 --- a/assets/resources/expbg.ts +++ /dev/null @@ -1,137 +0,0 @@ -import { _decorator, cclegacy, Color, Component, Director, director, dynamicAtlasManager, Label, macro, profiler, Scene, setDisplayStats, Toggle } from 'cc'; -import { MultBatch2D } from './multTextures/MultTextures'; -const { ccclass, property } = _decorator; - -//仅供测试使用,不用复制到项目 -macro.CLEANUP_IMAGE_CACHE = false; -dynamicAtlasManager.enabled = true; - -let isAutoBatch = true; -let isMultexture = true; - -@ccclass('expbg') -export class expbg extends Component { - @property(Label) - drawcall!:Label; - - @property(Label) - fps!:Label; - - @property(Label) - render!:Label; - - @property(Label) - triangle!:Label; - - - toggle:Array = []; - - protected start(): void { - profiler.showStats(); - - this.toggle = this.node.getComponentsInChildren(Toggle)!; - isMultexture = this.toggle[0].isChecked = MultBatch2D.enable; - isAutoBatch = this.toggle[1].isChecked = dynamicAtlasManager.enabled; - this.changeColor(); - } - - changeColor(){ - - let all = isMultexture&&isAutoBatch; - if(all){ - this.drawcall.color = Color.GREEN; - }else{ - this.drawcall.color = isMultexture? new Color(255,100,0,255):Color.RED; - } - } - - btMultexture(){ - isMultexture = this.toggle[0].isChecked; - // _mulMaterial.enable = isMultexture; - // resetRenders = !isMultexture; - this.changeColor(); - } - - btAutoBatch(){ - isAutoBatch = this.toggle[1].isChecked; - // dynamicAtlasManager.enabled = isAutoBatch; - // resetRenders = !isAutoBatch; - this.changeColor(); - } - - btExit(){ - director.loadScene('main'); - } - - lateUpdate(dt:number){ - - let state = null; - if(cclegacy.profiler.stats){ - state = cclegacy.profiler.stats; - }else{ - state = cclegacy.profiler._stats; - } - - let dc = state.draws.counter._value; - let tris = state.tricount.counter._value; - let fps = state.fps.counter._averageValue; - let render = state.render.counter._averageValue; - - - //director.root!.device.numDrawCalls; - this.drawcall.string = "dc: " + dc; - this.fps.string = 'fps: '+fps.toFixed(2); - // this.triangle.string = "triangles: "+tris; - this.render.string = 'render: '+render.toFixed(2); - } - -} - -let renders:Set = new Set(); -director.on(Director.EVENT_BEFORE_DRAW,()=>{ - - let resetRenders = false; - if(MultBatch2D.enable != isMultexture){ - MultBatch2D.enable = isMultexture; - resetRenders = true; - } - if(dynamicAtlasManager.enabled != isAutoBatch){ - dynamicAtlasManager.enabled = isAutoBatch; - resetRenders = true; - } - - if(resetRenders){ - resetRenders = false; - renders.forEach((render)=>{ - if(render){ - let rd = render.renderData; - rd && render.markForUpdateRenderData(true); - } - }); - } -}); - -let UIMeshRenderer = cclegacy.UIMeshRenderer.prototype; -let UIMeshDisable = UIMeshRenderer.onDisable; -let UIMeshEnable = UIMeshRenderer.onEnable; -UIMeshRenderer.onEnable = function(){ - renders.add(this); - UIMeshEnable.call(this); -} -UIMeshRenderer.onDisable = function(){ - renders.delete(this); - UIMeshDisable.call(this); -} - -let UIRenderer = cclegacy.internal.UIRenderer.prototype; -let UIDisable = UIRenderer.onDisable; -let UIEnable = UIRenderer.onEnable; -UIRenderer.onEnable = function(){ - renders.add(this); - UIEnable.call(this); -} -UIRenderer.onDisable = function(){ - renders.delete(this); - UIDisable.call(this); -} - diff --git a/assets/resources/expbg.ts.meta b/assets/resources/expbg.ts.meta deleted file mode 100644 index a6dbc6bc..00000000 --- a/assets/resources/expbg.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "05c5a7a2-f660-4f27-8d2c-e58f7738de6f", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/game/map/map_rpg.prefab b/assets/resources/game/map/map_rpg.prefab index 4bd6a924..7493ba0b 100644 --- a/assets/resources/game/map/map_rpg.prefab +++ b/assets/resources/game/map/map_rpg.prefab @@ -28,17 +28,17 @@ "_active": true, "_components": [ { - "__id__": 81 + "__id__": 72 }, { - "__id__": 83 + "__id__": 74 }, { - "__id__": 85 + "__id__": 76 } ], "_prefab": { - "__id__": 87 + "__id__": 78 }, "_lpos": { "__type__": "cc.Vec3", @@ -197,17 +197,17 @@ "_active": true, "_components": [ { - "__id__": 74 + "__id__": 65 }, { - "__id__": 76 + "__id__": 67 }, { - "__id__": 78 + "__id__": 69 } ], "_prefab": { - "__id__": 80 + "__id__": 71 }, "_lpos": { "__type__": "cc.Vec3", @@ -251,23 +251,23 @@ "__id__": 8 }, { - "__id__": 55 + "__id__": 46 }, { - "__id__": 59 + "__id__": 50 }, { - "__id__": 65 + "__id__": 56 } ], "_active": true, "_components": [ { - "__id__": 71 + "__id__": 62 } ], "_prefab": { - "__id__": 73 + "__id__": 64 }, "_lpos": { "__type__": "cc.Vec3", @@ -314,14 +314,14 @@ "_active": true, "_components": [ { - "__id__": 50 + "__id__": 41 }, { - "__id__": 52 + "__id__": 43 } ], "_prefab": { - "__id__": 54 + "__id__": 45 }, "_lpos": { "__type__": "cc.Vec3", @@ -365,23 +365,23 @@ "__id__": 10 }, { - "__id__": 25 + "__id__": 16 }, { - "__id__": 31 + "__id__": 22 } ], "_active": true, "_components": [ { - "__id__": 45 + "__id__": 36 }, { - "__id__": 47 + "__id__": 38 } ], "_prefab": { - "__id__": 49 + "__id__": 40 }, "_lpos": { "__type__": "cc.Vec3", @@ -420,22 +420,18 @@ "_parent": { "__id__": 9 }, - "_children": [ - { - "__id__": 11 - } - ], + "_children": [], "_active": true, "_components": [ { - "__id__": 20 + "__id__": 11 }, { - "__id__": 22 + "__id__": 13 } ], "_prefab": { - "__id__": 24 + "__id__": 15 }, "_lpos": { "__type__": "cc.Vec3", @@ -466,131 +462,6 @@ }, "_id": "" }, - { - "__type__": "cc.Node", - "_objFlags": 0, - "_parent": { - "__id__": 10 - }, - "_prefab": { - "__id__": 12 - }, - "__editorExtras__": {} - }, - { - "__type__": "cc.PrefabInfo", - "root": { - "__id__": 11 - }, - "asset": { - "__uuid__": "21141edb-3848-4481-ac80-0ea8aa4498d4", - "__expectedType__": "cc.Prefab" - }, - "fileId": "588mX12fFBc6tNNhK5kSwP", - "instance": { - "__id__": 13 - }, - "targetOverrides": null - }, - { - "__type__": "cc.PrefabInstance", - "fileId": "3a78SMrvBMNbijh9vr2yQQ", - "prefabRootNode": { - "__id__": 1 - }, - "mountedChildren": [], - "mountedComponents": [], - "propertyOverrides": [ - { - "__id__": 14 - }, - { - "__id__": 16 - }, - { - "__id__": 17 - }, - { - "__id__": 18 - }, - { - "__id__": 19 - } - ], - "removedComponents": [] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 15 - }, - "propertyPath": [ - "_lpos" - ], - "value": { - "__type__": "cc.Vec3", - "x": -0.827, - "y": 264.282, - "z": 0 - } - }, - { - "__type__": "cc.TargetInfo", - "localID": [ - "588mX12fFBc6tNNhK5kSwP" - ] - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 15 - }, - "propertyPath": [ - "_name" - ], - "value": "expbg" - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 15 - }, - "propertyPath": [ - "_lrot" - ], - "value": { - "__type__": "cc.Quat", - "x": 0, - "y": 0, - "z": 0, - "w": 1 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 15 - }, - "propertyPath": [ - "_euler" - ], - "value": { - "__type__": "cc.Vec3", - "x": 0, - "y": 0, - "z": 0 - } - }, - { - "__type__": "CCPropertyOverrideInfo", - "targetInfo": { - "__id__": 15 - }, - "propertyPath": [ - "_active" - ], - "value": false - }, { "__type__": "cc.UITransform", "_name": "", @@ -601,7 +472,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 21 + "__id__": 12 }, "_contentSize": { "__type__": "cc.Size", @@ -629,7 +500,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 23 + "__id__": 14 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -689,14 +560,14 @@ "_active": true, "_components": [ { - "__id__": 26 + "__id__": 17 }, { - "__id__": 28 + "__id__": 19 } ], "_prefab": { - "__id__": 30 + "__id__": 21 }, "_lpos": { "__type__": "cc.Vec3", @@ -733,11 +604,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 25 + "__id__": 16 }, "_enabled": true, "__prefab": { - "__id__": 27 + "__id__": 18 }, "_contentSize": { "__type__": "cc.Size", @@ -761,11 +632,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 25 + "__id__": 16 }, "_enabled": true, "__prefab": { - "__id__": 29 + "__id__": 20 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -825,26 +696,26 @@ "_active": true, "_components": [ { - "__id__": 32 + "__id__": 23 }, { - "__id__": 34 + "__id__": 25 }, { - "__id__": 36 + "__id__": 27 }, { - "__id__": 38 + "__id__": 29 }, { - "__id__": 40 + "__id__": 31 }, { - "__id__": 42 + "__id__": 33 } ], "_prefab": { - "__id__": 44 + "__id__": 35 }, "_lpos": { "__type__": "cc.Vec3", @@ -881,11 +752,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 22 }, "_enabled": true, "__prefab": { - "__id__": 33 + "__id__": 24 }, "_contentSize": { "__type__": "cc.Size", @@ -909,11 +780,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 22 }, "_enabled": true, "__prefab": { - "__id__": 35 + "__id__": 26 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -954,11 +825,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 22 }, "_enabled": true, "__prefab": { - "__id__": 37 + "__id__": 28 }, "enabledContactListener": false, "bullet": true, @@ -988,11 +859,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 22 }, "_enabled": true, "__prefab": { - "__id__": 39 + "__id__": 30 }, "tag": 0, "_group": 1, @@ -1022,11 +893,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 22 }, "_enabled": true, "__prefab": { - "__id__": 41 + "__id__": 32 }, "tag": 0, "_group": 1, @@ -1056,11 +927,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 31 + "__id__": 22 }, "_enabled": true, "__prefab": { - "__id__": 43 + "__id__": 34 }, "tag": 0, "_group": 1, @@ -1107,7 +978,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 46 + "__id__": 37 }, "_contentSize": { "__type__": "cc.Size", @@ -1135,7 +1006,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 48 + "__id__": 39 }, "_customMaterial": null, "_srcBlendFactor": 2, @@ -1193,7 +1064,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 51 + "__id__": 42 }, "_contentSize": { "__type__": "cc.Size", @@ -1221,10 +1092,10 @@ }, "_enabled": true, "__prefab": { - "__id__": 53 + "__id__": 44 }, "bgImg": { - "__id__": 47 + "__id__": 38 }, "_id": "" }, @@ -1257,11 +1128,11 @@ "_active": true, "_components": [ { - "__id__": 56 + "__id__": 47 } ], "_prefab": { - "__id__": 58 + "__id__": 49 }, "_lpos": { "__type__": "cc.Vec3", @@ -1298,11 +1169,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 55 + "__id__": 46 }, "_enabled": true, "__prefab": { - "__id__": 57 + "__id__": 48 }, "_contentSize": { "__type__": "cc.Size", @@ -1345,14 +1216,14 @@ "_active": true, "_components": [ { - "__id__": 60 + "__id__": 51 }, { - "__id__": 62 + "__id__": 53 } ], "_prefab": { - "__id__": 64 + "__id__": 55 }, "_lpos": { "__type__": "cc.Vec3", @@ -1389,11 +1260,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 59 + "__id__": 50 }, "_enabled": true, "__prefab": { - "__id__": 61 + "__id__": 52 }, "_contentSize": { "__type__": "cc.Size", @@ -1417,11 +1288,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 59 + "__id__": 50 }, "_enabled": true, "__prefab": { - "__id__": 63 + "__id__": 54 }, "_id": "" }, @@ -1454,14 +1325,14 @@ "_active": true, "_components": [ { - "__id__": 66 + "__id__": 57 }, { - "__id__": 68 + "__id__": 59 } ], "_prefab": { - "__id__": 70 + "__id__": 61 }, "_lpos": { "__type__": "cc.Vec3", @@ -1498,11 +1369,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 65 + "__id__": 56 }, "_enabled": true, "__prefab": { - "__id__": 67 + "__id__": 58 }, "_contentSize": { "__type__": "cc.Size", @@ -1526,11 +1397,11 @@ "_objFlags": 0, "__editorExtras__": {}, "node": { - "__id__": 65 + "__id__": 56 }, "_enabled": true, "__prefab": { - "__id__": 69 + "__id__": 60 }, "light": { "__uuid__": "683fa094-5032-4f8d-a8c6-63a962c9bdd5", @@ -1565,7 +1436,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 72 + "__id__": 63 }, "_contentSize": { "__type__": "cc.Size", @@ -1606,7 +1477,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 75 + "__id__": 66 }, "_contentSize": { "__type__": "cc.Size", @@ -1634,7 +1505,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 77 + "__id__": 68 }, "camera": { "__id__": 3 @@ -1643,13 +1514,13 @@ "__id__": 7 }, "mapLayer": { - "__id__": 52 + "__id__": 43 }, "floorLayer": { - "__id__": 55 + "__id__": 46 }, "entityLayer": { - "__id__": 62 + "__id__": 53 }, "isFollowPlayer": true, "_id": "" @@ -1668,7 +1539,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 79 + "__id__": 70 }, "_id": "" }, @@ -1699,7 +1570,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 82 + "__id__": 73 }, "_contentSize": { "__type__": "cc.Size", @@ -1727,7 +1598,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 84 + "__id__": 75 }, "_cameraComponent": { "__id__": 3 @@ -1749,7 +1620,7 @@ }, "_enabled": true, "__prefab": { - "__id__": 86 + "__id__": 77 }, "_alignFlags": 45, "_target": null, @@ -1785,11 +1656,6 @@ }, "fileId": "32qENLKwZHV5S2IyZfpNx2", "instance": null, - "targetOverrides": null, - "nestedPrefabInstanceRoots": [ - { - "__id__": 11 - } - ] + "targetOverrides": null } ] \ No newline at end of file diff --git a/assets/resources/gui/prefab/role_controller.prefab b/assets/resources/gui/prefab/role_controller.prefab index a58b0974..62bdd1c5 100644 --- a/assets/resources/gui/prefab/role_controller.prefab +++ b/assets/resources/gui/prefab/role_controller.prefab @@ -3518,7 +3518,7 @@ "_lpos": { "__type__": "cc.Vec3", "x": -355, - "y": -500, + "y": -390, "z": 0 }, "_lrot": { @@ -3725,7 +3725,7 @@ "_left": 5, "_right": 0, "_top": 0, - "_bottom": 140, + "_bottom": 250, "_horizontalCenter": 0, "_verticalCenter": 0, "_isAbsLeft": true, diff --git a/assets/resources/multTextures.meta b/assets/resources/multTextures.meta deleted file mode 100644 index 32350d1d..00000000 --- a/assets/resources/multTextures.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "1.2.0", - "importer": "directory", - "imported": true, - "uuid": "e323e368-94a2-4088-974a-f225ef5451fd", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/multTextures/Mult-effect.effect b/assets/resources/multTextures/Mult-effect.effect deleted file mode 100644 index b74125f5..00000000 --- a/assets/resources/multTextures/Mult-effect.effect +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd. -CCEffect %{ - techniques: - - passes: - - vert: sprite-vs:vert - frag: sprite-fs:frag - depthStencilState: - depthTest: false - depthWrite: false - blendState: - targets: - - blend: true - blendSrc: src_alpha - blendDst: one_minus_src_alpha - blendDstAlpha: one_minus_src_alpha - rasterizerState: - cullMode: none - properties: - alphaThreshold: { value: 0.5 } - texture1: { value: white} - texture2: { value: white} - texture3: { value: white} - texture4: { value: white} - texture5: { value: white} - texture6: { value: white} - texture7: { value: white} -}% - -CCProgram sprite-vs %{ - precision highp float; - #include - #if USE_LOCAL - #include - #endif - #if SAMPLE_FROM_RT - #include - #endif - in vec3 a_position; - in vec2 a_texCoord; - in vec4 a_color; - - out vec4 color; - out vec3 uv0; - - vec4 vert () { - vec4 pos = vec4(a_position, 1); - - #if USE_LOCAL - pos = cc_matWorld * pos; - #endif - - #if USE_PIXEL_ALIGNMENT - pos = cc_matView * pos; - pos.xyz = floor(pos.xyz); - pos = cc_matProj * pos; - #else - pos = cc_matViewProj * pos; - #endif - - // uv0 = a_texCoord; - float id = mod(a_texCoord.x,10.0); - uv0.x = (a_texCoord.x - id)*0.000001; - uv0.y = a_texCoord.y; - uv0.z = id; - - #if SAMPLE_FROM_RT - CC_HANDLE_RT_SAMPLE_FLIP(uv0.xy); - #endif - color = a_color; - - return pos; - } -}% - -CCProgram sprite-fs %{ - precision highp float; - #include - #include - - in vec4 color; - - #if USE_TEXTURE - in vec3 uv0; - #pragma builtin(local) - layout(set = 2, binding = 12) uniform sampler2D cc_spriteTexture; - uniform sampler2D texture1; - uniform sampler2D texture2; - uniform sampler2D texture3; - uniform sampler2D texture4; - uniform sampler2D texture5; - uniform sampler2D texture6; - uniform sampler2D texture7; - #endif - - vec4 frag () { - vec4 o = vec4(1, 1, 1, 1); - - #if USE_TEXTURE - if(uv0.z<0.5) - o *= CCSampleWithAlphaSeparated(cc_spriteTexture, uv0.xy); - else if(uv0.z<1.5) - o *= CCSampleWithAlphaSeparated(texture1, uv0.xy); - else if(uv0.z<2.5) - o *= CCSampleWithAlphaSeparated(texture2, uv0.xy); - else if(uv0.z<3.5) - o *= CCSampleWithAlphaSeparated(texture3, uv0.xy); - else if(uv0.z<4.5) - o *= CCSampleWithAlphaSeparated(texture4, uv0.xy); - else if(uv0.z<5.5) - o *= CCSampleWithAlphaSeparated(texture5, uv0.xy); - else if(uv0.z<6.5) - o *= CCSampleWithAlphaSeparated(texture6, uv0.xy); - else - o *= CCSampleWithAlphaSeparated(texture7, uv0.xy); - - #if IS_GRAY - float gray = 0.2126 * o.r + 0.7152 * o.g + 0.0722 * o.b; - o.r = o.g = o.b = gray; - #endif - #endif - - o *= color; - ALPHA_TEST(o); - return o; - } -}% diff --git a/assets/resources/multTextures/Mult-effect.effect.meta b/assets/resources/multTextures/Mult-effect.effect.meta deleted file mode 100644 index 25df5b93..00000000 --- a/assets/resources/multTextures/Mult-effect.effect.meta +++ /dev/null @@ -1,11 +0,0 @@ -{ - "ver": "1.7.1", - "importer": "effect", - "imported": true, - "uuid": "add9fcaa-8475-4521-917b-7de307b81c4d", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/multTextures/Mult-material.mtl b/assets/resources/multTextures/Mult-material.mtl deleted file mode 100644 index 94d51ce6..00000000 --- a/assets/resources/multTextures/Mult-material.mtl +++ /dev/null @@ -1,31 +0,0 @@ -{ - "__type__": "cc.Material", - "_name": "", - "_objFlags": 0, - "__editorExtras__": {}, - "_native": "", - "_effectAsset": { - "__uuid__": "add9fcaa-8475-4521-917b-7de307b81c4d", - "__expectedType__": "cc.EffectAsset" - }, - "_techIdx": 0, - "_defines": [ - { - "USE_TEXTURE": true - } - ], - "_states": [ - { - "rasterizerState": {}, - "depthStencilState": {}, - "blendState": { - "targets": [ - {} - ] - } - } - ], - "_props": [ - {} - ] -} \ No newline at end of file diff --git a/assets/resources/multTextures/Mult-material.mtl.meta b/assets/resources/multTextures/Mult-material.mtl.meta deleted file mode 100644 index e878c61f..00000000 --- a/assets/resources/multTextures/Mult-material.mtl.meta +++ /dev/null @@ -1,11 +0,0 @@ -{ - "ver": "1.0.21", - "importer": "material", - "imported": true, - "uuid": "490db6c2-4dd4-4050-98ec-c1c62ccaae16", - "files": [ - ".json" - ], - "subMetas": {}, - "userData": {} -} diff --git a/assets/resources/multTextures/MultTextures.ts b/assets/resources/multTextures/MultTextures.ts deleted file mode 100644 index 4f426810..00000000 --- a/assets/resources/multTextures/MultTextures.ts +++ /dev/null @@ -1,306 +0,0 @@ -//*// -import { BaseRenderData, Director, Game, Material, Node, ParticleSystem2D, Sprite, SpriteFrame, StencilManager, UIRenderer, __private, _decorator, assert, cclegacy, director, game, renderer, resources } from 'cc'; -import { DEBUG, EDITOR, JSB } from 'cc/env'; -const { ccclass, property } = _decorator; - - -export const MultBatch2D: any = { - enable: false, - parent: null, - textures: [], - hash: 0, - reset: function () { - this.textures.length = 0; - } -}; - -let _cacheUseCount: number = 0; -let _cacheMaterials: Array = []; - -const getMultMaterial = function () { - - if (!MultBatch2D.enable) return null; - - let material: any = _cacheMaterials[_cacheUseCount++]; - if (!material) { - const mat = { parent: MultBatch2D.parent }; - material = new renderer.MaterialInstance(mat); - material['isMultTextures'] = true; - _cacheMaterials.push(material); - } - - return material; -} - -let MAX_TEX = 8; -const _texture = { - texture: new cclegacy.SimpleTexture(), - defalut: new cclegacy.SimpleTexture(), - setFrame(frame: any) { - this.texture['_gfxSampler'] = frame.getGFXSampler(); - this.texture['_gfxTextureView'] = frame.getGFXTexture(); - } -}; - - -game.once(Game.EVENT_GAME_INITED, () => { - if (EDITOR || JSB) return; - - resources.load("multTextures/Mult-material", Material, (err, material) => { - if (!err) { - let mat = cclegacy.builtinResMgr.get('ui-sprite-material'); - MultBatch2D.hash = Material.getHash(mat); - MultBatch2D.parent = material; - MultBatch2D.enable = true; - } - }); - - - const UIR: any = UIRenderer.prototype; - const updateMaterial: any = UIR.updateMaterial; - UIR.updateMaterial = function () { - updateMaterial.call(this); - //this.getSharedMaterial(0); - let material = this.customMaterial || this.material; - if (material) { - material['isMultTextures'] = false; - if (MultBatch2D.hash == material.hash) { - material['isMultTextures'] = true; - } - } - } - - const PS2D: any = ParticleSystem2D.prototype; - const _updateMaterial = PS2D._updateMaterial; - PS2D._updateMaterial = function () { - _updateMaterial.call(this); - let material = this.customMaterial || this.material; - if (material) { - material['isMultTextures'] = false; - if (MultBatch2D.hash == material.hash) { - material['isMultTextures'] = true; - } - } - } - -}); - - - - -game.once(Game.EVENT_ENGINE_INITED, () => { - if (EDITOR || JSB) return; - - - cclegacy.UI.RenderData.prototype.texID = -1; - cclegacy.UI.RenderData.prototype.texDirty = true; - cclegacy.UI.RenderData.prototype.dataDirty = true; - - Object.defineProperty(cclegacy.UI.RenderData.prototype, "vertDirty", { - get: function () { - return this._vertDirty; - }, - set: function (val: boolean) { - this._vertDirty = val; - if (val === true) { - this.dataDirty = true; - } - if (this._renderDrawInfo && val) { - this._renderDrawInfo.setVertDirty(val); - } - } - }); - - Object.defineProperty(cclegacy.UI.RenderData.prototype, "textureDirty", { - get: function () { - return this.texDirty; - }, - set: function (val: boolean) { - this.texDirty = val; - if (val === true) { - this.texID = -1; - } - } - }); - - const Spr: any = Sprite.prototype; - Spr.flagChangedVersion = -1; - Object.defineProperty(Spr, "_flagChangedVersion", { - get: function () { - return this.flagChangedVersion; - }, - set: function (val: number) { - if (this.flagChangedVersion != val) { - this.flagChangedVersion = val; - let rd = this.renderData; - let type = this.type; - if (rd && type == Sprite.Type.TILED - || (type == Sprite.Type.FILLED && Sprite.FillType.RADIAL)) { - rd.dataDirty = true; - } - } - } - }); - - - director.on(Director.EVENT_AFTER_DRAW, (dt) => { - cclegacy.internal.Batcher2D._rdHash = -1; - MultBatch2D.reset(); - _cacheUseCount = 0; - }); - - - cclegacy.internal.Batcher2D.prototype.currMaterial = null; - Object.defineProperty(cclegacy.internal.Batcher2D.prototype, "_currMaterial", { - get: function () { - return this.currMaterial; - }, - set: function (metrial: any) { - if (this.currMaterial === metrial) return; - this.currMaterial = metrial; - MultBatch2D.reset(); - if (metrial && metrial.isMultTextures) { - let mat = getMultMaterial(); - if (mat) { - this.currMaterial = mat; - } - } - } - }); - - - const Stage_ENTER_LEVEL = 2; - const Stage_ENTER_LEVEL_INVERTED = 6; - type TextureBase = __private._cocos_asset_assets_texture_base__TextureBase; - - cclegacy.internal.Batcher2D.prototype._rdHash = -1; - cclegacy.internal.Batcher2D.prototype.commitComp = function (comp: UIRenderer, renderData: BaseRenderData | null, frame: TextureBase | SpriteFrame | null, assembler: any, transform: Node | null) { - - let rdHash = -1; - let dataHash = 0; - let mat: any; - let bufferID = -1; - if (renderData && renderData.chunk) { - if (!renderData.isValid()) return; - dataHash = renderData.dataHash; - mat = renderData.material; - bufferID = renderData.chunk.bufferId; - // as RenderData; - let rd: any = renderData; - rdHash = bufferID << 16 | rd.layer; - - } - // Notice: A little hack, if it is for mask, not need update here, while control by stencilManger - if (comp.stencilStage === Stage_ENTER_LEVEL || comp.stencilStage === Stage_ENTER_LEVEL_INVERTED) { - this._insertMaskBatch(comp); - } else { - comp.stencilStage = StencilManager.sharedManager!.stage; - } - const depthStencilStateStage = comp.stencilStage; - - - - let texID = -1; - let texture = null; - let flushBatch = false; - let isMultTextures = false; - if (MultBatch2D.enable && mat && mat.isMultTextures) { - texture = frame && frame.getGFXTexture(); - texID = MultBatch2D.textures.indexOf(texture); - isMultTextures = true; - if (texID < 0) { - if (MultBatch2D.textures.length == MAX_TEX) { - // MultBatch2D.textures.length = 0; - flushBatch = true; - } - } - - if (this._currMaterial && this._currMaterial.isMultTextures) { - mat = this._currMaterial; - dataHash = this._currHash; - if (this._rdHash != rdHash) { - flushBatch = true; - texID = -1; - } - } - } - - - if (flushBatch - || this._currHash !== dataHash || dataHash === 0 || this._currMaterial !== mat - || this._currDepthStencilStateStage !== depthStencilStateStage) { - // Merge all previous data to a render batch, and update buffer for next render data - this.autoMergeBatches(this._currComponent!); - if (renderData && !renderData._isMeshBuffer) { - this.updateBuffer(renderData.vertexFormat, bufferID); - } - - this._rdHash = rdHash; - this._currRenderData = renderData; - this._currHash = renderData ? renderData.dataHash : 0; - this._currComponent = comp; - this._currTransform = transform; - this._currMaterial = comp.getRenderMaterial(0)!; - this._currDepthStencilStateStage = depthStencilStateStage; - this._currLayer = comp.node.layer; - if (frame) { - if (DEBUG) { - assert(frame.isValid, 'frame should not be invalid, it may have been released'); - } - this._currTexture = frame.getGFXTexture(); - this._currSampler = frame.getGFXSampler(); - this._currTextureHash = frame.getHash(); - this._currSamplerHash = this._currSampler.hash; - } else { - this._currTexture = null; - this._currSampler = null; - this._currTextureHash = 0; - this._currSamplerHash = 0; - } - } - - assembler.fillBuffers(comp, this); - - if (isMultTextures) { - if (texID < 0) { - texID = MultBatch2D.textures.length; - MultBatch2D.textures.push(texture); - if (texID > 0) { - _texture.setFrame(frame); - const name = "texture" + texID; - this._currMaterial.setProperty(name, _texture.texture); - } - } - - this._fillDatas(renderData, texID); - } - } - - - cclegacy.internal.Batcher2D.prototype["_fillDatas"] = function (renderData: any, texID: number) { - - if (!renderData) return; - - let uvX = 0; - let vbuf = renderData.chunk.vb; - if (renderData.dataDirty) { - renderData.dataDirty = false; - for (let i = 0, length = vbuf.length; i < length; i += 9) { - uvX = ~~(vbuf[i + 3] * 100000); - vbuf[i + 3] = uvX * 10 + texID; - } - } else { - if (renderData.texID != texID) { - for (let i = 0, length = vbuf.length; i < length; i += 9) { - uvX = ~~(vbuf[i + 3] * 0.1); - vbuf[i + 3] = uvX * 10 + texID; - } - } - } - - renderData.texID = texID; - }; - -}); - -//*/ diff --git a/assets/resources/multTextures/MultTextures.ts.meta b/assets/resources/multTextures/MultTextures.ts.meta deleted file mode 100644 index f65d9385..00000000 --- a/assets/resources/multTextures/MultTextures.ts.meta +++ /dev/null @@ -1,9 +0,0 @@ -{ - "ver": "4.0.23", - "importer": "typescript", - "imported": true, - "uuid": "bd7e7bed-a237-4c50-9383-95bb886ff622", - "files": [], - "subMetas": {}, - "userData": {} -} diff --git a/assets/script/game/common/SingletonModuleComp.ts b/assets/script/game/common/SingletonModuleComp.ts index 617c32ad..12a10f4a 100644 --- a/assets/script/game/common/SingletonModuleComp.ts +++ b/assets/script/game/common/SingletonModuleComp.ts @@ -48,12 +48,13 @@ export class SingletonModuleComp extends ecs.Comp { gold: { min: 3, max: 3, + max_limit:10, time:0, - cd:30, + cd:15, }, shuaxin: { min: 0, - max: 10, + max: 15, speed:1, }, diff --git a/assets/script/game/map/view/MapViewComp.ts b/assets/script/game/map/view/MapViewComp.ts index f12866a4..7b3c4594 100644 --- a/assets/script/game/map/view/MapViewComp.ts +++ b/assets/script/game/map/view/MapViewComp.ts @@ -25,7 +25,11 @@ export class MapViewComp extends CCComp { current_map: any; /** 转场碰撞点对象集合 */ - private timer: Timer = new Timer(3); + private monster_refresh_rtimer: Timer = new Timer(3); + + private mapLoaded() { + + } onLoad(){ // 监听全局事件 oops.message.on("do_add_monster", this.on_do_add_monster, this); @@ -34,11 +38,10 @@ export class MapViewComp extends CCComp { private on_do_add_monster(event: string, args: any) { this.addMonster() } + /**监听do_add_hero 添加hero,通过uuid */ private on_do_add_hero(event: string, args: any) { - console.log("do_add_hero",args.HeroCardView) - this.addHero(args.HeroCardView.card_uid) - this.addMonster() - + console.log("do_add_hero",args.uuid) + this.addHero(args.uuid) } reset(): void { @@ -49,19 +52,22 @@ export class MapViewComp extends CCComp { } - /** 转场 */ protected update(dt: number): void { - + if (this.monster_refresh_rtimer.update(dt)) { + this.monster_refresh() + } // this.shuaxin(dt) this.gold_add(dt) } - - private mapLoaded() { - + monster_refresh(){ + this.addMonster(1001) } gold_add(dt: number) { smc.vm_data.gold.time += dt; if (smc.vm_data.gold.time >= smc.vm_data.gold.cd) { + if (smc.vm_data.gold.max < smc.vm_data.gold.max_limit) { + smc.vm_data.gold.max += 1; + } smc.vm_data.gold.min = smc.vm_data.gold.max; smc.vm_data.gold.time = 0; } @@ -77,24 +83,15 @@ export class MapViewComp extends CCComp { this.scene.node.active = true let hero = ecs.getEntity(Hero); let pos = v3(BoxSet.HERO_START,BoxSet.GAME_LINE) - let speed =CardSet[uuid].speed let camp = 1 - let prefab_path = CardSet[uuid].prefab_path - let name = CardSet[uuid].name - hero.load(pos,speed,camp,prefab_path,name); + hero.load(pos,camp,uuid); } - private addMonster() { + private addMonster(uuid:number=1001) { this.scene.node.active = true - if (smc.monsters.length>0){ let monster = ecs.getEntity(Monster); let pos:Vec3 = v3(BoxSet.MONSTER_START,BoxSet.GAME_LINE) - let speed =smc.monsters[0].speed let camp = -1 - let prefab_path = smc.monsters[0].prefab_path - let name = smc.monsters[0].name - monster.load(pos,speed,camp,prefab_path,name); - smc.monsters.splice(0,1) - } + monster.load(pos,camp,uuid); } diff --git a/assets/script/game/monster/Hero.ts b/assets/script/game/monster/Hero.ts index 10d1c6e7..51da84d5 100644 --- a/assets/script/game/monster/Hero.ts +++ b/assets/script/game/monster/Hero.ts @@ -5,7 +5,7 @@ * @LastEditors: dgflash * @LastEditTime: 2022-08-04 15:43:04 */ -import { instantiate, Node, Prefab, Vec3 ,tween, v3,Collider2D,Contact2DType,PhysicsSystem2D,IPhysics2DContact, animation,Label,resources,SpriteFrame,Sprite} from "cc"; +import { instantiate, Node, Prefab, Vec3,v3,resources,SpriteFrame,Sprite} from "cc"; import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; @@ -14,6 +14,7 @@ import { smc } from "../common/SingletonModuleComp"; import { MonsterModelComp } from "./MonsterModelComp"; import { MonsterSpine } from "./MonsterSpine"; import { MonsterViewComp } from "./MonsterViewComp"; +import { CardSet } from "../common/config/CardSet"; /** 角色实体 */ @ecs.register(`Hero`) export class Hero extends ecs.Entity { @@ -34,7 +35,7 @@ export class Hero extends ecs.Entity { } /** 加载角色 */ - load(pos: Vec3 = Vec3.ZERO,speed:number = 100,camp:number = 1,prefab_path:string = "monster",name:string="hero") { + load(pos: Vec3 = Vec3.ZERO,camp:number = 1,uuid:number=1001) { // var path = "game/monster/"+prefab_path; var path = "game/heros/hero"; @@ -47,25 +48,29 @@ export class Hero extends ecs.Entity { node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*camp, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z); node.setPosition(pos) // console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite)) - const url = 'game/heros/hero/'+prefab_path+'/spriteFrame'; + const url = 'game/heros/hero/'+CardSet[uuid].prefab_path+'/spriteFrame'; resources.load(url, SpriteFrame, (err: any, spriteFrame) => { const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite); sprite.spriteFrame = spriteFrame; }); - - var mv = node.getComponent(MonsterViewComp)!; - mv.speed =mv.ospeed = speed; - mv.hero_name= name; - mv.camp = camp; - mv.Tpos = v3(0,0,0); - mv.change_name(name,camp) - this.add(mv); - smc.heros_in.push({name:mv.ent.name,eid:mv.ent.eid,pos_x:0}) + this.hero_init(uuid,node) oops.message.dispatchEvent("hero_load",this) } - + hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){ + var mv = node.getComponent(MonsterViewComp)!; + mv.speed =mv.ospeed = CardSet[uuid].speed; + mv.hero_name= CardSet[uuid].name; + mv.Tpos = v3(0,0,0); + mv.camp = 1; + mv.change_name(CardSet[uuid].name,1) + this.add(mv); + this.push_monsters_in(uuid,mv.ent.eid) + } + push_monsters_in(uuid:number=1001,eid:number=0){ + smc.monsters_in.push({name:CardSet[uuid].name,eid:eid}) + } } \ No newline at end of file diff --git a/assets/script/game/monster/HeroCardViewComp.ts b/assets/script/game/monster/HeroCardViewComp.ts index e919bc21..8a33d51c 100644 --- a/assets/script/game/monster/HeroCardViewComp.ts +++ b/assets/script/game/monster/HeroCardViewComp.ts @@ -45,13 +45,11 @@ export class HeroCardViewComp extends CCComp { let active = parent.getChildByName("active"); active.setPosition(this.node.position.x,this.node.position.y) active.active = true; - console.log(parent); // if(this.ent.eid == smc.vm_data.cards.eid){ // this.node.getChildByName("active").active = true; // }else{ // this.node.getChildByName("active").active = false; // } - console.log("onTouchMove"); let delta = event.getDelta(); this.node.setPosition(this.node.position.x+delta.x,this.node.position.y+delta.y); } @@ -68,7 +66,7 @@ export class HeroCardViewComp extends CCComp { } use_card(){ if(smc.vm_data.gold.min >= CardSet[this.card_uid].level){ - oops.message.dispatchEvent("do_add_hero",this.ent) + oops.message.dispatchEvent("do_add_hero",{uuid:this.card_uid}) this.ent.destroy(); smc.vm_data.gold.min -= CardSet[this.card_uid].level; }else{ diff --git a/assets/script/game/monster/Monster.ts b/assets/script/game/monster/Monster.ts index 5ac83f2c..dc006322 100644 --- a/assets/script/game/monster/Monster.ts +++ b/assets/script/game/monster/Monster.ts @@ -5,7 +5,7 @@ * @LastEditors: dgflash * @LastEditTime: 2022-08-04 15:43:04 */ -import { instantiate, Node, Prefab, Vec3 ,tween, v3,Collider2D,Contact2DType,PhysicsSystem2D,IPhysics2DContact, animation,Label,resources,SpriteFrame,Sprite} from "cc"; +import { instantiate, Node, Prefab, Vec3 ,v3,resources,SpriteFrame,Sprite,} from "cc"; import { UICallbacks } from "../../../../extensions/oops-plugin-framework/assets/core/gui/layer/Defines"; import { oops } from "../../../../extensions/oops-plugin-framework/assets/core/Oops"; import { ecs } from "../../../../extensions/oops-plugin-framework/assets/libs/ecs/ECS"; @@ -14,6 +14,7 @@ import { smc } from "../common/SingletonModuleComp"; import { MonsterModelComp } from "./MonsterModelComp"; import { MonsterSpine } from "./MonsterSpine"; import { MonsterViewComp } from "./MonsterViewComp"; +import { CardSet } from "../common/config/CardSet"; /** 角色实体 */ @ecs.register(`Monster`) export class Monster extends ecs.Entity { @@ -34,7 +35,7 @@ export class Monster extends ecs.Entity { } /** 加载角色 */ - load(pos: Vec3 = Vec3.ZERO,speed:number = 100,camp:number = 1,prefab_path:string = "monster",name:string="hero") { + load(pos: Vec3 = Vec3.ZERO,camp:number = -1,uuid:number=1001) { // var path = "game/monster/"+prefab_path; var path = "game/heros/hero"; @@ -47,31 +48,27 @@ export class Monster extends ecs.Entity { node.getChildByName("avatar").setScale(node.getChildByName("avatar").scale.x*camp, node.getChildByName("avatar").scale.y, node.getChildByName("avatar").scale.z); node.setPosition(pos) // console.log(node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite)) - const url = 'game/heros/hero/'+prefab_path+'/spriteFrame'; + const url = 'game/heros/hero/'+CardSet[uuid].prefab_path+'/spriteFrame'; resources.load(url, SpriteFrame, (err: any, spriteFrame) => { const sprite = node.getChildByName("avatar").getChildByName("TNode").getChildByName("bb").getComponent(Sprite); sprite.spriteFrame = spriteFrame; }); - - + this.hero_init(uuid,node) + oops.message.dispatchEvent("monster_load",this) + } + hero_init(uuid:number=1001,node:Node,pos:Vec3=v3(0,0,0)){ var mv = node.getComponent(MonsterViewComp)!; - mv.speed =mv.ospeed = speed; - mv.hero_name= name; - mv.camp = camp; + mv.speed =mv.ospeed = CardSet[uuid].speed; + mv.hero_name= CardSet[uuid].name; + mv.camp = -1; mv.Tpos = v3(0,0,0); - mv.change_name(name,camp) + mv.change_name(CardSet[uuid].name,-1) this.add(mv); - if(camp == 1){ - smc.heros_in.push({name:mv.ent.name,eid:mv.ent.eid,pos_x:0}) - oops.message.dispatchEvent("hero_load",this) - }else{ - smc.monsters_in.push({name:mv.ent.name,eid:mv.ent.eid,pos_x:0}) - oops.message.dispatchEvent("monster_load",this) - } - - // console.log(smc.heros_in,smc.monsters_in) + this.push_monsters_in(uuid,mv.ent.eid) + } + push_monsters_in(uuid:number=1001,eid:number=0){ + smc.monsters_in.push({name:CardSet[uuid].name,eid:eid}) } - } \ No newline at end of file