Commit 790d2675 authored by Tt's avatar Tt

Merge branch 'master' of http://vcs.ireadabc.com/template/OP32_PLUS into master

parents baed7922 b3b1d77a
No preview for this file type
{ {"ver":"1.1.2","uuid":"efac53ec-d7b3-4ce9-aa78-c5e169cfd7c6","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
"ver": "1.1.2", \ No newline at end of file
"uuid": "9d834bd7-e1d9-4d35-a8cb-bf9b71975999",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "5e70cc6c-5cab-4aea-88fd-57e1c2b69524", "uuid": "273d6e3e-ff77-47ae-86b1-d95f4f23f029",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "21bd48ea-5354-4b00-8787-47f4837fc18c", "uuid": "6fc67b4c-90b6-4b22-9394-e73fb41ccab7",
"downloadMode": 0, "downloadMode": 0,
"duration": 7.74, "duration": 7.74,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "bc476d86-24bb-4a43-8ad8-ed61eab8aa22", "uuid": "3f5c6c0c-a96e-4238-8647-f306100ead59",
"downloadMode": 0, "downloadMode": 0,
"duration": 10.944, "duration": 10.944,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "18995ceb-a004-43e4-9e72-8a2479285a12", "uuid": "25918de8-5a61-40c9-b82d-97e6fa9e265c",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.365714, "duration": 0.365714,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "11af4413-4719-4691-b519-76e7fcff0cb3", "uuid": "b27d720c-9bce-4637-aeeb-14efddd4fab5",
"downloadMode": 0, "downloadMode": 0,
"duration": 1.044898, "duration": 1.044898,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "e48eac5e-262e-4bd2-aa38-013826672b4a", "uuid": "fc198c63-c47f-4526-afcd-ef05db05bdf9",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.287347, "duration": 0.287347,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "8508338b-65c8-47c4-a5b4-c99b7b9743b1", "uuid": "6b9fea5d-a8bd-4db3-b173-10e139b8e386",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.365714, "duration": 0.365714,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "c8561182-0c7f-4dc8-927d-c22e62f491f0", "uuid": "2dbef099-7245-4e06-ae57-a75a4a3adaad",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.966531, "duration": 0.966531,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "90c6874e-7191-4ef2-8a8c-604b0ccc156b", "uuid": "aef356e3-bb9b-4a25-a23b-5ed189e3071e",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.626939, "duration": 0.626939,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "b89d8804-679f-4a31-8256-32bec5d6b7b0", "uuid": "3e8bbcdb-5159-4cc9-9264-437b5aa4de49",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.168, "duration": 0.168,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "2.0.1", "ver": "2.0.1",
"uuid": "29dddda6-0ed0-4a1f-8f76-2882687dc808", "uuid": "f09670c7-cacc-4240-8316-06b2eb6a420c",
"downloadMode": 0, "downloadMode": 0,
"duration": 0.39185, "duration": 0.39185,
"subMetas": {} "subMetas": {}
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "7365e85f-b587-4044-9f4a-9e57d2f3389a", "uuid": "2522a1d6-96e5-43e7-b7ce-4712c0438973",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "2afba682-b3cc-46f6-921b-d94fc2f3db9e", "uuid": "c30b5837-9162-4646-8bed-ac74675a8f13",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "2a47d36c-abe8-47e9-8758-b75d84aa1673", "uuid": "cbbf7c67-bd1e-470b-80d2-cf95f78e140f",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "a1f85bde-1c83-4c1d-b825-37c67d5f5cfe", "uuid": "f4d2ae36-123b-45f5-b1df-19e578d362a7",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "728c0c09-ecc5-4269-b824-26ece32d9e8f", "uuid": "0ff6f582-e20e-4dde-a389-b918cd4f9104",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"mao_tex": { "mao_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "fe6eb984-c7ab-4030-bdc8-60255ec52f08", "uuid": "7b274c7d-3199-4baf-8176-c64c3b3adaa6",
"rawTextureUuid": "728c0c09-ecc5-4269-b824-26ece32d9e8f", "rawTextureUuid": "0ff6f582-e20e-4dde-a389-b918cd4f9104",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "5a44e0a1-d6ac-4454-8fa9-97b3e61ea131", "uuid": "38330661-919c-4f3f-b7e6-8e28b44ca7e8",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "cf5b7ddc-4f45-44fa-9959-3edaa8bd054f", "uuid": "e9cf20bb-d082-4c80-b1c3-31e408a55f3e",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "1.0.1", "ver": "1.0.1",
"uuid": "e8934a07-150f-4f62-8876-22ea823dc113", "uuid": "900c3176-d652-476e-ad4a-9b4e4376e427",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "43d4e300-f63b-40c4-ba7d-3b2409b1a101", "uuid": "dd2ea06b-95f0-4898-aec8-9bd614379160",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"烟花_tex": { "烟花_tex": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "fd40b11c-7ec8-4015-b500-c1d9d12e035f", "uuid": "e7a221fd-9951-4213-8927-e57517df28d9",
"rawTextureUuid": "43d4e300-f63b-40c4-ba7d-3b2409b1a101", "rawTextureUuid": "dd2ea06b-95f0-4898-aec8-9bd614379160",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "90232d46-3bf5-4294-85d2-181fe6e2ebf9", "uuid": "5f94b03e-e46c-4625-b7a9-1c715920cf34",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "d5f63b05-0201-428e-a578-4a52a688266d", "uuid": "272c3686-61c6-48d7-bb61-fbd4e1312795",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
export as namespace Play;
declare class EventEmitter<T> {
on<K extends keyof T>(event: K, listener: (payload: T[K]) => any): this;
on(evt: string, listener: Function): this;
once<K extends keyof T>(event: K, listener: (payload: T[K]) => any): this;
once(evt: string, listener: Function): this;
off<K extends keyof T>(evt: K | string, listener?: Function): this;
emit<K extends keyof T>(evt: K | string, ...args: any[]): boolean;
}
export enum Event {
/** 断开连接 */
DISCONNECTED = 'disconnected',
/** 加入到大厅 */
LOBBY_JOINED = 'lobbyJoined',
/** 大厅房间列表变化 */
LOBBY_ROOM_LIST_UPDATED = 'lobbyRoomListUpdate',
/** 有新玩家加入房间 */
PLAYER_ROOM_JOINED = 'newPlayerJoinedRoom',
/** 有玩家离开房间 */
PLAYER_ROOM_LEFT = 'playerLeftRoom',
/** 玩家活跃属性变化 */
PLAYER_ACTIVITY_CHANGED = 'playerActivityChanged',
/** 主机变更 */
MASTER_SWITCHED = 'masterSwitched',
/** 离开房间 */
ROOM_LEFT = 'roomLeft',
/** 被踢出房间 */
ROOM_KICKED = 'roomKicked',
/** 房间系统属性变化 */
ROOM_SYSTEM_PROPERTIES_CHANGED = 'roomSystemPropertiesChanged',
/** 房间自定义属性变化 */
ROOM_CUSTOM_PROPERTIES_CHANGED = 'roomCustomPropertiesChanged',
/** 玩家自定义属性变化 */
PLAYER_CUSTOM_PROPERTIES_CHANGED = 'playerCustomPropertiesChanged',
/** 自定义事件 */
CUSTOM_EVENT = 'customEvent',
/** 错误事件 */
ERROR = 'error',
}
export enum ReceiverGroup {
/** 其他人(除了自己之外的所有人) */
Others,
/** 所有人(包括自己) */
All,
/** 主机客户端 */
MasterClient,
}
interface CustomProperties {
[key: string]: any;
}
interface CustomEventData {
[key: string]: any;
}
interface ErrorEvent {
code: number;
detail: string;
}
declare interface PlayEvent {
connected: void;
connectFailed: ErrorEvent;
disconnected: void;
lobbyJoined: void;
lobbyLeft: void;
lobbyRoomListUpdate: void;
roomCreated: void;
roomCreateFailed: ErrorEvent;
roomJoined: void;
roomJoinFailed: ErrorEvent;
newPlayerJoinedRoom: {
newPlayer: Player;
};
playerLeftRoom: {
leftPlayer: Player;
};
playerActivityChanged: {
player: Player;
};
masterSwitched: {
newMaster: Player;
};
roomLeft: void;
roomKicked: {
code: number;
msg: string;
};
roomCustomPropertiesChanged: {
changedProps: CustomProperties;
};
roomSystemPropertiesChanged: {
changedProps: CustomProperties;
};
playerCustomPropertiesChanged: {
player: Player;
changedProps: CustomProperties;
};
customEvent: {
eventId: number;
eventData: CustomEventData;
senderId: number;
};
error: ErrorEvent;
}
export class LobbyRoom {
readonly roomName: string;
readonly maxPlayerCount: number;
readonly expectedUserIds: string[];
readonly emptyRoomTtl: number;
readonly playerTtl: number;
readonly playerCount: number;
readonly customRoomPropertiesForLobby: CustomProperties;
}
export class Player {
readonly userId: string;
readonly actorId: number;
readonly isLocal: boolean;
readonly isMaster: boolean;
readonly isActive: boolean;
setCustomProperties(
properties: CustomProperties,
opts?: {
expectedValues?: CustomProperties;
}
): Promise<void>;
readonly customProperties: CustomProperties;
}
export class Room {
readonly name: string;
readonly open: boolean;
readonly visible: boolean;
readonly maxPlayerCount: number;
readonly master: Player;
readonly masterId: number;
readonly expectedUserIds: string[];
readonly playerList: Player[];
getPlayer(actorId: number): Player;
setCustomProperties(
properties: CustomProperties,
opts?: {
expectedValues?: CustomProperties;
}
): Promise<void>;
readonly customProperties: CustomProperties;
setOpen(open: boolean): Promise<void>;
setVisible(visible: boolean): Promise<void>;
setRoomMaxPlayerCount(count: number): Promise<void>;
setRoomExpectedUserIds(expectedUserIds: string[]): Promise<void>;
clearRoomExpectedUserIds(): Promise<void>;
addRoomExpectedUserIds(expectedUserIds: string[]): Promise<void>;
removeRoomExpectedUserIds(expectedUserIds: string[]): Promise<void>;
setMaster(newMasterId: number): Promise<void>;
sendEvent(
eventId: number,
eventData?: CustomEventData,
options?: {
receiverGroup?: ReceiverGroup;
targetActorIds?: number[];
}
): Promise<void>;
kickPlayer(
actorId: number,
opts?: {
code?: number;
msg?: string;
}
): Promise<void>;
leave(): Promise<void>;
}
export class Client extends EventEmitter<PlayEvent> {
readonly room: Room;
readonly player: Player;
readonly lobbyRoomList: LobbyRoom[];
userId: string;
constructor(opts: {
appId: string;
appKey: string;
userId: string;
ssl?: boolean;
feature?: string;
gameVersion?: string;
playServer?: string;
});
connect(): Promise<Client>;
reconnect(): Promise<Client>;
reconnectAndRejoin(): Promise<Room>;
close(): Promise<void>;
joinLobby(): Promise<void>;
leaveLobby(): Promise<void>;
createRoom(opts?: {
roomName?: string;
roomOptions?: Object;
expectedUserIds?: string[];
}): Promise<Room>;
joinRoom(
roomName: string,
opts?: {
expectedUserIds?: string[];
}
): Promise<Room>;
rejoinRoom(roomName: string): Promise<Room>;
joinOrCreateRoom(
roomName: string,
opts?: {
roomOptions?: Object;
expectedUserIds: string[];
}
): Promise<Room>;
joinRandomRoom(opts?: {
matchProperties?: Object;
expectedUserIds?: string[];
}): Promise<Room>;
matchRandom(
piggybackPeerId: string,
opts?: { matchProperties?: Object; expectedUserIds?: string[] }
): Promise<LobbyRoom>;
setRoomOpen(open: boolean): Promise<void>;
setRoomVisible(visible: boolean): Promise<void>;
setRoomMaxPlayerCount(count: number): Promise<void>;
setRoomExpectedUserIds(expectedUserIds: string[]): Promise<void>;
clearRoomExpectedUserIds(): Promise<void>;
addRoomExpectedUserIds(expectedUserIds: string[]): Promise<void>;
removeRoomExpectedUserIds(expectedUserIds: string[]): Promise<void>;
setMaster(newMasterId: number): Promise<void>;
sendEvent(
eventId: number,
eventData?: CustomEventData,
options?: {
receiverGroup?: ReceiverGroup;
targetActorIds?: number[];
}
): Promise<void>;
leaveRoom(): Promise<void>;
kickPlayer(
actorId: number,
opts?: {
code?: number;
msg?: string;
}
): Promise<void>;
pauseMessageQueue(): void;
resumeMessageQueue(): void;
}
export enum CreateRoomFlag {
FixedMaster = 1,
MasterUpdateRoomProperties = 2,
}
export function setAdapters(newAdapters: { WebSocket: Function }): void;
export enum LogLevel {
Debug = 'Debug',
Warn = 'Warn',
Error = 'Error',
}
export function setLogger(logger: {
Debug: (...args: any[]) => any;
Warn: (...args: any[]) => any;
Error: (...args: any[]) => any;
}): void;
export enum PlayErrorCode {
OPEN_WEBSOCKET_ERROR = 10001,
SEND_MESSAGE_STATE_ERROR = 10002,
}
export function registerType<T>(
type: T,
typeId: number,
serializeMethod: (obj: T) => Uint8Array,
deserializeMethod: (bytes: Uint8Array) => T
): void;
export function serializeObject(obj: Object): Uint8Array;
export function deserializeObject(bytes: Uint8Array): Object;
{
"ver": "2.0.0",
"uuid": "ad46b94c-5792-4c4c-8ea4-cd8f67d25be3",
"subMetas": {}
}
\ No newline at end of file
This diff is collapsed.
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "92c53b26-dc66-4a71-9e9b-862df5cb12b5", "uuid": "84a68e2c-b3a8-4eb0-99cb-40978e20545e",
"isPlugin": true, "isPlugin": true,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
"loadPluginInEditor": false, "loadPluginInEditor": true,
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "fa8447b2-76c3-4782-b6fb-7ede78f97821", "uuid": "e174bbed-6527-4944-be15-ee830bdfcafa",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "9efc7340-8029-459d-b65b-b499c00dbdc9", "uuid": "c1ec2bef-b10b-489b-8c2b-3a63537938b0",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "07062c44-fcd3-4885-b022-82795021d8aa" "__uuid__": "4bfcc7ec-8061-4a69-96a5-7ca3a1eaa8c9"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "a1GjpGzJdD65Biy/y88Sq8", "fileId": "a1GjpGzJdD65Biy/y88Sq8",
"sync": false "sync": false
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "afaLDsGNdF8rTS2GfZ3h3s", "fileId": "afaLDsGNdF8rTS2GfZ3h3s",
"sync": false "sync": false
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
"_lineHeight": 50, "_lineHeight": 50,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "ab2eabc7-d058-4953-b059-f5bf1e92cd97" "__uuid__": "e3274e98-04f1-4303-87ce-7a2db017a5ef"
}, },
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
...@@ -572,7 +572,7 @@ ...@@ -572,7 +572,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "8bJSQRyJRA0Jkcc+8GY5Do", "fileId": "8bJSQRyJRA0Jkcc+8GY5Do",
"sync": false "sync": false
...@@ -734,7 +734,7 @@ ...@@ -734,7 +734,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "263d45dc-126c-473f-91ee-dbe6c4376998" "__uuid__": "6d50e09a-4c1e-49f3-acf7-a310867b7b25"
}, },
"_type": 2, "_type": 2,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -783,7 +783,7 @@ ...@@ -783,7 +783,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "1coIwLNVZGEZEzF3dItpuK", "fileId": "1coIwLNVZGEZEzF3dItpuK",
"sync": false "sync": false
...@@ -804,7 +804,7 @@ ...@@ -804,7 +804,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "68363e4b-d647-433b-84d7-59d8746e4650" "__uuid__": "34e04d9c-302e-4b2b-91f8-8e87eebfd81d"
}, },
"_type": 1, "_type": 1,
"_sizeMode": 0, "_sizeMode": 0,
...@@ -870,7 +870,7 @@ ...@@ -870,7 +870,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "55nJZ9Uk5CArtjDKXyL9xa", "fileId": "55nJZ9Uk5CArtjDKXyL9xa",
"sync": false "sync": false
...@@ -1031,7 +1031,7 @@ ...@@ -1031,7 +1031,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "9575faa1-38cc-4b39-a866-77af4159e31a" "__uuid__": "b3d058a8-a0f4-430e-b481-a25b8ffd5b8a"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1053,7 +1053,7 @@ ...@@ -1053,7 +1053,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "eauguU1wtOrbhO0xPWGhAt", "fileId": "eauguU1wtOrbhO0xPWGhAt",
"sync": false "sync": false
...@@ -1228,7 +1228,7 @@ ...@@ -1228,7 +1228,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "60BI1U1b9OoZRIDunWHW0a", "fileId": "60BI1U1b9OoZRIDunWHW0a",
"sync": false "sync": false
...@@ -1247,7 +1247,7 @@ ...@@ -1247,7 +1247,7 @@
} }
], ],
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "9575faa1-38cc-4b39-a866-77af4159e31a" "__uuid__": "b3d058a8-a0f4-430e-b481-a25b8ffd5b8a"
}, },
"_type": 2, "_type": 2,
"_segments": 64, "_segments": 64,
...@@ -1261,7 +1261,7 @@ ...@@ -1261,7 +1261,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "5cd2Jos1dOS46NiARvN6qg", "fileId": "5cd2Jos1dOS46NiARvN6qg",
"sync": false "sync": false
...@@ -1346,7 +1346,7 @@ ...@@ -1346,7 +1346,7 @@
"_srcBlendFactor": 1, "_srcBlendFactor": 1,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "5f88dce6-0f6c-458b-a4ec-813355242b80" "__uuid__": "232bac14-2371-4d54-9a74-2c9fa7480b2e"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1368,7 +1368,7 @@ ...@@ -1368,7 +1368,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "8aSOlD3bNAYbWZEGUBpU7X", "fileId": "8aSOlD3bNAYbWZEGUBpU7X",
"sync": false "sync": false
...@@ -1453,7 +1453,7 @@ ...@@ -1453,7 +1453,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "d4cb0a95-fbff-4016-85c6-a22fea998c9a" "__uuid__": "b85a88ea-1804-4fa9-9463-215d94c5b9cd"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -1475,7 +1475,7 @@ ...@@ -1475,7 +1475,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "ddBCn3FshPQ4V9KDNSlBfr", "fileId": "ddBCn3FshPQ4V9KDNSlBfr",
"sync": false "sync": false
...@@ -1565,7 +1565,7 @@ ...@@ -1565,7 +1565,7 @@
"_lineHeight": 50, "_lineHeight": 50,
"_enableWrapText": true, "_enableWrapText": true,
"_N$file": { "_N$file": {
"__uuid__": "0044eb89-185b-491f-9236-f220e4f6c5f3" "__uuid__": "a5f3d0cf-b59e-4008-ad1a-d93ce8c93358"
}, },
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
...@@ -1585,7 +1585,7 @@ ...@@ -1585,7 +1585,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "6anh4wjaRPMqyS2LhXSx4j", "fileId": "6anh4wjaRPMqyS2LhXSx4j",
"sync": false "sync": false
...@@ -1596,7 +1596,7 @@ ...@@ -1596,7 +1596,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "f9qrJyDh5P1oErn3FfsNL7", "fileId": "f9qrJyDh5P1oErn3FfsNL7",
"sync": false "sync": false
...@@ -1629,7 +1629,7 @@ ...@@ -1629,7 +1629,7 @@
"_id": "" "_id": ""
}, },
{ {
"__type__": "c3eb9OlsTtBaq5mOaSzVbSf", "__type__": "c6ab9J4C8hJc4BV3V00nD9F",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -1644,7 +1644,7 @@ ...@@ -1644,7 +1644,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "db9eb171-431b-433b-8475-956aa3d3a00e" "__uuid__": "55e29161-fe28-4926-ae15-d5bcb96db4a2"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
......
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "db9eb171-431b-433b-8475-956aa3d3a00e", "uuid": "55e29161-fe28-4926-ae15-d5bcb96db4a2",
"optimizationPolicy": "SINGLE_INSTANCE", "optimizationPolicy": "SINGLE_INSTANCE",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "2737b47e-eb40-4d5a-898a-c8ae16868051", "uuid": "c6ab9278-0bc8-4973-8055-dd5d349c3f45",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "211fe854-857c-48a2-a913-281a04dc25f4", "uuid": "cd8486e4-ad35-4491-af28-93bb537a7bf5",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "0044eb89-185b-491f-9236-f220e4f6c5f3", "uuid": "a5f3d0cf-b59e-4008-ad1a-d93ce8c93358",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "45e682bb-fec9-4cb0-94d7-1efe324342a3", "uuid": "ab229015-146a-4121-ac25-5d8f9c747ee7",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg": { "bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "07062c44-fcd3-4885-b022-82795021d8aa", "uuid": "4bfcc7ec-8061-4a69-96a5-7ca3a1eaa8c9",
"rawTextureUuid": "45e682bb-fec9-4cb0-94d7-1efe324342a3", "rawTextureUuid": "ab229015-146a-4121-ac25-5d8f9c747ee7",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.0", "ver": "1.1.0",
"uuid": "ab2eabc7-d058-4953-b059-f5bf1e92cd97", "uuid": "e3274e98-04f1-4303-87ce-7a2db017a5ef",
"subMetas": {} "subMetas": {}
} }
\ No newline at end of file
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "b4032228-caf2-4797-914a-3850ef793e5e", "uuid": "a3866cec-5510-4c1d-a2ff-1d9cfcf03949",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"head_4": { "head_4": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "290fd037-af00-409b-b6ee-4beff8b1e052", "uuid": "3acbf375-be9e-4504-af02-f5bdc25b3c50",
"rawTextureUuid": "b4032228-caf2-4797-914a-3850ef793e5e", "rawTextureUuid": "a3866cec-5510-4c1d-a2ff-1d9cfcf03949",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "75c55a82-7c6b-438c-90c4-dad7bd32ea81", "uuid": "e5ea363f-0932-401a-92f9-221853dd6ac1",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "point", "filterMode": "point",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"progress_bar": { "progress_bar": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "263d45dc-126c-473f-91ee-dbe6c4376998", "uuid": "6d50e09a-4c1e-49f3-acf7-a310867b7b25",
"rawTextureUuid": "75c55a82-7c6b-438c-90c4-dad7bd32ea81", "rawTextureUuid": "e5ea363f-0932-401a-92f9-221853dd6ac1",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "6c874b91-3f08-4ea2-9513-53b5d0dcc9bd", "uuid": "a91e44a1-fcfb-4146-a656-c6f062231a32",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "point", "filterMode": "point",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"progress_bg": { "progress_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "68363e4b-d647-433b-84d7-59d8746e4650", "uuid": "34e04d9c-302e-4b2b-91f8-8e87eebfd81d",
"rawTextureUuid": "6c874b91-3f08-4ea2-9513-53b5d0dcc9bd", "rawTextureUuid": "a91e44a1-fcfb-4146-a656-c6f062231a32",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "369788e1-1b79-43e2-ac3c-1c29b8c0403b", "uuid": "96246b0b-9278-4097-b3df-cd422571ae27",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"progress_dot": { "progress_dot": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "25cdbedf-0393-42d6-9b28-b49540954922", "uuid": "cbf8dc40-3fd9-4239-b662-ebbb46f58ef6",
"rawTextureUuid": "369788e1-1b79-43e2-ac3c-1c29b8c0403b", "rawTextureUuid": "96246b0b-9278-4097-b3df-cd422571ae27",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "50de3220-b6ae-4718-b589-5cc837cf476d", "uuid": "36d3d7f6-68c0-4a6d-ad4d-2146063ee485",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"tx_01": { "tx_01": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "5f88dce6-0f6c-458b-a4ec-813355242b80", "uuid": "232bac14-2371-4d54-9a74-2c9fa7480b2e",
"rawTextureUuid": "50de3220-b6ae-4718-b589-5cc837cf476d", "rawTextureUuid": "36d3d7f6-68c0-4a6d-ad4d-2146063ee485",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "9890823a-ddef-4703-847a-11b9f1a96022", "uuid": "ae20cb61-235c-485c-a429-88fbdd42f968",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"tx_01zw": { "tx_01zw": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "9575faa1-38cc-4b39-a866-77af4159e31a", "uuid": "b3d058a8-a0f4-430e-b481-a25b8ffd5b8a",
"rawTextureUuid": "9890823a-ddef-4703-847a-11b9f1a96022", "rawTextureUuid": "ae20cb61-235c-485c-a429-88fbdd42f968",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "ca6aba3c-97d2-42ea-bd54-0079357085b5", "uuid": "077b0947-fd10-4a7d-a531-7c54176be813",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"tx_xuanzhong": { "tx_xuanzhong": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "d4cb0a95-fbff-4016-85c6-a22fea998c9a", "uuid": "b85a88ea-1804-4fa9-9463-215d94c5b9cd",
"rawTextureUuid": "ca6aba3c-97d2-42ea-bd54-0079357085b5", "rawTextureUuid": "077b0947-fd10-4a7d-a531-7c54176be813",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "cbb83173-9406-429a-81e6-be8ebc11332e", "uuid": "90e1f66a-3bd9-4f6b-babc-1782f56bdb6a",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
cc.Class({
extends: cc.Component,
properties: {
},
start() {
const BtnExit = cc.find('BtnFrame/BtnExit', this.node);
this.buttonOnClick(BtnExit, () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent.onClickExitBtn) {
middleLayerComponent.onClickExitBtn();
}
} else {
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if (window.courseware) {
window.courseware.freeAllOcMethod();
}
var bundle = cc.assetManager.bundles.find((obj) => {
return obj.getSceneInfo('debug_shell');
});
if (bundle) {
cc.director.loadScene("debug_shell", null, null, (err, scene) => { });
} else {
cc.director.loadScene("OXFORDCORE", null, null, (err, scene) => { });
}
}
});
const BtnPlayAgain = cc.find('BtnFrame/BtnPlayAgain', this.node);
this.buttonOnClick(BtnPlayAgain, () => {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
if (middleLayerComponent) {
middleLayerComponent.reloadBundle();
}
} else {
const sceneName = cc.director.getScene().name;
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if (window.courseware) {
window.courseware.freeAllOcMethod();
}
cc.director.loadScene(sceneName, null, null, (err, scene) => { });
}
});
},
buttonOnClick(button, callback, scale = 1.0) {
button.on('click', () => {
if (button['cantClick']) {
return;
}
button['cantClick'] = true;
cc.tween(button)
.to(0.1, { scale: scale * 1.1 })
.to(0.1, { scale: scale })
.call(() => {
button['cantClick'] = false;
callback && callback();
})
.start();
});
}
});
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "c3eb93a5-b13b-416a-ae66-39a4b355b49f", "uuid": "b879043a-eb39-49e4-9849-1d675521c42d",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
cc.Class({
extends: cc.Component,
properties: {
},
start () {
const BtnExit = cc.find('BtnFrame/BtnExit', this.node);
BtnExit.on('click', ()=>{
const middleLayer = cc.find('middleLayer');
cc.game.removePersistRootNode(middleLayer);
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if (window.courseware) {
window.courseware.freeAllOcMethod();
}
cc.director.loadScene("debug_shell", null, null, (err, scene) => {
});
});
const BtnPlayAgain = cc.find('BtnFrame/BtnPlayAgain', this.node);
BtnPlayAgain.on('click', ()=>{
const sceneName = cc.director.getScene().name;
cc.director.getScene().destroy();
cc.audioEngine.stopAll();
if (window.courseware) {
window.courseware.freeAllOcMethod();
}
cc.director.loadScene(sceneName, null, null, (err, scene) => {
});
});
},
});
...@@ -286,7 +286,7 @@ ...@@ -286,7 +286,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "677b3016-4bf7-4a45-943a-ffd89a1ce988" "__uuid__": "eeda0150-a627-49d0-9a7a-0fc5f756ec78"
}, },
"fileId": "a2lcBX6axJcYgWizPAwXJQ", "fileId": "a2lcBX6axJcYgWizPAwXJQ",
"sync": false "sync": false
...@@ -448,7 +448,7 @@ ...@@ -448,7 +448,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "1deddf09-dadf-4efe-8894-97a802f46eed" "__uuid__": "be32eebb-6b22-4efc-b4e9-b6ea44814537"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -565,7 +565,7 @@ ...@@ -565,7 +565,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "677b3016-4bf7-4a45-943a-ffd89a1ce988" "__uuid__": "eeda0150-a627-49d0-9a7a-0fc5f756ec78"
}, },
"fileId": "2dFg2BRxNDIbzNQUJzInwD", "fileId": "2dFg2BRxNDIbzNQUJzInwD",
"sync": false "sync": false
...@@ -656,7 +656,7 @@ ...@@ -656,7 +656,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "df2a81fe-d961-4070-b92f-d8e990ad0bff" "__uuid__": "8cafe7aa-9935-4494-be95-b16d15f90f85"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -773,7 +773,7 @@ ...@@ -773,7 +773,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "677b3016-4bf7-4a45-943a-ffd89a1ce988" "__uuid__": "eeda0150-a627-49d0-9a7a-0fc5f756ec78"
}, },
"fileId": "426YGeaQ1GSqxAl0es/FZ5", "fileId": "426YGeaQ1GSqxAl0es/FZ5",
"sync": false "sync": false
...@@ -794,7 +794,7 @@ ...@@ -794,7 +794,7 @@
"_srcBlendFactor": 770, "_srcBlendFactor": 770,
"_dstBlendFactor": 771, "_dstBlendFactor": 771,
"_spriteFrame": { "_spriteFrame": {
"__uuid__": "e1cc390b-8565-4258-bbf8-1b5682ac0c54" "__uuid__": "b7d2134e-9815-4ba5-b3c4-6298454a2798"
}, },
"_type": 0, "_type": 0,
"_sizeMode": 1, "_sizeMode": 1,
...@@ -816,7 +816,7 @@ ...@@ -816,7 +816,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "677b3016-4bf7-4a45-943a-ffd89a1ce988" "__uuid__": "eeda0150-a627-49d0-9a7a-0fc5f756ec78"
}, },
"fileId": "1bsWjap9JK84XN2hkYfXDb", "fileId": "1bsWjap9JK84XN2hkYfXDb",
"sync": false "sync": false
...@@ -849,7 +849,7 @@ ...@@ -849,7 +849,7 @@
"_id": "" "_id": ""
}, },
{ {
"__type__": "e3096pUeGJMQZWQYTPa/l8n", "__type__": "b8790Q66zlJ5JhJHWdVIcQt",
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
...@@ -864,7 +864,7 @@ ...@@ -864,7 +864,7 @@
"__id__": 1 "__id__": 1
}, },
"asset": { "asset": {
"__uuid__": "677b3016-4bf7-4a45-943a-ffd89a1ce988" "__uuid__": "eeda0150-a627-49d0-9a7a-0fc5f756ec78"
}, },
"fileId": "", "fileId": "",
"sync": false "sync": false
......
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "677b3016-4bf7-4a45-943a-ffd89a1ce988", "uuid": "eeda0150-a627-49d0-9a7a-0fc5f756ec78",
"optimizationPolicy": "AUTO", "optimizationPolicy": "AUTO",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"readonly": false, "readonly": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "7d3ea26a-2479-4c8b-a807-bda0c0a36b4f", "uuid": "258cffe3-4666-47fa-8ee2-5372323dcc3b",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "6c265c19-3b81-4231-aa87-cdfe59eace23", "uuid": "d7dffbe3-129e-4de5-914b-b78624f00fd4",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"BtnExit": { "BtnExit": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "1deddf09-dadf-4efe-8894-97a802f46eed", "uuid": "be32eebb-6b22-4efc-b4e9-b6ea44814537",
"rawTextureUuid": "6c265c19-3b81-4231-aa87-cdfe59eace23", "rawTextureUuid": "d7dffbe3-129e-4de5-914b-b78624f00fd4",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "63f314c5-fcf5-4c51-86c9-9000b507f624", "uuid": "51e40438-5f3d-4513-8ca5-e67577435fa8",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"BtnFrame": { "BtnFrame": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e1cc390b-8565-4258-bbf8-1b5682ac0c54", "uuid": "b7d2134e-9815-4ba5-b3c4-6298454a2798",
"rawTextureUuid": "63f314c5-fcf5-4c51-86c9-9000b507f624", "rawTextureUuid": "51e40438-5f3d-4513-8ca5-e67577435fa8",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "3bcf832e-83b3-478d-bd6d-a99f22842fdb", "uuid": "19d208ae-dbbc-4373-9a19-cf3f08a2f14b",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"BtnPlayAgain": { "BtnPlayAgain": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "df2a81fe-d961-4070-b92f-d8e990ad0bff", "uuid": "8cafe7aa-9935-4494-be95-b16d15f90f85",
"rawTextureUuid": "3bcf832e-83b3-478d-bd6d-a99f22842fdb", "rawTextureUuid": "19d208ae-dbbc-4373-9a19-cf3f08a2f14b",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "2b52c22e-6256-4175-978f-761d7c9b7611", "uuid": "6f87620c-1108-4f38-a534-e16cbbbfa32a",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
This diff is collapsed.
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "0b877858-fc4d-42b8-80cb-6ce767ea34b6", "uuid": "cc99ca0f-cf16-4154-a64b-b19d496e89b5",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
This diff is collapsed.
{ {
"ver": "1.2.9", "ver": "1.2.9",
"uuid": "de3861b2-fc78-4485-9e33-c8c10b0b6de4", "uuid": "b9b057d9-35b9-4a19-8f9a-ae0c230d94b7",
"asyncLoadAssets": false, "asyncLoadAssets": false,
"autoReleaseAssets": false, "autoReleaseAssets": false,
"subMetas": {} "subMetas": {}
......
...@@ -168,14 +168,16 @@ cc.Class({ ...@@ -168,14 +168,16 @@ cc.Class({
this.log("preload"); this.log("preload");
cc.assetManager.loadAny(preloadArr, null, null, (err, data) => { cc.assetManager.loadAny(preloadArr, null, null, (err, data) => {
if (window && window["air"]) { if (window && window["air"]) {
cc.find("Canvas").opacity = 0; // cc.find("Canvas").opacity = 0;
window.air.onCourseInScreen = (next) => { // window.air.onCourseInScreen = (next) => {
cc.find("Canvas").opacity = 255; // cc.find("Canvas").opacity = 255;
this.log("loadEnd1"); // this.log("loadEnd1");
this.loadEnd(); // this.loadEnd();
next(); // next();
}; // };
window.air.hideAirClassLoading(); // window.air.hideAirClassLoading();
this.loadEnd();
window["air"].hideAirClassLoading();
} else { } else {
this.log("loadEnd2"); this.log("loadEnd2");
this.loadEnd(); this.loadEnd();
...@@ -203,9 +205,10 @@ cc.Class({ ...@@ -203,9 +205,10 @@ cc.Class({
async initView() { async initView() {
const loadingLayerBase = cc.find("Canvas/bg/loadingLayerBase"); const loadingLayerBase = cc.find("Canvas/bg/loadingLayerBase");
const loadingLayerNode = cc.instantiate(this.loadingLayerProfab); const loadingLayerNode = cc.instantiate(this.loadingLayerProfab);
loadingLayerNode.name = 'loadingLayerNode';
loadingLayerBase.addChild(loadingLayerNode); loadingLayerBase.addChild(loadingLayerNode);
this.loadingLayer = loadingLayerNode.getComponent("LoadingLayer"); this.loadingLayer = loadingLayerNode.getComponent("OP32_PLUS_LoadingLayer");
this.loadingLayer.setMaxPlayerNumber(5); this.loadingLayer.setMaxPlayerNumber(5);
this.loadingLayer.onLoadFinished(() => { this.loadingLayer.onLoadFinished(() => {
...@@ -276,6 +279,7 @@ cc.Class({ ...@@ -276,6 +279,7 @@ cc.Class({
optionNode.optionData.selected = false; optionNode.optionData.selected = false;
const box = cc.find("Canvas/bg/box"); const box = cc.find("Canvas/bg/box");
console.log('optionNode.on(cc.Node.EventType.TOUCH_START, (event) => {')
optionNode.on(cc.Node.EventType.TOUCH_START, (event) => { optionNode.on(cc.Node.EventType.TOUCH_START, (event) => {
if (optionNode.optionData.selected) { if (optionNode.optionData.selected) {
return; return;
...@@ -295,6 +299,7 @@ cc.Class({ ...@@ -295,6 +299,7 @@ cc.Class({
this.optionJump(optionNode); this.optionJump(optionNode);
this.playAudioByUrl(optionNode.optionData.audio_url); this.playAudioByUrl(optionNode.optionData.audio_url);
}); });
console.log('optionNode.on(cc.Node.EventType.TOUCH_MOVE, (event) => {')
optionNode.on(cc.Node.EventType.TOUCH_MOVE, (event) => { optionNode.on(cc.Node.EventType.TOUCH_MOVE, (event) => {
if (optionNode.optionData.selected) { if (optionNode.optionData.selected) {
return; return;
...@@ -305,6 +310,7 @@ cc.Class({ ...@@ -305,6 +310,7 @@ cc.Class({
optionNode.y = optionNode.y =
optionNode.startPos.y + (location.y - optionNode.startLocation.y); optionNode.startPos.y + (location.y - optionNode.startLocation.y);
}); });
console.log('optionNode.on(cc.Node.EventType.TOUCH_END, (event) => {')
optionNode.on(cc.Node.EventType.TOUCH_END, (event) => { optionNode.on(cc.Node.EventType.TOUCH_END, (event) => {
if (optionNode.optionData.selected) { if (optionNode.optionData.selected) {
return; return;
...@@ -361,6 +367,7 @@ cc.Class({ ...@@ -361,6 +367,7 @@ cc.Class({
initListener() { initListener() {
this.log("initListener"); this.log("initListener");
const btnSubmit = cc.find("Canvas/bg/btnSubmit"); const btnSubmit = cc.find("Canvas/bg/btnSubmit");
console.log('btnSubmit.on("click", () => {');
btnSubmit.on("click", () => { btnSubmit.on("click", () => {
this.optionJump(btnSubmit, 0.05); this.optionJump(btnSubmit, 0.05);
this.playEffect("submit"); this.playEffect("submit");
...@@ -385,6 +392,7 @@ cc.Class({ ...@@ -385,6 +392,7 @@ cc.Class({
}); });
const btnNext = cc.find("Canvas/bg/btnNext"); const btnNext = cc.find("Canvas/bg/btnNext");
console.log('btnNext.on("click", () => {')
btnNext.on("click", () => { btnNext.on("click", () => {
this.optionJump(btnNext, 0.05); this.optionJump(btnNext, 0.05);
}); });
...@@ -400,24 +408,31 @@ cc.Class({ ...@@ -400,24 +408,31 @@ cc.Class({
this.log("initNetworkListener"); this.log("initNetworkListener");
this.networkHelper = new NetworkHelper(); this.networkHelper = new NetworkHelper();
console.log('this.networkHelper.on("playerJoin", (event) => {');
this.networkHelper.on("playerJoin", (event) => { this.networkHelper.on("playerJoin", (event) => {
if (this.server) { if (this.server) {
this.server.onPlayerJoin(event); this.server.onPlayerJoin({ data: { joinPlayerId: event.playerId } });
} }
cc.log("playerJoin" + JSON.stringify(event)); cc.log("playerJoin" + JSON.stringify(event));
}); });
console.log('this.networkHelper.on("playerLeave", (event) => {');
this.networkHelper.on("playerLeave", (event) => { this.networkHelper.on("playerLeave", (event) => {
cc.log("playerLeave" + JSON.stringify(event)); cc.log("playerLeave" + JSON.stringify(event));
}); });
console.log('this.networkHelper.on("playerOffLine", (event) => {');
this.networkHelper.on("playerOffLine", (event) => { this.networkHelper.on("playerOffLine", (event) => {
cc.log("playerOffLine" + JSON.stringify(event)); cc.log("playerOffLine" + JSON.stringify(event));
cc.find('Canvas/PlayerOffLineLayer').active = true; cc.find('Canvas/PlayerOffLineLayer').active = true;
this.networkHelper.leaveRoom(); this.networkHelper.leaveRoom();
}); });
console.log('this.networkHelper.on("gameStart", (event) => {');
this.networkHelper.on("gameStart", (event) => { }); this.networkHelper.on("gameStart", (event) => { });
console.log('this.networkHelper.on("frameEvent", (event) => {');
this.networkHelper.on("frameEvent", (event) => { this.networkHelper.on("frameEvent", (event) => {
event.data.frame.items.forEach((item) => { event.data.frame.items.forEach((item) => {
if (this.server) {
this.server.onFrameEvent(item.data);
}
if (item.data.type == "all_player_info") { if (item.data.type == "all_player_info") {
item.data.playerData.forEach((player) => { item.data.playerData.forEach((player) => {
if (!this.allPlayerList) { if (!this.allPlayerList) {
...@@ -435,8 +450,9 @@ cc.Class({ ...@@ -435,8 +450,9 @@ cc.Class({
headUrl: player.headUrl, headUrl: player.headUrl,
}); });
} }
const loadingLayerNode = cc.find('Canvas/bg/loadingLayerBase/loadingLayerNode');
this.loadingLayer.addPlayer( const loadingLayer = loadingLayerNode.getComponent("OP32_PLUS_LoadingLayer")
loadingLayer.addPlayer(
player.name, player.name,
player.uuid == this.playerId, player.uuid == this.playerId,
player.headUrl, player.headUrl,
...@@ -446,7 +462,7 @@ cc.Class({ ...@@ -446,7 +462,7 @@ cc.Class({
} else if (item.data.type == "player_complete") { } else if (item.data.type == "player_complete") {
this.log("player_complete"); this.log("player_complete");
const resultNode = cc.find("resultNode"); const resultNode = cc.find("resultNode");
const resultLayer = resultNode.getComponent("resultLayer"); const resultLayer = resultNode.getComponent("OP32_PLUS_resultLayer");
item.data.playerData.forEach((player) => { item.data.playerData.forEach((player) => {
if (player.complete) { if (player.complete) {
resultLayer.addPlayerResult( resultLayer.addPlayerResult(
...@@ -458,9 +474,15 @@ cc.Class({ ...@@ -458,9 +474,15 @@ cc.Class({
); );
} }
}); });
} else if (item.data.type == "complete") { if (item.data.playerData.find(player => player.uuid == this.playerId && player.complete)) {
if (this.server) { item.data.playerData.sort((a, b) => {
this.server.onPlayerComplete(item.data.uuid, item.data.duration); return a.duration - b.duration;
});
const idx = item.data.playerData.findIndex(player => player.uuid == this.playerId);
this.onHomeworkFinish({
rank: idx + 1,
duration: this._gameDuration
});
} }
} }
}); });
...@@ -468,7 +490,7 @@ cc.Class({ ...@@ -468,7 +490,7 @@ cc.Class({
try { try {
this.log("喵喵喵1"); this.log("喵喵喵1");
this.playerId = await this.networkHelper.init("op_09_plus", 5); this.playerId = await this.networkHelper.init("OP32_PLUS", 5);
this.log("喵喵喵2"); this.log("喵喵喵2");
const room = this.networkHelper.room; const room = this.networkHelper.room;
if (this.playerId == room.roomInfo.owner) { if (this.playerId == room.roomInfo.owner) {
...@@ -485,6 +507,30 @@ cc.Class({ ...@@ -485,6 +507,30 @@ cc.Class({
} catch (e) { } catch (e) {
this.log(e.toString()); this.log(e.toString());
} }
await this.initHeadImgAndName();
},
async initHeadImgAndName() {
const playerInfo = {
playerHeadUrl: "http://staging-teach.cdn.ireadabc.com/0751c28419a0e8ffb1f0e84435b081ce.png",
playerName: "test",
};
const middleLayer = cc.find("middleLayer");
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent("middleLayer");
if (middleLayerComponent.getUserInfo && middleLayerComponent.getHeadUrl) {
const kidInfo = await middleLayerComponent.getUserInfo();
const playerHeadUrl = middleLayerComponent.getHeadUrl(kidInfo.avatar_url || kidInfo.id);
playerInfo.playerHeadUrl = playerHeadUrl;
playerInfo.playerName = kidInfo.nick_name || '拼读达人';
}
}
this.networkHelper.sendFrame({
type: "playerInfo",
playerId: this.playerId,
playerName: playerInfo.playerName,
playerHeadUrl: playerInfo.playerHeadUrl,
});
}, },
//TODO:copy---start //TODO:copy---start
...@@ -500,6 +546,13 @@ cc.Class({ ...@@ -500,6 +546,13 @@ cc.Class({
}, },
//TODO:copy---end //TODO:copy---end
finish: false,
onHomeworkFinish(data) {
if (!this.finish) {
onHomeworkFinish(data);
this.finish = true;
}
},
onAnswerRight() { onAnswerRight() {
//TODO:copy---放烟花时机修改 //TODO:copy---放烟花时机修改
...@@ -566,7 +619,6 @@ cc.Class({ ...@@ -566,7 +619,6 @@ cc.Class({
this.submitBtnMoveOut(); this.submitBtnMoveOut();
this.showNextBtn(); this.showNextBtn();
this.stopCountTime(); this.stopCountTime();
onHomeworkFinish();
this.showResultLayer(); this.showResultLayer();
this.sendServerData(); this.sendServerData();
}); });
...@@ -584,7 +636,7 @@ cc.Class({ ...@@ -584,7 +636,7 @@ cc.Class({
showResultLayer() { showResultLayer() {
const resultNode = cc.find("resultNode"); const resultNode = cc.find("resultNode");
resultNode.active = true; resultNode.active = true;
const resultLayer = resultNode.getComponent("resultLayer"); const resultLayer = resultNode.getComponent("OP32_PLUS_resultLayer");
resultLayer.setFinishAudioList(this.data.finishAudioList); resultLayer.setFinishAudioList(this.data.finishAudioList);
}, },
...@@ -749,8 +801,4 @@ cc.Class({ ...@@ -749,8 +801,4 @@ cc.Class({
cc.log(str); cc.log(str);
} }
}, },
// 生命周期
onDestroy() {
this.networkHelper.onDestroy();
},
}); });
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "722fa716-2ec9-4137-b892-d0fccf64b39a", "uuid": "17dbb9e9-ba6d-4ee4-b7aa-8e446b569886",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "e3096a54-7862-4c41-9590-6133dafe5f27", "uuid": "8523f807-c781-444e-a997-6cd984722b10",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
...@@ -40,15 +40,35 @@ export class GameServer { ...@@ -40,15 +40,35 @@ export class GameServer {
duration: null duration: null
}); });
if (this.playerList.length == this.playerMaxNumber) { if (player.isAI) {
this.networkHelper.closeRoom(); if (this.playerList.length == this.playerMaxNumber) {
this.startAIDuration(); this.networkHelper.closeRoom();
this.startAIDuration();
}
this.networkHelper.sendFrame({
type: 'all_player_info',
playerData: this.playerList
});
} }
}
this.networkHelper.sendFrame({ onFrameEvent(event) {
type: 'all_player_info', if (event.type == "complete") {
playerData: this.playerList this.onPlayerComplete(event.uuid, event.duration);
}); } else if (event.type == "playerInfo") {
const player = this.playerList.find(p => p.uuid == event.playerId);
player.name = event.playerName;
player.headUrl = event.playerHeadUrl;
if (this.playerList.length == this.playerMaxNumber) {
this.networkHelper.closeRoom();
this.startAIDuration();
}
this.networkHelper.sendFrame({
type: 'all_player_info',
playerData: this.playerList
});
}
} }
onPlayerComplete(uuid: string, duration: number) { onPlayerComplete(uuid: string, duration: number) {
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "3cd091e4-ae75-469f-b8e3-37e114dd2ff3", "uuid": "11cc8dca-9c1d-4d89-a303-988db5a57d48",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "825c533a-5996-484e-a02b-064badfcb408", "uuid": "1b9652dc-7d60-4b43-854c-c993d5d5a9ba",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "97c52f6e-217c-4ea6-9c62-7225a087ce4f", "uuid": "013e2cd8-08de-4f83-8d63-84cf56ba5bf8",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "f9688dab-f4fd-4e4b-9a97-a76b90f239f4", "uuid": "aff71136-de10-4e2e-9629-aaa29167d52e",
"isPlugin": true, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
"loadPluginInEditor": false, "loadPluginInEditor": false,
......
{ {
"ver": "1.0.8", "ver": "1.0.8",
"uuid": "57c60309-9027-4d15-8ca4-1e12f2d50310", "uuid": "95fb403e-d012-4bc4-9a07-6b74cef5c5d8",
"isPlugin": false, "isPlugin": false,
"loadPluginInWeb": true, "loadPluginInWeb": true,
"loadPluginInNative": true, "loadPluginInNative": true,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "1c24f064-7f97-4a5a-9988-530ef60bcb0c", "uuid": "5b783eb1-78ae-4197-89a9-16965a62be52",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "6ca7edf0-1400-44dd-a71e-ca429becfad4", "uuid": "b9ed6fb6-db52-484b-adf9-fd60c07f3f27",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_bg": { "bg_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "417946d4-67df-4b1d-982c-93239d09b649", "uuid": "55b6da68-335b-4001-8eeb-020e64a3d97c",
"rawTextureUuid": "6ca7edf0-1400-44dd-a71e-ca429becfad4", "rawTextureUuid": "b9ed6fb6-db52-484b-adf9-fd60c07f3f27",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "cc23e73d-cae7-46a4-acf4-35f5cf40f774", "uuid": "555c019b-6dc4-499e-9f4e-29a4c362c068",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_behind": { "bg_box_behind": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "913250a1-ada0-4dbf-88e4-1c47229aaa9a", "uuid": "58b021ce-c12f-48ea-acbf-b81c2d67d562",
"rawTextureUuid": "cc23e73d-cae7-46a4-acf4-35f5cf40f774", "rawTextureUuid": "555c019b-6dc4-499e-9f4e-29a4c362c068",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "75a126f3-55c6-4465-a109-bf2b131b16fc", "uuid": "17e5bb3e-aeb6-43ba-b4a8-e6e265c91538",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_front": { "bg_box_front": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "44ccf7fc-9a08-472d-8d47-c46009d9ba09", "uuid": "7d6da648-40ff-471e-b58d-35aa8c289ebb",
"rawTextureUuid": "75a126f3-55c6-4465-a109-bf2b131b16fc", "rawTextureUuid": "17e5bb3e-aeb6-43ba-b4a8-e6e265c91538",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "f0991fd9-ae1a-4b1b-a851-a0ccc93f6e01", "uuid": "bc84a746-0f7d-410c-9d73-6e6b366969fb",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_deck": { "bg_deck": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "5840216d-dbeb-4fd9-94c2-e407bfc571e1", "uuid": "025b6a6e-9046-46af-89fd-da2817ef26b7",
"rawTextureUuid": "f0991fd9-ae1a-4b1b-a851-a0ccc93f6e01", "rawTextureUuid": "bc84a746-0f7d-410c-9d73-6e6b366969fb",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "c985acca-dad1-4533-9644-fc7686bc7b07", "uuid": "ae1f9b13-558b-4529-915e-0f9cfa858946",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_next": { "btn_next": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "0bb33fa8-b085-4fb6-b8c7-9e78ace68cce", "uuid": "faf8d979-7e9d-45e1-8e9f-b09a5ff24d6e",
"rawTextureUuid": "c985acca-dad1-4533-9644-fc7686bc7b07", "rawTextureUuid": "ae1f9b13-558b-4529-915e-0f9cfa858946",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "67503bea-a730-45a3-8289-0d8e90858e40", "uuid": "9b392f2b-5017-4503-9bdf-780ae1e3345d",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_return": { "btn_return": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "42ec91ee-2bce-4ff4-aab3-202dc7f72d83", "uuid": "31db92f4-865f-435c-9a5a-e874b30b7079",
"rawTextureUuid": "67503bea-a730-45a3-8289-0d8e90858e40", "rawTextureUuid": "9b392f2b-5017-4503-9bdf-780ae1e3345d",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "d12cbb2b-9b97-41ef-bf9c-223c810cb653", "uuid": "8783f637-9f7f-4034-a9c0-81e64d8c7646",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"btn_submit": { "btn_submit": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "6e119d18-ef35-4ced-80f4-d4425ca6d574", "uuid": "6291cb7a-173d-4a7e-9f40-de425497e252",
"rawTextureUuid": "d12cbb2b-9b97-41ef-bf9c-223c810cb653", "rawTextureUuid": "8783f637-9f7f-4034-a9c0-81e64d8c7646",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "1bf55932-a61d-4531-8047-5157a31c2c57", "uuid": "9fc5b1b5-6254-456b-bf47-a4a6847e1df7",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "61ff71d3-b925-4d5b-a98b-73ed8fc8f604", "uuid": "9e6c2899-7d2c-470e-8c92-2d3c9323121f",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_bg": { "bg_bg": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "5e725e07-7444-47b8-bf46-7216e84fcf7d", "uuid": "52c932e3-ed7d-401b-a4f5-f5a0ade5e448",
"rawTextureUuid": "61ff71d3-b925-4d5b-a98b-73ed8fc8f604", "rawTextureUuid": "9e6c2899-7d2c-470e-8c92-2d3c9323121f",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "6b0a02ec-e5bf-4c22-9745-5f2f16932061", "uuid": "9e8e8cc0-a291-4657-a98b-36d90904e301",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_behind": { "bg_box_behind": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "54a9e2ee-74a7-413f-ac8a-1f550e584736", "uuid": "ee06cded-71e9-400e-a5e3-3bc40ecfe47a",
"rawTextureUuid": "6b0a02ec-e5bf-4c22-9745-5f2f16932061", "rawTextureUuid": "9e8e8cc0-a291-4657-a98b-36d90904e301",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "33d7bd4f-fbb1-463f-a0a5-3d0107f8a17f", "uuid": "358f7c2b-3919-4161-b686-a19389bc9973",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_box_front": { "bg_box_front": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "1c16eab4-72a1-4344-852f-481e61b53207", "uuid": "91e8981f-6111-420f-8e49-346deabecbef",
"rawTextureUuid": "33d7bd4f-fbb1-463f-a0a5-3d0107f8a17f", "rawTextureUuid": "358f7c2b-3919-4161-b686-a19389bc9973",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "f3a5c92c-08ee-4d3e-959b-c77025cd20cd", "uuid": "451ef0a4-5cea-491c-85cc-69e78e332236",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_deck": { "bg_deck": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "f90d6ad7-05b4-4394-9c42-8f55f0d2c289", "uuid": "e4353a43-2b37-41cc-9997-068a14ad46f8",
"rawTextureUuid": "f3a5c92c-08ee-4d3e-959b-c77025cd20cd", "rawTextureUuid": "451ef0a4-5cea-491c-85cc-69e78e332236",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "df2557d1-80a3-47fd-b4f7-9dd54e5ded75", "uuid": "2249f878-07e0-4a2a-b879-4fc37fd72df7",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_left": { "bg_left": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "a7ab3e24-470f-442a-9daa-402046feaf45", "uuid": "ec23cf9d-5cd8-45d4-8064-57c8766d7e89",
"rawTextureUuid": "df2557d1-80a3-47fd-b4f7-9dd54e5ded75", "rawTextureUuid": "2249f878-07e0-4a2a-b879-4fc37fd72df7",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "0ac822cf-6edb-44dc-9de8-cfabf0ca4fd1", "uuid": "d47e4511-ee34-4b77-846b-0bd0a6360aca",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_right": { "bg_right": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "0a22632f-7639-4662-aad6-66e74ee9171e", "uuid": "fc4fc255-bee4-4be4-8970-50ba2e88f543",
"rawTextureUuid": "0ac822cf-6edb-44dc-9de8-cfabf0ca4fd1", "rawTextureUuid": "d47e4511-ee34-4b77-846b-0bd0a6360aca",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "46bd93cc-ce8b-4a83-a23c-bc5d2d77a6c2", "uuid": "dd1f7f02-d9c9-4d02-bfd3-8dada324a5f9",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"bg_top": { "bg_top": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "3fc3e086-d342-4dad-ab13-cae841f057c6", "uuid": "5b69430b-9824-4ec5-afcd-eff995a4fe16",
"rawTextureUuid": "46bd93cc-ce8b-4a83-a23c-bc5d2d77a6c2", "rawTextureUuid": "dd1f7f02-d9c9-4d02-bfd3-8dada324a5f9",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "3fe22c5c-c476-43b6-b9b7-e5793d834cb2", "uuid": "263fe34e-fc55-48bb-ac61-3d62f82531e4",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "659dc50e-4e4b-476c-a29a-2da2ee516d15", "uuid": "06dc6649-0e37-450f-a943-e322764b49c8",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"arrow": { "arrow": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "0b6c6b40-5944-4c8d-9882-758c4bc77746", "uuid": "8fa8cf20-af2b-4f4a-889e-a50fd6d4e5b2",
"rawTextureUuid": "659dc50e-4e4b-476c-a29a-2da2ee516d15", "rawTextureUuid": "06dc6649-0e37-450f-a943-e322764b49c8",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "736c86ce-6926-4414-86c3-c3cc7fe2b861", "uuid": "c70d7b1e-7fd6-42ff-8066-597f50088cc7",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"head_0": { "head_0": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "efb6b2e6-82b7-4db2-b574-f5c0d95e2238", "uuid": "c0576b8f-b9d0-4539-a706-362196ceba51",
"rawTextureUuid": "736c86ce-6926-4414-86c3-c3cc7fe2b861", "rawTextureUuid": "c70d7b1e-7fd6-42ff-8066-597f50088cc7",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "3107bd73-64d4-4e07-9658-6d436eb2df13", "uuid": "ee31980a-3834-47e0-8b16-a49175d7b688",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"head_1": { "head_1": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "a8143ad4-0205-4e5f-ae5c-6ef108b54b38", "uuid": "3de90f21-3a24-49e2-9727-608e760f06ec",
"rawTextureUuid": "3107bd73-64d4-4e07-9658-6d436eb2df13", "rawTextureUuid": "ee31980a-3834-47e0-8b16-a49175d7b688",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "f690920f-4367-4a4b-962a-19b0b98cc320", "uuid": "d54a505a-96a7-4be6-b7e0-732d46522f4a",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"head_2": { "head_2": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "a247362b-537b-4523-8bf5-bc5c42c78649", "uuid": "a384d7e0-3b09-49ce-b0be-871bcee08de8",
"rawTextureUuid": "f690920f-4367-4a4b-962a-19b0b98cc320", "rawTextureUuid": "d54a505a-96a7-4be6-b7e0-732d46522f4a",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "8a1e8fce-b29b-4a39-b123-fae41aacd07d", "uuid": "efca41a6-ef62-4842-a7fd-1598e5c10f10",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"head_3": { "head_3": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "4a160ff4-495c-4ec9-8444-68fc0c0aa343", "uuid": "d7caf677-20e4-4e24-9893-6a86ef099c4a",
"rawTextureUuid": "8a1e8fce-b29b-4a39-b123-fae41aacd07d", "rawTextureUuid": "efca41a6-ef62-4842-a7fd-1598e5c10f10",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "8640f799-394d-4c11-a672-4ae4e3229545", "uuid": "2937e09c-ae91-4bbb-b373-9b05e629993c",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"jiangtai": { "jiangtai": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "e5d61185-aadb-4ce1-83b5-3a4bf68a2260", "uuid": "66f5aa99-5c2e-42e2-bd2a-1b054737f842",
"rawTextureUuid": "8640f799-394d-4c11-a672-4ae4e3229545", "rawTextureUuid": "2937e09c-ae91-4bbb-b373-9b05e629993c",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "96cd6025-0727-48b3-9637-8ce62480497b", "uuid": "76ba6afd-515f-4b02-ab6e-65b724a37294",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"lj_guangxiao01": { "lj_guangxiao01": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "d22703e2-4e11-44b6-b2f9-118a60f1d5ee", "uuid": "8a1cd3f8-4bbf-47de-9aaa-a39aabf87fa7",
"rawTextureUuid": "96cd6025-0727-48b3-9637-8ce62480497b", "rawTextureUuid": "76ba6afd-515f-4b02-ab6e-65b724a37294",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "95dfd47b-d828-4ce1-b091-506799e99f76", "uuid": "c0fcea60-db69-41ce-aa6c-3bd538dbdfe7",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"lj_guangxiao02": { "lj_guangxiao02": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "b701fd8e-5ae4-4402-83cd-b5ce4dc85a1c", "uuid": "20f47ac3-9858-4a5b-8886-8069faecf23b",
"rawTextureUuid": "95dfd47b-d828-4ce1-b091-506799e99f76", "rawTextureUuid": "c0fcea60-db69-41ce-aa6c-3bd538dbdfe7",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "51e6401b-08a9-4f5b-8de6-5346008cdbe7", "uuid": "2c7ec838-60f5-4368-b670-71ab282cb2ca",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"lj_tx_zw": { "lj_tx_zw": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "0703370e-024a-4974-bd12-753068a1a6eb", "uuid": "e4c3d3f4-e877-49bb-8a58-d45d990ea3ff",
"rawTextureUuid": "51e6401b-08a9-4f5b-8de6-5346008cdbe7", "rawTextureUuid": "2c7ec838-60f5-4368-b670-71ab282cb2ca",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "0fef2b66-2f96-429e-a426-66fbf9839639", "uuid": "631b8f7b-a2a3-4217-867f-7e4c6ec359d5",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"star": { "star": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "7ae967ad-be10-484a-85fc-e9ddfe7f434d", "uuid": "96e16aa5-ba5b-42d4-bd67-e38a84fdce2c",
"rawTextureUuid": "0fef2b66-2f96-429e-a426-66fbf9839639", "rawTextureUuid": "631b8f7b-a2a3-4217-867f-7e4c6ec359d5",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
{ {
"ver": "2.3.5", "ver": "2.3.5",
"uuid": "a25d0390-4520-4c95-94ba-a6af36dbcccf", "uuid": "e92d9574-a70a-426d-8b7b-d7c81040fc0d",
"type": "sprite", "type": "sprite",
"wrapMode": "clamp", "wrapMode": "clamp",
"filterMode": "bilinear", "filterMode": "bilinear",
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
"subMetas": { "subMetas": {
"texiao_01": { "texiao_01": {
"ver": "1.0.4", "ver": "1.0.4",
"uuid": "d546e766-72c3-4e13-b47f-19b664d662b3", "uuid": "362b6294-00af-4c1d-baeb-773eec5ad638",
"rawTextureUuid": "a25d0390-4520-4c95-94ba-a6af36dbcccf", "rawTextureUuid": "e92d9574-a70a-426d-8b7b-d7c81040fc0d",
"trimType": "auto", "trimType": "auto",
"trimThreshold": 1, "trimThreshold": 1,
"rotated": false, "rotated": false,
......
...@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) { ...@@ -52,7 +52,7 @@ function execCmd(cmd, params, path) {
} }
let creatorBasePath = 'D:\\work\\CocosDashboard_1.0.9\\resources\\.editors\\Creator\\2.4.5\\CocosCreator.exe'; let creatorBasePath = 'CocosCreator';
if (process.platform !== 'win32') { if (process.platform !== 'win32') {
creatorBasePath = "/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator"; creatorBasePath = "/Applications/CocosCreator/Creator/2.4.5/CocosCreator.app/Contents/MacOS/CocosCreator";
} }
...@@ -330,6 +330,84 @@ async function replaceUuids() { ...@@ -330,6 +330,84 @@ async function replaceUuids() {
} }
console.log('build_step_0 完成~!'); console.log('build_step_0 完成~!');
const sceneName = getFolderName(path);
let scriptUUids = [];
await fileForEach(path, (path) => {
const nameList = path.split('.');
if (nameList[nameList.length - 1] == 'meta') {
if (['js', 'ts'].includes(nameList[nameList.length - 2])) {
const scriptNameList = nameList[nameList.length - 3].split('/');
const scriptName = scriptNameList[scriptNameList.length - 1];
const data = JSON.parse(fs.readFileSync(path));
scriptUUids.push({
uuid: data.uuid,
shortUuid: getShortUuid(data.uuid),
scriptName: scriptName,
fileName: nameList[nameList.length - 3] + '.' + nameList[nameList.length - 2],
});
}
}
});
await fileForEach(path, (path) => {
const nameList = path.split('.');
const expectNameList = ['fire', 'prefab'];
if (expectNameList.includes(nameList[nameList.length - 1])) {
const data = fs.readFileSync(path);
scriptUUids.forEach(uuiddata => {
if (uuiddata.scriptName.includes(sceneName)) {
uuiddata.includes = false;
return;
}
if (uuiddata.includes == true) {
return;
}
if (data.includes(uuiddata.shortUuid)) {
uuiddata.includes = true;
}
});
}
});
scriptUUids = scriptUUids.filter(uuiddata => uuiddata.includes);
await fileForEach(path, (path) => {
const nameList = path.split('.');
const expectNameList = ['js', 'ts'];
if (expectNameList.includes(nameList[nameList.length - 1])) {
const data = fs.readFileSync(path);
scriptUUids.forEach(uuiddata => {
const strList = [
`.getComponent("${uuiddata.scriptName}")`,
`.getComponent('${uuiddata.scriptName}')`,
`.getComponent(\`${uuiddata.scriptName}\`)`
];
strList.forEach(str => {
if (data.includes(str)) {
fileReplace(path, str, `.getComponent("${sceneName}_${uuiddata.scriptName}")`);
}
});
});
}
});
scriptUUids.forEach((uuiddata) => {
const data = fs.readFileSync(uuiddata.fileName);
const metaData = fs.readFileSync(uuiddata.fileName + '.meta');
const new_fileName = `${sceneName}_${uuiddata.scriptName}`;
const newPath = uuiddata.fileName.split('/').map((str, idx, arr) => {
if (idx == arr.length - 1) {
const nameList = str.split('.');
return `${new_fileName}.${nameList[nameList.length - 1]}`;
}
return str;
}).join('/');
fs.writeFileSync(newPath, data);
fs.rmSync(uuiddata.fileName);
fs.writeFileSync(newPath + '.meta', metaData);
fs.rmSync(uuiddata.fileName + '.meta');
});
console.log(scriptUUids.map(uuiddata => uuiddata.scriptName));
} }
function replaceIndexHtml() { function replaceIndexHtml() {
...@@ -339,6 +417,8 @@ function replaceIndexHtml() { ...@@ -339,6 +417,8 @@ function replaceIndexHtml() {
module.exports = { module.exports = {
replaceUuids: replaceUuids,
build: async function () { build: async function () {
const startTime = new Date().getTime(); const startTime = new Date().getTime();
...@@ -349,56 +429,56 @@ module.exports = { ...@@ -349,56 +429,56 @@ module.exports = {
// 清理旧文件 // 清理旧文件
// 构建form // 构建form
// await removeDir('dist/form'); await removeDir('dist/form');
// await buildForm(); await buildForm();
// 替换uuid // 替换uuid
await replaceUuids(); await replaceUuids();
// 改设置为非bundle // 改设置为非bundle
// changeSettingToWebDesktop(); changeSettingToWebDesktop();
// // 构建play // 构建play
// await removeDir('dist/play'); await removeDir('dist/play');
// await buildWebDesktop(); await buildWebDesktop();
// await copyDir('build/web-desktop', 'dist/play'); await copyDir('build/web-desktop', 'dist/play');
// replaceIndexHtml(); replaceIndexHtml();
// console.log('构建 web desktop 成功!'); console.log('构建 web desktop 成功!');
// // 改设置为bundle // 改设置为bundle
// changeSettingsToBundle(); changeSettingsToBundle();
// await removeDir('dist/android'); await removeDir('dist/android');
// await buildAndroidBundle(); await buildAndroidBundle();
// await copyDir('build_android/jsb-link/remote', 'dist/android'); await copyDir('build_android/jsb-link/remote', 'dist/android');
// console.log('构建 android bundle 成功!'); console.log('构建 android bundle 成功!');
// await removeDir('dist/ios'); await removeDir('dist/ios');
// await buildIosBundle(); await buildIosBundle();
// await copyDir('build_ios/jsb-link/remote', 'dist/ios'); await copyDir('build_ios/jsb-link/remote', 'dist/ios');
// console.log('构建 ios bundle 成功!'); console.log('构建 ios bundle 成功!');
// await removeDir('dist/web_desktop'); await removeDir('dist/web_desktop');
// await buildWebBundle(); await buildWebBundle();
// await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop'); await copyDir(`build_web_desktop/web-desktop/assets/${projectName}`, 'dist/web_desktop');
// console.log('构建 web bundle 成功!'); console.log('构建 web bundle 成功!');
// // 改设置为非bundle // 改设置为非bundle
// changeSettingToWebDesktop(); changeSettingToWebDesktop();
// createConfigFile(projectName); createConfigFile(projectName);
// compressAll(projectName); compressAll(projectName);
// await removeDir('build'); await removeDir('build');
// await removeDir('build_android'); await removeDir('build_android');
// await removeDir('build_ios'); await removeDir('build_ios');
// await removeDir('build_web_desktop'); await removeDir('build_web_desktop');
// const endTime = new Date().getTime(); const endTime = new Date().getTime();
// const duration = new Date(endTime - startTime); const duration = new Date(endTime - startTime);
// console.log(`打包完成!`); console.log(`打包完成!`);
// console.log(`用时${duration.getMinutes()}分${duration.getSeconds()}秒。`); console.log(`用时${duration.getMinutes()}${duration.getSeconds()}秒。`);
}, },
buildAndroid: async function () { buildAndroid: async function () {
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment