2.x版本

This commit is contained in:
cheney2013
2023-06-07 17:19:10 +08:00
parent 09f8c3b46b
commit 9a9c8c52b7
789 changed files with 35095 additions and 42064 deletions

View File

@@ -1,12 +1,13 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "769e6680-cdd1-46cf-ab55-93e0b7d62a70",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
"ver": "1.1.3",
"uuid": "3b4f862f-7fbb-4a5b-aba7-b066792ee286",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

2527
assets/scene/Main.fire Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
{
"ver": "1.3.2",
"uuid": "844d3396-4f1d-4c83-93da-122746a85984",
"importer": "scene",
"asyncLoadAssets": false,
"autoReleaseAssets": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +0,0 @@
{
"ver": "1.1.43",
"importer": "scene",
"imported": true,
"uuid": "420b3c54-9433-4d1f-8cda-f534eab902bb",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@@ -1,370 +0,0 @@
[
{
"__type__": "cc.SceneAsset",
"_name": "scene-2d",
"_objFlags": 0,
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_name": "scene-2d",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [],
"_prefab": null,
"autoReleaseAssets": false,
"_globals": {
"__id__": 8
},
"_id": "c77ecaa8-c936-46c4-a5b0-98692673ed87"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
}
],
"_active": true,
"_components": [
{
"__id__": 5
},
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 480,
"y": 320.00000000000006,
"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": "beI88Z2HpFELqR4T5EMHpg"
},
{
"__type__": "cc.Node",
"_name": "Camera",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_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": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "ebFwiq8gBFaYpqYbdoDODe"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": null,
"_projection": 0,
"_priority": 0,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 10,
"_near": 0,
"_far": 1000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 1108344832,
"_targetTexture": null,
"_id": "63WIch3o5BEYRlXzTT0oWc"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "d6rUX5yfhMlKoWX2bSbawx"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_cameraComponent": {
"__id__": 4
},
"_alignCanvasWithScreen": true,
"_id": "12O/ljcVlEqLmVm3U2gEOQ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 5.684341886080802e-14,
"_bottom": 5.684341886080802e-14,
"_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": "c5V1EV8IpMtrIvY1OE9t2u"
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 9
},
"shadows": {
"__id__": 10
},
"_skybox": {
"__id__": 11
},
"fog": {
"__id__": 12
},
"octree": {
"__id__": 13
}
},
{
"__type__": "cc.AmbientInfo",
"_skyColorHDR": {
"__type__": "cc.Vec4",
"x": 0,
"y": 0,
"z": 0,
"w": 0.520833125
},
"_skyColor": {
"__type__": "cc.Vec4",
"x": 0,
"y": 0,
"z": 0,
"w": 0.520833125
},
"_skyIllumHDR": 20000,
"_skyIllum": 20000,
"_groundAlbedoHDR": {
"__type__": "cc.Vec4",
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"_groundAlbedo": {
"__type__": "cc.Vec4",
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"_skyColorLDR": {
"__type__": "cc.Vec4",
"x": 0.2,
"y": 0.5,
"z": 0.8,
"w": 1
},
"_skyIllumLDR": 20000,
"_groundAlbedoLDR": {
"__type__": "cc.Vec4",
"x": 0.2,
"y": 0.2,
"z": 0.2,
"w": 1
}
},
{
"__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": 512,
"y": 512
}
},
{
"__type__": "cc.SkyboxInfo",
"_envLightingType": 0,
"_envmapHDR": null,
"_envmap": null,
"_envmapLDR": null,
"_diffuseMapHDR": null,
"_diffuseMapLDR": null,
"_enabled": false,
"_useHDR": true
},
{
"__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
}
]

View File

@@ -1,11 +0,0 @@
{
"ver": "1.1.43",
"importer": "scene",
"imported": true,
"uuid": "baf162cd-abd4-45af-982a-9891aff69e7a",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

View File

@@ -1,12 +1,13 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "cc79b51d-f528-4fd3-b491-2cf36b7337aa",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
"ver": "1.1.3",
"uuid": "0448ee90-7420-4629-8c4f-cfe1d9eed568",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

View File

@@ -1,24 +1,23 @@
import { Button, Component, Node, NodeEventType, _decorator } from 'cc';
import UIState from './component/UIState';
const { ccclass, property } = _decorator;
const { ccclass, property } = cc._decorator;
@ccclass('Main')
export class Main extends Component {
@property(Button)
btnChangeOutter:Button;
@ccclass
export class Main extends cc.Component {
@property(cc.Button)
btnChangeOutter:cc.Button = null;
@property(Button)
btnChangeInner:Button;
@property(cc.Button)
btnChangeInner:cc.Button = null;
@property(Node)
innerBox:Node;
@property(cc.Node)
innerBox:cc.Node = null;
start() {
this.btnChangeOutter.node.on(NodeEventType.TOUCH_END, () => {
this.btnChangeOutter.node.on(cc.Node.EventType.TOUCH_END, () => {
const uiState = this.node.getComponent(UIState);
uiState.state = uiState.state === 0 ? 1 : 0;
});
this.btnChangeInner.node.on(NodeEventType.TOUCH_END, () => {
this.btnChangeInner.node.on(cc.Node.EventType.TOUCH_END, () => {
const uiState = this.innerBox.getComponent(UIState);
uiState.state = uiState.state === 0 ? 1 : 0;
});

View File

@@ -1,9 +1,10 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"ver": "1.1.0",
"uuid": "101c5b27-c9ec-4479-9458-b724e38afec6",
"files": [],
"subMetas": {},
"userData": {}
}
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@@ -1,12 +1,13 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"ver": "1.1.3",
"uuid": "8d43befd-5bf6-45b8-9872-12ec976af5ba",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
"importer": "directory",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

View File

@@ -1,9 +1,7 @@
import { Label, _decorator } from "cc";
const { ccclass, property } = _decorator;
const { ccclass, property } = cc._decorator;
@ccclass
export class CustomLabel extends Label{
export class CustomLabel extends cc.Label{
@property
customProp:string = "test";
}

View File

@@ -1,9 +1,10 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"ver": "1.1.0",
"uuid": "8154a793-6bac-4a62-8ffa-701af243f106",
"files": [],
"subMetas": {},
"userData": {}
}
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@@ -6,20 +6,6 @@ qq:1183875513
使用过程中遇到问题可以联系我
*/
import {
CCClass,
CCString,
Color,
Component,
Enum,
Label,
Node,
RichText, Sprite, SpriteFrame,
Widget,
_decorator, assetManager
} from "cc";
import { EDITOR } from "cc/env";
let isInitDebugComp = false;
enum States {
@@ -47,13 +33,14 @@ type STRUCT_OF_COMP_ATTR_RECORD<K extends KEY_OF_COMP_ATTR_RECORD> = typeof COMP
type RecordProps = {
[K in KEY_OF_COMP_ATTR_RECORD]?: {[key in STRUCT_OF_COMP_ATTR_RECORD<K>[number]]:any};
} & {
node: Node;
node: cc.Node;
x: number;
y: number;
scaleX: number;
scaleY: number;
angle: number;
active: boolean;
color: string;
};
/**
@@ -61,20 +48,19 @@ type RecordProps = {
* 由于编辑器预览 EDITOR 也为 true
* 但又不想让特定代码在编辑器预览执行
*/
//@ts-ignore
const REAL_EDITOR = EDITOR && !cc.GAME_VIEW;
const REAL_EDITOR = CC_EDITOR;
const { ccclass, property, executeInEditMode, disallowMultiple } = _decorator;
@ccclass("UIState")
const { ccclass, property, executeInEditMode, disallowMultiple } = cc._decorator;
@ccclass
@executeInEditMode
@disallowMultiple
export default class UIState extends Component {
export default class UIState extends cc.Component {
@property
private _states: string[] = ["Default"];
@property({ type: [CCString], step: 1 })
@property({ type: [cc.String], step: 1 })
set states(value: string[]) {
if (EDITOR) {
if (CC_EDITOR) {
// 状态数量减少时
if (value.length < this._states.length){
let hasData = false;
@@ -84,8 +70,9 @@ export default class UIState extends Component {
}
// 二次确认
if (hasData){
Editor.Dialog.warn("要删除的状态中含有数据,删除操作不可逆,是否继续?", {
cancel:1,
Editor.Dialog.messageBox({
message:"要删除的状态中含有数据,删除操作不可逆,是否继续?",
type: "warning",
buttons: ["是", "否"]
}).then(returnValue=>{
// 否
@@ -97,9 +84,6 @@ export default class UIState extends Component {
}
this._states = value;
this.updateStateEnumList();
// 软刷新场景,编辑器会闪一下,应该有更好的接口可以不闪的刷新吧,不过懒得找了
Editor.Message.request("scene", "soft-reload");
});
return;
}
@@ -122,7 +106,7 @@ export default class UIState extends Component {
if (this._state === val) return;
// 编辑器模式时,切换状态前保存当前状态数据
if (REAL_EDITOR) {
this.walkNode(this.node, child => {
this.walkNode(this.node, (child:cc.Node) => {
this.recordBeforeStateChange(child);
});
}
@@ -147,7 +131,7 @@ export default class UIState extends Component {
if (REAL_EDITOR) this.onFocusInEditor!();
}
@property({ type: Enum(States) })
@property({ type: cc.Enum(States) })
get state() {
return this._state;
}
@@ -179,7 +163,7 @@ export default class UIState extends Component {
if (REAL_EDITOR) {
if (!isInitDebugComp){
isInitDebugComp = true;
UIStateDecorator(Component);
UIStateDecorator(cc.Component);
}
}
@@ -198,7 +182,10 @@ export default class UIState extends Component {
this.states.forEach((state, index) => {
enumList.push({ name: state, value: index });
});
CCClass.Attr.setClassAttr(this, "state", "enumList", enumList);
//@ts-ignore
cc.Class.Attr.setClassAttr(this, "state", 'type', 'Enum');
//@ts-ignore
cc.Class.Attr.setClassAttr(this, "state", "enumList", enumList);
}
/**
@@ -206,7 +193,7 @@ export default class UIState extends Component {
*/
saveCurrentState() {
// 编辑器模式时
this.walkNode(this.node, child => {
this.walkNode(this.node, (child:cc.Node) => {
this.recordBeforeStateChange(child);
});
console.log("已保存当前状态");
@@ -242,8 +229,10 @@ export default class UIState extends Component {
if (node === this.node) continue;
node.angle = record.angle;
node.setScale(record.scaleX, record.scaleY);
node.color = cc.Color.fromHEX(new cc.Color, record.color);
node.components.forEach(comp=>{
//@ts-ignore
node._components.forEach(comp=>{
const compName = (comp as any).__proto__.__classname__ as keyof KEY_OF_COMP_ATTR_RECORD;
const recordCompAttr = record[compName as keyof RecordProps];
@@ -258,12 +247,12 @@ export default class UIState extends Component {
switch(compName){
case "cc.Label":
Object.values(compAttrs).forEach(attr => {
this.applyLabelAttr(attr, comp as Label, recordCompAttr);
this.applyLabelAttr(attr, comp as cc.Label, recordCompAttr);
});
break;
case "cc.Sprite":
Object.values(compAttrs).forEach(attr => {
this.applySpriteAttr(attr, comp as Sprite, recordCompAttr);
this.applySpriteAttr(attr, comp as cc.Sprite, recordCompAttr);
});
break;
default:
@@ -278,8 +267,9 @@ export default class UIState extends Component {
});
node.active = record.active!;
//@ts-ignore
// 应用组件启用状态
node.components.forEach((comp, index) => {
node._components.forEach((comp, index) => {
const compName = (comp as any).__proto__.__classname__ as keyof RecordProps;
const recordCompAttr = record[compName];
// 没有记录且没在 COMP_ATTR_RECORD 中表明是在其他状态新增的组件,那么在当前状态就需要禁用
@@ -287,13 +277,13 @@ export default class UIState extends Component {
comp.enabled = false;
}
});
const widget = node.getComponent(Widget);
const widget = node.getComponent(cc.Widget);
if (!widget || !widget.enabled)
node.setPosition(record.x, record.y);
}
this._defaultNodeState.clear();
this.walkNodeWithSubUIState(this.node, child => {
this.walkNodeWithSubUIState(this.node, (child:cc.Node) => {
this._defaultNodeState.set(child.uuid, this.recordNode(child));
});
}
@@ -303,28 +293,31 @@ export default class UIState extends Component {
* @param node
* @returns
*/
private recordNode(node: Node, record?: RecordProps) {
private recordNode(node: cc.Node, record?: RecordProps) {
if (!record)
record = {
node,
active: node.active,
x: node.position.x,
y: node.position.y,
x: node.x,
y: node.y,
angle: node.angle,
scaleX: node.scale.x,
scaleY: node.scale.y
scaleX: node.scaleX,
scaleY: node.scaleY,
color: node.color.toHEX()
};
else{
record.active = node.active;
record.x = node.position.x;
record.y = node.position.y;
record.x = node.x;
record.y = node.y;
record.angle = node.angle;
record.scaleX = node.scale.x;
record.scaleY = node.scale.y;
record.scaleX = node.scaleX;
record.scaleY = node.scaleY;
record.color = node.color.toHEX()
}
//@ts-ignore
// 记录组件启用状态
node.components.forEach(comp => {
node._components.forEach(comp => {
const registerComps = this.getNeedRecordComps(comp);
let recordCompAttr:any;
if (!registerComps.length)
@@ -341,12 +334,12 @@ export default class UIState extends Component {
switch(compName){
case "cc.Label":
compAttrs.forEach(attr => {
this.recordLabelAttr(attr, comp as Label, recordCompAttr);
this.recordLabelAttr(attr, comp as cc.Label, recordCompAttr);
});
break;
case "cc.Sprite":
compAttrs.forEach(attr => {
this.recordSpriteAttr(attr, comp as Sprite, recordCompAttr);
this.recordSpriteAttr(attr, comp as cc.Sprite, recordCompAttr);
});
break;
default:
@@ -362,11 +355,11 @@ export default class UIState extends Component {
return record;
}
private recordLabelAttr(attr:string, comp:Label, recordCompAttr:any){
private recordLabelAttr(attr:string, comp:cc.Label, recordCompAttr:any){
switch(attr){
case "color":
recordCompAttr[attr] = comp.color.toHEX();
break;
// case "color":
// recordCompAttr[attr] = comp.color.toHEX();
// break;
case "string":
// 有多语言组件时不处理
if (comp.getComponent("L10nLabel")) break;
@@ -376,25 +369,26 @@ export default class UIState extends Component {
}
}
private applyLabelAttr(attr:string, comp:Label, recordCompAttr:any){
private applyLabelAttr(attr:string, comp:cc.Label, recordCompAttr:any){
switch(attr){
case "color":
comp.color.fromHEX(recordCompAttr[attr]);
(comp as any)["_updateColor"]();
break;
// case "color":
// comp.color.fromHEX(recordCompAttr[attr]);
// (comp as any)["_updateColor"]();
// break;
default:
(comp as any)[attr] = recordCompAttr[attr];
break;
}
}
private recordSpriteAttr(attr:string, comp:Sprite, recordCompAttr:any){
private recordSpriteAttr(attr:string, comp:cc.Sprite, recordCompAttr:any){
switch(attr){
case "color":
recordCompAttr[attr] = comp.color.toHEX();
break;
// case "color":
// recordCompAttr[attr] = comp.color.toHEX();
// break;
case "spriteFrame":
recordCompAttr[attr] = comp.spriteFrame?.uuid;
//@ts-ignore
recordCompAttr[attr] = comp.spriteFrame?._uuid;
break;
default:
recordCompAttr[attr] = comp[attr as keyof typeof comp];
@@ -402,17 +396,18 @@ export default class UIState extends Component {
}
}
private applySpriteAttr(attr:string, comp:Sprite, recordCompAttr:any){
private applySpriteAttr(attr:string, comp:cc.Sprite, recordCompAttr:any){
switch(attr){
case "color":
comp.color.fromHEX(recordCompAttr[attr]);
(comp as any)["_updateColor"]();
break;
// case "color":
// comp.color.fromHEX(recordCompAttr[attr]);
// (comp as any)["_updateColor"]();
// break;
case "spriteFrame":
if (comp.spriteFrame?.uuid === recordCompAttr[attr]) return;
//@ts-ignore
if (comp.spriteFrame?._uuid === recordCompAttr[attr]) return;
if (recordCompAttr[attr])
assetManager.loadAny<SpriteFrame>(recordCompAttr[attr], (err, asset) => {
cc.assetManager.loadAny(recordCompAttr[attr], (err, asset) => {
if (err) {
console.warn(err);
return;
@@ -421,7 +416,7 @@ export default class UIState extends Component {
// 特定情况下会出现SpriteFrame没有更新点击 Creator 能够刷新
// 使用软刷新场景的接口,编辑器会闪一下,体验不是太好,不过可以保证显示正确
REAL_EDITOR && Editor.Message.request("scene", "soft-reload");
// REAL_EDITOR && Editor.Message.request("scene", "soft-reload");
});
else comp.spriteFrame = null;
break;
@@ -438,7 +433,7 @@ export default class UIState extends Component {
* 有记录:更新状态当前记录
* 无记录:保存当前状态,并在其他状态上保存默认的状态
*/
private recordBeforeStateChange(node: Node) {
private recordBeforeStateChange(node: cc.Node) {
const defaultNodeState = this._defaultNodeState.get(node.uuid)!;
// 新增的节点记录到 _defaultNodeState
@@ -469,15 +464,17 @@ export default class UIState extends Component {
});
if (!isModify){
if (defaultNodeState.active !== node.active || defaultNodeState.x!== node.position.x ||
defaultNodeState.y!== node.position.y|| defaultNodeState.angle !== node.angle ||
defaultNodeState.scaleX!== node.scale.x || defaultNodeState.scaleY!== node.scale.y)
if (defaultNodeState.active !== node.active || defaultNodeState.x!== node.x ||
defaultNodeState.y!== node.y|| defaultNodeState.angle !== node.angle ||
defaultNodeState.scaleX!== node.scaleX || defaultNodeState.scaleY!== node.scaleY ||
defaultNodeState.color !== node.color.toHEX())
isModify = true;
}
if (!isModify)
//@ts-ignore
// 检查节点是否有增加或修改
isModify = node.components.some(component =>{
isModify = node._components.some(component =>{
// 不在 COMP_ATTR_RECORD 里的组件不记录
if (!this.isNeedRecordComp(component)) return false;
@@ -489,10 +486,11 @@ export default class UIState extends Component {
const compAttrRecord = defaultNodeState[compName]!;
return Object.keys(compAttrRecord).some(key => {
switch(key){
case "color":
return (compAttrRecord as any)[key] !== ((component as any)[key] as Color).toHEX();
// case "color":
// return (compAttrRecord as any)[key] !== ((component as any)[key] as cc.Color).toHEX();
case "spriteFrame":
return (compAttrRecord as any)[key] !== ((component as any)[key] as SpriteFrame).uuid;
//@ts-ignore
return (compAttrRecord as any)[key] !== ((component as any)[key] as cc.SpriteFrame)._uuid;
default:
if ((compAttrRecord as any)[key] !== (component as any)[key])
return true;
@@ -524,7 +522,7 @@ export default class UIState extends Component {
* @param component
* @returns
*/
private isNeedRecordComp(component: Component): boolean{
private isNeedRecordComp(component: cc.Component): boolean{
let isRegister = false;
let compProto = (component as any).__proto__;
while(compProto){
@@ -543,7 +541,7 @@ export default class UIState extends Component {
* @param component
* @returns 一个字符串数组,包含需要记录的组件
*/
private getNeedRecordComps(component:Component):string[]{
private getNeedRecordComps(component:cc.Component):string[]{
const ret = [];
let compProto = (component as any).__proto__;
while(compProto){
@@ -559,18 +557,18 @@ export default class UIState extends Component {
* @param node
* @param func
*/
private walkNodeWithSubUIState(node: Node, func: (target: Node) => void) {
private walkNodeWithSubUIState(node: cc.Node, func: (target: cc._BaseNode) => void) {
let skipUuid = "";
node.walk(
child => {
if (skipUuid) return;
// if (child === node) return;
if (child.getComponent(RichText)) {
if (child.getComponent(cc.RichText)) {
skipUuid = child.uuid;
}
func(child);
},
(child: Node) => {
(child: cc.Node) => {
if (skipUuid && skipUuid === child.uuid) {
skipUuid = "";
}
@@ -578,18 +576,18 @@ export default class UIState extends Component {
);
}
private walkNode(node: Node, func: (target: Node) => void) {
private walkNode(node: cc.Node, func: (target: cc._BaseNode) => void) {
let skipUuid = "";
node.walk(
child => {
if (skipUuid) return;
// if (child === node) return;
if (child.getComponent(RichText) || (child !== node && child.getComponent(UIState))) {
if (child.getComponent(cc.RichText) || (child !== node && child.getComponent(UIState))) {
skipUuid = child.uuid;
}
func(child);
},
(child: Node) => {
(child: cc.Node) => {
if (skipUuid && skipUuid === child.uuid) {
skipUuid = "";
}
@@ -627,7 +625,7 @@ const UIStateDecorator = function (ctr: Function) {
div.style.zIndex = "99999";
div.style.borderRadius = "calc(var(--size-normal-radius) * 2px)";
div.style.boxShadow = "inset 0 0 0 calc(var(--size-normal-border) * 1px) var(--color-default-border-normal)";
document.getElementById("GameDiv")!.append(div);
document.getElementById("scene").shadowRoot.append(div);
return div;
};
@@ -648,7 +646,7 @@ const UIStateDecorator = function (ctr: Function) {
if (!node) return;
Editor.Message.send("uistate-inspector", "record-uuid", uiState!.uuid);
// Editor.Message.send("uistate-inspector", "record-uuid", uiState!.uuid);
targetElement.innerHTML = `<span style="font-size:12px;color:#888">UIState</span> <br/> ${node.name} <br/> state: ${
uiState!.states[uiState!.state]

View File

@@ -1,9 +1,10 @@
{
"ver": "4.0.23",
"importer": "typescript",
"imported": true,
"ver": "1.1.0",
"uuid": "ec297f87-5b1e-4f05-84ac-867a55fc4304",
"files": [],
"subMetas": {},
"userData": {}
}
"importer": "typescript",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@@ -1,12 +1,13 @@
{
"ver": "1.1.0",
"importer": "directory",
"imported": true,
"uuid": "0185c6e0-48fc-45f5-827b-2c51e01f63f7",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}
"ver": "1.1.3",
"uuid": "0fcff30f-6b31-4903-8c6b-5bd7fd9eef53",
"importer": "folder",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}

View File

@@ -1,134 +1,38 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"ver": "2.3.7",
"uuid": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0",
"files": [
".json",
".png"
],
"importer": "image",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 709,
"height": 395,
"platformSettings": {},
"subMetas": {
"6c48a": {
"importer": "texture",
"ljcz_img_004": {
"ver": "1.0.6",
"uuid": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0@6c48a",
"displayName": "ljcz_img_004",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0@f9941",
"displayName": "ljcz_img_004",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 709,
"height": 395,
"rawWidth": 709,
"rawHeight": 395,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-354.5,
-197.5,
0,
354.5,
-197.5,
0,
-354.5,
197.5,
0,
354.5,
197.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
395,
709,
395,
0,
0,
709,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-354.5,
-197.5,
0
],
"maxPos": [
354.5,
197.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"importer": "texture",
"rawTextureUuid": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 709,
"height": 395,
"rawWidth": 709,
"rawHeight": 395,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "7c56ab6d-27a1-4557-bf3c-907ab88ddae0@f9941"
}
}
}

View File

@@ -1,134 +1,38 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"ver": "2.3.7",
"uuid": "475bdcef-71c8-422c-9ac0-76197650e12b",
"files": [
".jpg",
".json"
],
"importer": "image",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 1560,
"platformSettings": {},
"subMetas": {
"6c48a": {
"importer": "texture",
"ly_bg_004": {
"ver": "1.0.6",
"uuid": "475bdcef-71c8-422c-9ac0-76197650e12b@6c48a",
"displayName": "ly_bg_004",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "475bdcef-71c8-422c-9ac0-76197650e12b",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "475bdcef-71c8-422c-9ac0-76197650e12b@f9941",
"displayName": "ly_bg_004",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 1560,
"rawWidth": 720,
"rawHeight": 1560,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-360,
-780,
0,
360,
-780,
0,
-360,
780,
0,
360,
780,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1560,
720,
1560,
0,
0,
720,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-360,
-780,
0
],
"maxPos": [
360,
780,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "475bdcef-71c8-422c-9ac0-76197650e12b@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"importer": "texture",
"rawTextureUuid": "475bdcef-71c8-422c-9ac0-76197650e12b",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 1560,
"rawWidth": 720,
"rawHeight": 1560,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": false,
"redirect": "475bdcef-71c8-422c-9ac0-76197650e12b@f9941"
}
}
}

View File

@@ -1,134 +1,38 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"ver": "2.3.7",
"uuid": "88b7887e-b33d-40bb-9eb0-76fd4b99feca",
"files": [
".json",
".png"
],
"importer": "image",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 62,
"height": 34,
"platformSettings": {},
"subMetas": {
"6c48a": {
"importer": "texture",
"mkxx_img_038": {
"ver": "1.0.6",
"uuid": "88b7887e-b33d-40bb-9eb0-76fd4b99feca@6c48a",
"displayName": "mkxx_img_038",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "88b7887e-b33d-40bb-9eb0-76fd4b99feca",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "88b7887e-b33d-40bb-9eb0-76fd4b99feca@f9941",
"displayName": "mkxx_img_038",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 62,
"height": 34,
"rawWidth": 62,
"rawHeight": 34,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-31,
-17,
0,
31,
-17,
0,
-31,
17,
0,
31,
17,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
34,
62,
34,
0,
0,
62,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-31,
-17,
0
],
"maxPos": [
31,
17,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "88b7887e-b33d-40bb-9eb0-76fd4b99feca@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"importer": "texture",
"rawTextureUuid": "88b7887e-b33d-40bb-9eb0-76fd4b99feca",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 62,
"height": 34,
"rawWidth": 62,
"rawHeight": 34,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "88b7887e-b33d-40bb-9eb0-76fd4b99feca@f9941"
}
}
}

View File

@@ -1,134 +1,38 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"ver": "2.3.7",
"uuid": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3",
"files": [
".jpg",
".json"
],
"importer": "image",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 720,
"height": 1560,
"platformSettings": {},
"subMetas": {
"6c48a": {
"importer": "texture",
"ty_bg_003": {
"ver": "1.0.6",
"uuid": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3@6c48a",
"displayName": "ty_bg_003",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3@f9941",
"displayName": "ty_bg_003",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 1560,
"rawWidth": 720,
"rawHeight": 1560,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-360,
-780,
0,
360,
-780,
0,
-360,
780,
0,
360,
780,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1560,
720,
1560,
0,
0,
720,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-360,
-780,
0
],
"maxPos": [
360,
780,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"importer": "texture",
"rawTextureUuid": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 720,
"height": 1560,
"rawWidth": 720,
"rawHeight": 1560,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": false,
"redirect": "bde4de98-18d7-47fa-ae16-b5c0651b5ab3@f9941"
}
}
}

View File

@@ -1,134 +1,38 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"ver": "2.3.7",
"uuid": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f",
"files": [
".json",
".png"
],
"importer": "image",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 216,
"height": 76,
"platformSettings": {},
"subMetas": {
"6c48a": {
"importer": "texture",
"ty_btn_036": {
"ver": "1.0.6",
"uuid": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f@6c48a",
"displayName": "ty_btn_036",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f@f9941",
"displayName": "ty_btn_036",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 216,
"height": 76,
"rawWidth": 216,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-108,
-38,
0,
108,
-38,
0,
-108,
38,
0,
108,
38,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
76,
216,
76,
0,
0,
216,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-108,
-38,
0
],
"maxPos": [
108,
38,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"importer": "texture",
"rawTextureUuid": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 216,
"height": 76,
"rawWidth": 216,
"rawHeight": 76,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "53ca0b26-dfd7-48f5-b7cb-579e1220e44f@f9941"
}
}
}

View File

@@ -1,134 +1,38 @@
{
"ver": "1.0.25",
"importer": "image",
"imported": true,
"ver": "2.3.7",
"uuid": "0591e33d-d09b-45e9-8f83-b0c645ce8dac",
"files": [
".json",
".png"
],
"importer": "image",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 163,
"height": 58,
"platformSettings": {},
"subMetas": {
"6c48a": {
"importer": "texture",
"ty_btn_037": {
"ver": "1.0.6",
"uuid": "0591e33d-d09b-45e9-8f83-b0c645ce8dac@6c48a",
"displayName": "ty_btn_037",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "0591e33d-d09b-45e9-8f83-b0c645ce8dac",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "0591e33d-d09b-45e9-8f83-b0c645ce8dac@f9941",
"displayName": "ty_btn_037",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 163,
"height": 58,
"rawWidth": 163,
"rawHeight": 58,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-81.5,
-29,
0,
81.5,
-29,
0,
-81.5,
29,
0,
81.5,
29,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
58,
163,
58,
0,
0,
163,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-81.5,
-29,
0
],
"maxPos": [
81.5,
29,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "0591e33d-d09b-45e9-8f83-b0c645ce8dac@6c48a",
"atlasUuid": ""
},
"ver": "1.0.11",
"imported": true,
"files": [
".json"
],
"importer": "texture",
"rawTextureUuid": "0591e33d-d09b-45e9-8f83-b0c645ce8dac",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 163,
"height": 58,
"rawWidth": 163,
"rawHeight": 58,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": true,
"redirect": "0591e33d-d09b-45e9-8f83-b0c645ce8dac@f9941"
}
}
}