commit fe21ffdc65e5436079fc8c1950cfa26616c1bc3a Author: lujun <495904500@qq.com> Date: Sun Feb 5 20:31:26 2023 +0800 第一次 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a231b3f --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ + +#/////////////////////////// +# Cocos Creator 3D Project +#/////////////////////////// +library/ +temp/ +local/ +build/ +profiles/ +native +#////////////////////////// +# NPM +#////////////////////////// +node_modules/ + +#////////////////////////// +# VSCode +#////////////////////////// +.vscode/ + +#////////////////////////// +# WebStorm +#////////////////////////// +.idea/ \ No newline at end of file diff --git a/assets/lcc-ui-sorting-group.meta b/assets/lcc-ui-sorting-group.meta new file mode 100644 index 0000000..1701c80 --- /dev/null +++ b/assets/lcc-ui-sorting-group.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "fbe325bf-0096-49e8-a5e6-5446bc2010b1", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/lcc-ui-sorting-group/engine-extend.ts b/assets/lcc-ui-sorting-group/engine-extend.ts new file mode 100644 index 0000000..8a6df83 --- /dev/null +++ b/assets/lcc-ui-sorting-group/engine-extend.ts @@ -0,0 +1,228 @@ +import { clamp, gfx,Node,RenderData,UI,StencilManager,UIRenderer } from 'cc'; +import { JSB } from 'cc/env'; + +declare module 'cc' { + interface UIRenderer { + + /** + * 排序优先级 + */ + sortingPriority:number; + + /** + * 排序透明度 + */ + sortingOpacity:number; + } + + interface UI { + + /** + * 渲染器缓存 + */ + rendererCache:UIRenderer[]; + + /** + * 渲染器排序 + */ + rendererOrder:boolean; + + /** + * 刷新渲染缓存 + */ + flushRendererCache(); + } +} + +export enum _cocos_2d_renderer_stencil_manager__Stage { + DISABLED = 0, + CLEAR = 1, + ENTER_LEVEL = 2, + ENABLED = 3, + EXIT_LEVEL = 4, + CLEAR_INVERTED = 5, + ENTER_LEVEL_INVERTED = 6 +} + +export function updateOpacity (renderData: RenderData, opacity: number) { + const vfmt = renderData.vertexFormat; + const vb = renderData.chunk.vb; + let attr; let format; let stride; + // Color component offset + let offset = 0; + for (let i = 0; i < vfmt.length; ++i) { + attr = vfmt[i]; + format = gfx.FormatInfos[attr.format]; + if (format.hasAlpha) { + stride = renderData.floatStride; + if (format.size / format.count === 1) { + const alpha = ~~clamp(Math.round(opacity * 255), 0, 255); + // Uint color RGBA8 + for (let color = offset; color < vb.length; color += stride) { + vb[color] = ((vb[color] & 0xffffff00) | alpha) >>> 0; + } + } else if (format.size / format.count === 4) { + // RGBA32 color, alpha at position 3 + for (let alpha = offset + 3; alpha < vb.length; alpha += stride) { + vb[alpha] = opacity; + } + } + } + offset += format.size >> 2; + } +} + +const UI_initialize = UI.prototype.initialize; +UI.prototype.initialize = function(){ + this.rendererCache = []; + this.rendererOrder = false; + return UI_initialize.call(this); +} + +UI.prototype.flushRendererCache = function(){ + const rendererCache = this.rendererCache; + if(rendererCache.length > 0){ + if(this.rendererOrder){ + rendererCache.sort((a, b)=>{ return a.sortingPriority - b.sortingPriority; }); + } + for(let render of rendererCache){ + render.fillBuffers(this); + if(render.sortingOpacity >= 0){ + updateOpacity(render.renderData, render.sortingOpacity); + const buffer = render.renderData.getMeshBuffer(); + if (buffer) { + buffer.setDirty(); + } + } + } + rendererCache.length = 0; + } + this.rendererOrder = false; +} + +UI.prototype.update = function() { + if (JSB) { + return; + } + const screens = this._screens; + let offset = 0; + for (let i = 0; i < screens.length; ++i) { + const screen = screens[i]; + const scene = screen._getRenderScene(); + if (!screen.enabledInHierarchy || !scene) { + continue; + } + // Reset state and walk + this._opacityDirty = 0; + this._pOpacity = 1; + + this.walk(screen.node); + this.flushRendererCache(); + + this.autoMergeBatches(this._currComponent!); + this.resetRenderStates(); + + let batchPriority = 0; + if (this._batches.length > offset) { + for (; offset < this._batches.length; ++offset) { + const batch = this._batches.array[offset]; + + if (batch.model) { + const subModels = batch.model.subModels; + for (let j = 0; j < subModels.length; j++) { + subModels[j].priority = batchPriority++; + } + } else { + batch.descriptorSet = this._descriptorSetCache.getDescriptorSet(batch); + } + scene.addBatch(batch); + } + } + } +} + +UI.prototype.walk = function(node: Node, level = 0){ + if (!node.activeInHierarchy) { + return; + } + const children = node.children; + const uiProps = node._uiProps; + const render = uiProps.uiComp as UIRenderer; + const stencilEnterLevel = render && (render.stencilStage === _cocos_2d_renderer_stencil_manager__Stage.ENTER_LEVEL || render.stencilStage === _cocos_2d_renderer_stencil_manager__Stage.ENTER_LEVEL_INVERTED); + + // Save opacity + const parentOpacity = this._pOpacity; + let opacity = parentOpacity; + // TODO Always cascade ui property's local opacity before remove it + const selfOpacity = render && render.color ? render.color.a / 255 : 1; + this._pOpacity = opacity *= selfOpacity * uiProps.localOpacity; + // TODO Set opacity to ui property's opacity before remove it + // @ts-expect-error temporary force set, will be removed with ui property's opacity + uiProps._opacity = opacity; + if (uiProps.colorDirty) { + // Cascade color dirty state + this._opacityDirty++; + } + + // Render assembler update logic + if (render && render.enabledInHierarchy) { + if(stencilEnterLevel){ + this.flushRendererCache(); + + render.fillBuffers(this);// for rendering + + // Update cascaded opacity to vertex buffer + if (this._opacityDirty && render && !render.useVertexOpacity && render.renderData && render.renderData.vertexCount > 0) { + // HARD COUPLING + updateOpacity(render.renderData, opacity); + const buffer = render.renderData.getMeshBuffer(); + if (buffer) { + buffer.setDirty(); + } + } + }else{ + this.rendererCache.push(render); + render.sortingPriority = render.sortingPriority ?? 0; + if(render.sortingPriority != 0){ + this.rendererOrder = true; + } + if (this._opacityDirty && render && !render.useVertexOpacity && render.renderData && render.renderData.vertexCount > 0) { + render.sortingOpacity = opacity; + }else{ + render.sortingOpacity = -1; + } + } + } + + if (children.length > 0 && !node._static) { + for (let i = 0; i < children.length; ++i) { + const child = children[i]; + this.walk(child, level); + } + } + + if (uiProps.colorDirty) { + // Reduce cascaded color dirty state + this._opacityDirty--; + // Reset color dirty + uiProps.colorDirty = false; + } + // Restore opacity + this._pOpacity = parentOpacity; + // Post render assembler update logic + // ATTENTION: Will also reset colorDirty inside postUpdateAssembler + if (render && render.enabledInHierarchy) { + render.postUpdateAssembler(this); + if (stencilEnterLevel + && (StencilManager.sharedManager!.getMaskStackSize() > 0)) { + + this.flushRendererCache(); + + this.autoMergeBatches(this._currComponent!); + this.resetRenderStates(); + StencilManager.sharedManager!.exitMask(); + } + } + + level += 1; +}; diff --git a/assets/lcc-ui-sorting-group/engine-extend.ts.meta b/assets/lcc-ui-sorting-group/engine-extend.ts.meta new file mode 100644 index 0000000..c48fe03 --- /dev/null +++ b/assets/lcc-ui-sorting-group/engine-extend.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "eebde562-6799-4fbd-9138-5f4755bdd7d7", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/lcc-ui-sorting-group/sorting-define.ts b/assets/lcc-ui-sorting-group/sorting-define.ts new file mode 100644 index 0000000..12948ea --- /dev/null +++ b/assets/lcc-ui-sorting-group/sorting-define.ts @@ -0,0 +1,23 @@ + +/** + * 排序层级 + */ +export enum SortingLayer { + + //-- 自定义,在此之上,小于 DEFAULT 的层级 + + /** + * 默认层级,在没有应用排序的UI渲染上的默认层级 + */ + DEFAULT = 0, + + //-- 自定义,在此之下,大于 DEFAULT 的层级 + + // 测试定义,可以直接移除 + TEST_LIST_ITEM = 1, +} + +/** + * 在层级中最大排序值 + */ +export const ORDER_IN_LAYER_MAX = 100000; diff --git a/assets/lcc-ui-sorting-group/sorting-define.ts.meta b/assets/lcc-ui-sorting-group/sorting-define.ts.meta new file mode 100644 index 0000000..3730f3f --- /dev/null +++ b/assets/lcc-ui-sorting-group/sorting-define.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "ac000892-443c-41be-8b49-35e002bb1213", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/lcc-ui-sorting-group/sorting-group.ts b/assets/lcc-ui-sorting-group/sorting-group.ts new file mode 100644 index 0000000..7aa3210 --- /dev/null +++ b/assets/lcc-ui-sorting-group/sorting-group.ts @@ -0,0 +1,38 @@ + +import { _decorator, Component, Node, ccenum, CCInteger, CCFloat, Enum, director, UI, UIRenderer } from 'cc'; +import { ORDER_IN_LAYER_MAX, SortingLayer } from './sorting-define'; +const { ccclass, property, type, disallowMultiple, requireComponent } = _decorator; + +@ccclass('lcc-ui/SortingGroup') +@requireComponent(UIRenderer) +@disallowMultiple +export class SortingGroup extends Component { + /** + * 排序层 + */ + @type(Enum(SortingLayer)) + sortingLayer:SortingLayer = SortingLayer.DEFAULT; + + /** + * 排序值 + */ + @property({ type:CCFloat, min: 0, max : ORDER_IN_LAYER_MAX }) + orderInLayer:number = 0; + + /** + * UI渲染器 + */ + private _uiRenderer:UIRenderer = null; + + onLoad(){ + this._uiRenderer = this.getComponent(UIRenderer); + } + + onEnable(){ + this._uiRenderer.sortingPriority = Math.sign(this.sortingLayer) * (Math.abs(this.sortingLayer) * ORDER_IN_LAYER_MAX + this.orderInLayer); + } + + onDisable(){ + this._uiRenderer.sortingPriority = SortingLayer.DEFAULT * ORDER_IN_LAYER_MAX; + } +} diff --git a/assets/lcc-ui-sorting-group/sorting-group.ts.meta b/assets/lcc-ui-sorting-group/sorting-group.ts.meta new file mode 100644 index 0000000..00f0983 --- /dev/null +++ b/assets/lcc-ui-sorting-group/sorting-group.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "5c8c905a-57e5-40d5-9de9-2be66c8b709b", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/test.meta b/assets/test.meta new file mode 100644 index 0000000..cf0834c --- /dev/null +++ b/assets/test.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "ee331372-5265-4db6-a78d-6cd64e7962a8", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/test/prefabs.meta b/assets/test/prefabs.meta new file mode 100644 index 0000000..f3dac5e --- /dev/null +++ b/assets/test/prefabs.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "dca7ccf5-6238-4b91-9a5f-2a8ccb5d1a56", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/test/prefabs/ListTestItem-sorting.prefab b/assets/test/prefabs/ListTestItem-sorting.prefab new file mode 100644 index 0000000..c84112c --- /dev/null +++ b/assets/test/prefabs/ListTestItem-sorting.prefab @@ -0,0 +1,1644 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "ListTestItem-sorting", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "ListTestItem-sorting", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 18 + }, + { + "__id__": 36 + }, + { + "__id__": 44 + }, + { + "__id__": 70 + } + ], + "_active": true, + "_components": [ + { + "__id__": 78 + }, + { + "__id__": 80 + }, + { + "__id__": 82 + }, + { + "__id__": 84 + } + ], + "_prefab": { + "__id__": 86 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -819.9955, + "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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Head", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [ + { + "__id__": 11 + }, + { + "__id__": 13 + }, + { + "__id__": 15 + } + ], + "_prefab": { + "__id__": 17 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 95.5435, + "y": -93.898, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Rank", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + }, + { + "__id__": 8 + } + ], + "_prefab": { + "__id__": 10 + }, + "_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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 22.25, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "042In80RtHj6DspKYJCAhv" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 0, + "b": 0, + "a": 255 + }, + "_string": "1", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 40, + "_fontSize": 40, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c9PuueFXhGkrDvOiYdnQn3" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 9 + }, + "sortingLayer": 1, + "orderInLayer": 6, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "0cdkEJqIxNXojFecS2X0Fj" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "adGhn19P9Gr4SmeSOuBKn2" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 160, + "height": 160 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2bovubnu5DmJ++tm17Wvqt" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 14 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "98c87e02-1e93-4f76-881c-4668398c2538@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": "43EbeEcqhIUKczwmvTraCm" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 16 + }, + "sortingLayer": 1, + "orderInLayer": 1, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "97CR4vO0tI0KVWUE+VSdqe" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "e9vIw3BKZE8ZiqzoRw9UNN" + }, + { + "__type__": "cc.Node", + "_name": "Gold", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 19 + } + ], + "_active": true, + "_components": [ + { + "__id__": 27 + }, + { + "__id__": 29 + }, + { + "__id__": 31 + }, + { + "__id__": 33 + } + ], + "_prefab": { + "__id__": 35 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 226.69, + "y": -51.131, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "_parent": { + "__id__": 18 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 20 + }, + { + "__id__": 22 + }, + { + "__id__": 24 + } + ], + "_prefab": { + "__id__": 26 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 97.614, + "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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 21 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 129.538, + "height": 44.988 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f08U+VFT5HoJaUW9n3xE3a" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 23 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 192, + "g": 255, + "b": 59, + "a": 255 + }, + "_string": "9999", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8Xz4yJwtBcrHUvWDhUK++" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 19 + }, + "_enabled": true, + "__prefab": { + "__id__": 25 + }, + "sortingLayer": 1, + "orderInLayer": 7, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "02yKVUuzVGOK+UdWxveSCZ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "be0j7GDihBh589CV8VLOj5" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 28 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 61 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "36ASF66AhLG7x3KV0ArZnu" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 30 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "6dbed0ea-8e55-490e-ac38-4880862370c8@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": "42rKYPmHtDpK9VzIjLGL7x" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "sortingLayer": 1, + "orderInLayer": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c9LHhVr5JLJKQ9sMDWGnkI" + }, + { + "__type__": "cc.UIOpacity", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 18 + }, + "_enabled": true, + "__prefab": { + "__id__": 34 + }, + "_opacity": 255, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "b1qLzYX71JoKbyFZluPQPZ" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "926Ld9aTZMJqKYawg8FXL2" + }, + { + "__type__": "cc.Node", + "_name": "Flag", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 37 + }, + { + "__id__": 39 + }, + { + "__id__": 41 + } + ], + "_prefab": { + "__id__": 43 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 468.913, + "y": -53.519, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 38 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 81, + "height": 80 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "72/yAZsWJHAIYWBK64/Zik" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 40 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "c7f04ad9-3432-406c-af71-456be27021e1@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": "70ZsAti8pMZJv3urwubdl4" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 42 + }, + "sortingLayer": 1, + "orderInLayer": 3, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "26Q4Jd7EhH6a+w3+2yaVR2" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7eVot73xFNXriNV4u/o+TS" + }, + { + "__type__": "cc.Node", + "_name": "Level", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 45 + } + ], + "_active": true, + "_components": [ + { + "__id__": 63 + }, + { + "__id__": 65 + }, + { + "__id__": 67 + } + ], + "_prefab": { + "__id__": 69 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 232.165, + "y": -129.224, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "ProgressBar", + "_objFlags": 0, + "_parent": { + "__id__": 44 + }, + "_children": [ + { + "__id__": 46 + } + ], + "_active": true, + "_components": [ + { + "__id__": 54 + }, + { + "__id__": 56 + }, + { + "__id__": 58 + }, + { + "__id__": 60 + } + ], + "_prefab": { + "__id__": 62 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 119.337, + "y": -33.399, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Bar", + "_objFlags": 0, + "_parent": { + "__id__": 45 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 47 + }, + { + "__id__": 49 + }, + { + "__id__": 51 + } + ], + "_prefab": { + "__id__": 53 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -150, + "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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": { + "__id__": 48 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 15 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "41PYxqTvNPAq/Ie6VgNWPq" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": { + "__id__": 50 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "09bd952a-9e81-45e3-a6ba-3551a53701a0@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": "70yt72t4FNtYpvlclVXzDG" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 46 + }, + "_enabled": true, + "__prefab": { + "__id__": 52 + }, + "sortingLayer": 1, + "orderInLayer": 5, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "e7wMjTJtdCdaLDnYmBysE9" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d57XxT0N1BCJ6nQAM+IF65" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 45 + }, + "_enabled": true, + "__prefab": { + "__id__": 55 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 15 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8b/naaVdC7IXCiJEg6vl1" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 45 + }, + "_enabled": true, + "__prefab": { + "__id__": 57 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584@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": "12g80s5KNEGaH2v5J2kKq4" + }, + { + "__type__": "cc.ProgressBar", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 45 + }, + "_enabled": true, + "__prefab": { + "__id__": 59 + }, + "_barSprite": { + "__id__": 49 + }, + "_mode": 0, + "_totalLength": 300, + "_progress": 1, + "_reverse": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9aQ599CDNHt4iZ2WqEs+F5" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 45 + }, + "_enabled": true, + "__prefab": { + "__id__": 61 + }, + "sortingLayer": 1, + "orderInLayer": 4, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "55XGLpI3VGLbkcZUE/8DcW" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "89J9c9tu5JqaJcthPGZBDv" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 44 + }, + "_enabled": true, + "__prefab": { + "__id__": 64 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 56.69, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "89Ekxn78dEJL0WUDkCiUQ9" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 44 + }, + "_enabled": true, + "__prefab": { + "__id__": 66 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 255, + "b": 61, + "a": 255 + }, + "_string": "Lv.1", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "369jc6bVFBT4rbvACocy4K" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 44 + }, + "_enabled": true, + "__prefab": { + "__id__": 68 + }, + "sortingLayer": 1, + "orderInLayer": 8, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "33FtcznOVNXLvTgkOQkreK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d156I74oFCcZR/Pgjj2aOU" + }, + { + "__type__": "cc.Node", + "_name": "Desc", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 71 + }, + { + "__id__": 73 + }, + { + "__id__": 75 + } + ], + "_prefab": { + "__id__": 77 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 278.10400000000004, + "y": -246.44449999999998, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 70 + }, + "_enabled": true, + "__prefab": { + "__id__": 72 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 462.618, + "height": 103.029 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "dbgpeK9y1Eh4FE/vL+XVh9" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 70 + }, + "_enabled": true, + "__prefab": { + "__id__": 74 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 241, + "b": 241, + "a": 255 + }, + "_string": "什么也没留下", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6k9UzjXtNTo3JIQ+ICoX3" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 70 + }, + "_enabled": true, + "__prefab": { + "__id__": 76 + }, + "sortingLayer": 1, + "orderInLayer": 9, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "6eXPpfLp5FN7BSXaqTtpWK" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "ccgys+RyNEiLbzg2bri8Cb" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 79 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 520.9820000000001, + "height": 320.332 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c5z7FI/ldDapwwyW+HaT8e" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 81 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "771be66e-a8e3-4673-82e2-a358c8ed7e1c@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": "c4hJ1N4YNEXpZHiiX2Wm02" + }, + { + "__type__": "5c8c9BaV+VA1Z3pK+Zsi3Cb", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 83 + }, + "sortingLayer": 1, + "orderInLayer": 0, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "14Eby5JaVEErvRljS0vqwR" + }, + { + "__type__": "bdab2k4yf9MPZU2I3RKXhyC", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 85 + }, + "rankText": { + "__id__": 6 + }, + "goldText": { + "__id__": 22 + }, + "flagImage": { + "__id__": 39 + }, + "levelText": { + "__id__": 65 + }, + "levelBar": { + "__id__": 58 + }, + "descText": { + "__id__": 73 + }, + "uiOpacity": { + "__id__": 33 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c74QEc3oxLpasFU9hvxm+j" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "45HrV9Ov1H7Ke7fgPQE4LZ" + } +] \ No newline at end of file diff --git a/assets/test/prefabs/ListTestItem-sorting.prefab.meta b/assets/test/prefabs/ListTestItem-sorting.prefab.meta new file mode 100644 index 0000000..fae9a8f --- /dev/null +++ b/assets/test/prefabs/ListTestItem-sorting.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.40", + "importer": "prefab", + "imported": true, + "uuid": "6da52f52-ec0f-478a-9b37-432e61e779a0", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "ListTestItem-sorting" + } +} diff --git a/assets/test/prefabs/ListTestItem.prefab b/assets/test/prefabs/ListTestItem.prefab new file mode 100644 index 0000000..95a7f25 --- /dev/null +++ b/assets/test/prefabs/ListTestItem.prefab @@ -0,0 +1,1424 @@ +[ + { + "__type__": "cc.Prefab", + "_name": "ListTestItem", + "_objFlags": 0, + "_native": "", + "data": { + "__id__": 1 + }, + "optimizationPolicy": 0, + "persistent": false, + "asyncLoadAssets": false + }, + { + "__type__": "cc.Node", + "_name": "ListTestItem", + "_objFlags": 0, + "__editorExtras__": {}, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 14 + }, + { + "__id__": 28 + }, + { + "__id__": 34 + }, + { + "__id__": 54 + } + ], + "_active": true, + "_components": [ + { + "__id__": 60 + }, + { + "__id__": 62 + }, + { + "__id__": 64 + } + ], + "_prefab": { + "__id__": 66 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -819.9955, + "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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Head", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 3 + } + ], + "_active": true, + "_components": [ + { + "__id__": 9 + }, + { + "__id__": 11 + } + ], + "_prefab": { + "__id__": 13 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 95.5435, + "y": -93.898, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Rank", + "_objFlags": 0, + "_parent": { + "__id__": 2 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 4 + }, + { + "__id__": 6 + } + ], + "_prefab": { + "__id__": 8 + }, + "_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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 5 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 22.25, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "042In80RtHj6DspKYJCAhv" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 3 + }, + "_enabled": true, + "__prefab": { + "__id__": 7 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 0, + "b": 0, + "a": 255 + }, + "_string": "1", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 40, + "_fontSize": 40, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c9PuueFXhGkrDvOiYdnQn3" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "adGhn19P9Gr4SmeSOuBKn2" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 10 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 160, + "height": 160 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "2bovubnu5DmJ++tm17Wvqt" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": { + "__id__": 12 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "98c87e02-1e93-4f76-881c-4668398c2538@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": "43EbeEcqhIUKczwmvTraCm" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "e9vIw3BKZE8ZiqzoRw9UNN" + }, + { + "__type__": "cc.Node", + "_name": "Gold", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 15 + } + ], + "_active": true, + "_components": [ + { + "__id__": 21 + }, + { + "__id__": 23 + }, + { + "__id__": 25 + } + ], + "_prefab": { + "__id__": 27 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 226.69, + "y": -51.131, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Label", + "_objFlags": 0, + "_parent": { + "__id__": 14 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 16 + }, + { + "__id__": 18 + } + ], + "_prefab": { + "__id__": 20 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 97.614, + "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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 15 + }, + "_enabled": true, + "__prefab": { + "__id__": 17 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 129.538, + "height": 44.988 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "f08U+VFT5HoJaUW9n3xE3a" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 15 + }, + "_enabled": true, + "__prefab": { + "__id__": 19 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 192, + "g": 255, + "b": 59, + "a": 255 + }, + "_string": "9999", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8Xz4yJwtBcrHUvWDhUK++" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "be0j7GDihBh589CV8VLOj5" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 14 + }, + "_enabled": true, + "__prefab": { + "__id__": 22 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 60, + "height": 61 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "36ASF66AhLG7x3KV0ArZnu" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 14 + }, + "_enabled": true, + "__prefab": { + "__id__": 24 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "6dbed0ea-8e55-490e-ac38-4880862370c8@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": "42rKYPmHtDpK9VzIjLGL7x" + }, + { + "__type__": "cc.UIOpacity", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 14 + }, + "_enabled": true, + "__prefab": { + "__id__": 26 + }, + "_opacity": 255, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "cblGuE0p9PA7p/bKQcjmoD" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "926Ld9aTZMJqKYawg8FXL2" + }, + { + "__type__": "cc.Node", + "_name": "Flag", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 29 + }, + { + "__id__": 31 + } + ], + "_prefab": { + "__id__": 33 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 468.913, + "y": -53.519, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "__prefab": { + "__id__": 30 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 81, + "height": 80 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "72/yAZsWJHAIYWBK64/Zik" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 28 + }, + "_enabled": true, + "__prefab": { + "__id__": 32 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "c7f04ad9-3432-406c-af71-456be27021e1@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": "70ZsAti8pMZJv3urwubdl4" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "7eVot73xFNXriNV4u/o+TS" + }, + { + "__type__": "cc.Node", + "_name": "Level", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 35 + } + ], + "_active": true, + "_components": [ + { + "__id__": 49 + }, + { + "__id__": 51 + } + ], + "_prefab": { + "__id__": 53 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 232.165, + "y": -129.224, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "ProgressBar", + "_objFlags": 0, + "_parent": { + "__id__": 34 + }, + "_children": [ + { + "__id__": 36 + } + ], + "_active": true, + "_components": [ + { + "__id__": 42 + }, + { + "__id__": 44 + }, + { + "__id__": 46 + } + ], + "_prefab": { + "__id__": 48 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 119.337, + "y": -33.399, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.Node", + "_name": "Bar", + "_objFlags": 0, + "_parent": { + "__id__": 35 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 37 + }, + { + "__id__": 39 + } + ], + "_prefab": { + "__id__": 41 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": -150, + "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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 38 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 15 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "41PYxqTvNPAq/Ie6VgNWPq" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 36 + }, + "_enabled": true, + "__prefab": { + "__id__": 40 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "09bd952a-9e81-45e3-a6ba-3551a53701a0@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": "70yt72t4FNtYpvlclVXzDG" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d57XxT0N1BCJ6nQAM+IF65" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": { + "__id__": 43 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 300, + "height": 15 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "d8b/naaVdC7IXCiJEg6vl1" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": { + "__id__": 45 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584@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": "12g80s5KNEGaH2v5J2kKq4" + }, + { + "__type__": "cc.ProgressBar", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 35 + }, + "_enabled": true, + "__prefab": { + "__id__": 47 + }, + "_barSprite": { + "__id__": 39 + }, + "_mode": 0, + "_totalLength": 300, + "_progress": 1, + "_reverse": false, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "9aQ599CDNHt4iZ2WqEs+F5" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "89J9c9tu5JqaJcthPGZBDv" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": { + "__id__": 50 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 56.69, + "height": 40 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "89Ekxn78dEJL0WUDkCiUQ9" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 34 + }, + "_enabled": true, + "__prefab": { + "__id__": 52 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 255, + "b": 61, + "a": 255 + }, + "_string": "Lv.1", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 0, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "369jc6bVFBT4rbvACocy4K" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "d156I74oFCcZR/Pgjj2aOU" + }, + { + "__type__": "cc.Node", + "_name": "Desc", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 55 + }, + { + "__id__": 57 + } + ], + "_prefab": { + "__id__": 59 + }, + "_lpos": { + "__type__": "cc.Vec3", + "x": 278.10400000000004, + "y": -246.44449999999998, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 54 + }, + "_enabled": true, + "__prefab": { + "__id__": 56 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 462.618, + "height": 103.029 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "dbgpeK9y1Eh4FE/vL+XVh9" + }, + { + "__type__": "cc.Label", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 54 + }, + "_enabled": true, + "__prefab": { + "__id__": 58 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 241, + "b": 241, + "a": 255 + }, + "_string": "什么也没留下", + "_horizontalAlign": 1, + "_verticalAlign": 1, + "_actualFontSize": 30, + "_fontSize": 30, + "_fontFamily": "Arial", + "_lineHeight": 40, + "_overflow": 2, + "_enableWrapText": true, + "_font": null, + "_isSystemFontUsed": true, + "_spacingX": 0, + "_isItalic": false, + "_isBold": false, + "_isUnderline": false, + "_underlineHeight": 2, + "_cacheMode": 2, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c6k9UzjXtNTo3JIQ+ICoX3" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "ccgys+RyNEiLbzg2bri8Cb" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 61 + }, + "_contentSize": { + "__type__": "cc.Size", + "width": 520.9820000000001, + "height": 320.332 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0, + "y": 1 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c5z7FI/ldDapwwyW+HaT8e" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 63 + }, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "771be66e-a8e3-4673-82e2-a358c8ed7e1c@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": "c4hJ1N4YNEXpZHiiX2Wm02" + }, + { + "__type__": "bdab2k4yf9MPZU2I3RKXhyC", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 1 + }, + "_enabled": true, + "__prefab": { + "__id__": 65 + }, + "rankText": { + "__id__": 6 + }, + "goldText": { + "__id__": 18 + }, + "flagImage": { + "__id__": 31 + }, + "levelText": { + "__id__": 51 + }, + "levelBar": { + "__id__": 46 + }, + "descText": { + "__id__": 57 + }, + "uiOpacity": { + "__id__": 25 + }, + "_id": "" + }, + { + "__type__": "cc.CompPrefabInfo", + "fileId": "c74QEc3oxLpasFU9hvxm+j" + }, + { + "__type__": "cc.PrefabInfo", + "root": { + "__id__": 1 + }, + "asset": { + "__id__": 0 + }, + "fileId": "45HrV9Ov1H7Ke7fgPQE4LZ" + } +] \ No newline at end of file diff --git a/assets/test/prefabs/ListTestItem.prefab.meta b/assets/test/prefabs/ListTestItem.prefab.meta new file mode 100644 index 0000000..bd1a72f --- /dev/null +++ b/assets/test/prefabs/ListTestItem.prefab.meta @@ -0,0 +1,13 @@ +{ + "ver": "1.1.40", + "importer": "prefab", + "imported": true, + "uuid": "3ac5cf7d-9ee1-4b5b-9be4-f903329977da", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "syncNodeName": "ListTestItem" + } +} diff --git a/assets/test/scenes.meta b/assets/test/scenes.meta new file mode 100644 index 0000000..518c9af --- /dev/null +++ b/assets/test/scenes.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "ad307c56-0ab8-49f1-82fb-fa837f209c96", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/test/scenes/test-scene-sorting.scene b/assets/test/scenes/test-scene-sorting.scene new file mode 100644 index 0000000..dba731f --- /dev/null +++ b/assets/test/scenes/test-scene-sorting.scene @@ -0,0 +1,1106 @@ +[ + { + "__type__": "cc.SceneAsset", + "_name": "", + "_objFlags": 0, + "_native": "", + "scene": { + "__id__": 1 + } + }, + { + "__type__": "cc.Scene", + "_name": "test-scene-sorting", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + } + ], + "_active": true, + "_components": [], + "_prefab": { + "__id__": 29 + }, + "autoReleaseAssets": false, + "_globals": { + "__id__": 30 + }, + "_id": "b977450f-1cd5-49fa-a8db-db655012dcf5" + }, + { + "__type__": "cc.Node", + "_name": "Main Light", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": -0.06397656665577071, + "y": -0.44608233363525845, + "z": -0.8239028751062036, + "w": -0.3436591377065261 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": -117.894, + "y": -194.909, + "z": 38.562 + }, + "_id": "c0y6F5f+pAvI805TdmxIjx" + }, + { + "__type__": "cc.DirectionalLight", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 250, + "b": 240, + "a": 255 + }, + "_useColorTemperature": false, + "_colorTemperature": 6550, + "_staticSettings": { + "__id__": 4 + }, + "_illuminanceHDR": 65000, + "_illuminance": 65000, + "_illuminanceLDR": 1.6927083333333335, + "_shadowEnabled": false, + "_shadowPcf": 0, + "_shadowBias": 0.00001, + "_shadowNormalBias": 0, + "_shadowSaturation": 1, + "_shadowDistance": 50, + "_shadowInvisibleOcclusionRange": 200, + "_csmLevel": 4, + "_csmLayerLambda": 0.75, + "_csmOptimizationMode": 2, + "_shadowFixedArea": false, + "_shadowNear": 0.1, + "_shadowFar": 10, + "_shadowOrthoSize": 5, + "_id": "597uMYCbhEtJQc0ffJlcgA" + }, + { + "__type__": "cc.StaticLightSettings", + "_baked": false, + "_editorOnly": false, + "_bakeable": false, + "_castShadow": false + }, + { + "__type__": "cc.Node", + "_name": "Main Camera", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 6 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -10, + "y": 10, + "z": 10 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": -0.27781593346944056, + "y": -0.36497167621709875, + "z": -0.11507512748638377, + "w": 0.8811195706053617 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": -35, + "y": -45, + "z": 0 + }, + "_id": "c9DMICJLFO5IeO07EPon7U" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": null, + "_projection": 1, + "_priority": 0, + "_fov": 45, + "_fovAxis": 0, + "_orthoHeight": 10, + "_near": 1, + "_far": 1000, + "_color": { + "__type__": "cc.Color", + "r": 51, + "g": 51, + "b": 51, + "a": 255 + }, + "_depth": 1, + "_stencil": 0, + "_clearFlags": 14, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_aperture": 19, + "_shutter": 7, + "_iso": 0, + "_screenScale": 1, + "_visibility": 1822425087, + "_targetTexture": null, + "_cameraType": -1, + "_trackingType": 0, + "_id": "7dWQTpwS5LrIHnc1zAPUtf" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_active": true, + "_components": [ + { + "__id__": 25 + }, + { + "__id__": 26 + }, + { + "__id__": 27 + }, + { + "__id__": 28 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 960, + "y": 540, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "40pG4tRl5JuZwU2tFrCa+N" + }, + { + "__type__": "cc.Node", + "_name": "Camera", + "_objFlags": 0, + "_parent": { + "__id__": 7 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 9 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 1000 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "d57za1/VhJJIAzK7ngvMjM" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 8 + }, + "_enabled": true, + "__prefab": null, + "_projection": 0, + "_priority": 1073741824, + "_fov": 45, + "_fovAxis": 0, + "_orthoHeight": 540, + "_near": 1, + "_far": 2000, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_depth": 1, + "_stencil": 0, + "_clearFlags": 6, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_aperture": 19, + "_shutter": 7, + "_iso": 0, + "_screenScale": 1, + "_visibility": 41943040, + "_targetTexture": null, + "_cameraType": -1, + "_trackingType": 0, + "_id": "f8p3t9sqtIp4pkCTVZi0qC" + }, + { + "__type__": "cc.Node", + "_name": "List", + "_objFlags": 0, + "_parent": { + "__id__": 7 + }, + "_children": [ + { + "__id__": 11 + } + ], + "_active": true, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 24 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 3.052000000000021, + "y": -12.198999999999998, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "73Dah4UZVFQahXGQGBANgW" + }, + { + "__type__": "cc.Node", + "_name": "ScrollView", + "_objFlags": 0, + "_parent": { + "__id__": 10 + }, + "_children": [ + { + "__id__": 12 + } + ], + "_active": true, + "_components": [ + { + "__id__": 21 + }, + { + "__id__": 22 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -5.771500000000032, + "y": 0.3324999999999392, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "e1OBoIzeVFH44CfOBKPLUM" + }, + { + "__type__": "cc.Node", + "_name": "view", + "_objFlags": 0, + "_parent": { + "__id__": 11 + }, + "_children": [ + { + "__id__": 13 + } + ], + "_active": true, + "_components": [ + { + "__id__": 17 + }, + { + "__id__": 18 + }, + { + "__id__": 19 + }, + { + "__id__": 20 + } + ], + "_prefab": null, + "_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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "73A8HrAfRLBbKvzavbg7ij" + }, + { + "__type__": "cc.Node", + "_name": "content", + "_objFlags": 0, + "_parent": { + "__id__": 12 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 14 + }, + { + "__id__": 15 + }, + { + "__id__": 16 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 416.036, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "acWu4olyRCc7lAV6x7QeZI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1639.991, + "height": 320.332 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 1 + }, + "_id": "34tQPks9lIpYb1lkE1SQQV" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 40, + "_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": 220, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "35rQ/933ZE7aDNYfKpQyi6" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_resizeMode": 1, + "_layoutType": 3, + "_cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_startAxis": 0, + "_paddingLeft": 0, + "_paddingRight": 0, + "_paddingTop": 0, + "_paddingBottom": 0, + "_spacingX": 32.7, + "_spacingY": 12.1, + "_verticalDirection": 1, + "_horizontalDirection": 0, + "_constraint": 0, + "_constraintNum": 2, + "_affectedByScale": true, + "_isAlign": false, + "_id": "ffVfT/P5RIArEX2omGD0B6" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1639.991, + "height": 842.044 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "4bDyuY9hRCh76pwvE0KQmw" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_type": 0, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "758+HNietHE6pfAhXWT+K8" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "6546Sa/4VAnYRAV+T6+9aV" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_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": 240, + "_originalHeight": 250, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "0877tRG7hH0roYoUW2g9hw" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1639.991, + "height": 842.044 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "5anMwgWQBMn6MMvdBeHiAq" + }, + { + "__type__": "cc.ScrollView", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": null, + "bounceDuration": 0.23, + "brake": 0.75, + "elastic": true, + "inertia": true, + "horizontal": false, + "vertical": true, + "cancelInnerEvents": true, + "scrollEvents": [], + "_content": { + "__id__": 13 + }, + "_horizontalScrollBar": null, + "_verticalScrollBar": null, + "_id": "60dl6noBZChJ0lJT3gM2ce" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1751.878, + "height": 941.572 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "41nQiBxStASIZY17Oorkss" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "2d0ea639-693d-4b05-9d48-40d981c89857@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": "66BxXNowJNgJ1a+TyU6kmL" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1920, + "height": 1080 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "31TrXZpPxL3IQ2ZkxqWwCn" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_cameraComponent": { + "__id__": 9 + }, + "_alignCanvasWithScreen": true, + "_id": "503JIdTNdKtY16B7lkDTYY" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_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": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "54SqqW+EBI5pgQghNL9WKh" + }, + { + "__type__": "bd706CzF5NJx4WYPPedc9Y/", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "listTestItemPrefab": { + "__uuid__": "6da52f52-ec0f-478a-9b37-432e61e779a0", + "__expectedType__": "cc.Prefab" + }, + "listContent": { + "__id__": 13 + }, + "flagSpriteFrames": [ + { + "__uuid__": "c7f04ad9-3432-406c-af71-456be27021e1@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "ff59492e-4e8f-4043-9cbb-2caef8b31f89@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "e7673f09-beed-4e7a-92fd-1436b76d7e43@f9941", + "__expectedType__": "cc.SpriteFrame" + } + ], + "listItemMax": 200, + "_id": "9fuu+PfOFHPqnvdYJwsexB" + }, + { + "__type__": "cc.PrefabInfo", + "fileId": "b977450f-1cd5-49fa-a8db-db655012dcf5" + }, + { + "__type__": "cc.SceneGlobals", + "ambient": { + "__id__": 31 + }, + "shadows": { + "__id__": 32 + }, + "_skybox": { + "__id__": 33 + }, + "fog": { + "__id__": 34 + }, + "octree": { + "__id__": 35 + } + }, + { + "__type__": "cc.AmbientInfo", + "_skyColorHDR": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.5, + "z": 0.8, + "w": 0.520833125 + }, + "_skyColor": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.5, + "z": 0.8, + "w": 0.520833125 + }, + "_skyIllumHDR": 20000, + "_skyIllum": 20000, + "_groundAlbedoHDR": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.2, + "z": 0.2, + "w": 1 + }, + "_groundAlbedo": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.2, + "z": 0.2, + "w": 1 + }, + "_skyColorLDR": { + "__type__": "cc.Vec4", + "x": 0.36244, + "y": 0.486029, + "z": 0.632565, + "w": 0.5208 + }, + "_skyIllumLDR": 0.5208, + "_groundAlbedoLDR": { + "__type__": "cc.Vec4", + "x": 0.437391, + "y": 0.436011, + "z": 0.436589, + "w": 0 + } + }, + { + "__type__": "cc.ShadowsInfo", + "_enabled": false, + "_type": 0, + "_normal": { + "__type__": "cc.Vec3", + "x": 0, + "y": 1, + "z": 0 + }, + "_distance": 0, + "_shadowColor": { + "__type__": "cc.Color", + "r": 76, + "g": 76, + "b": 76, + "a": 255 + }, + "_maxReceived": 4, + "_size": { + "__type__": "cc.Vec2", + "x": 1024, + "y": 1024 + } + }, + { + "__type__": "cc.SkyboxInfo", + "_envLightingType": 0, + "_envmapHDR": { + "__uuid__": "d032ac98-05e1-4090-88bb-eb640dcb5fc1@b47c0", + "__expectedType__": "cc.TextureCube" + }, + "_envmap": { + "__uuid__": "d032ac98-05e1-4090-88bb-eb640dcb5fc1@b47c0", + "__expectedType__": "cc.TextureCube" + }, + "_envmapLDR": { + "__uuid__": "6f01cf7f-81bf-4a7e-bd5d-0afc19696480@b47c0", + "__expectedType__": "cc.TextureCube" + }, + "_diffuseMapHDR": null, + "_diffuseMapLDR": null, + "_enabled": false, + "_useHDR": true, + "_editableMaterial": null, + "_reflectionHDR": null, + "_reflectionLDR": null, + "_rotationAngle": 0 + }, + { + "__type__": "cc.FogInfo", + "_type": 0, + "_fogColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_enabled": false, + "_fogDensity": 0.3, + "_fogStart": 0.5, + "_fogEnd": 300, + "_fogAtten": 5, + "_fogTop": 1.5, + "_fogRange": 1.2, + "_accurate": false + }, + { + "__type__": "cc.OctreeInfo", + "_enabled": false, + "_minPos": { + "__type__": "cc.Vec3", + "x": -1024, + "y": -1024, + "z": -1024 + }, + "_maxPos": { + "__type__": "cc.Vec3", + "x": 1024, + "y": 1024, + "z": 1024 + }, + "_depth": 8 + } +] \ No newline at end of file diff --git a/assets/test/scenes/test-scene-sorting.scene.meta b/assets/test/scenes/test-scene-sorting.scene.meta new file mode 100644 index 0000000..d7e2fc1 --- /dev/null +++ b/assets/test/scenes/test-scene-sorting.scene.meta @@ -0,0 +1,11 @@ +{ + "ver": "1.1.40", + "importer": "scene", + "imported": true, + "uuid": "b977450f-1cd5-49fa-a8db-db655012dcf5", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": {} +} diff --git a/assets/test/scenes/test-scene.scene b/assets/test/scenes/test-scene.scene new file mode 100644 index 0000000..d0b21be --- /dev/null +++ b/assets/test/scenes/test-scene.scene @@ -0,0 +1,1106 @@ +[ + { + "__type__": "cc.SceneAsset", + "_name": "", + "_objFlags": 0, + "_native": "", + "scene": { + "__id__": 1 + } + }, + { + "__type__": "cc.Scene", + "_name": "test-scene", + "_objFlags": 0, + "_parent": null, + "_children": [ + { + "__id__": 2 + }, + { + "__id__": 5 + }, + { + "__id__": 7 + } + ], + "_active": true, + "_components": [], + "_prefab": { + "__id__": 29 + }, + "autoReleaseAssets": false, + "_globals": { + "__id__": 30 + }, + "_id": "5d5b2280-dee4-4f88-8991-78c03f884a9f" + }, + { + "__type__": "cc.Node", + "_name": "Main Light", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 3 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": -0.06397656665577071, + "y": -0.44608233363525845, + "z": -0.8239028751062036, + "w": -0.3436591377065261 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": -117.894, + "y": -194.909, + "z": 38.562 + }, + "_id": "c0y6F5f+pAvI805TdmxIjx" + }, + { + "__type__": "cc.DirectionalLight", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 2 + }, + "_enabled": true, + "__prefab": null, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 250, + "b": 240, + "a": 255 + }, + "_useColorTemperature": false, + "_colorTemperature": 6550, + "_staticSettings": { + "__id__": 4 + }, + "_illuminanceHDR": 65000, + "_illuminance": 65000, + "_illuminanceLDR": 1.6927083333333335, + "_shadowEnabled": false, + "_shadowPcf": 0, + "_shadowBias": 0.00001, + "_shadowNormalBias": 0, + "_shadowSaturation": 1, + "_shadowDistance": 50, + "_shadowInvisibleOcclusionRange": 200, + "_csmLevel": 4, + "_csmLayerLambda": 0.75, + "_csmOptimizationMode": 2, + "_shadowFixedArea": false, + "_shadowNear": 0.1, + "_shadowFar": 10, + "_shadowOrthoSize": 5, + "_id": "597uMYCbhEtJQc0ffJlcgA" + }, + { + "__type__": "cc.StaticLightSettings", + "_baked": false, + "_editorOnly": false, + "_bakeable": false, + "_castShadow": false + }, + { + "__type__": "cc.Node", + "_name": "Main Camera", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 6 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -10, + "y": 10, + "z": 10 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": -0.27781593346944056, + "y": -0.36497167621709875, + "z": -0.11507512748638377, + "w": 0.8811195706053617 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": -35, + "y": -45, + "z": 0 + }, + "_id": "c9DMICJLFO5IeO07EPon7U" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 5 + }, + "_enabled": true, + "__prefab": null, + "_projection": 1, + "_priority": 0, + "_fov": 45, + "_fovAxis": 0, + "_orthoHeight": 10, + "_near": 1, + "_far": 1000, + "_color": { + "__type__": "cc.Color", + "r": 51, + "g": 51, + "b": 51, + "a": 255 + }, + "_depth": 1, + "_stencil": 0, + "_clearFlags": 14, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_aperture": 19, + "_shutter": 7, + "_iso": 0, + "_screenScale": 1, + "_visibility": 1822425087, + "_targetTexture": null, + "_cameraType": -1, + "_trackingType": 0, + "_id": "7dWQTpwS5LrIHnc1zAPUtf" + }, + { + "__type__": "cc.Node", + "_name": "Canvas", + "_objFlags": 0, + "_parent": { + "__id__": 1 + }, + "_children": [ + { + "__id__": 8 + }, + { + "__id__": 10 + } + ], + "_active": true, + "_components": [ + { + "__id__": 25 + }, + { + "__id__": 26 + }, + { + "__id__": 27 + }, + { + "__id__": 28 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 960, + "y": 540, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "40pG4tRl5JuZwU2tFrCa+N" + }, + { + "__type__": "cc.Node", + "_name": "Camera", + "_objFlags": 0, + "_parent": { + "__id__": 7 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 9 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 1000 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 1073741824, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "d57za1/VhJJIAzK7ngvMjM" + }, + { + "__type__": "cc.Camera", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 8 + }, + "_enabled": true, + "__prefab": null, + "_projection": 0, + "_priority": 1073741824, + "_fov": 45, + "_fovAxis": 0, + "_orthoHeight": 540, + "_near": 1, + "_far": 2000, + "_color": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_depth": 1, + "_stencil": 0, + "_clearFlags": 6, + "_rect": { + "__type__": "cc.Rect", + "x": 0, + "y": 0, + "width": 1, + "height": 1 + }, + "_aperture": 19, + "_shutter": 7, + "_iso": 0, + "_screenScale": 1, + "_visibility": 41943040, + "_targetTexture": null, + "_cameraType": -1, + "_trackingType": 0, + "_id": "f8p3t9sqtIp4pkCTVZi0qC" + }, + { + "__type__": "cc.Node", + "_name": "List", + "_objFlags": 0, + "_parent": { + "__id__": 7 + }, + "_children": [ + { + "__id__": 11 + } + ], + "_active": true, + "_components": [ + { + "__id__": 23 + }, + { + "__id__": 24 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 3.052000000000021, + "y": -12.198999999999998, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "73Dah4UZVFQahXGQGBANgW" + }, + { + "__type__": "cc.Node", + "_name": "ScrollView", + "_objFlags": 0, + "_parent": { + "__id__": 10 + }, + "_children": [ + { + "__id__": 12 + } + ], + "_active": true, + "_components": [ + { + "__id__": 21 + }, + { + "__id__": 22 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": -5.771500000000032, + "y": 0.3324999999999392, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "e1OBoIzeVFH44CfOBKPLUM" + }, + { + "__type__": "cc.Node", + "_name": "view", + "_objFlags": 0, + "_parent": { + "__id__": 11 + }, + "_children": [ + { + "__id__": 13 + } + ], + "_active": true, + "_components": [ + { + "__id__": 17 + }, + { + "__id__": 18 + }, + { + "__id__": 19 + }, + { + "__id__": 20 + } + ], + "_prefab": null, + "_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 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "73A8HrAfRLBbKvzavbg7ij" + }, + { + "__type__": "cc.Node", + "_name": "content", + "_objFlags": 0, + "_parent": { + "__id__": 12 + }, + "_children": [], + "_active": true, + "_components": [ + { + "__id__": 14 + }, + { + "__id__": 15 + }, + { + "__id__": 16 + } + ], + "_prefab": null, + "_lpos": { + "__type__": "cc.Vec3", + "x": 0, + "y": 416.036, + "z": 0 + }, + "_lrot": { + "__type__": "cc.Quat", + "x": 0, + "y": 0, + "z": 0, + "w": 1 + }, + "_lscale": { + "__type__": "cc.Vec3", + "x": 1, + "y": 1, + "z": 1 + }, + "_layer": 33554432, + "_euler": { + "__type__": "cc.Vec3", + "x": 0, + "y": 0, + "z": 0 + }, + "_id": "acWu4olyRCc7lAV6x7QeZI" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1639.991, + "height": 320.332 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 1 + }, + "_id": "34tQPks9lIpYb1lkE1SQQV" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_alignFlags": 40, + "_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": 220, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "35rQ/933ZE7aDNYfKpQyi6" + }, + { + "__type__": "cc.Layout", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 13 + }, + "_enabled": true, + "__prefab": null, + "_resizeMode": 1, + "_layoutType": 3, + "_cellSize": { + "__type__": "cc.Size", + "width": 40, + "height": 40 + }, + "_startAxis": 0, + "_paddingLeft": 0, + "_paddingRight": 0, + "_paddingTop": 0, + "_paddingBottom": 0, + "_spacingX": 32.7, + "_spacingY": 12.1, + "_verticalDirection": 1, + "_horizontalDirection": 0, + "_constraint": 0, + "_constraintNum": 2, + "_affectedByScale": true, + "_isAlign": false, + "_id": "ffVfT/P5RIArEX2omGD0B6" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1639.991, + "height": 842.044 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "4bDyuY9hRCh76pwvE0KQmw" + }, + { + "__type__": "cc.Mask", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_type": 0, + "_inverted": false, + "_segments": 64, + "_alphaThreshold": 0.1, + "_id": "758+HNietHE6pfAhXWT+K8" + }, + { + "__type__": "cc.Graphics", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_lineWidth": 1, + "_strokeColor": { + "__type__": "cc.Color", + "r": 0, + "g": 0, + "b": 0, + "a": 255 + }, + "_lineJoin": 2, + "_lineCap": 0, + "_fillColor": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 0 + }, + "_miterLimit": 10, + "_id": "6546Sa/4VAnYRAV+T6+9aV" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 12 + }, + "_enabled": true, + "__prefab": null, + "_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": 240, + "_originalHeight": 250, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "0877tRG7hH0roYoUW2g9hw" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1639.991, + "height": 842.044 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "5anMwgWQBMn6MMvdBeHiAq" + }, + { + "__type__": "cc.ScrollView", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 11 + }, + "_enabled": true, + "__prefab": null, + "bounceDuration": 0.23, + "brake": 0.75, + "elastic": true, + "inertia": true, + "horizontal": false, + "vertical": true, + "cancelInnerEvents": true, + "scrollEvents": [], + "_content": { + "__id__": 13 + }, + "_horizontalScrollBar": null, + "_verticalScrollBar": null, + "_id": "60dl6noBZChJ0lJT3gM2ce" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1751.878, + "height": 941.572 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "41nQiBxStASIZY17Oorkss" + }, + { + "__type__": "cc.Sprite", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 10 + }, + "_enabled": true, + "__prefab": null, + "_customMaterial": null, + "_srcBlendFactor": 2, + "_dstBlendFactor": 4, + "_color": { + "__type__": "cc.Color", + "r": 255, + "g": 255, + "b": 255, + "a": 255 + }, + "_spriteFrame": { + "__uuid__": "2d0ea639-693d-4b05-9d48-40d981c89857@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": "66BxXNowJNgJ1a+TyU6kmL" + }, + { + "__type__": "cc.UITransform", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_contentSize": { + "__type__": "cc.Size", + "width": 1920, + "height": 1080 + }, + "_anchorPoint": { + "__type__": "cc.Vec2", + "x": 0.5, + "y": 0.5 + }, + "_id": "31TrXZpPxL3IQ2ZkxqWwCn" + }, + { + "__type__": "cc.Canvas", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_cameraComponent": { + "__id__": 9 + }, + "_alignCanvasWithScreen": true, + "_id": "503JIdTNdKtY16B7lkDTYY" + }, + { + "__type__": "cc.Widget", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "_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": 0, + "_originalHeight": 0, + "_alignMode": 2, + "_lockFlags": 0, + "_id": "54SqqW+EBI5pgQghNL9WKh" + }, + { + "__type__": "bd706CzF5NJx4WYPPedc9Y/", + "_name": "", + "_objFlags": 0, + "node": { + "__id__": 7 + }, + "_enabled": true, + "__prefab": null, + "listTestItemPrefab": { + "__uuid__": "3ac5cf7d-9ee1-4b5b-9be4-f903329977da", + "__expectedType__": "cc.Prefab" + }, + "listContent": { + "__id__": 13 + }, + "flagSpriteFrames": [ + { + "__uuid__": "c7f04ad9-3432-406c-af71-456be27021e1@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "ff59492e-4e8f-4043-9cbb-2caef8b31f89@f9941", + "__expectedType__": "cc.SpriteFrame" + }, + { + "__uuid__": "e7673f09-beed-4e7a-92fd-1436b76d7e43@f9941", + "__expectedType__": "cc.SpriteFrame" + } + ], + "listItemMax": 200, + "_id": "9fuu+PfOFHPqnvdYJwsexB" + }, + { + "__type__": "cc.PrefabInfo", + "fileId": "b977450f-1cd5-49fa-a8db-db655012dcf5" + }, + { + "__type__": "cc.SceneGlobals", + "ambient": { + "__id__": 31 + }, + "shadows": { + "__id__": 32 + }, + "_skybox": { + "__id__": 33 + }, + "fog": { + "__id__": 34 + }, + "octree": { + "__id__": 35 + } + }, + { + "__type__": "cc.AmbientInfo", + "_skyColorHDR": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.5, + "z": 0.8, + "w": 0.520833125 + }, + "_skyColor": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.5, + "z": 0.8, + "w": 0.520833125 + }, + "_skyIllumHDR": 20000, + "_skyIllum": 20000, + "_groundAlbedoHDR": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.2, + "z": 0.2, + "w": 1 + }, + "_groundAlbedo": { + "__type__": "cc.Vec4", + "x": 0.2, + "y": 0.2, + "z": 0.2, + "w": 1 + }, + "_skyColorLDR": { + "__type__": "cc.Vec4", + "x": 0.36244, + "y": 0.486029, + "z": 0.632565, + "w": 0.5208 + }, + "_skyIllumLDR": 0.5208, + "_groundAlbedoLDR": { + "__type__": "cc.Vec4", + "x": 0.437391, + "y": 0.436011, + "z": 0.436589, + "w": 0 + } + }, + { + "__type__": "cc.ShadowsInfo", + "_enabled": false, + "_type": 0, + "_normal": { + "__type__": "cc.Vec3", + "x": 0, + "y": 1, + "z": 0 + }, + "_distance": 0, + "_shadowColor": { + "__type__": "cc.Color", + "r": 76, + "g": 76, + "b": 76, + "a": 255 + }, + "_maxReceived": 4, + "_size": { + "__type__": "cc.Vec2", + "x": 1024, + "y": 1024 + } + }, + { + "__type__": "cc.SkyboxInfo", + "_envLightingType": 0, + "_envmapHDR": { + "__uuid__": "d032ac98-05e1-4090-88bb-eb640dcb5fc1@b47c0", + "__expectedType__": "cc.TextureCube" + }, + "_envmap": { + "__uuid__": "d032ac98-05e1-4090-88bb-eb640dcb5fc1@b47c0", + "__expectedType__": "cc.TextureCube" + }, + "_envmapLDR": { + "__uuid__": "6f01cf7f-81bf-4a7e-bd5d-0afc19696480@b47c0", + "__expectedType__": "cc.TextureCube" + }, + "_diffuseMapHDR": null, + "_diffuseMapLDR": null, + "_enabled": false, + "_useHDR": true, + "_editableMaterial": null, + "_reflectionHDR": null, + "_reflectionLDR": null, + "_rotationAngle": 0 + }, + { + "__type__": "cc.FogInfo", + "_type": 0, + "_fogColor": { + "__type__": "cc.Color", + "r": 200, + "g": 200, + "b": 200, + "a": 255 + }, + "_enabled": false, + "_fogDensity": 0.3, + "_fogStart": 0.5, + "_fogEnd": 300, + "_fogAtten": 5, + "_fogTop": 1.5, + "_fogRange": 1.2, + "_accurate": false + }, + { + "__type__": "cc.OctreeInfo", + "_enabled": false, + "_minPos": { + "__type__": "cc.Vec3", + "x": -1024, + "y": -1024, + "z": -1024 + }, + "_maxPos": { + "__type__": "cc.Vec3", + "x": 1024, + "y": 1024, + "z": 1024 + }, + "_depth": 8 + } +] \ No newline at end of file diff --git a/assets/test/scenes/test-scene.scene.meta b/assets/test/scenes/test-scene.scene.meta new file mode 100644 index 0000000..dd0ac9c --- /dev/null +++ b/assets/test/scenes/test-scene.scene.meta @@ -0,0 +1 @@ +{"ver":"1.1.40","importer":"scene","imported":true,"uuid":"5d5b2280-dee4-4f88-8991-78c03f884a9f","files":[".json"],"subMetas":{},"userData":{}} diff --git a/assets/test/scripts.meta b/assets/test/scripts.meta new file mode 100644 index 0000000..30b835c --- /dev/null +++ b/assets/test/scripts.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "9624c210-9d6c-4e73-8ec9-25f28d2f2c7e", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/test/scripts/list-test-item.ts b/assets/test/scripts/list-test-item.ts new file mode 100644 index 0000000..a7f0664 --- /dev/null +++ b/assets/test/scripts/list-test-item.ts @@ -0,0 +1,37 @@ +import { _decorator, Component, Node, Label, ProgressBar, Sprite, SpriteFrame, UIOpacity } from 'cc'; +const { ccclass, type } = _decorator; + +@ccclass('ListTestItem') +export class ListTestItem extends Component { + + @type(Label) + rankText:Label = null; + + @type(Label) + goldText:Label = null; + + @type(Sprite) + flagImage:Sprite = null; + + @type(Label) + levelText:Label = null; + + @type(ProgressBar) + levelBar:ProgressBar = null; + + @type(Label) + descText:Label = null; + + @type(UIOpacity) + uiOpacity:UIOpacity = null; + + randomData(index:number, flagSpriteFrame:SpriteFrame){ + this.rankText.string = String(index); + this.goldText.string = String(Math.floor(1000 + Math.random()* 1000)); + this.flagImage.spriteFrame = flagSpriteFrame; + this.levelText.string = `lv.${Math.floor(Math.random()* 100)}`; + this.levelBar.progress = Math.random(); + this.descText.string = `什么也没留下 - ${index}`; + this.uiOpacity.opacity = 100 + Math.floor(Math.random() * 155); + } +} diff --git a/assets/test/scripts/list-test-item.ts.meta b/assets/test/scripts/list-test-item.ts.meta new file mode 100644 index 0000000..debc7b7 --- /dev/null +++ b/assets/test/scripts/list-test-item.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "bdab2938-c9ff-4c3d-9536-23744a5e1c82", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/test/scripts/test-scene.ts b/assets/test/scripts/test-scene.ts new file mode 100644 index 0000000..518d61a --- /dev/null +++ b/assets/test/scripts/test-scene.ts @@ -0,0 +1,28 @@ +import { _decorator, Component, Node, Prefab, SpriteFrame, instantiate } from 'cc'; +import { ListTestItem } from './list-test-item'; +const { ccclass, type, property } = _decorator; + +@ccclass('TestScene') +export class TestScene extends Component { + + @type(Prefab) + listTestItemPrefab:Prefab = null; + + @type(Node) + listContent:Node = null; + + @type([SpriteFrame]) + flagSpriteFrames:SpriteFrame[] = []; + + @property + listItemMax:number = 200; + + start() { + for(let i = 0; i < this.listItemMax; i++){ + let node = instantiate(this.listTestItemPrefab); + node.parent = this.listContent; + let item = node.getComponent(ListTestItem); + item?.randomData(i + 1, this.flagSpriteFrames[Math.floor(Math.random() * this.flagSpriteFrames.length)]) + } + } +} diff --git a/assets/test/scripts/test-scene.ts.meta b/assets/test/scripts/test-scene.ts.meta new file mode 100644 index 0000000..a7ad659 --- /dev/null +++ b/assets/test/scripts/test-scene.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.23", + "importer": "typescript", + "imported": true, + "uuid": "bd7060b3-1793-49c7-8598-3cf79d73d63f", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/assets/test/textures.meta b/assets/test/textures.meta new file mode 100644 index 0000000..b99de53 --- /dev/null +++ b/assets/test/textures.meta @@ -0,0 +1,12 @@ +{ + "ver": "1.1.0", + "importer": "directory", + "imported": true, + "uuid": "c163a2f4-97d3-46c6-8f00-3f6f855cf3c6", + "files": [], + "subMetas": {}, + "userData": { + "compressionType": {}, + "isRemoteBundle": {} + } +} diff --git a/assets/test/textures/auto-atlas.pac b/assets/test/textures/auto-atlas.pac new file mode 100644 index 0000000..39b3c02 --- /dev/null +++ b/assets/test/textures/auto-atlas.pac @@ -0,0 +1,3 @@ +{ + "__type__": "cc.SpriteAtlas" +} diff --git a/assets/test/textures/auto-atlas.pac.meta b/assets/test/textures/auto-atlas.pac.meta new file mode 100644 index 0000000..f618815 --- /dev/null +++ b/assets/test/textures/auto-atlas.pac.meta @@ -0,0 +1,36 @@ +{ + "ver": "1.0.8", + "importer": "auto-atlas", + "imported": true, + "uuid": "a3d49996-8a02-417c-a0ca-55813d09926b", + "files": [ + ".json" + ], + "subMetas": {}, + "userData": { + "maxWidth": 1024, + "maxHeight": 1024, + "padding": 2, + "allowRotation": true, + "forceSquared": false, + "powerOfTwo": false, + "algorithm": "MaxRects", + "format": "png", + "quality": 80, + "contourBleed": true, + "paddingBleed": true, + "filterUnused": true, + "removeTextureInBundle": true, + "removeImageInBundle": true, + "removeSpriteAtlasInBundle": true, + "compressSettings": {}, + "textureSetting": { + "wrapModeS": "repeat", + "wrapModeT": "repeat", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0 + } + } +} diff --git a/assets/test/textures/box-1.png b/assets/test/textures/box-1.png new file mode 100644 index 0000000..b009fca Binary files /dev/null and b/assets/test/textures/box-1.png differ diff --git a/assets/test/textures/box-1.png.meta b/assets/test/textures/box-1.png.meta new file mode 100644 index 0000000..3d97058 --- /dev/null +++ b/assets/test/textures/box-1.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "445e6453-7065-41b6-896a-ba95150f444a", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "445e6453-7065-41b6-896a-ba95150f444a@6c48a", + "displayName": "box-1", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "445e6453-7065-41b6-896a-ba95150f444a", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "445e6453-7065-41b6-896a-ba95150f444a@f9941", + "displayName": "box-1", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 105, + "height": 100, + "rawWidth": 105, + "rawHeight": 100, + "borderTop": 31, + "borderBottom": 30, + "borderLeft": 31, + "borderRight": 32, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -52.5, + -50, + 0, + 52.5, + -50, + 0, + -52.5, + 50, + 0, + 52.5, + 50, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 100, + 105, + 100, + 0, + 0, + 105, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -52.5, + -50, + 0 + ], + "maxPos": [ + 52.5, + 50, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "445e6453-7065-41b6-896a-ba95150f444a@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "445e6453-7065-41b6-896a-ba95150f444a@f9941" + } +} diff --git a/assets/test/textures/box-2.png b/assets/test/textures/box-2.png new file mode 100644 index 0000000..c42d8b2 Binary files /dev/null and b/assets/test/textures/box-2.png differ diff --git a/assets/test/textures/box-2.png.meta b/assets/test/textures/box-2.png.meta new file mode 100644 index 0000000..54a947a --- /dev/null +++ b/assets/test/textures/box-2.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584@6c48a", + "displayName": "box-2", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584@f9941", + "displayName": "box-2", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 171, + "height": 27, + "rawWidth": 171, + "rawHeight": 27, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 20, + "borderRight": 21, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -85.5, + -13.5, + 0, + 85.5, + -13.5, + 0, + -85.5, + 13.5, + 0, + 85.5, + 13.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 27, + 171, + 27, + 0, + 0, + 171, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -85.5, + -13.5, + 0 + ], + "maxPos": [ + 85.5, + 13.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "dc4d58fb-0c82-4d34-ae60-d9ba3124c584@f9941" + } +} diff --git a/assets/test/textures/box-3.png b/assets/test/textures/box-3.png new file mode 100644 index 0000000..8998a22 Binary files /dev/null and b/assets/test/textures/box-3.png differ diff --git a/assets/test/textures/box-3.png.meta b/assets/test/textures/box-3.png.meta new file mode 100644 index 0000000..129f722 --- /dev/null +++ b/assets/test/textures/box-3.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "09bd952a-9e81-45e3-a6ba-3551a53701a0", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "09bd952a-9e81-45e3-a6ba-3551a53701a0@6c48a", + "displayName": "box-3", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "09bd952a-9e81-45e3-a6ba-3551a53701a0", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "09bd952a-9e81-45e3-a6ba-3551a53701a0@f9941", + "displayName": "box-3", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 171, + "height": 27, + "rawWidth": 171, + "rawHeight": 27, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 23, + "borderRight": 21, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -85.5, + -13.5, + 0, + 85.5, + -13.5, + 0, + -85.5, + 13.5, + 0, + 85.5, + 13.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 27, + 171, + 27, + 0, + 0, + 171, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -85.5, + -13.5, + 0 + ], + "maxPos": [ + 85.5, + 13.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "09bd952a-9e81-45e3-a6ba-3551a53701a0@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "09bd952a-9e81-45e3-a6ba-3551a53701a0@f9941" + } +} diff --git a/assets/test/textures/box-4.png b/assets/test/textures/box-4.png new file mode 100644 index 0000000..804d7d4 Binary files /dev/null and b/assets/test/textures/box-4.png differ diff --git a/assets/test/textures/box-4.png.meta b/assets/test/textures/box-4.png.meta new file mode 100644 index 0000000..0da4df5 --- /dev/null +++ b/assets/test/textures/box-4.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "a36f32e6-534a-41d4-8b11-454fe6d676a9", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "a36f32e6-534a-41d4-8b11-454fe6d676a9@6c48a", + "displayName": "box-4", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "a36f32e6-534a-41d4-8b11-454fe6d676a9", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "a36f32e6-534a-41d4-8b11-454fe6d676a9@f9941", + "displayName": "box-4", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0.5, + "offsetY": 0.5, + "trimX": 5, + "trimY": 5, + "width": 231, + "height": 230, + "rawWidth": 240, + "rawHeight": 241, + "borderTop": 18, + "borderBottom": 18, + "borderLeft": 21, + "borderRight": 20, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -115.5, + -115, + 0, + 115.5, + -115, + 0, + -115.5, + 115, + 0, + 115.5, + 115, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 5, + 236, + 236, + 236, + 5, + 6, + 236, + 6 + ], + "nuv": [ + 0.020833333333333332, + 0.024896265560165973, + 0.9833333333333333, + 0.024896265560165973, + 0.020833333333333332, + 0.979253112033195, + 0.9833333333333333, + 0.979253112033195 + ], + "minPos": [ + -115.5, + -115, + 0 + ], + "maxPos": [ + 115.5, + 115, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "a36f32e6-534a-41d4-8b11-454fe6d676a9@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "a36f32e6-534a-41d4-8b11-454fe6d676a9@f9941" + } +} diff --git a/assets/test/textures/box-5.png b/assets/test/textures/box-5.png new file mode 100644 index 0000000..e5bfced Binary files /dev/null and b/assets/test/textures/box-5.png differ diff --git a/assets/test/textures/box-5.png.meta b/assets/test/textures/box-5.png.meta new file mode 100644 index 0000000..e661c99 --- /dev/null +++ b/assets/test/textures/box-5.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "98c87e02-1e93-4f76-881c-4668398c2538", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "98c87e02-1e93-4f76-881c-4668398c2538@6c48a", + "displayName": "box-5", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "98c87e02-1e93-4f76-881c-4668398c2538", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "98c87e02-1e93-4f76-881c-4668398c2538@f9941", + "displayName": "box-5", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0.5, + "offsetY": 0.5, + "trimX": 5, + "trimY": 5, + "width": 231, + "height": 230, + "rawWidth": 240, + "rawHeight": 241, + "borderTop": 20, + "borderBottom": 21, + "borderLeft": 21, + "borderRight": 22, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -115.5, + -115, + 0, + 115.5, + -115, + 0, + -115.5, + 115, + 0, + 115.5, + 115, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 5, + 236, + 236, + 236, + 5, + 6, + 236, + 6 + ], + "nuv": [ + 0.020833333333333332, + 0.024896265560165973, + 0.9833333333333333, + 0.024896265560165973, + 0.020833333333333332, + 0.979253112033195, + 0.9833333333333333, + 0.979253112033195 + ], + "minPos": [ + -115.5, + -115, + 0 + ], + "maxPos": [ + 115.5, + 115, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "98c87e02-1e93-4f76-881c-4668398c2538@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "98c87e02-1e93-4f76-881c-4668398c2538@f9941" + } +} diff --git a/assets/test/textures/box-6.png b/assets/test/textures/box-6.png new file mode 100644 index 0000000..36041fb Binary files /dev/null and b/assets/test/textures/box-6.png differ diff --git a/assets/test/textures/box-6.png.meta b/assets/test/textures/box-6.png.meta new file mode 100644 index 0000000..64b8ea5 --- /dev/null +++ b/assets/test/textures/box-6.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "2d0ea639-693d-4b05-9d48-40d981c89857", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "2d0ea639-693d-4b05-9d48-40d981c89857@6c48a", + "displayName": "box-6", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "2d0ea639-693d-4b05-9d48-40d981c89857", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "2d0ea639-693d-4b05-9d48-40d981c89857@f9941", + "displayName": "box-6", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 70, + "height": 32, + "rawWidth": 70, + "rawHeight": 32, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -35, + -16, + 0, + 35, + -16, + 0, + -35, + 16, + 0, + 35, + 16, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 32, + 70, + 32, + 0, + 0, + 70, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -35, + -16, + 0 + ], + "maxPos": [ + 35, + 16, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "2d0ea639-693d-4b05-9d48-40d981c89857@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "2d0ea639-693d-4b05-9d48-40d981c89857@f9941" + } +} diff --git a/assets/test/textures/box-7.png b/assets/test/textures/box-7.png new file mode 100644 index 0000000..c31e854 Binary files /dev/null and b/assets/test/textures/box-7.png differ diff --git a/assets/test/textures/box-7.png.meta b/assets/test/textures/box-7.png.meta new file mode 100644 index 0000000..5bba3d1 --- /dev/null +++ b/assets/test/textures/box-7.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "771be66e-a8e3-4673-82e2-a358c8ed7e1c", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "771be66e-a8e3-4673-82e2-a358c8ed7e1c@6c48a", + "displayName": "box-7", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "771be66e-a8e3-4673-82e2-a358c8ed7e1c", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "771be66e-a8e3-4673-82e2-a358c8ed7e1c@f9941", + "displayName": "box-7", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 63, + "height": 43, + "rawWidth": 63, + "rawHeight": 43, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -31.5, + -21.5, + 0, + 31.5, + -21.5, + 0, + -31.5, + 21.5, + 0, + 31.5, + 21.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 43, + 63, + 43, + 0, + 0, + 63, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -31.5, + -21.5, + 0 + ], + "maxPos": [ + 31.5, + 21.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "771be66e-a8e3-4673-82e2-a358c8ed7e1c@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "771be66e-a8e3-4673-82e2-a358c8ed7e1c@f9941" + } +} diff --git a/assets/test/textures/box-8.png b/assets/test/textures/box-8.png new file mode 100644 index 0000000..14430c1 Binary files /dev/null and b/assets/test/textures/box-8.png differ diff --git a/assets/test/textures/box-8.png.meta b/assets/test/textures/box-8.png.meta new file mode 100644 index 0000000..2793c52 --- /dev/null +++ b/assets/test/textures/box-8.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "4e63ad65-eb84-4c8b-9aef-13410afb94be", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "4e63ad65-eb84-4c8b-9aef-13410afb94be@6c48a", + "displayName": "box-8", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "4e63ad65-eb84-4c8b-9aef-13410afb94be", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "4e63ad65-eb84-4c8b-9aef-13410afb94be@f9941", + "displayName": "box-8", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 64, + "height": 41, + "rawWidth": 64, + "rawHeight": 41, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -32, + -20.5, + 0, + 32, + -20.5, + 0, + -32, + 20.5, + 0, + 32, + 20.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 41, + 64, + 41, + 0, + 0, + 64, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -32, + -20.5, + 0 + ], + "maxPos": [ + 32, + 20.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "4e63ad65-eb84-4c8b-9aef-13410afb94be@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "4e63ad65-eb84-4c8b-9aef-13410afb94be@f9941" + } +} diff --git a/assets/test/textures/box-9.png b/assets/test/textures/box-9.png new file mode 100644 index 0000000..e1b9374 Binary files /dev/null and b/assets/test/textures/box-9.png differ diff --git a/assets/test/textures/box-9.png.meta b/assets/test/textures/box-9.png.meta new file mode 100644 index 0000000..e36d2b4 --- /dev/null +++ b/assets/test/textures/box-9.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "63000915-a39e-45bb-96ce-5cde4c0d51e8", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "63000915-a39e-45bb-96ce-5cde4c0d51e8@6c48a", + "displayName": "box-9", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "63000915-a39e-45bb-96ce-5cde4c0d51e8", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "63000915-a39e-45bb-96ce-5cde4c0d51e8@f9941", + "displayName": "box-9", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 63, + "height": 29, + "rawWidth": 63, + "rawHeight": 29, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -31.5, + -14.5, + 0, + 31.5, + -14.5, + 0, + -31.5, + 14.5, + 0, + 31.5, + 14.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 29, + 63, + 29, + 0, + 0, + 63, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -31.5, + -14.5, + 0 + ], + "maxPos": [ + 31.5, + 14.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "63000915-a39e-45bb-96ce-5cde4c0d51e8@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "63000915-a39e-45bb-96ce-5cde4c0d51e8@f9941" + } +} diff --git a/assets/test/textures/btn-black.png b/assets/test/textures/btn-black.png new file mode 100644 index 0000000..fe1d904 Binary files /dev/null and b/assets/test/textures/btn-black.png differ diff --git a/assets/test/textures/btn-black.png.meta b/assets/test/textures/btn-black.png.meta new file mode 100644 index 0000000..0540c58 --- /dev/null +++ b/assets/test/textures/btn-black.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "720a1105-0a5c-4bdb-b8e8-848eb517c85e", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "720a1105-0a5c-4bdb-b8e8-848eb517c85e@6c48a", + "displayName": "btn-black", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "720a1105-0a5c-4bdb-b8e8-848eb517c85e", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "720a1105-0a5c-4bdb-b8e8-848eb517c85e@f9941", + "displayName": "btn-black", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 210, + "height": 80, + "rawWidth": 210, + "rawHeight": 80, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -105, + -40, + 0, + 105, + -40, + 0, + -105, + 40, + 0, + 105, + 40, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 80, + 210, + 80, + 0, + 0, + 210, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -105, + -40, + 0 + ], + "maxPos": [ + 105, + 40, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "720a1105-0a5c-4bdb-b8e8-848eb517c85e@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "720a1105-0a5c-4bdb-b8e8-848eb517c85e@f9941" + } +} diff --git a/assets/test/textures/btn-white-2.png b/assets/test/textures/btn-white-2.png new file mode 100644 index 0000000..87bdceb Binary files /dev/null and b/assets/test/textures/btn-white-2.png differ diff --git a/assets/test/textures/btn-white-2.png.meta b/assets/test/textures/btn-white-2.png.meta new file mode 100644 index 0000000..555f9d6 --- /dev/null +++ b/assets/test/textures/btn-white-2.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "0354ea17-128e-4cb7-abe6-1cca22ca5fdf", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "0354ea17-128e-4cb7-abe6-1cca22ca5fdf@6c48a", + "displayName": "btn-white-2", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "0354ea17-128e-4cb7-abe6-1cca22ca5fdf", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "0354ea17-128e-4cb7-abe6-1cca22ca5fdf@f9941", + "displayName": "btn-white-2", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 68, + "height": 36, + "rawWidth": 68, + "rawHeight": 36, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -34, + -18, + 0, + 34, + -18, + 0, + -34, + 18, + 0, + 34, + 18, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 36, + 68, + 36, + 0, + 0, + 68, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -34, + -18, + 0 + ], + "maxPos": [ + 34, + 18, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "0354ea17-128e-4cb7-abe6-1cca22ca5fdf@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "0354ea17-128e-4cb7-abe6-1cca22ca5fdf@f9941" + } +} diff --git a/assets/test/textures/btn-white.png b/assets/test/textures/btn-white.png new file mode 100644 index 0000000..aaee848 Binary files /dev/null and b/assets/test/textures/btn-white.png differ diff --git a/assets/test/textures/btn-white.png.meta b/assets/test/textures/btn-white.png.meta new file mode 100644 index 0000000..0673594 --- /dev/null +++ b/assets/test/textures/btn-white.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "cc97785d-f69b-43df-8c1a-2fafeae67414", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "cc97785d-f69b-43df-8c1a-2fafeae67414@6c48a", + "displayName": "btn-white", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "cc97785d-f69b-43df-8c1a-2fafeae67414", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "cc97785d-f69b-43df-8c1a-2fafeae67414@f9941", + "displayName": "btn-white", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 1, + "trimY": 1, + "width": 212, + "height": 82, + "rawWidth": 214, + "rawHeight": 84, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -106, + -41, + 0, + 106, + -41, + 0, + -106, + 41, + 0, + 106, + 41, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 1, + 83, + 213, + 83, + 1, + 1, + 213, + 1 + ], + "nuv": [ + 0.004672897196261682, + 0.011904761904761904, + 0.9953271028037384, + 0.011904761904761904, + 0.004672897196261682, + 0.9880952380952381, + 0.9953271028037384, + 0.9880952380952381 + ], + "minPos": [ + -106, + -41, + 0 + ], + "maxPos": [ + 106, + 41, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "cc97785d-f69b-43df-8c1a-2fafeae67414@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "cc97785d-f69b-43df-8c1a-2fafeae67414@f9941" + } +} diff --git a/assets/test/textures/circle-countdown.png b/assets/test/textures/circle-countdown.png new file mode 100644 index 0000000..97dc181 Binary files /dev/null and b/assets/test/textures/circle-countdown.png differ diff --git a/assets/test/textures/circle-countdown.png.meta b/assets/test/textures/circle-countdown.png.meta new file mode 100644 index 0000000..c70cc68 --- /dev/null +++ b/assets/test/textures/circle-countdown.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "279c8d45-0190-4320-a7c4-60ea39ec8896", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "279c8d45-0190-4320-a7c4-60ea39ec8896@6c48a", + "displayName": "circle-countdown", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "279c8d45-0190-4320-a7c4-60ea39ec8896", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "279c8d45-0190-4320-a7c4-60ea39ec8896@f9941", + "displayName": "circle-countdown", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 2, + "trimY": 2, + "width": 245, + "height": 245, + "rawWidth": 249, + "rawHeight": 249, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -122.5, + -122.5, + 0, + 122.5, + -122.5, + 0, + -122.5, + 122.5, + 0, + 122.5, + 122.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 2, + 247, + 247, + 247, + 2, + 2, + 247, + 2 + ], + "nuv": [ + 0.008032128514056224, + 0.008032128514056224, + 0.9919678714859438, + 0.008032128514056224, + 0.008032128514056224, + 0.9919678714859438, + 0.9919678714859438, + 0.9919678714859438 + ], + "minPos": [ + -122.5, + -122.5, + 0 + ], + "maxPos": [ + 122.5, + 122.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "279c8d45-0190-4320-a7c4-60ea39ec8896@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "279c8d45-0190-4320-a7c4-60ea39ec8896@f9941" + } +} diff --git a/assets/test/textures/flag-disconnection.png b/assets/test/textures/flag-disconnection.png new file mode 100644 index 0000000..c0a58b2 Binary files /dev/null and b/assets/test/textures/flag-disconnection.png differ diff --git a/assets/test/textures/flag-disconnection.png.meta b/assets/test/textures/flag-disconnection.png.meta new file mode 100644 index 0000000..6e3c832 --- /dev/null +++ b/assets/test/textures/flag-disconnection.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "c7f04ad9-3432-406c-af71-456be27021e1", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "c7f04ad9-3432-406c-af71-456be27021e1@6c48a", + "displayName": "flag-disconnection", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "c7f04ad9-3432-406c-af71-456be27021e1", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "c7f04ad9-3432-406c-af71-456be27021e1@f9941", + "displayName": "flag-disconnection", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0.5, + "offsetY": 0, + "trimX": 2, + "trimY": 2, + "width": 81, + "height": 80, + "rawWidth": 84, + "rawHeight": 84, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -40.5, + -40, + 0, + 40.5, + -40, + 0, + -40.5, + 40, + 0, + 40.5, + 40, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 2, + 82, + 83, + 82, + 2, + 2, + 83, + 2 + ], + "nuv": [ + 0.023809523809523808, + 0.023809523809523808, + 0.9880952380952381, + 0.023809523809523808, + 0.023809523809523808, + 0.9761904761904762, + 0.9880952380952381, + 0.9761904761904762 + ], + "minPos": [ + -40.5, + -40, + 0 + ], + "maxPos": [ + 40.5, + 40, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "c7f04ad9-3432-406c-af71-456be27021e1@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "c7f04ad9-3432-406c-af71-456be27021e1@f9941" + } +} diff --git a/assets/test/textures/flag-eliminated.png b/assets/test/textures/flag-eliminated.png new file mode 100644 index 0000000..9c75512 Binary files /dev/null and b/assets/test/textures/flag-eliminated.png differ diff --git a/assets/test/textures/flag-eliminated.png.meta b/assets/test/textures/flag-eliminated.png.meta new file mode 100644 index 0000000..03399f4 --- /dev/null +++ b/assets/test/textures/flag-eliminated.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "ff59492e-4e8f-4043-9cbb-2caef8b31f89", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "ff59492e-4e8f-4043-9cbb-2caef8b31f89@6c48a", + "displayName": "flag-eliminated", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "ff59492e-4e8f-4043-9cbb-2caef8b31f89", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "ff59492e-4e8f-4043-9cbb-2caef8b31f89@f9941", + "displayName": "flag-eliminated", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0.5, + "offsetY": 0, + "trimX": 2, + "trimY": 2, + "width": 81, + "height": 80, + "rawWidth": 84, + "rawHeight": 84, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -40.5, + -40, + 0, + 40.5, + -40, + 0, + -40.5, + 40, + 0, + 40.5, + 40, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 2, + 82, + 83, + 82, + 2, + 2, + 83, + 2 + ], + "nuv": [ + 0.023809523809523808, + 0.023809523809523808, + 0.9880952380952381, + 0.023809523809523808, + 0.023809523809523808, + 0.9761904761904762, + 0.9880952380952381, + 0.9761904761904762 + ], + "minPos": [ + -40.5, + -40, + 0 + ], + "maxPos": [ + 40.5, + 40, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "ff59492e-4e8f-4043-9cbb-2caef8b31f89@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "ff59492e-4e8f-4043-9cbb-2caef8b31f89@f9941" + } +} diff --git a/assets/test/textures/flag-escape.png b/assets/test/textures/flag-escape.png new file mode 100644 index 0000000..c61d6e5 Binary files /dev/null and b/assets/test/textures/flag-escape.png differ diff --git a/assets/test/textures/flag-escape.png.meta b/assets/test/textures/flag-escape.png.meta new file mode 100644 index 0000000..9d9973f --- /dev/null +++ b/assets/test/textures/flag-escape.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "e7673f09-beed-4e7a-92fd-1436b76d7e43", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "e7673f09-beed-4e7a-92fd-1436b76d7e43@6c48a", + "displayName": "flag-escape", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "e7673f09-beed-4e7a-92fd-1436b76d7e43", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "e7673f09-beed-4e7a-92fd-1436b76d7e43@f9941", + "displayName": "flag-escape", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0.5, + "offsetY": 0, + "trimX": 2, + "trimY": 2, + "width": 81, + "height": 80, + "rawWidth": 84, + "rawHeight": 84, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -40.5, + -40, + 0, + 40.5, + -40, + 0, + -40.5, + 40, + 0, + 40.5, + 40, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 2, + 82, + 83, + 82, + 2, + 2, + 83, + 2 + ], + "nuv": [ + 0.023809523809523808, + 0.023809523809523808, + 0.9880952380952381, + 0.023809523809523808, + 0.023809523809523808, + 0.9761904761904762, + 0.9880952380952381, + 0.9761904761904762 + ], + "minPos": [ + -40.5, + -40, + 0 + ], + "maxPos": [ + 40.5, + 40, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "e7673f09-beed-4e7a-92fd-1436b76d7e43@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "e7673f09-beed-4e7a-92fd-1436b76d7e43@f9941" + } +} diff --git a/assets/test/textures/gold.png b/assets/test/textures/gold.png new file mode 100644 index 0000000..a4a5235 Binary files /dev/null and b/assets/test/textures/gold.png differ diff --git a/assets/test/textures/gold.png.meta b/assets/test/textures/gold.png.meta new file mode 100644 index 0000000..73fc3b5 --- /dev/null +++ b/assets/test/textures/gold.png.meta @@ -0,0 +1,134 @@ +{ + "ver": "1.0.25", + "importer": "image", + "imported": true, + "uuid": "6dbed0ea-8e55-490e-ac38-4880862370c8", + "files": [ + ".json", + ".png" + ], + "subMetas": { + "6c48a": { + "importer": "texture", + "uuid": "6dbed0ea-8e55-490e-ac38-4880862370c8@6c48a", + "displayName": "gold", + "id": "6c48a", + "name": "texture", + "userData": { + "wrapModeS": "clamp-to-edge", + "wrapModeT": "clamp-to-edge", + "minfilter": "linear", + "magfilter": "linear", + "mipfilter": "none", + "anisotropy": 0, + "isUuid": true, + "imageUuidOrDatabaseUri": "6dbed0ea-8e55-490e-ac38-4880862370c8", + "visible": false + }, + "ver": "1.0.22", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + }, + "f9941": { + "importer": "sprite-frame", + "uuid": "6dbed0ea-8e55-490e-ac38-4880862370c8@f9941", + "displayName": "gold", + "id": "f9941", + "name": "spriteFrame", + "userData": { + "trimType": "auto", + "trimThreshold": 1, + "rotated": false, + "offsetX": 0, + "offsetY": 0, + "trimX": 0, + "trimY": 0, + "width": 60, + "height": 61, + "rawWidth": 60, + "rawHeight": 61, + "borderTop": 0, + "borderBottom": 0, + "borderLeft": 0, + "borderRight": 0, + "packable": true, + "pixelsToUnit": 100, + "pivotX": 0.5, + "pivotY": 0.5, + "meshType": 0, + "vertices": { + "rawPosition": [ + -30, + -30.5, + 0, + 30, + -30.5, + 0, + -30, + 30.5, + 0, + 30, + 30.5, + 0 + ], + "indexes": [ + 0, + 1, + 2, + 2, + 1, + 3 + ], + "uv": [ + 0, + 61, + 60, + 61, + 0, + 0, + 60, + 0 + ], + "nuv": [ + 0, + 0, + 1, + 0, + 0, + 1, + 1, + 1 + ], + "minPos": [ + -30, + -30.5, + 0 + ], + "maxPos": [ + 30, + 30.5, + 0 + ] + }, + "isUuid": true, + "imageUuidOrDatabaseUri": "6dbed0ea-8e55-490e-ac38-4880862370c8@6c48a", + "atlasUuid": "" + }, + "ver": "1.0.11", + "imported": true, + "files": [ + ".json" + ], + "subMetas": {} + } + }, + "userData": { + "type": "sprite-frame", + "fixAlphaTransparencyArtifacts": true, + "hasAlpha": true, + "redirect": "6dbed0ea-8e55-490e-ac38-4880862370c8@f9941" + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..7d68b0d --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "ui-sorting-group", + "uuid": "73bb0724-4306-49be-abb3-8576f4433c57", + "version": "3.6.3", + "_sourceId": "c30b28da-749e-479b-bcb6-cecd8d7be9e3", + "creator": { + "version": "3.6.3" + } +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e69de29 diff --git a/settings/v2/packages/cocos-service.json b/settings/v2/packages/cocos-service.json new file mode 100644 index 0000000..9c7acd8 --- /dev/null +++ b/settings/v2/packages/cocos-service.json @@ -0,0 +1,22 @@ +{ + "game": { + "name": "未知游戏", + "app_id": "UNKNOW", + "c_id": "0" + }, + "appConfigMaps": [ + { + "app_id": "UNKNOW", + "config_id": "7ce011" + } + ], + "configs": [ + { + "app_id": "UNKNOW", + "config_id": "7ce011", + "config_name": "Default", + "config_remarks": "", + "services": [] + } + ] +} diff --git a/settings/v2/packages/project.json b/settings/v2/packages/project.json new file mode 100644 index 0000000..9fd8152 --- /dev/null +++ b/settings/v2/packages/project.json @@ -0,0 +1,8 @@ +{ + "general": { + "designResolution": { + "width": 1920, + "height": 1080 + } + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..7dc649a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,9 @@ +{ + /* Base configuration. Do not edit this field. */ + "extends": "./temp/tsconfig.cocos.json", + + /* Add your custom configuration here. */ + "compilerOptions": { + "strict": false + } +}