Commit e3aecb8f authored by 曲世俊's avatar 曲世俊

-- feat cookie

parent ac625c57
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "166d3d9d-a393-45ad-b904-44288faecb55", "uuid": "027980ee-1da4-43c0-924e-a1b0081b87ba",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"ver": "1.2.9",
"uuid": "59286199-6a11-47ed-8d48-f792c3448a8f",
"optimizationPolicy": "AUTO",
"asyncLoadAssets": false,
"readonly": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "c83618a6-a058-4cb0-bf49-0872f18ba784",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
import { asyncGetSpriteFrimeByUrl, onHomeworkFinish } from "../Script/util_JJ_Video_01";
import { defaultData } from "../Script/defaultData_JJ_Video_01";
const { ccclass, property } = cc._decorator;
@ccclass
export default class VideoPlayerComponent extends cc.Component {
@property(cc.VideoPlayer)
videoPlayer: cc.VideoPlayer = null;
@property(cc.Node)
ProgressBar: cc.Node = null;
@property(cc.Button)
playButton: cc.Button = null;
@property(cc.Button)
pauseButton: cc.Button = null;
@property(cc.Button)
restartButton: cc.Button = null;
@property(cc.Button)
backButton: cc.Button = null;
@property(cc.Button)
forwardButton: cc.Button = null;
@property(cc.Label)
durationLabel: cc.Label = null;
@property(cc.Label)
currentTimeLabel: cc.Label = null;
@property(cc.Node)
barTag: cc.Node = null;
@property(cc.Node)
bar: cc.Node = null;
@property(cc.Node)
loadingSprite: cc.Node = null;
_designSize: cc.Size = null;
_frameSize: cc.Size = null;
_mapScaleMin: number = null;
_mapScaleMax: number = null;
_cocosScale: number = null;
data;
initSize() {
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height;
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height;
console.log("原本尺寸",screen_size,"现在尺寸",design_size)
let f = screen_size >= design_size;
cc.Canvas.instance.fitHeight = f;
cc.Canvas.instance.fitWidth = !f;
const frameSize = cc.view.getFrameSize();
this._frameSize = frameSize;
this._designSize = cc.view.getDesignResolutionSize();
let sx = cc.winSize.width / frameSize.width;
let sy = cc.winSize.height / frameSize.height;
this._cocosScale = Math.min(sx, sy);
sx = frameSize.width / this._designSize.width;
sy = frameSize.height / this._designSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
console.log("原本宽度",cc.director["_scene"].width,"现在宽度",frameSize.width)
console.log("原本高度",cc.director["_scene"].height,"现在高度",frameSize.height)
cc.director["_scene"].width = frameSize.width;
cc.director["_scene"].height = frameSize.height;
}
getVideoUrl(url1: string): Promise<string> {
return new Promise((resolve, reject) => {
const url2 = url1.replace(/.mp4$/g, "_h.mp4");
this.httpHeadCall(url2, (success) => {
if (success) {
console.log('return url2: ', url2);
resolve(url2);
} else {
console.log('return url1: ', url1);
resolve(url1);
}
});
});
}
httpHeadCall(requestUrl: string, callback: (success: boolean) => void) {
let xhr = new XMLHttpRequest();
console.log("Status: Send Post Request to " + requestUrl);
try {
xhr.onreadystatechange = () => {
try {
console.log('xhr.readyState: ', xhr.readyState);
if (xhr.readyState == 4) {
if (xhr.status >= 200 && xhr.status < 400) {
callback(true);
} else {
callback(false);
}
}
} catch (e) {
console.log(e);
}
};
xhr.open("HEAD", requestUrl, true);
xhr.send();
xhr.timeout = 15000;
xhr.onerror = (e) => {
console.log("汪汪汪 posterror", e);
callback(false);
};
xhr.ontimeout = (e) => {
console.log("汪汪汪 ontimeout", e);
callback(false);
};
} catch (e) {
console.log("Send Get Request error: ", e);
}
}
_isPlayComplated: boolean = null;
_isReadyToPlay: boolean = null;
onLoad() {
cc.debug.setDisplayStats(false);
this.initSize();
cc.find('JJ_Video_01/bg').scale = this._mapScaleMax;
cc.find('JJ_Video_01/video_node/bg').scale = this._mapScaleMax;
this._isReadyToPlay = false;
cc.macro.ENABLE_TRANSPARENT_CANVAS = true;
this.videoPlayer.node.on('ready-to-play', () => {
console.log('ready-to-play');
this.playButton.node.active = true;
cc.find(`JJ_Video_01/bg_video_shadow`).active = false;
// cc.find(`JJ_Video_01/loading`).active = false;
this.durationLabel.string = this.formatTime(this.videoPlayer.getDuration());
this._isReadyToPlay = true;
this._isPlayComplated = false;
this.videoPlayer.currentTime = 0;
this.play();
});
this.videoPlayer.node.on('meta-loaded', () => {
console.log('meta-loaded');
});
this.videoPlayer.node.on('clicked', () => {
console.log('clicked');
if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true;
cc.find(`JJ_Video_01/Controls`).active = true;
if (this.time1) {
clearTimeout(this.time1);
}
this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false;
cc.find(`JJ_Video_01/Controls`).active = false;
}, 6000);
}
});
this.videoPlayer.node.on('touchstarted', () => {
console.log('touchstarted');
if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true;
cc.find(`JJ_Video_01/Controls`).active = true;
if (this.time1) {
clearTimeout(this.time1);
}
this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false;
cc.find(`JJ_Video_01/Controls`).active = false;
}, 6000);
}
});
this.videoPlayer.node.on(cc.Node.EventType.TOUCH_START, () => {
console.log('touchstarted');
if (this.isVideoFull) {
this.videoPlayer.stayOnBottom = true;
cc.find(`JJ_Video_01/Controls`).active = true;
if (this.time1) {
clearTimeout(this.time1);
}
this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false;
cc.find(`JJ_Video_01/Controls`).active = false;
}, 6000);
}
});
this.videoPlayer.node.on('playing', () => {
console.log('playing');
this.durationLabel.string = this.formatTime(this.videoPlayer.getDuration());
this.playButton.node.active = false;
this.restartButton.node.active = false;
this.pauseButton.node.active = true;
});
this.videoPlayer.node.on('paused', () => {
console.log('paused');
});
this.videoPlayer.node.on('stopped', () => {
console.log('stopped');
});
this.videoPlayer.node.on('completed', async () => {
console.log('completed');
this._isPlayComplated = true;
this.playButton.node.active = false;
this.pauseButton.node.active = false;
this.restartButton.node.active = false;
const nextItem = this.videoItemList[this.videoPlayIndex + 1];
if (nextItem) {
nextItem.emit('my_item_click');
} else {
this.videoItemList[0].emit('my_item_click');
}
});
cc.view.setResizeCallback(() => {
console.log('Resize');
this.initdDrag();
});
this.initdDrag();
}
initListener() {
if (window['air']) {
window["air"].dialogStatus = (statusCode: number) => {
console.log("缓冲", statusCode);
if (statusCode == 701) {
this.loadingSprite.active = true;
} else if (statusCode == 702) {
this.loadingSprite.active = false;
}
};
}
}
initdDrag() {
const maxX = this.ProgressBar.width;
const minX = 0;
this.barTag.off(cc.Node.EventType.TOUCH_START);
this.barTag.on(cc.Node.EventType.TOUCH_START, (e) => {
if (!this._isReadyToPlay) {
return;
}
console.log("TOUCH_START");
});
this.barTag.off(cc.Node.EventType.TOUCH_MOVE);
this.barTag.on(cc.Node.EventType.TOUCH_MOVE, (e) => {
if (!this._isReadyToPlay) {
return;
}
const worldPos = e.getLocation();
const localPos = this.barTag.parent.convertToNodeSpaceAR(worldPos);
let newX = localPos.x;
newX = Math.min(maxX, Math.max(newX, minX));
this.barTag.x = newX;
const percent = newX / maxX;
const dur = this.videoPlayer.getDuration();
this.currentTimeLabel.string = this.formatTime(percent * dur);
this.videoPlayer.currentTime = percent * dur;
});
this.barTag.off(cc.Node.EventType.TOUCH_END);
this.barTag.on(cc.Node.EventType.TOUCH_END, (e) => {
if (!this._isReadyToPlay) {
return;
}
console.log("TOUCH_ENDED");
this.updateBarByPos(this.barTag.x);
});
this.barTag.off(cc.Node.EventType.MOUSE_UP);
this.barTag.on(cc.Node.EventType.MOUSE_UP, (e) => {
if (!this._isReadyToPlay) {
return;
}
console.log("MOUSE_UP");
this.updateBarByPos(this.barTag.x);
});
}
videoItemList: cc.Node[] = null;
videoPlayIndex: number = null;
async initView() {
this.videoItemList = [];
const videoListContent = cc.find(`JJ_Video_01/videolist/view/content`);
const templateItem = cc.find(`item`, videoListContent);
for (let i = 0; i < this.data.dataArr.length; i++) {
const row = this.data.dataArr[i];
const itemClone = cc.instantiate(templateItem);
itemClone.parent = videoListContent;
itemClone.active = true;
const spriteFrame = await asyncGetSpriteFrimeByUrl(row.cover);
const picNode1 = cc.find(`item/mask/cover`, itemClone);
picNode1.getComponent(cc.Sprite).spriteFrame = spriteFrame;
const sx1 = 321 / picNode1.width;
const sy1 = 199 / picNode1.height;
picNode1.scale = Math.min(sx1, sy1);
const picNode2 = cc.find(`item_active/mask/cover`, itemClone);
picNode2.getComponent(cc.Sprite).spriteFrame = spriteFrame;
const sx2 = 366 / picNode2.width;
const sy2 = 227 / picNode2.height;
picNode2.scale = Math.min(sx2, sy2);
cc.find(`item_active/title`, itemClone).getComponent(cc.Label).string = row.title;
cc.find(`item/title`, itemClone).getComponent(cc.Label).string = row.title;
cc.find(`item_active/num`, itemClone).getComponent(cc.Label).string = String(i + 1 > 9 ? (i + 1) : `0${i + 1}`);
cc.find(`item/num`, itemClone).getComponent(cc.Label).string = String(i + 1 > 9 ? (i + 1) : `0${i + 1}`);
itemClone.attr({ video_url: row.video_url, playIndex: i });
itemClone.on('my_item_click', () => {
this.clickVideoItem(null, itemClone);
});
this.videoItemList.push(itemClone);
}
let videolist = cc.find(`JJ_Video_01/videolist`)
videolist.getComponent(cc.ScrollView).scrollToLeft()
}
showTips(tips: string) {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.showTips(tips);
} else {
console.log(tips);
}
}
async clickVideoItem(evt: cc.Event.EventTouch, _node: cc.Node) {
const item = evt ? evt.currentTarget : _node;
if (!item.video_url) {
this.showTips("视频不存在");
return;
}
if (item.video_url == this.videoPlayer.remoteURL) {
this.showTips("该视频正在播放");
return;
}
this.videoPlayIndex = item.playIndex;
this._isReadyToPlay = false;
// cc.find(`JJ_Video_01/loading`).active = true;
cc.find(`JJ_Video_01/bg`).active = true;
cc.find(`JJ_Video_01/bgwhite`).active = true;
// cc.find(`JJ_Video_01/bg_video_shadow`).active = true;
// this.videoPlayer.node.x = -5000;
// this.videoPlayer.node.y = -5000;
cc.find(`JJ_Video_01/videolist/view/content`).children.forEach(row => {
cc.find(`item_active`, row).active = false;
cc.find(`item`, row).active = true;
});
cc.find(`item_active`, item).active = true;
const originalUrl = item.video_url;
this.videoPlayer.remoteURL = await this.getVideoUrl(item.video_url);
for (let i = 0; i < this.data.dataArr.length; i++) {
const element = this.data.dataArr[i];
if (element.video_url == originalUrl) {
const count = this.data.dataArr[i].count;
if (count) {
this.data.dataArr[i].count++;
} else {
this.data.dataArr[i].count = 1;
}
}
}
const totalCount = this.data.totalCount;
if (totalCount) {
this.data.totalCount++;
} else {
this.data.totalCount = 1;
}
}
start() {
this.node.zIndex = 10000;
let getData = this.getData.bind(this);
if (window && window["courseware"]) {
getData = window["courseware"].getData;
}
getData(async (data) => {
console.log('data:', JSON.stringify(data));
this.data = data || this.getDefaultData();
await this.initView();
if (window && window["air"]) {
window["air"].hideAirClassLoading();
}
});
if (window.CustomEvent) {
window.dispatchEvent(new CustomEvent('resize'));
}
this.initListener();
}
updateBarByPos(newX: number) {
const maxX = this.ProgressBar.width;
const minX = 0;
let percent = newX / maxX;
if (percent > 1) {
percent = 1;
}
const dur = this.videoPlayer.getDuration();
this.videoPlayer.currentTime = percent * dur;
}
updateBarByTime(ct: number) {
if (this._isPlayComplated) {
return;
}
this.currentTimeLabel.string = this.formatTime(ct);
const dur = this.videoPlayer.getDuration();
let percent = ct / dur;
if (percent > 1) {
percent = 1;
}
this.ProgressBar.getComponent(cc.ProgressBar).progress = percent;
const maxX = this.ProgressBar.width;
const minX = 0;
let newX = percent * maxX;
newX = Math.min(maxX, Math.max(newX, minX));
this.barTag.x = newX;
}
formatTime(time: number): string {
if (time === undefined) {
return '';
}
let hh:Number|String = Math.floor(time / 60 / 60);
if (Number(hh) > 0) {
hh = `${hh.toString().padStart(2, '0')}:`;
} else {
hh = '';
}
const mm = Math.floor(time / 60).toString().padStart(2, '0');
const ss = Math.round(time % 60).toString().padStart(2, '0');
return `${hh}${mm}:${ss}`;
}
getData(func: (data: any) => void) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.getData(func);
return;
}
func(this.getDefaultData());
}
getDefaultData() {
return defaultData;
}
play() {
if (!this._isReadyToPlay) {
return;
}
const { width, height } = cc.find(`JJ_Video_01/bg`);
cc.find(`JJ_Video_01/text_tips`).active = false;
// cc.find(`JJ_Video_01/bg`).active = false;
cc.find(`JJ_Video_01/bgwhite`).active = false;
cc.find(`JJ_Video_01/bg_video_shadow`).active = false;
const videoContainer = cc.find('JJ_Video_01/video_node');
cc.find('bg', videoContainer).width = width;
cc.find('bg', videoContainer).height = height;
this.videoPlayer.node.x = videoContainer.x;
this.videoPlayer.node.y = videoContainer.y;
this.videoPlayer.play();
}
pause() {
this.videoPlayer.pause();
}
forward() {
}
backward() {
}
replay() {
this._isPlayComplated = false;
this.videoPlayer.currentTime = 0;
this.videoPlayer.play();
}
playLocalAudio(audioName: string) {
cc.audioEngine.stopAll();
const audio = cc.find(`JJ_Video_01/res/audio/${audioName}`).getComponent(cc.AudioSource);
cc.audioEngine.playEffect(audio.clip, false);
}
time1: any = null;
isVideoFull: boolean = false;
tempPos: any = null;
fullScreen() {
if (this.isVideoFull) {
return;
}
if (!this._isReadyToPlay) {
return;
}
this.tempPos = {};
console.log("====进入全屏===");
this.isVideoFull = true;
this.videoPlayer.stayOnBottom = true;
cc.find(`JJ_Video_01/Controls/fullscreen`).active = !this.isVideoFull;
cc.find(`JJ_Video_01/Controls/exitfull`).active = this.isVideoFull;
cc.find(`JJ_Video_01/btn_return`).active = !this.isVideoFull;
cc.find(`JJ_Video_01/title`).active = !this.isVideoFull;
cc.find(`JJ_Video_01/bg`).active = !this.isVideoFull;
const videoContainer = cc.find('JJ_Video_01/video_node');
this.tempPos.videoPos = { x: videoContainer.x, y: videoContainer.y, width: videoContainer.width, height: videoContainer.height };
videoContainer.width = this.node.width;
videoContainer.height = this.node.height;
videoContainer.x = 0;
videoContainer.y = 0;
cc.find(`JJ_Video_01/videolist`).active = false;
const controls = cc.find(`JJ_Video_01/Controls`);
const controlBg = cc.find(`bg_video_bottom`, controls);
this.tempPos.controlPos = { x: controls.x, y: controls.y };
controls.x = 300; // qsj
controls.y = 0 - this.node.height / 2-30;
controlBg.opacity = 240;
controlBg.width = this.node.width;
this.videoPlayer.node.height = this.node.height;
this.videoPlayer.node.width = this.node.width;
this.videoPlayer.node.x = 0;
this.videoPlayer.node.y = 0;
setTimeout(() => {
this.videoPlayer.node.width = Math.min(this.node.width, this.node.height * 16 / 9);
}, 100);
this.time1 = setTimeout(() => {
this.videoPlayer.stayOnBottom = false;
cc.find(`JJ_Video_01/Controls`).active = false;
}, 3000);
}
exitFullScreen() {
if (!this.isVideoFull) {
return;
}
console.log("====退出全屏===", this.tempPos);
this.isVideoFull = false;
cc.find(`JJ_Video_01/Controls/fullscreen`).active = !this.isVideoFull;
cc.find(`JJ_Video_01/Controls/exitfull`).active = this.isVideoFull;
cc.find(`JJ_Video_01/btn_return`).active = !this.isVideoFull;
cc.find(`JJ_Video_01/title`).active = !this.isVideoFull;
cc.find(`JJ_Video_01/bg`).active = !this.isVideoFull;
const videoContainer = cc.find('JJ_Video_01/video_node');
videoContainer.width = this.tempPos.videoPos.width;
videoContainer.height = this.tempPos.videoPos.height;
videoContainer.x = this.tempPos.videoPos.x;
videoContainer.y = this.tempPos.videoPos.y;
this.videoPlayer.node.width = this.tempPos.videoPos.width;
this.videoPlayer.node.height = this.tempPos.videoPos.height;
this.videoPlayer.node.x = videoContainer.x;
this.videoPlayer.node.y = videoContainer.y;
cc.find(`JJ_Video_01/videolist`).active = true;
const controls = cc.find(`JJ_Video_01/Controls`);
const controlBg = cc.find(`bg_video_bottom`, controls);
controls.x = this.tempPos.controlPos.x;
controls.y = this.tempPos.controlPos.y;
controlBg.opacity = 255;
controlBg.width = 1259;
if (this.time1) {
clearTimeout(this.time1);
}
}
onDestroy() {
if (this.time1) {
clearTimeout(this.time1);
}
}
exitGame() {
this.data.templateName="JJ_Video_01";
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.exitGame(this.data, true);
} else {
console.log("==触发返回事件==");
}
}
update(dt: number) {
console.log("==VIDEO==",this.node.active);
if (!this._isReadyToPlay) {
return;
}
if (this.videoPlayer) {
const ct = this.videoPlayer.currentTime;
if (ct) {
this.updateBarByTime(ct);
}
if (this.videoPlayer.isPlaying()) {
if (this.playButton.node.active) {
this.playButton.node.active = false;
this.restartButton.node.active = false;
}
if (!this.pauseButton.node.active) {
this.pauseButton.node.active = true;
}
} else {
if (!this.playButton.node.active) {
this.playButton.node.active = true;
}
if (this.pauseButton.node.active) {
this.pauseButton.node.active = false;
}
if (this.restartButton.node.active) {
this.playButton.node.active = false;
}
}
}
}
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "ed52eb63-fc85-4f55-b5f9-b56aabff79cf",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "e0e698b1-03bb-4e00-a907-4be459ef4eeb",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
export const defaultData = {
"dataArr": [
{
"title": "The Old Man",
"cover": "http://staging-teach.cdn.ireadabc.com/c8abf7383d65bcbdba8f390785cece60.png",
"video_url": "http://staging-teach.cdn.ireadabc.com/c37a3945121274a1f7d95717327539ec.mp4"
},
{
"title": "Where has my little dog gone",
"cover": "http://staging-teach.cdn.ireadabc.com/f6f4bbef497409fef3c8f1d375893829.png",
"video_url": "http://staging-teach.cdn.ireadabc.com/d9df7ef1ba8d7e20613e83984d2d7b9a.mp4"
}
]
};
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "060d5dad-fd85-4f0e-924c-d09fa22f5092",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
export function getPosByAngle(angle, len) {
const radian = angle * Math.PI / 180;
const x = Math.sin(radian) * len;
const y = Math.cos(radian) * len;
return { x, y };
}
export function getAngleByPos(px, py, mx, my) {
const x = Math.abs(px - mx);
const y = Math.abs(py - my);
const z = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
const cos = y / z;
const radina = Math.acos(cos); // 用反三角函数求弧度
let angle = Math.floor(180 / (Math.PI / radina) * 100) / 100; // 将弧度转换成角度
if (mx > px && my > py) {// 鼠标在第四象限
angle = 180 - angle;
}
if (mx === px && my > py) {// 鼠标在y轴负方向上
angle = 180;
}
if (mx > px && my === py) {// 鼠标在x轴正方向上
angle = 90;
}
if (mx < px && my > py) {// 鼠标在第三象限
angle = 180 + angle;
}
if (mx < px && my === py) {// 鼠标在x轴负方向
angle = 270;
}
if (mx < px && my < py) {// 鼠标在第二象限
angle = 360 - angle;
}
// console.log('angle: ', angle);
return angle;
}
export function exchangeNodePos(baseNode, targetNode) {
return baseNode.convertToNodeSpaceAR(targetNode._parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y)));
}
export function RandomInt(a, b = 0) {
let max = Math.max(a, b);
let min = Math.min(a, b);
return Math.floor(Math.random() * (max - min) + min);
}
export function randomSortByArr(arr) {
const newArr = [];
const tmpArr = arr.concat();
while (tmpArr.length > 0) {
const randomIndex = Math.floor(tmpArr.length * Math.random());
newArr.push(tmpArr[randomIndex]);
tmpArr.splice(randomIndex, 1);
}
return newArr;
}
export function setSprNodeMaxLen(sprNode, maxW, maxH) {
const sx = maxW / sprNode.width;
const sy = maxH / sprNode.height;
const s = Math.min(sx, sy);
sprNode.scale = Math.round(s * 1000) / 1000;
}
export function localPosTolocalPos(baseNode, targetNode) {
const worldPos = targetNode.parent.convertToWorldSpaceAR(cc.v2(targetNode.x, targetNode.y));
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function worldPosToLocalPos(worldPos, baseNode) {
const localPos = baseNode.parent.convertToNodeSpaceAR(cc.v2(worldPos.x, worldPos.y));
return localPos;
}
export function getScaleRateBy2Node(baseNode, targetNode, maxFlag = true) {
const worldRect1 = targetNode.getBoundingBoxToWorld();
const worldRect2 = baseNode.getBoundingBoxToWorld();
const sx = worldRect1.width / worldRect2.width;
const sy = worldRect1.height / worldRect2.height;
if (maxFlag) {
return Math.max(sx, sy);
} else {
return Math.min(sx, sy);
}
}
export function getDistance(start, end) {
var pos = cc.v2(start.x - end.x, start.y - end.y);
var dis = Math.sqrt(pos.x * pos.x + pos.y * pos.y);
return dis;
}
export function playAudioByUrl(audio_url, cb = null) {
if (audio_url) {
cc.assetManager.loadRemote(audio_url, (err, audioClip) => {
const audioId = cc.audioEngine.play(audioClip, false, 0.8);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
});
}
}
export function btnClickAnima(btn, time = 0.15, rate = 1.05) {
btn.tmpScale = btn.scale;
btn.on(cc.Node.EventType.TOUCH_START, () => {
cc.tween(btn)
.to(time / 2, { scale: btn.scale * rate })
.start()
})
btn.on(cc.Node.EventType.TOUCH_CANCEL, () => {
cc.tween(btn)
.to(time / 2, { scale: btn.tmpScale })
.start()
})
btn.on(cc.Node.EventType.TOUCH_END, () => {
cc.tween(btn)
.to(time / 2, { scale: btn.tmpScale })
.start()
})
}
export function setNetImg(item, res, { w, h }, custom = true) {
return new Promise((resolve, reject) => {
if (!item) return console.warn("图片更换失败,传入了错误的item");
let node = item.node ? item.node : item;
if (!res) {
if (node) node.active = false;
return console.warn("图片更换失败,传入了错误的res");
}
if (!node) return console.warn("图片更换失败,传入了错误的item");
if (node.net_url == res) return;
node.active = false;//
cc.loader.load({ url: res }, (err, texture) => {
if (err && !texture) return resolve(console.warn('loading loadRes warn-> ' + texture));
if (!cc.isValid(node)) return console.info("节点已销毁");
let nw = node.width = texture.width;
let nh = node.height = texture.height;
let component = node.getComponent(cc.Sprite);
let spriteFrame = new cc.SpriteFrame(texture);
component.spriteFrame = spriteFrame;
node.net_url = res;
if (!cc.isValid(node)) return console.info("节点已销毁");
if (!node) return console.warn("节点已销毁");
if (w && h && custom) {
let scaleX = w / nw;
let scaleY = h / nh;
let scale = scaleX <= scaleY ? scaleX : scaleY;
node.width = nw * scale;
node.height = nh * scale;
}
node.active = true;
resolve({ w: nw, h: nh });
});
})
}
export function getSpriteFrimeByUrl(url, cb) {
cc.loader.load({ url }, (err, img) => {
const spriteFrame = new cc.SpriteFrame(img)
if (cb) {
cb(spriteFrame);
}
})
}
export function getSprNode(resName) {
const sf = cc.find('Canvas/res/img/' + resName).getComponent(cc.Sprite).spriteFrame;
const node = new cc.Node();
node.addComponent(cc.Sprite).spriteFrame = sf;
return node;
}
export function getSprNodeByUrl(url, cb) {
const node = new cc.Node();
const spr = node.addComponent(cc.Sprite);
getSpriteFrimeByUrl(url, (sf) => {
spr.spriteFrame = sf;
if (cb) {
cb(spr);
}
})
}
export function playAudio(audioClip, cb = null) {
if (audioClip) {
const audioId = cc.audioEngine.playEffect(audioClip, false);
if (cb) {
cc.audioEngine.setFinishCallback(audioId, () => {
cb();
});
}
}
}
export async function asyncDelay(time) {
return new Promise((resolve, reject) => {
try {
cc.tween(cc.find('Canvas'))
.delay(time)
.call(() => {
resolve(null);
})
.start();
} catch (e) {
reject(e);
}
})
}
export async function asyncLoadDragonBoneAnime(node, { skeJsonData: { url: skeJsonDataUrl }, texJsonData: { url: texJsonDataUrl }, texPngData: { url: texPngDataUrl } }) {
if (!texPngDataUrl || !texJsonDataUrl || !texPngDataUrl
|| texPngDataUrl == '' || texJsonDataUrl == '' || texPngDataUrl == '') {
return;
}
return new Promise((resolve, reject) => {
if (node.animaNode) {
node.animaNode.removeFromParent();
}
const animaNode = new cc.Node();
animaNode.name = 'animaNode';
animaNode.parent = node;
animaNode.active = true;
node.animaNode = animaNode;
const dragonDisplay = animaNode.addComponent(dragonBones.ArmatureDisplay);
const loadTexture = new Promise((resolve, reject) => {
cc.assetManager.loadRemote(texPngDataUrl, (error, texture) => {
if (error) {
reject(error);
}
resolve(texture);
});
});
const loadTexJsonData = new Promise((resolve, reject) => {
cc.assetManager.loadRemote(texJsonDataUrl, (error, atlasJson) => {
if (error) {
reject(error);
}
resolve(atlasJson);
});
});
const loadSkeJsonData = new Promise((resolve, reject) => {
cc.assetManager.loadRemote(skeJsonDataUrl, (error, dragonBonesJson) => {
if (error) {
reject(error);
}
resolve(dragonBonesJson);
});
});
Promise.all([loadTexture, loadTexJsonData, loadSkeJsonData]).then(([texture, atlasJson, dragonBonesJson]) => {
const atlas = new dragonBones.DragonBonesAtlasAsset();
atlas.atlasJson = JSON.stringify(atlasJson.json);
atlas.texture = texture;
const asset = new dragonBones.DragonBonesAsset();
asset.dragonBonesJson = JSON.stringify(dragonBonesJson.json);
dragonDisplay.dragonAtlasAsset = atlas;
dragonDisplay.dragonAsset = asset;
//设置
let defaultArmature = dragonBonesJson.json.armature[0];//aramture 所有的骨骼名称
dragonDisplay.armatureName = defaultArmature.name;
resolve(animaNode);
});
});
}
export class FireworkSettings {
baseNode; // 父节点
nodeList; // 火花节点的array
pos; // 发射点
side; // 发射方向
range; // 扩散范围
number; // 发射数量
scalseRange; // 缩放范围
constructor(baseNode, nodeList,
pos = cc.v2(0, 0),
side = cc.v2(0, 100),
range = 50,
number = 100,
scalseRange = 0
) {
this.baseNode = baseNode;
this.nodeList = nodeList;
this.pos = pos;
this.side = side;
this.range = range;
this.number = number;
this.scalseRange = scalseRange;
}
static copy(firework) {
return new FireworkSettings(
firework.baseNode,
firework.nodeList,
firework.pos,
firework.side,
firework.range,
firework.number,
);
}
}
export async function showFireworks(fireworkSettings) {
const { baseNode, nodeList, pos, side, range, number, scalseRange } = fireworkSettings;
new Array(number).fill(' ').forEach(async (_, i) => {
let rabbonNode = new cc.Node();
rabbonNode.parent = baseNode;
rabbonNode.x = pos.x;
rabbonNode.y = pos.y;
rabbonNode.angle = 60 * Math.random() - 30;
let node = cc.instantiate(nodeList[RandomInt(nodeList.length)]);
node.parent = rabbonNode;
node.active = true;
node.x = 0;
node.y = 0;
node.angle = 0;
node.scale = (Math.random() - 0.5) * scalseRange + 1;
const rate = Math.random();
const angle = Math.PI * (Math.random() * 2 - 1);
await asyncTweenBy(rabbonNode, 0.3, {
x: side.x * rate + Math.cos(angle) * range * rate,
y: side.y * rate + Math.sin(angle) * range * rate
}, {
easing: 'quadIn'
});
cc.tween(rabbonNode)
.by(8, { y: -2000 })
.start();
cc.tween(rabbonNode)
.to(5, { scale: (Math.random() - 0.5) * scalseRange + 1 })
.start();
rabbonFall(rabbonNode);
await asyncDelay(Math.random());
cc.tween(node)
.by(0.15, { x: -10, angle: -10 })
.by(0.3, { x: 20, angle: 20 })
.by(0.15, { x: -10, angle: -10 })
.union()
.repeatForever()
.start();
cc.tween(rabbonNode)
.delay(5)
.to(0.3, { opacity: 0 })
.call(() => {
node.stopAllActions();
node.active = false;
node.parent = null;
node = null;
})
.start();
});
}
async function rabbonFall(node) {
const time = 1 + Math.random();
const offsetX = RandomInt(-200, 200) * time;
await asyncTweenBy(node, time, { x: offsetX, angle: offsetX * 60 / 200 });
rabbonFall(node);
}
export async function asyncTweenTo(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
try {
cc.tween(node)
.to(duration, obj, ease)
.call(() => {
resolve(null);
})
.start();
} catch (e) {
reject(e);
}
});
}
export async function asyncTweenBy(node, duration, obj, ease = undefined) {
return new Promise((resolve, reject) => {
try {
cc.tween(node)
.by(duration, obj, ease)
.call(() => {
resolve(null);
})
.start();
} catch (e) {
reject(e);
}
});
}
export function showTrebleFirework(baseNode, rabbonList) {
const middle = new FireworkSettings(baseNode, rabbonList);
middle.pos = cc.v2(0, -400);
middle.side = cc.v2(0, 1000);
middle.range = 200;
middle.number = 100;
middle.scalseRange = 0.4;
const left = FireworkSettings.copy(middle);
left.pos = cc.v2(-600, -400);
left.side = cc.v2(200, 1000);
const right = FireworkSettings.copy(middle);
right.pos = cc.v2(600, -400);
right.side = cc.v2(-200, 1000);
showFireworks(middle);
showFireworks(left);
showFireworks(right);
}
export function onHomeworkFinish(data) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.onHomeworkFinish(() => {}, data);
} else {
console.log('onHomeworkFinish', data);
}
}
export function jumpToBundle(bundleName) {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.loadOnlineBundle(bundleName);
} else {
console.log('jump to bundle: ' + bundleName);
}
}
export function jumpToLogin() {
const middleLayer = cc.find('middleLayer');
if (middleLayer) {
const middleLayerComponent = middleLayer.getComponent('middleLayer');
middleLayerComponent.loadOnlineBundle("NJ_login");
} else {
console.log('jump to bundle: NJ_login');
}
}
export function asyncCallNetworkApiGet(apiName, data) {
return new Promise((resolve, reject) => {
callNetworkApiGet(apiName, data, (res => {
resolve(res);
}));
});
}
export function asyncCallNetworkApiPost(uri, data) {
return new Promise((resolve, reject) => {
callNetworkApiPost(uri, data, (res) => {
resolve(res);
});
});
}
export function callNetworkApiPost(uri, data, callBack) {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.callNetworkApiPost(uri, data, callBack);
return;
}
const baseUrl = 'http://staging-openapi.iteachabc.com';
const xhr = new XMLHttpRequest();
const url = `${baseUrl}${uri}`;
xhr.open("POST", url, true);
xhr.setRequestHeader('content-type', 'application/json');
xhr.onreadystatechange = () => {
if (xhr.readyState == 4) {
callBack(JSON.parse(xhr.responseText));
}
}
xhr.send(JSON.stringify(data));
}
export function callNetworkApiGet(uri, data, callBack) {
const middleLayer = cc.find('middleLayer')?.getComponent('middleLayer');
if (middleLayer) {
middleLayer.callNetworkApiGet(uri, data, callBack);
return;
}
const baseUrl = 'http://staging-openapi.iteachabc.com';
let queryStr = '?';
const params = [];
for (const key in data) {
if (Object.hasOwnProperty.call(data, key)) {
params.push(`${key}=${data[key]}`);
}
}
queryStr += params.join("&");
const xhr = new XMLHttpRequest();
xhr.onreadystatechange = () => {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) {
callBack(xhr.responseText);
}
};
const url = `${baseUrl}${uri}${queryStr}`;
console.log('url = ' + url);
xhr.open('GET', url, true);
xhr.send();
}
function httpHeadCall(requsetUrl, callback) {
let xhr = new XMLHttpRequest();
console.log("Status: Send Post Request to " + requsetUrl);
try {
xhr.onreadystatechange = () => {
try {
console.log('xhr.readyState: ', xhr.readyState);
if (xhr.readyState == 4) {
if ((xhr.status >= 200 && xhr.status < 400)) {
callback(true);
} else {
callback(false);
}
}
} catch (e) {
console.log(e)
}
};
xhr.open("HEAD", requsetUrl, true);
xhr.send();
xhr.timeout = 15000;
xhr.onerror = (e) => {
console.log("汪汪汪 posterror", e);
callback(false);
};
xhr.ontimeout = (e) => {
console.log("汪汪汪 ontimeout", e);
callback(false);
};
} catch (e) {
console.log("Send Get Request error: ", e)
}
};
export function getVideoUrl(video_url, callback) {
const url1 = video_url;
const url2 = url1.replace(/.mp4$/g, "_l.mp4");
httpHeadCall(url2, (success) => {
if (success) {
console.log('return url2: ', url2);
callback(url2);
} else {
console.log('return url1: ', url1);
callback(url1);
}
})
};
export function buttonOnceClick(button, callback, scale = 1.0) {
button.addComponent(cc.Button);
const func = () => {
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();
}
button.off('click');
button.once('click', func);
}
export function buttonOnClick(button, callback, scale = 1.0) {
button.on('click', () => {
if (button['cantClick']) {
return;
}
button['cantClick'] = true;
callback && callback();
button['cantClick'] = false;
});
}
export function asyncGetSpriteFrimeByUrl(url) {
return new Promise((resolve, reject) => {
cc.loader.load({ url }, (err, img) => {
if (err) {
reject(err);
return;
}
const spriteFrame = new cc.SpriteFrame(img)
resolve(spriteFrame);
})
});
}
\ No newline at end of file
{
"ver": "1.0.8",
"uuid": "8b8f565c-a90c-4919-ab4a-7cec87e53873",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "a0910f9d-063b-4f28-ad70-008cb77f6673",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "13f89b4a-cdb6-40c6-85dd-5cdb8ad917e5",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9467816a-a150-4a80-864c-1630f46876d5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 460,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "7b1b9a24-6ffe-428a-94f7-a4167e2f58c9",
"rawTextureUuid": "9467816a-a150-4a80-864c-1630f46876d5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 460,
"height": 1080,
"rawWidth": 460,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5231ba36-fe05-472a-8ac4-522754ab8fb5",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 548,
"platformSettings": {},
"subMetas": {
"bg_bottom": {
"ver": "1.0.4",
"uuid": "234ab084-10f0-444b-9317-05a2e79fc865",
"rawTextureUuid": "5231ba36-fe05-472a-8ac4-522754ab8fb5",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 548,
"rawWidth": 1920,
"rawHeight": 548,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "23b8aafb-c37c-45e2-900b-152c979928f2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 223,
"height": 274,
"platformSettings": {},
"subMetas": {
"bg_left": {
"ver": "1.0.4",
"uuid": "6f7064ca-1a2b-40d6-9fd1-bee219ca78a8",
"rawTextureUuid": "23b8aafb-c37c-45e2-900b-152c979928f2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 223,
"height": 274,
"rawWidth": 223,
"rawHeight": 274,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "abf0b0cd-2c1f-4998-a7ad-8d460f9488fc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 200,
"height": 327,
"platformSettings": {},
"subMetas": {
"bg_right": {
"ver": "1.0.4",
"uuid": "8274ddd3-3e42-4e68-aa18-1cfc3385f7c7",
"rawTextureUuid": "abf0b0cd-2c1f-4998-a7ad-8d460f9488fc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 200,
"height": 327,
"rawWidth": 200,
"rawHeight": 327,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1ec7d2ee-8183-490b-b0d4-a1f54df4ac22",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 971,
"height": 717,
"platformSettings": {},
"subMetas": {
"bg_video_bg": {
"ver": "1.0.4",
"uuid": "bbf1e3a9-27e1-420a-adf7-4bede4e54e51",
"rawTextureUuid": "1ec7d2ee-8183-490b-b0d4-a1f54df4ac22",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 971,
"height": 717,
"rawWidth": 971,
"rawHeight": 717,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2368a4b6-479f-4a0b-80e3-ef03b62fb202",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1255,
"height": 891,
"platformSettings": {},
"subMetas": {
"bg_video_bg2": {
"ver": "1.0.4",
"uuid": "bdfd467d-5c1a-41e7-9271-27892b0b7769",
"rawTextureUuid": "2368a4b6-479f-4a0b-80e3-ef03b62fb202",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1255,
"height": 891,
"rawWidth": 1255,
"rawHeight": 891,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "80283efa-d05b-4f13-8b37-6a34d35349e8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 971,
"height": 717,
"platformSettings": {},
"subMetas": {
"bg_video_bg_mask": {
"ver": "1.0.4",
"uuid": "4942db0a-b739-4f31-987a-a9b8c76ed038",
"rawTextureUuid": "80283efa-d05b-4f13-8b37-6a34d35349e8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 81.5,
"trimX": 50,
"trimY": 6,
"width": 870,
"height": 542,
"rawWidth": 971,
"rawHeight": 717,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "79c3bd4b-f24a-4b59-a849-7e0cd4c2187d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 417,
"height": 256,
"platformSettings": {},
"subMetas": {
"bg_video_chosen": {
"ver": "1.0.4",
"uuid": "9db8ec1a-5f28-4f9c-99ef-b66018fd54e5",
"rawTextureUuid": "79c3bd4b-f24a-4b59-a849-7e0cd4c2187d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 417,
"height": 256,
"rawWidth": 417,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3baa58ea-b70f-4443-9297-6c714c2e1ad7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 417,
"height": 256,
"platformSettings": {},
"subMetas": {
"bg_video_chosen_mask": {
"ver": "1.0.4",
"uuid": "116e7f0f-5a2d-4bd5-947e-7248356ea211",
"rawTextureUuid": "3baa58ea-b70f-4443-9297-6c714c2e1ad7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 8,
"trimX": 25,
"trimY": 6,
"width": 367,
"height": 228,
"rawWidth": 417,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "57f3ede2-4bf5-4324-922b-6243e0f55ea4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 348,
"height": 228,
"platformSettings": {},
"subMetas": {
"bg_video_unchosen": {
"ver": "1.0.4",
"uuid": "5ffb0180-b8f3-4086-8e95-6c4652eaa3ac",
"rawTextureUuid": "57f3ede2-4bf5-4324-922b-6243e0f55ea4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 348,
"height": 228,
"rawWidth": 348,
"rawHeight": 228,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8352083c-cf27-417d-b2b9-bb6df90744be",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 636,
"height": 55,
"platformSettings": {},
"subMetas": {
"bg_videotime_bg": {
"ver": "1.0.4",
"uuid": "a03aadf0-e818-47f3-bab6-4f77bbfd969c",
"rawTextureUuid": "8352083c-cf27-417d-b2b9-bb6df90744be",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 11,
"trimX": 13,
"trimY": 2,
"width": 610,
"height": 29,
"rawWidth": 636,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4fe753b6-8bb6-4ad5-8c80-a0560ac569d6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 636,
"height": 55,
"platformSettings": {},
"subMetas": {
"bg_videotime_progress": {
"ver": "1.0.4",
"uuid": "5e42909c-f0ec-4b12-9feb-f695eee4def5",
"rawTextureUuid": "4fe753b6-8bb6-4ad5-8c80-a0560ac569d6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 636,
"height": 55,
"rawWidth": 636,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "45afad3b-bde7-4f10-bb6f-fb39b4ff1951",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 120,
"platformSettings": {},
"subMetas": {
"btn_downsize": {
"ver": "1.0.4",
"uuid": "381a6930-a3ed-432a-9297-e1eeef2a0082",
"rawTextureUuid": "45afad3b-bde7-4f10-bb6f-fb39b4ff1951",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 120,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6221b93a-64fb-4125-a6a5-fc245cf77b40",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 103,
"height": 103,
"platformSettings": {},
"subMetas": {
"btn_last": {
"ver": "1.0.4",
"uuid": "d0893e19-3900-461f-b09e-ecc435b815ba",
"rawTextureUuid": "6221b93a-64fb-4125-a6a5-fc245cf77b40",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 103,
"height": 103,
"rawWidth": 103,
"rawHeight": 103,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "1e1f7dfb-c23a-406a-aeca-e961cffefbfb",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 103,
"height": 103,
"platformSettings": {},
"subMetas": {
"btn_next": {
"ver": "1.0.4",
"uuid": "c528c2a2-e7b9-4f8b-9cd2-5cdd956ae9c0",
"rawTextureUuid": "1e1f7dfb-c23a-406a-aeca-e961cffefbfb",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 103,
"height": 103,
"rawWidth": 103,
"rawHeight": 103,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "deec6641-b22a-4b0c-a8c0-f2b41769c0c7",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 120,
"platformSettings": {},
"subMetas": {
"btn_play": {
"ver": "1.0.4",
"uuid": "623242fc-e6b2-41a3-929d-d5594ba9c99b",
"rawTextureUuid": "deec6641-b22a-4b0c-a8c0-f2b41769c0c7",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 120,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6be1c5a5-6bf2-4607-b335-3c366e3d56e8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 132,
"height": 132,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "b657058c-bcb3-456e-894f-6c8fa554dc16",
"rawTextureUuid": "6be1c5a5-6bf2-4607-b335-3c366e3d56e8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 2,
"trimY": 2,
"width": 128,
"height": 130,
"rawWidth": 132,
"rawHeight": 132,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7af0f94a-d2c1-43c4-bed0-b1641d46e996",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 120,
"platformSettings": {},
"subMetas": {
"btn_stop": {
"ver": "1.0.4",
"uuid": "bc7f3310-02e0-4bb5-a1be-aca4ddf1f34a",
"rawTextureUuid": "7af0f94a-d2c1-43c4-bed0-b1641d46e996",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 120,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "126e2084-2f8b-48a1-9a46-38ca2cdaf454",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 120,
"height": 120,
"platformSettings": {},
"subMetas": {
"btn_zoomin": {
"ver": "1.0.4",
"uuid": "f9e619b2-4f7a-40cf-99c6-2f303cfd5a6e",
"rawTextureUuid": "126e2084-2f8b-48a1-9a46-38ca2cdaf454",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 120,
"height": 120,
"rawWidth": 120,
"rawHeight": 120,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "01139abc-ab61-4bbd-bd17-b4552b071eca",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"尺寸": {
"ver": "1.0.4",
"uuid": "bf300679-7480-41b8-a896-bb88dec4fc03",
"rawTextureUuid": "01139abc-ab61-4bbd-bd17-b4552b071eca",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "31364ae0-1b3d-49e2-96af-6f2987a3c289",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"看动画": {
"ver": "1.0.4",
"uuid": "acb84a7d-725a-41af-895c-6235fa395d0c",
"rawTextureUuid": "31364ae0-1b3d-49e2-96af-6f2987a3c289",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "715805a4-91bc-4372-9375-ae7d3689dbe3",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"看动画2": {
"ver": "1.0.4",
"uuid": "8267a57b-24ea-470d-a60c-4417e501f313",
"rawTextureUuid": "715805a4-91bc-4372-9375-ae7d3689dbe3",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{ {
"ver": "1.1.2", "ver": "1.1.2",
"uuid": "7a071770-0b56-4d5a-9f25-1c3bb16aa603", "uuid": "0db8f105-0469-496e-9a19-de25f8e1a078",
"isBundle": false, "isBundle": false,
"bundleName": "", "bundleName": "",
"priority": 1, "priority": 1,
......
{
"ver": "2.3.5",
"uuid": "de1c0ed7-5cf7-45c9-8d62-d82f598d74dc",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg": {
"ver": "1.0.4",
"uuid": "82179df8-a8f0-4782-87fb-93835aa2425f",
"rawTextureUuid": "de1c0ed7-5cf7-45c9-8d62-d82f598d74dc",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "35f8333f-8709-4de1-811e-d8c2c1de6f24",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 286,
"height": 310,
"platformSettings": {},
"subMetas": {
"bg_empty": {
"ver": "1.0.4",
"uuid": "5ee55e2e-0823-4a78-955d-f4b38cfadbdf",
"rawTextureUuid": "35f8333f-8709-4de1-811e-d8c2c1de6f24",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 286,
"height": 310,
"rawWidth": 286,
"rawHeight": 310,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "db0dc39d-a6fc-470a-9c10-0b8130b701ba",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1259,
"height": 98,
"platformSettings": {},
"subMetas": {
"bg_video_bottom": {
"ver": "1.0.4",
"uuid": "944e1e8a-b189-46cd-a7ba-d3c86aaa73f7",
"rawTextureUuid": "db0dc39d-a6fc-470a-9c10-0b8130b701ba",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1259,
"height": 98,
"rawWidth": 1259,
"rawHeight": 98,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f4148bd8-9b00-4e73-871e-38592da4ef97",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 1320,
"height": 776,
"platformSettings": {},
"subMetas": {
"bg_video_shadow": {
"ver": "1.0.4",
"uuid": "086afe24-36cf-4acb-a26e-0cf3fade2b6e",
"rawTextureUuid": "f4148bd8-9b00-4e73-871e-38592da4ef97",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1320,
"height": 776,
"rawWidth": 1320,
"rawHeight": 776,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4c49c091-e090-4d1d-9514-2969c638db31",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 91,
"height": 91,
"platformSettings": {},
"subMetas": {
"btn_replay": {
"ver": "1.0.4",
"uuid": "16ea0a4c-9fd6-4334-8f5a-56b9ec1673f8",
"rawTextureUuid": "4c49c091-e090-4d1d-9514-2969c638db31",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 91,
"height": 91,
"rawWidth": 91,
"rawHeight": 91,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "93150b0c-6b0b-4efd-a9c7-c9de4ea89217",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 96,
"height": 73,
"platformSettings": {},
"subMetas": {
"btn_return": {
"ver": "1.0.4",
"uuid": "b2f066b5-f1a9-4fdc-9364-796c91b086eb",
"rawTextureUuid": "93150b0c-6b0b-4efd-a9c7-c9de4ea89217",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 96,
"height": 73,
"rawWidth": 96,
"rawHeight": 73,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5de3473e-8885-4416-bf83-f8eae55c2348",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 91,
"height": 91,
"platformSettings": {},
"subMetas": {
"btn_start": {
"ver": "1.0.4",
"uuid": "da418ab0-6bf6-401e-ad24-d27cca267d4f",
"rawTextureUuid": "5de3473e-8885-4416-bf83-f8eae55c2348",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 91,
"height": 91,
"rawWidth": 91,
"rawHeight": 91,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "7ccf116b-22c0-4ea7-aab8-939097279dbf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 91,
"height": 91,
"platformSettings": {},
"subMetas": {
"btn_stop": {
"ver": "1.0.4",
"uuid": "e89e23bb-5d4b-45e2-952c-753062416f03",
"rawTextureUuid": "7ccf116b-22c0-4ea7-aab8-939097279dbf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 91,
"height": 91,
"rawWidth": 91,
"rawHeight": 91,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "28c82057-046a-4a62-9b4f-f560d8d4898d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 68,
"height": 68,
"platformSettings": {},
"subMetas": {
"btn_tiao": {
"ver": "1.0.4",
"uuid": "b42b439b-c03b-4687-98c4-39a3b8fe830f",
"rawTextureUuid": "28c82057-046a-4a62-9b4f-f560d8d4898d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 68,
"height": 68,
"rawWidth": 68,
"rawHeight": 68,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "d0079242-fa68-419f-ac48-3039775a68c8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 257,
"height": 177,
"platformSettings": {},
"subMetas": {
"empty_white": {
"ver": "1.0.4",
"uuid": "f3b8db00-c61e-437d-a40f-e051aad58737",
"rawTextureUuid": "d0079242-fa68-419f-ac48-3039775a68c8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 257,
"height": 177,
"rawWidth": 257,
"rawHeight": 177,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c1f665d8-ee6a-4a48-97d3-934771b86628",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 226,
"height": 126,
"platformSettings": {},
"subMetas": {
"example": {
"ver": "1.0.4",
"uuid": "0b4b9901-b33f-486d-896a-b5f6da037535",
"rawTextureUuid": "c1f665d8-ee6a-4a48-97d3-934771b86628",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 226,
"height": 126,
"rawWidth": 226,
"rawHeight": 126,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "eca6275d-4886-4508-b957-b359c4d6c6b4",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 55,
"height": 55,
"platformSettings": {},
"subMetas": {
"exitfull": {
"ver": "1.0.4",
"uuid": "0a604615-4a1e-4bb1-b106-3a95f04d3e88",
"rawTextureUuid": "eca6275d-4886-4508-b957-b359c4d6c6b4",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 55,
"height": 55,
"rawWidth": 55,
"rawHeight": 55,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2da91cfa-5880-4e41-bfbd-997e31f618c6",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 73,
"height": 73,
"platformSettings": {},
"subMetas": {
"fullscreen": {
"ver": "1.0.4",
"uuid": "e6977100-ddff-47b9-8887-5f6476bdca44",
"rawTextureUuid": "2da91cfa-5880-4e41-bfbd-997e31f618c6",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 73,
"height": 73,
"rawWidth": 73,
"rawHeight": 73,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "20e3baea-7cb5-4e21-aa51-a6624e7109be",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 445,
"height": 309,
"platformSettings": {},
"subMetas": {
"item": {
"ver": "1.0.4",
"uuid": "61764693-df4c-40d8-a43a-942122ca51f7",
"rawTextureUuid": "20e3baea-7cb5-4e21-aa51-a6624e7109be",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 445,
"height": 309,
"rawWidth": 445,
"rawHeight": 309,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "2f089de4-a610-4d2b-be46-25bda5705827",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 445,
"height": 309,
"platformSettings": {},
"subMetas": {
"item_active": {
"ver": "1.0.4",
"uuid": "94b231cb-631d-47a1-9a87-914df89b034d",
"rawTextureUuid": "2f089de4-a610-4d2b-be46-25bda5705827",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 445,
"height": 309,
"rawWidth": 445,
"rawHeight": 309,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9612de04-73ba-4567-9495-877d680c3343",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 790,
"height": 9,
"platformSettings": {},
"subMetas": {
"process": {
"ver": "1.0.4",
"uuid": "b035c74f-9f28-4698-8325-8fe9ec6e3db0",
"rawTextureUuid": "9612de04-73ba-4567-9495-877d680c3343",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 790,
"height": 9,
"rawWidth": 790,
"rawHeight": 9,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 11,
"borderRight": 9,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f65a0aae-287a-4aca-ac1d-357133a63dc8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 789,
"height": 9,
"platformSettings": {},
"subMetas": {
"processbg": {
"ver": "1.0.4",
"uuid": "4a11e302-ced0-4bf8-bdc3-baf51bf64c3a",
"rawTextureUuid": "f65a0aae-287a-4aca-ac1d-357133a63dc8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 789,
"height": 9,
"rawWidth": 789,
"rawHeight": 9,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 15,
"borderRight": 15,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e5fdc093-6aeb-4d46-9cf2-27908340b6ac",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": true,
"genMipmaps": false,
"packable": true,
"width": 280,
"height": 125,
"platformSettings": {},
"subMetas": {
"text_tips": {
"ver": "1.0.4",
"uuid": "c4ea6240-75df-47f8-aa4e-e77c1ac4806e",
"rawTextureUuid": "e5fdc093-6aeb-4d46-9cf2-27908340b6ac",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -1,
"trimX": 16,
"trimY": 9,
"width": 248,
"height": 109,
"rawWidth": 280,
"rawHeight": 125,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "14be17ee-79b4-43a8-82c8-ee89af219a5e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{"frameRate":24,"name":"img_audio","version":"5.5","compatibleVersion":"5.5","armature":[{"type":"Armature","frameRate":24,"name":"armatureName","aabb":{"x":-27.5,"y":-21,"width":55,"height":42},"bone":[{"name":"root"},{"length":14,"name":"1","parent":"root","transform":{"x":-25.4036,"skX":-90,"skY":-90}},{"length":14,"name":"2","parent":"root","transform":{"x":-19.3116,"skX":-90,"skY":-90}},{"length":19,"name":"3","parent":"root","transform":{"x":-12.9746,"skX":-90,"skY":-90}},{"length":15,"name":"4","parent":"root","transform":{"x":-7.1302,"skX":-90,"skY":-90}},{"length":21,"name":"5","parent":"root","transform":{"x":-0.9168,"skX":-90,"skY":-90}},{"length":17,"name":"6","parent":"root","transform":{"x":5.4841,"skX":-90,"skY":-90}},{"length":18,"name":"7","parent":"root","transform":{"x":12.4269,"skX":-90,"skY":-90}},{"length":16,"name":"8","parent":"root","transform":{"x":19.0094,"skX":-90,"skY":-90}},{"length":17,"name":"9","parent":"root","transform":{"x":25.5843,"skX":-90,"skY":-90}}],"slot":[{"name":"9","parent":"9"},{"name":"8","parent":"8"},{"name":"7","parent":"7"},{"name":"6","parent":"6"},{"name":"5","parent":"5"},{"name":"4","parent":"4"},{"name":"3","parent":"3"},{"name":"2","parent":"2"},{"name":"1","parent":"1"}],"skin":[{"slot":[{"name":"6","display":[{"name":"6","transform":{"y":0.02,"skX":90,"skY":90}}]},{"name":"7","display":[{"name":"7","transform":{"y":0.07,"skX":90,"skY":90}}]},{"name":"8","display":[{"name":"8","transform":{"x":0.5,"y":-0.51,"skX":90,"skY":90}}]},{"name":"1","display":[{"name":"1","transform":{"y":0.4,"skX":90,"skY":90}}]},{"name":"2","display":[{"name":"2","transform":{"y":-0.19,"skX":90,"skY":90}}]},{"name":"3","display":[{"name":"3","transform":{"y":-0.03,"skX":90,"skY":90}}]},{"name":"4","display":[{"name":"4","transform":{"x":0.5,"y":-0.37,"skX":90,"skY":90}}]},{"name":"9","display":[{"name":"9","transform":{"y":-0.58,"skX":90,"skY":90}}]},{"name":"5","display":[{"name":"5","transform":{"y":-0.08,"skX":90,"skY":90}}]}]}],"animation":[{"duration":24,"playTimes":0,"name":"newAnimation","bone":[{"name":"1","scaleFrame":[{"duration":6,"tweenEasing":0},{"duration":18,"tweenEasing":0,"x":0.3},{"duration":0}]},{"name":"2","scaleFrame":[{"duration":8,"tweenEasing":0},{"duration":16,"tweenEasing":0,"x":0.15},{"duration":0}]},{"name":"3","scaleFrame":[{"duration":10,"tweenEasing":0},{"duration":14,"tweenEasing":0,"x":0.1},{"duration":0}]},{"name":"4","scaleFrame":[{"duration":12,"tweenEasing":0},{"duration":12,"tweenEasing":0,"x":0.2},{"duration":0}]},{"name":"5","scaleFrame":[{"duration":14,"tweenEasing":0},{"duration":10,"tweenEasing":0,"x":0.3},{"duration":0}]},{"name":"6","scaleFrame":[{"duration":16,"tweenEasing":0},{"duration":8,"tweenEasing":0,"x":0.2},{"duration":0}]},{"name":"7","scaleFrame":[{"duration":18,"tweenEasing":0},{"duration":6,"tweenEasing":0,"x":0.1},{"duration":0}]},{"name":"8","scaleFrame":[{"duration":20,"tweenEasing":0},{"duration":4,"tweenEasing":0,"x":0.25},{"duration":0}]},{"name":"9","scaleFrame":[{"duration":6,"tweenEasing":0},{"duration":18,"tweenEasing":0,"x":0.25},{"duration":0}]}]}],"defaultActions":[{"gotoAndPlay":"newAnimation"}]}]}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "e0b19bd2-9adc-4f60-8a47-028b69ed67d2",
"subMetas": {}
}
\ No newline at end of file
{"name":"img_audio","SubTexture":[{"name":"9","x":16,"height":12,"y":50,"width":5},{"name":"8","x":24,"height":21,"y":27,"width":6},{"name":"7","x":1,"height":42,"y":1,"width":6},{"name":"6","x":16,"height":26,"y":1,"width":6},{"name":"5","x":9,"height":12,"y":43,"width":5},{"name":"4","x":16,"height":19,"y":29,"width":6},{"name":"3","x":9,"height":40,"y":1,"width":5},{"name":"2","x":24,"height":24,"y":1,"width":6},{"name":"1","x":1,"height":12,"y":45,"width":5}],"height":64,"imagePath":"img_audio_tex.png","width":32}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "b53f4b5c-4a0b-4ea7-a795-7db518a4acd9",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "24075352-59b1-4dc8-9299-7d7808ef812f",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 32,
"height": 64,
"platformSettings": {},
"subMetas": {
"img_audio_tex": {
"ver": "1.0.4",
"uuid": "4372f410-62b5-4c40-a38f-fa7820bd5e81",
"rawTextureUuid": "24075352-59b1-4dc8-9299-7d7808ef812f",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0.5,
"trimX": 1,
"trimY": 1,
"width": 29,
"height": 61,
"rawWidth": 32,
"rawHeight": 64,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"name":"loading","version":"5.5","armature":[{"name":"Armature","ik":[],"bone":[{"name":"root","transform":{}},{"name":"组_1","transform":{"x":2.05,"skY":-90,"y":40.15,"skX":-90},"length":65,"parent":"root"},{"name":"A","transform":{"x":74.1475,"skY":90,"y":-2.05,"skX":90},"parent":"组_1"}],"aabb":{"x":-139.5,"height":180,"y":-90,"width":279},"defaultActions":[{"gotoAndPlay":"ufo"}],"animation":[{"name":"ufo","frame":[],"bone":[{"name":"root","rotateFrame":[],"translateFrame":[],"scaleFrame":[]},{"name":"组_1","rotateFrame":[{"duration":15,"rotate":8.3771,"curve":[0,0,0.5,1]},{"duration":15,"rotate":10.9763,"tweenEasing":0},{"duration":0,"rotate":8.3771}],"translateFrame":[{"curve":[0,0,0.5,1],"duration":15},{"tweenEasing":0,"y":13.0573,"duration":15},{"duration":0}],"scaleFrame":[]},{"name":"A","rotateFrame":[{"duration":10,"tweenEasing":0},{"duration":10,"rotate":-9.1133,"tweenEasing":0},{"duration":10,"rotate":-13.9913,"tweenEasing":0},{"duration":0}],"translateFrame":[{"tweenEasing":0,"duration":10},{"tweenEasing":0,"x":-6.4977,"y":1.2205,"duration":10},{"tweenEasing":0,"x":4.0509,"y":-0.6604,"duration":10},{"duration":0}],"scaleFrame":[]}],"playTimes":0,"ffd":[],"slot":[{"name":"组_1","displayFrame":[],"colorFrame":[]},{"name":"A","displayFrame":[{"duration":10},{"duration":10,"value":1},{"duration":10,"value":2},{"duration":0}],"colorFrame":[]}],"ik":[],"duration":30}],"slot":[{"name":"组_1","color":{},"parent":"组_1"},{"name":"A","color":{},"z":1,"parent":"A"}],"skin":[{"name":"","slot":[{"name":"A","display":[{"name":"ufo/A","transform":{"skY":-0.0263,"y":-1.0025,"skX":-0.0263},"type":"image","path":"ufo/A"},{"name":"ufo/B","transform":{"x":4.5,"skY":-0.0263,"y":-1.0025,"skX":-0.0263},"type":"image","path":"ufo/B"},{"name":"ufo/C","transform":{"x":-4.5,"skY":-0.0263,"y":-0.5025,"skX":-0.0263},"type":"image","path":"ufo/C"}]},{"name":"组_1","display":[{"name":"ufo/组_1","transform":{"x":40.15,"skY":89.9737,"y":-2.05,"skX":89.9737},"type":"image","path":"ufo/组_1"}]}]}],"frameRate":24,"type":"Armature"}],"frameRate":24,"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "288acd69-22c1-4220-a10c-2478978214fa",
"subMetas": {}
}
\ No newline at end of file
{"name":"loading","imagePath":"loading_tex.png","SubTexture":[{"name":"ufo/组_1","x":1,"height":180,"y":1,"width":279},{"name":"ufo/A","x":282,"height":80,"y":1,"width":83},{"name":"ufo/B","x":282,"height":80,"y":83,"width":60},{"name":"ufo/C","x":367,"height":83,"y":1,"width":58}],"height":256,"width":512}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "65279454-8940-4cc5-aebb-41989f70e57f",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "f2d76ff5-c16f-4361-9362-661c20800248",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 512,
"height": 256,
"platformSettings": {},
"subMetas": {
"loading_tex": {
"ver": "1.0.4",
"uuid": "c8e21a8a-5f7f-4a9c-a0ba-4fefc26d652f",
"rawTextureUuid": "f2d76ff5-c16f-4361-9362-661c20800248",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -43,
"offsetY": 37,
"trimX": 1,
"trimY": 1,
"width": 424,
"height": 180,
"rawWidth": 512,
"rawHeight": 256,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "6ee3be57-355f-4b0f-a280-1132563ae163",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "aa4ea06d-7e3c-48a4-82e6-c8e0aff48c90",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "1.1.0",
"uuid": "ef89c836-f5d9-4ed6-831a-e10c13c2b801",
"subMetas": {}
}
\ No newline at end of file
{"name":"allfinish","version":"5.5","frameRate":24,"armature":[{"name":"Armature","animation":[{"name":"newAnimation","frame":[],"duration":58,"ik":[],"slot":[{"name":"再来一次","displayFrame":[{"duration":40,"value":-1},{"duration":18}],"colorFrame":[]},{"name":"底条","displayFrame":[{"duration":30,"value":-1},{"duration":28}],"colorFrame":[]},{"name":"gj","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[]},{"name":"光圈","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"tweenEasing":0,"duration":1,"color":{"aM":0}},{"tweenEasing":0,"duration":11,"color":{"aM":82}},{"duration":42,"color":{"aM":0}}]},{"name":"左翅膀","displayFrame":[{"duration":27,"value":-1},{"duration":31}],"colorFrame":[]},{"name":"右翅膀","displayFrame":[{"duration":27,"value":-1},{"duration":31}],"colorFrame":[]},{"name":"奖牌","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"duration":54}]},{"name":"奖牌星","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":8,"color":{"aM":0}},{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"duration":46}]},{"name":"高光","displayFrame":[{"duration":30,"value":-1},{"duration":28}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":14,"color":{"aM":0}},{"duration":8,"curve":[0.5,0,1,1]},{"duration":6,"color":{"aM":0}}]},{"name":"红小","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"黄小","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"蓝小","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"绿小","displayFrame":[],"colorFrame":[{"duration":36,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"绿大","displayFrame":[],"colorFrame":[{"duration":36,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"红大","displayFrame":[],"colorFrame":[{"duration":36,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"蓝小1","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"黄小1","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"云","displayFrame":[],"colorFrame":[{"duration":30,"color":{"aM":0}},{"duration":28}]},{"name":"彩虹","displayFrame":[],"colorFrame":[{"duration":30,"color":{"aM":0}},{"duration":28}]},{"name":"奖杯座","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"duration":54}]},{"name":"奖杯底","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"duration":54}]},{"name":"左把手","displayFrame":[],"colorFrame":[{"duration":24,"color":{"aM":0}},{"duration":34}]},{"name":"右把手","displayFrame":[],"colorFrame":[{"duration":24,"color":{"aM":0}},{"duration":34}]}],"bone":[{"name":"root","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"底条","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":30},{"duration":6,"x":-477.6402,"tweenEasing":0},{"duration":22}]},{"name":"gj","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"光圈","rotateFrame":[],"scaleFrame":[{"duration":5,"x":0.44,"tweenEasing":0,"y":0.44},{"duration":11,"x":0.89,"tweenEasing":0,"y":0.89},{"duration":42}],"translateFrame":[{"duration":58,"x":393}]},{"name":"再来一次","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":40},{"duration":6,"x":1395.5289,"tweenEasing":0},{"duration":12,"x":11.6858}]},{"name":"红小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":100.7767,"duration":10},{"rotate":124.2255,"duration":6}],"scaleFrame":[],"translateFrame":[{"duration":36},{"duration":6,"x":16.0675,"tweenEasing":0,"y":220.0797},{"duration":10,"x":168.8221,"tweenEasing":0,"y":-8.4864},{"duration":6,"x":200.5045,"y":-23.1961}]},{"name":"红大","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":1.3504,"duration":16},{"rotate":14.684,"duration":0}],"scaleFrame":[{"duration":36},{"duration":6,"x":0.76,"tweenEasing":0,"y":0.76},{"duration":16,"x":1.06,"y":1.06}],"translateFrame":[{"duration":36},{"duration":6,"x":-75.2458,"tweenEasing":0,"y":113.8304},{"duration":16,"x":187.2658,"tweenEasing":0,"y":-45.4869},{"duration":0,"x":241.5785,"y":-65.8542}]},{"name":"黄小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-13.971,"duration":16},{"rotate":-44.2933,"duration":0}],"scaleFrame":[{"duration":42},{"duration":16,"tweenEasing":0},{"duration":0,"x":1.6852,"y":1.6852}],"translateFrame":[{"duration":36},{"duration":6,"tweenEasing":0},{"duration":16,"x":120.0538,"tweenEasing":0,"y":230.8291},{"duration":0,"x":145.9655,"y":313.7692}]},{"name":"蓝小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"rotate":-20.9945,"duration":16}],"scaleFrame":[{"duration":36},{"duration":22,"tweenEasing":0},{"duration":0,"x":1.6667,"y":1.6667}],"translateFrame":[{"duration":36},{"duration":6,"x":35.6427,"tweenEasing":0,"y":15.2755},{"duration":16,"x":17.4253,"tweenEasing":0,"y":257.0803},{"duration":0,"x":-56.1232,"y":346.0173}]},{"name":"绿小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-317.8124,"duration":16},{"rotate":-301.3673,"duration":0}],"scaleFrame":[{"duration":36},{"duration":22,"tweenEasing":0},{"duration":0,"x":1.77,"y":1.77}],"translateFrame":[{"duration":36},{"duration":6,"tweenEasing":0},{"duration":16,"x":-11.3152,"tweenEasing":0,"y":-220.1929},{"duration":0,"x":-58.8388,"y":-250.7438}]},{"name":"绿大","rotateFrame":[{"duration":36},{"tweenEasing":0,"rotate":-19.1872,"duration":6},{"tweenEasing":0,"rotate":-7.828,"duration":16},{"rotate":-2.4632,"duration":0}],"scaleFrame":[{"duration":36},{"duration":22,"x":0.66,"tweenEasing":0,"y":0.66},{"duration":0,"x":1.25,"y":1.25}],"translateFrame":[{"duration":36},{"duration":6,"x":28.6273,"tweenEasing":0,"y":-188.0578},{"duration":16,"x":-120.7327,"tweenEasing":0,"y":-23.9881},{"duration":0,"x":-150.1521,"y":-1.3578}]},{"name":"奖牌","rotateFrame":[],"scaleFrame":[{"duration":4,"x":3,"tweenEasing":0,"y":3},{"duration":54}],"translateFrame":[{"duration":18,"x":393,"tweenEasing":0},{"duration":2,"x":393,"tweenEasing":0},{"duration":38,"x":-2.2005}]},{"name":"高光","rotateFrame":[],"scaleFrame":[{"duration":30},{"duration":14,"tweenEasing":0},{"duration":8,"x":1.48,"curve":[0.5,0,1,1],"y":1.48},{"duration":6,"x":0.67,"y":0.67}],"translateFrame":[]},{"name":"奖励","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"左翅膀","rotateFrame":[{"duration":26},{"tweenEasing":0,"duration":8},{"tweenEasing":0,"rotate":-355,"duration":4},{"duration":20}],"scaleFrame":[],"translateFrame":[{"duration":26},{"duration":8,"tweenEasing":0},{"duration":4,"x":-23.797,"tweenEasing":0,"y":-0.0235},{"duration":20}]},{"name":"下一个","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"奖牌星","rotateFrame":[],"scaleFrame":[{"duration":9},{"duration":3,"x":1.2,"tweenEasing":0,"y":1.2},{"duration":46}],"translateFrame":[]},{"name":"右翅膀","rotateFrame":[{"duration":26},{"tweenEasing":0,"duration":8},{"tweenEasing":0,"rotate":-5,"duration":4},{"duration":20}],"scaleFrame":[],"translateFrame":[{"duration":26},{"duration":8,"tweenEasing":0},{"duration":4,"x":22.9471,"tweenEasing":0,"y":0.0227},{"duration":20}]},{"name":"星","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-75.8955,"tweenEasing":0,"y":53.7133},{"duration":42,"x":61.5323,"y":1.0199}]},{"name":"星1","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-40.115,"tweenEasing":0,"y":30.3412},{"duration":42,"x":-112.3559,"y":-81.8448}]},{"name":"星2","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-104.7919,"tweenEasing":0,"y":86.8591},{"duration":42,"x":-13.6833,"y":139.2126}]},{"name":"星3","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-32.5509,"tweenEasing":0,"y":4.7594},{"duration":42,"x":-134.6232,"y":70.4562}]},{"name":"星21","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-110.3162,"tweenEasing":0,"y":-179.3276},{"duration":42,"x":-112.2709,"y":-313.5258}]},{"name":"蓝小1","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-20.9945,"duration":16},{"rotate":-46.9864,"duration":0}],"scaleFrame":[],"translateFrame":[{"duration":36},{"duration":6,"x":-185.7948,"tweenEasing":0,"y":-168.4826},{"duration":16,"x":68.3435,"tweenEasing":0,"y":-17.8779},{"duration":0,"x":180.2504,"y":54.539}]},{"name":"黄小1","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-13.971,"duration":16},{"rotate":-36.3411,"duration":0}],"scaleFrame":[],"translateFrame":[{"duration":36},{"duration":6,"tweenEasing":0},{"duration":16,"x":-190.434,"tweenEasing":0,"y":-80.7902},{"duration":0,"x":-292.9493,"y":-136.0081}]},{"name":"左把手","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":24},{"duration":4,"x":18.7653,"tweenEasing":0,"y":0.0186},{"duration":2,"x":-9.0073,"tweenEasing":0,"y":-0.0089},{"duration":28}]},{"name":"右把手","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":24},{"duration":4,"x":-19.7488,"tweenEasing":0,"y":-0.0195},{"duration":2,"x":8.8861,"tweenEasing":0,"y":0.0088},{"duration":28}]},{"name":"奖杯底","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":24,"x":0.0112,"tweenEasing":0,"y":-11.3439},{"duration":4,"x":0.0112,"tweenEasing":0,"y":-11.3439},{"duration":2,"x":-0.0031,"tweenEasing":0,"y":3.0938},{"duration":28}]},{"name":"奖杯座","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":30},{"duration":6,"x":3.6094,"tweenEasing":0,"y":0.0036},{"duration":22,"x":-1.5469,"y":-0.0015}]},{"name":"云","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":30},{"duration":2,"x":-0.0164,"tweenEasing":0,"y":16.5337},{"duration":2,"x":0.0028,"tweenEasing":0,"y":-2.8116},{"duration":24}]},{"name":"彩虹","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":30},{"duration":4,"x":-37.4203,"tweenEasing":0},{"duration":4,"x":2.3348,"tweenEasing":0},{"duration":20,"x":-5.5531}]}],"playTimes":0,"ffd":[]}],"slot":[{"name":"再来一次","color":{},"parent":"再来一次"},{"name":"底条","color":{},"z":1,"parent":"底条"},{"name":"gj","color":{},"z":2,"parent":"gj"},{"name":"光圈","color":{},"z":3,"parent":"光圈"},{"name":"彩虹","color":{},"z":4,"parent":"彩虹"},{"name":"云","color":{},"z":5,"parent":"云"},{"name":"左翅膀","color":{},"z":6,"parent":"左翅膀"},{"name":"右翅膀","color":{},"z":7,"parent":"右翅膀"},{"name":"左把手","color":{},"z":8,"parent":"左把手"},{"name":"右把手","color":{},"z":9,"parent":"右把手"},{"name":"奖杯座","color":{},"z":10,"parent":"奖杯座"},{"name":"奖杯底","color":{},"z":11,"parent":"奖杯底"},{"name":"奖牌","color":{},"z":12,"parent":"奖牌"},{"name":"奖牌星","color":{},"z":13,"parent":"奖牌星"},{"name":"高光","color":{},"z":14,"parent":"高光"},{"name":"红小","color":{},"z":15,"parent":"红小"},{"name":"黄小","color":{},"z":16,"parent":"黄小"},{"name":"蓝小","color":{},"z":17,"parent":"蓝小"},{"name":"绿小","color":{},"z":18,"parent":"绿小"},{"name":"绿大","color":{},"z":19,"parent":"绿大"},{"name":"红大","color":{},"z":20,"parent":"红大"},{"name":"蓝小1","color":{},"z":21,"parent":"蓝小1"},{"name":"黄小1","color":{},"z":22,"parent":"黄小1"}],"bone":[{"name":"root","transform":{}},{"name":"底条","transform":{"x":36.6,"skY":-93.71,"y":-159.15,"skX":-93.71},"length":49,"parent":"root"},{"name":"gj","transform":{"x":146.4,"skY":-90,"y":-80.6567,"skX":-90},"length":54,"parent":"root"},{"name":"光圈","transform":{"x":-393,"y":-109},"parent":"root"},{"name":"再来一次","transform":{"x":-237.95,"skY":-135,"y":325.45,"skX":-135},"length":1,"parent":"root"},{"name":"红小","transform":{"x":257.8,"skY":45,"y":-424.95,"skX":45},"length":1,"parent":"root"},{"name":"红大","transform":{"x":615.05,"skY":-90,"y":-279.3,"skX":-90},"length":1,"parent":"root"},{"name":"黄小","transform":{"x":406.1204,"skY":18.9715,"y":30.4998,"scX":1.62,"scY":1.62,"skX":18.9715},"parent":"root"},{"name":"蓝小","transform":{"x":-490.611,"skY":87.7255,"y":79.2786,"scX":1.14,"scY":1.14,"skX":87.7255},"length":1,"parent":"root"},{"name":"绿小","transform":{"x":36.2247,"skY":151.0221,"y":-196.5644,"skX":151.0221},"parent":"root"},{"name":"绿大","transform":{"x":-653.3,"y":280.9},"parent":"root"},{"name":"奖牌","transform":{"x":-393,"skY":-0.0567,"y":-163.5718,"skX":-0.0567},"parent":"root"},{"name":"高光","transform":{"x":-270.4209,"skY":0.0257,"y":-228.2793,"skX":0.0257},"parent":"root"},{"name":"奖励","transform":{"x":44.95,"skY":180,"y":141.85,"skX":180},"length":101,"parent":"root"},{"name":"星","transform":{"x":134.45,"skY":-45,"y":-228.45,"skX":-45},"length":1,"parent":"root"},{"name":"星1","transform":{"x":-55.0763,"skY":-45,"y":-178.3063,"scX":0.9,"scY":0.9,"skX":-45},"length":1,"parent":"root"},{"name":"星2","transform":{"x":187.9933,"skY":-45,"y":-117.9638,"scX":0.8,"scY":0.8,"skX":-45},"length":1,"parent":"root"},{"name":"星3","transform":{"x":-37.9084,"skY":-45,"y":-30.2548,"skX":-45},"length":1,"parent":"root"},{"name":"星21","transform":{"x":81.4166,"skY":-45,"y":-13.1719,"scX":0.7,"scY":0.7,"skX":-45},"length":1,"parent":"root"},{"name":"蓝小1","transform":{"x":668.4,"skY":63.4349,"y":213.25,"skX":63.4349},"length":1,"parent":"root"},{"name":"黄小1","transform":{"x":105.2505,"skY":73.6246,"y":-245.5899,"skX":73.6246},"parent":"root"},{"name":"左翅膀","transform":{"x":-98.4479,"skY":180,"y":-2.216,"skX":180},"length":66,"parent":"奖牌"},{"name":"下一个","transform":{"x":-343.7953,"skY":0.0178,"y":348.3208,"skX":0.0178},"parent":"再来一次"},{"name":"奖牌星","transform":{"x":0.756,"y":-0.7305},"parent":"奖牌"},{"name":"左把手","transform":{"x":-114.0147,"skY":180,"y":20,"skX":180},"length":52,"parent":"奖牌"},{"name":"右翅膀","transform":{"x":106.6002,"y":-2.2436},"length":61,"parent":"奖牌"},{"name":"奖杯底","transform":{"x":0.8326,"skY":90,"y":97.2658,"skX":90},"length":40,"parent":"奖牌"},{"name":"云","transform":{"x":43.4606,"skY":-89.9433,"y":-111.7571,"skX":-89.9433},"parent":"奖牌"},{"name":"右把手","transform":{"x":114.2624,"y":24.0061},"length":46,"parent":"奖牌"},{"name":"奖杯座","transform":{"x":53.3344,"skY":0.0567,"y":0.7316,"skX":0.0567},"length":47,"parent":"奖杯底"},{"name":"彩虹","transform":{"x":32.25,"y":-75.8},"parent":"云"}],"skin":[{"name":"","slot":[{"name":"右把手","display":[{"name":"finish/右把手","transform":{"x":12.5819,"skY":0.0567,"y":10.1194,"skX":0.0567},"type":"image","path":"finish/右把手"}]},{"name":"绿小","display":[{"name":"finish/绿小","transform":{"x":2.6,"y":5.85},"type":"image","path":"finish/绿小"}]},{"name":"彩虹","display":[{"name":"finish/彩虹","transform":{"x":-51.2318,"skY":89.9398,"y":0.5182,"skX":89.9398},"type":"image","path":"finish/彩虹"}]},{"name":"黄小1","display":[{"name":"finish/黄小","transform":{"x":0.3,"y":0.35},"type":"image","path":"finish/黄小"}]},{"name":"底条","display":[{"name":"finish/底条","transform":{"x":-52.8279,"skY":93.6781,"y":-37.5971,"skX":93.6781},"type":"image","path":"finish/底条"}]},{"name":"奖杯座","display":[{"name":"finish/奖杯座","transform":{"x":32.9813,"skY":-90,"y":0.25,"skX":-90},"type":"image","path":"finish/奖杯座"}]},{"name":"奖牌","display":[{"name":"finish/奖牌","transform":{},"type":"image","path":"finish/奖牌"}]},{"name":"红大","display":[{"name":"finish/红大","transform":{"x":-1.8,"skY":90,"y":-17.05,"skX":90},"type":"image","path":"finish/红大"}]},{"name":"高光","display":[{"name":"finish/高光","transform":{"x":2.0406,"y":0.8},"type":"image","path":"finish/高光"}]},{"name":"左翅膀","display":[{"name":"finish/左翅膀","transform":{"x":14.0506,"skY":-179.9433,"y":-0.6046,"skX":-179.9433},"type":"image","path":"finish/左翅膀"}]},{"name":"黄小","display":[{"name":"finish/黄小","transform":{"x":0.3,"y":0.35},"type":"image","path":"finish/黄小"}]},{"name":"左把手","display":[{"name":"finish/左把手","transform":{"x":13.9627,"skY":-179.9433,"y":-13.8734,"skX":-179.9433},"type":"image","path":"finish/左把手"}]},{"name":"蓝小","display":[{"name":"finish/蓝小","transform":{"x":2.0572,"skY":-63.4349,"y":4.2709,"skX":-63.4349},"type":"image","path":"finish/蓝小"}]},{"name":"绿大","display":[{"name":"finish/绿大","transform":{"x":9.8,"y":2.6},"type":"image","path":"finish/绿大"}]},{"name":"云","display":[{"name":"finish/云","transform":{"x":2.3227,"skY":90,"y":-42.4818,"skX":90},"type":"image","path":"finish/云"}]},{"name":"蓝小1","display":[{"name":"finish/蓝小","transform":{"x":2.0572,"skY":-63.4349,"y":4.2709,"skX":-63.4349},"type":"image","path":"finish/蓝小"}]},{"name":"右翅膀","display":[{"name":"finish/右翅膀","transform":{"x":5.9013,"skY":0.0567,"y":0.8549,"skX":0.0567},"type":"image","path":"finish/右翅膀"}]},{"name":"再来一次","display":[{"name":"finish/再来一次","transform":{"x":-184.0406,"skY":135.0108,"y":160.6354,"skX":135.0108},"type":"image","path":"finish/再来一次"}]},{"name":"奖杯底","display":[{"name":"finish/奖杯底","transform":{"x":20.7342,"skY":-89.9433,"y":0.9493,"skX":-89.9433},"type":"image","path":"finish/奖杯底"}]},{"name":"奖牌星","display":[{"name":"finish/奖牌星","transform":{"x":-0.7639,"skY":0.0567,"y":8.7305,"skX":0.0567},"type":"image","path":"finish/奖牌星"}]},{"name":"光圈","display":[{"name":"finish/光圈","transform":{},"type":"image","path":"finish/光圈"}]},{"name":"红小","display":[{"name":"finish/红小","transform":{"x":8.2378,"skY":-45,"y":4.4194,"skX":-45},"type":"image","path":"finish/红小"}]},{"name":"gj","display":[{"name":"finish/gj","transform":{"x":17.1,"skY":90,"y":17.6,"skX":90},"type":"image","path":"finish/gj"}]}]}],"canvas":{"x":0,"height":1080,"y":0,"width":1920},"ik":[],"frameRate":24,"defaultActions":[{"gotoAndPlay":"newAnimation"}],"type":"Armature","aabb":{"x":-977,"height":862,"y":-445,"width":1959}}],"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "443eb374-6e3c-4ec8-b56c-e59841eeeb70",
"subMetas": {}
}
\ No newline at end of file
{"name":"allfinish","imagePath":"allfinish_tex.png","height":1024,"SubTexture":[{"name":"finish/再来一次","x":739,"height":150,"y":516,"width":373},{"name":"finish/底条","x":1,"height":302,"y":1,"width":1959},{"name":"finish/gj","x":1,"height":142,"y":771,"width":561},{"name":"finish/光圈","x":1,"height":464,"y":305,"width":464},{"name":"finish/彩虹","x":836,"height":167,"y":668,"width":167},{"name":"finish/云","x":291,"height":33,"y":978,"width":282},{"name":"finish/左翅膀","x":467,"height":229,"y":516,"width":270},{"name":"finish/右翅膀","x":564,"height":229,"y":747,"width":270},{"name":"finish/左把手","x":836,"height":178,"y":305,"width":165},{"name":"finish/右把手","x":1003,"height":178,"y":305,"width":165},{"name":"finish/奖杯座","x":1,"height":91,"y":915,"width":185},{"name":"finish/奖杯底","x":291,"height":52,"y":915,"width":108},{"name":"finish/奖牌","x":467,"height":209,"y":305,"width":315},{"name":"finish/奖牌星","x":1139,"height":137,"y":837,"width":135},{"name":"finish/高光","x":188,"height":101,"y":915,"width":101},{"name":"finish/红小","x":739,"height":58,"y":668,"width":79},{"name":"finish/黄小","x":506,"height":39,"y":915,"width":42},{"name":"finish/蓝小","x":453,"height":34,"y":915,"width":51},{"name":"finish/绿小","x":401,"height":54,"y":915,"width":50},{"name":"finish/绿大","x":988,"height":161,"y":837,"width":149},{"name":"finish/红大","x":836,"height":167,"y":837,"width":150}],"width":2048}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "98283a7a-e66d-4289-b60c-e32e8821ebc8",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "968478f1-b3c3-47ac-aaa8-462775598869",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 1024,
"platformSettings": {},
"subMetas": {
"allfinish_tex": {
"ver": "1.0.4",
"uuid": "46109f8e-46ce-4b08-8ab3-db378c4afded",
"rawTextureUuid": "968478f1-b3c3-47ac-aaa8-462775598869",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -43.5,
"offsetY": 3.5,
"trimX": 1,
"trimY": 1,
"width": 1959,
"height": 1015,
"rawWidth": 2048,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"name":"finish1","version":"5.5","frameRate":24,"armature":[{"name":"Armature","animation":[{"name":"newAnimation","frame":[],"duration":36,"ik":[],"slot":[{"name":"底条","displayFrame":[{"duration":8,"value":-1},{"duration":28}],"colorFrame":[]},{"name":"gj","displayFrame":[{"duration":10,"value":-1},{"duration":26}],"colorFrame":[]},{"name":"奖牌","displayFrame":[],"colorFrame":[]},{"name":"高光","displayFrame":[],"colorFrame":[{"duration":10,"color":{"aM":0}},{"tweenEasing":0,"duration":8},{"tweenEasing":0,"duration":10},{"duration":8,"color":{"aM":0}}]},{"name":"红小","displayFrame":[{"duration":14,"value":-1},{"duration":22}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"黄小","displayFrame":[{"duration":14,"value":-1},{"duration":22}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"蓝小","displayFrame":[{"duration":14,"value":-1},{"duration":22}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"绿小","displayFrame":[],"colorFrame":[{"duration":14,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"红大","displayFrame":[],"colorFrame":[{"duration":14,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"蓝小1","displayFrame":[{"duration":14,"value":-1},{"duration":22}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"黄小1","displayFrame":[{"duration":14,"value":-1},{"duration":22}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"绿大","displayFrame":[],"colorFrame":[{"duration":14,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"高光1","displayFrame":[],"colorFrame":[{"duration":10,"color":{"aM":0}},{"tweenEasing":0,"duration":10},{"tweenEasing":0,"duration":8},{"duration":8,"color":{"aM":0}}]},{"name":"前手","displayFrame":[],"colorFrame":[]}],"bone":[{"name":"root","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"底条","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":8},{"duration":2,"x":-477.6402,"tweenEasing":0},{"duration":26}]},{"name":"gj","rotateFrame":[],"scaleFrame":[{"duration":10},{"duration":3,"x":1.2,"tweenEasing":0},{"duration":3,"x":0.9,"tweenEasing":0,"y":1.04},{"duration":20}],"translateFrame":[]},{"name":"再来一次","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":18},{"duration":6,"x":1395.5289,"tweenEasing":0},{"duration":12,"x":11.6858}]},{"name":"红小","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":100.7767,"duration":10},{"rotate":124.2255,"duration":6}],"scaleFrame":[],"translateFrame":[{"duration":14},{"duration":6,"x":16.0675,"tweenEasing":0,"y":220.0797},{"duration":10,"x":168.8221,"tweenEasing":0,"y":-8.4864},{"duration":6,"x":200.5045,"y":-23.1961}]},{"name":"红大","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":1.3504,"duration":16},{"rotate":14.684,"duration":0}],"scaleFrame":[{"duration":14},{"duration":6,"x":0.76,"tweenEasing":0,"y":0.76},{"duration":16,"x":1.06,"y":1.06}],"translateFrame":[{"duration":14},{"duration":6,"x":-75.2458,"tweenEasing":0,"y":113.8304},{"duration":16,"x":187.2658,"tweenEasing":0,"y":-45.4869},{"duration":0,"x":241.5785,"y":-65.8542}]},{"name":"黄小","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-13.971,"duration":16},{"rotate":-44.2933,"duration":0}],"scaleFrame":[{"duration":20},{"duration":16,"tweenEasing":0},{"duration":0,"x":1.6852,"y":1.6852}],"translateFrame":[{"duration":14},{"duration":6,"tweenEasing":0},{"duration":16,"x":120.0538,"tweenEasing":0,"y":230.8291},{"duration":0,"x":145.9655,"y":313.7692}]},{"name":"蓝小","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"rotate":-20.9945,"duration":16}],"scaleFrame":[{"duration":14},{"duration":22,"tweenEasing":0},{"duration":0,"x":1.6667,"y":1.6667}],"translateFrame":[{"duration":14},{"duration":6,"x":97.4575,"tweenEasing":0,"y":53.8642},{"duration":16,"x":17.4253,"tweenEasing":0,"y":257.0803},{"duration":0,"x":-56.1232,"y":346.0173}]},{"name":"绿小","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-317.8124,"duration":16},{"rotate":-301.3673,"duration":0}],"scaleFrame":[{"duration":14},{"duration":22,"tweenEasing":0},{"duration":0,"x":1.77,"y":1.77}],"translateFrame":[{"duration":14},{"duration":6,"tweenEasing":0},{"duration":16,"x":-11.3152,"tweenEasing":0,"y":-220.1929},{"duration":0,"x":-58.8388,"y":-250.7438}]},{"name":"绿大","rotateFrame":[{"duration":14},{"tweenEasing":0,"rotate":-19.1872,"duration":6},{"tweenEasing":0,"rotate":-7.828,"duration":16},{"rotate":-2.4632,"duration":0}],"scaleFrame":[{"duration":14},{"duration":22,"x":0.66,"tweenEasing":0,"y":0.66},{"duration":0,"x":1.25,"y":1.25}],"translateFrame":[{"duration":14},{"duration":6,"x":28.6273,"tweenEasing":0,"y":-188.0578},{"duration":16,"x":-120.7327,"tweenEasing":0,"y":-23.9881},{"duration":0,"x":-150.1521,"y":-1.3578}]},{"name":"奖牌","rotateFrame":[],"scaleFrame":[{"duration":4,"x":2.46,"tweenEasing":0,"y":2.46},{"duration":32}],"translateFrame":[{"duration":4,"x":198.4313,"tweenEasing":0},{"duration":2,"x":198.4313,"tweenEasing":0},{"duration":30}]},{"name":"高光","rotateFrame":[],"scaleFrame":[{"duration":7},{"duration":3,"tweenEasing":0},{"duration":8,"x":0.51,"tweenEasing":0,"y":0.51},{"duration":18}],"translateFrame":[{"duration":10},{"duration":8,"x":14.2511,"curve":[0,0,0.5,1],"y":45.15},{"duration":18,"x":-178.695,"y":-106.6037}]},{"name":"下一个","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"蓝小1","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-20.9945,"duration":16},{"rotate":-46.9864,"duration":0}],"scaleFrame":[],"translateFrame":[{"duration":14},{"duration":6,"x":-127.038,"tweenEasing":0,"y":-82.4953},{"duration":16,"x":68.3435,"tweenEasing":0,"y":-17.8779},{"duration":0,"x":180.2504,"y":54.539}]},{"name":"黄小1","rotateFrame":[{"duration":14},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-13.971,"duration":16},{"rotate":-36.3411,"duration":0}],"scaleFrame":[],"translateFrame":[{"duration":14},{"duration":6,"tweenEasing":0},{"duration":16,"x":-190.434,"tweenEasing":0,"y":-80.7902},{"duration":0,"x":-292.9493,"y":-136.0081}]},{"name":"奖牌1","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"奖牌2","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"奖牌3","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"奖牌4","rotateFrame":[{"tweenEasing":0,"duration":8},{"tweenEasing":0,"rotate":79.6434,"duration":4},{"duration":24}],"scaleFrame":[],"translateFrame":[{"duration":8,"tweenEasing":0},{"duration":4,"x":-102.0632,"tweenEasing":0,"y":-45.6843},{"duration":24}]},{"name":"高光1","rotateFrame":[],"scaleFrame":[{"duration":7},{"duration":3,"tweenEasing":0},{"duration":10,"x":0.51,"tweenEasing":0,"y":0.51},{"duration":16}],"translateFrame":[{"duration":10},{"duration":10,"x":14.2511,"curve":[0,0,0.5,1],"y":45.15},{"duration":16,"x":-165.8401,"y":33.4048}]}],"playTimes":0,"ffd":[]}],"slot":[{"name":"底条","color":{},"parent":"底条"},{"name":"gj","color":{},"z":1,"parent":"gj"},{"name":"奖牌","color":{},"z":2,"parent":"奖牌4"},{"name":"高光","color":{},"z":3,"parent":"高光"},{"name":"红小","color":{},"z":4,"parent":"红小"},{"name":"黄小","color":{},"z":5,"parent":"黄小"},{"name":"蓝小","color":{},"z":6,"parent":"蓝小"},{"name":"绿小","color":{},"z":7,"parent":"绿小"},{"name":"绿大","color":{},"z":8,"parent":"绿大"},{"name":"红大","color":{},"z":9,"parent":"红大"},{"name":"蓝小1","color":{},"z":10,"parent":"蓝小1"},{"name":"黄小1","color":{},"z":11,"parent":"黄小1"},{"name":"高光1","color":{},"z":12,"parent":"高光1"},{"name":"前手","color":{},"z":13,"parent":"奖牌"}],"bone":[{"name":"root","transform":{}},{"name":"底条","transform":{"x":36.6,"skY":-93.71,"y":-159.15,"skX":-93.71},"length":49,"parent":"root"},{"name":"gj","transform":{"x":82.3282,"skY":-90,"y":-59.7626,"skX":-90},"length":54,"parent":"root"},{"name":"再来一次","transform":{"x":-237.95,"skY":-135,"y":325.45,"skX":-135},"length":1,"parent":"root"},{"name":"红小","transform":{"x":213.5895,"skY":45,"y":-272.3167,"skX":45},"length":1,"parent":"root"},{"name":"红大","transform":{"x":550.4685,"skY":-90,"y":-271.5823,"skX":-90},"length":1,"parent":"root"},{"name":"黄小","transform":{"x":395.0083,"skY":18.9715,"y":40.8982,"scX":1.62,"scY":1.62,"skX":18.9715},"parent":"root"},{"name":"蓝小","transform":{"x":-361.0751,"skY":87.7255,"y":8.0648,"scX":1.14,"scY":1.14,"skX":87.7255},"length":1,"parent":"root"},{"name":"绿小","transform":{"x":54.7978,"skY":151.0221,"y":-219.8999,"skX":151.0221},"parent":"root"},{"name":"绿大","transform":{"x":-438.9942,"y":191.2884},"parent":"root"},{"name":"奖牌","transform":{"x":-234.1756,"skY":-0.0567,"y":-94.4116,"skX":-0.0567},"parent":"root"},{"name":"高光","transform":{"x":-188.0882,"skY":0.3296,"y":-219.5932,"skX":0.3296},"parent":"root"},{"name":"蓝小1","transform":{"x":179.8524,"skY":63.4349,"y":136.9463,"skX":63.4349},"length":1,"parent":"root"},{"name":"黄小1","transform":{"x":-85.7991,"skY":73.6246,"y":-238.9226,"skX":73.6246},"parent":"root"},{"name":"高光1","transform":{"x":-280.9622,"skY":0.3296,"y":-234.3415,"scX":0.8,"scY":0.8,"skX":0.3296},"parent":"root"},{"name":"下一个","transform":{"x":-343.7953,"skY":0.0178,"y":348.3208,"skX":0.0178},"parent":"再来一次"},{"name":"奖牌1","transform":{"x":-38.7156,"skY":-9.305,"y":41.6733,"skX":-9.305},"length":42,"parent":"奖牌"},{"name":"奖牌2","transform":{"x":84.1823,"skY":-63.6508,"y":-3.7565,"skX":-63.6508},"length":45,"parent":"奖牌1"},{"name":"奖牌3","transform":{"x":43.837,"skY":-85.1999,"y":-27.2986,"skX":-85.1999},"length":38,"parent":"奖牌2"},{"name":"奖牌4","transform":{"x":67.4566,"skY":45.9663,"y":26.775,"skX":45.9663},"length":41,"parent":"奖牌3"}],"skin":[{"name":"","slot":[{"name":"蓝小1","display":[{"name":"finish/蓝小","transform":{"x":-1.5256,"skY":-63.4349,"y":0.6117,"skX":-63.4349},"type":"image","path":"finish/蓝小"}]},{"name":"红大","display":[{"name":"finish/红大","transform":{"x":-1.8,"skY":90,"y":-17.05,"skX":90},"type":"image","path":"finish/红大"}]},{"name":"绿大","display":[{"name":"finish/绿大","transform":{"x":6.98,"skY":4.3507,"y":2.6,"skX":4.3507},"type":"image","path":"finish/绿大"}]},{"name":"绿小","display":[{"name":"finish/绿小","transform":{"x":2.6,"y":5.85},"type":"image","path":"finish/绿小"}]},{"name":"蓝小","display":[{"name":"finish/蓝小","transform":{"x":2.67,"skY":-63.4349,"y":4.9344,"skX":-63.4349},"type":"image","path":"finish/蓝小"}]},{"name":"黄小","display":[{"name":"finish/黄小","transform":{"x":0.3,"y":0.35},"type":"image","path":"finish/黄小"}]},{"name":"红小","display":[{"name":"finish/红小","transform":{"x":8.2378,"skY":-45,"y":4.4194,"scX":0.9181,"scY":0.9181,"skX":-45},"type":"image","path":"finish/红小"}]},{"name":"高光","display":[{"name":"finish/高光","transform":{"x":0.2703,"skY":-0.3296,"y":-0.6839,"skX":-0.3296},"type":"image","path":"finish/高光"}]},{"name":"奖牌","display":[{"height":230,"userEdges":[],"transform":{"x":-59.1882,"skY":112.1895,"y":4.1453,"skX":112.1895},"type":"mesh","width":192,"name":"finish/奖牌","uvs":[1,0.25739,0.61875,0.26087,0.48568,0.00022,0.06979,0.00022,0.12422,0.29978,0,0.45652,0.00286,0.87913,0.28568,1,1,1,0.48156,0.47993,0.20326,0.40905],"triangles":[9,7,8,9,8,0,1,9,0,6,7,9,10,9,1,2,4,1,4,10,1,5,6,10,10,6,9,3,4,2,4,5,10],"slotPose":[0.9999995105753591,-0.0009893680016858086,0.0009893680016858086,0.9999995105753591,-230.15537958182657,-116.68674569976267],"vertices":[96,-55.8,22.8,-55,-2.75,-114.95,-82.6,-114.95,-72.15,-46.05,-96,-10,-95.45,87.2,-41.15,115,96,115,-3.54,-4.62,-56.97,-20.92],"bonePose":[16,0.9866812146109137,-0.1626658560790554,0.1626658560790554,0.9866812146109137,-272.85,-52.69999999999999,17,0.2921629348860225,-0.9563685583909509,0.9563685583909509,0.2921629348860225,-190.40000000000003,-70.1,18,-0.9285664800980863,-0.3711661245833866,0.3711661245833866,-0.9285664800980863,-203.7,-119.99999999999999,19,-0.37858634235583644,-0.9255659789456552,0.9255659789456552,-0.37858634235583644,-256.4,-169.90000000000003],"edges":[0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,0],"weights":[4,16,0.1,17,0.48,18,0.33,19,0.09,4,16,0.06,18,0.46,19,0.27,17,0.21,4,16,0.04981010663897991,19,0.7096282148510604,18,0.15453670298840963,17,0.08602497552155025,4,16,0.05184824616343006,19,0.7779687533914971,18,0.11645386293453709,17,0.05372913751053591,4,16,0.11,19,0.46,18,0.34,17,0.09,4,16,0.35000000000000003,19,0.11,18,0.42,17,0.12,3,16,0.75,18,0.13,17,0.12,3,16,0.73,17,0.17,18,0.1,3,16,0.30170010634940364,17,0.4929413707554094,18,0.2053585228951869,4,16,0.023644616381972162,18,0.916529600474644,19,0.03139634374801407,17,0.028429439395369575,4,16,0.18,19,0.11,18,0.61,17,0.1],"path":"finish/奖牌"}]},{"name":"gj","display":[{"name":"finish/gj","transform":{"x":5.8231,"skY":90,"y":11.7544,"skX":90},"type":"image","path":"finish/gj"}]},{"name":"底条","display":[{"name":"finish/底条","transform":{"x":-84.5853,"skY":93.6781,"y":-22.841,"skX":93.6781},"type":"image","path":"finish/底条"}]},{"name":"前手","display":[{"name":"finish/前手","transform":{"x":4.144,"skY":0.0567,"y":17.33,"skX":0.0567},"type":"image","path":"finish/前手"}]},{"name":"高光1","display":[{"name":"finish/高光","transform":{"x":0.2703,"skY":-0.3296,"y":-0.6839,"skX":-0.3296},"type":"image","path":"finish/高光"}]},{"name":"黄小1","display":[{"name":"finish/黄小","transform":{"x":0.3,"y":0.35},"type":"image","path":"finish/黄小"}]}]}],"canvas":{"x":0,"height":1080,"y":0,"width":1920},"ik":[],"frameRate":24,"defaultActions":[{"gotoAndPlay":"newAnimation"}],"type":"Armature","aabb":{"x":-506.51421992611466,"height":627.6706941126714,"y":-353.28225918801087,"width":1114.9327472823945}}],"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "5770fca7-e0ef-4d61-a35a-5f0e28da42ce",
"subMetas": {}
}
\ No newline at end of file
{"name":"finish1","imagePath":"finish1_tex.png","height":512,"SubTexture":[{"name":"finish/底条","x":1,"height":243,"y":1,"width":715},{"name":"finish/gj","x":1,"height":65,"y":385,"width":398},{"name":"finish/奖牌","x":718,"height":230,"y":1,"width":192},{"name":"finish/高光","x":704,"height":101,"y":385,"width":101},{"name":"finish/红小","x":553,"height":58,"y":409,"width":79},{"name":"finish/黄小","x":401,"height":39,"y":415,"width":42},{"name":"finish/蓝小","x":634,"height":34,"y":465,"width":51},{"name":"finish/绿小","x":634,"height":54,"y":409,"width":50},{"name":"finish/绿大","x":553,"height":161,"y":246,"width":149},{"name":"finish/红大","x":401,"height":167,"y":246,"width":150},{"name":"finish/前手","x":718,"frameY":0,"height":150,"y":233,"frameWidth":192,"frameHeight":151,"frameX":0,"width":192}],"width":1024}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "3d0e2b79-bfe1-4968-b87d-ef7ee52ea7f5",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "265e9760-cc91-4c58-be21-32f2cc6f6e2d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1024,
"height": 512,
"platformSettings": {},
"subMetas": {
"finish1_tex": {
"ver": "1.0.4",
"uuid": "e5d69b2a-62f2-426f-acbc-05e41115d4a5",
"rawTextureUuid": "265e9760-cc91-4c58-be21-32f2cc6f6e2d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -56.5,
"offsetY": 6,
"trimX": 1,
"trimY": 1,
"width": 909,
"height": 498,
"rawWidth": 1024,
"rawHeight": 512,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{"name":"finish2","version":"5.5","frameRate":24,"armature":[{"name":"Armature","animation":[{"name":"newAnimation","frame":[],"duration":58,"ik":[],"slot":[{"name":"下一个","displayFrame":[{"duration":40,"value":-1},{"duration":18}],"colorFrame":[]},{"name":"再来一次","displayFrame":[{"duration":40,"value":-1},{"duration":18}],"colorFrame":[]},{"name":"底条","displayFrame":[{"duration":30,"value":-1},{"duration":28}],"colorFrame":[]},{"name":"gj","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[]},{"name":"光圈","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":6,"color":{"aM":0}},{"tweenEasing":0,"duration":2,"color":{"aM":0}},{"tweenEasing":0,"duration":8,"color":{"aM":82}},{"duration":42,"color":{"aM":0}}]},{"name":"绳","displayFrame":[{"duration":32,"value":-1},{"duration":26}],"colorFrame":[]},{"name":"左翅膀","displayFrame":[{"duration":27,"value":-1},{"duration":31}],"colorFrame":[]},{"name":"右翅膀","displayFrame":[{"duration":27,"value":-1},{"duration":31}],"colorFrame":[]},{"name":"奖牌角","displayFrame":[{"duration":24,"value":-1},{"duration":34}],"colorFrame":[]},{"name":"奖牌","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":6,"color":{"aM":0}},{"duration":52}]},{"name":"奖牌星","displayFrame":[],"colorFrame":[{"tweenEasing":0,"duration":8,"color":{"aM":0}},{"tweenEasing":0,"duration":4,"color":{"aM":0}},{"duration":46}]},{"name":"高光","displayFrame":[{"duration":30,"value":-1},{"duration":28}],"colorFrame":[{"duration":30},{"tweenEasing":0,"duration":14,"color":{"aM":0}},{"duration":8,"curve":[0.5,0,1,1]},{"duration":6,"color":{"aM":0}}]},{"name":"红小","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"黄小","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"蓝小","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"绿小","displayFrame":[],"colorFrame":[{"duration":36,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"绿大","displayFrame":[],"colorFrame":[{"duration":36,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"红大","displayFrame":[],"colorFrame":[{"duration":36,"color":{"aM":0}},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"duration":16},{"duration":0,"color":{"aM":0}}]},{"name":"蓝小1","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]},{"name":"黄小1","displayFrame":[{"duration":36,"value":-1},{"duration":22}],"colorFrame":[{"duration":52},{"tweenEasing":0,"duration":6},{"duration":0,"color":{"aM":0}}]}],"bone":[{"name":"root","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"底条","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":30},{"duration":6,"x":-477.6402,"tweenEasing":0},{"duration":22}]},{"name":"gj","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"光圈","rotateFrame":[],"scaleFrame":[{"duration":8,"x":0.44,"tweenEasing":0,"y":0.44},{"duration":8,"x":0.89,"tweenEasing":0,"y":0.89},{"duration":42}],"translateFrame":[{"duration":58,"x":393}]},{"name":"再来一次","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":40},{"duration":6,"x":1395.5289,"tweenEasing":0},{"duration":12,"x":11.6858}]},{"name":"红小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":100.7767,"duration":10},{"rotate":124.2255,"duration":6}],"scaleFrame":[],"translateFrame":[{"duration":36},{"duration":6,"x":16.0675,"tweenEasing":0,"y":220.0797},{"duration":10,"x":168.8221,"tweenEasing":0,"y":-8.4864},{"duration":6,"x":200.5045,"y":-23.1961}]},{"name":"红大","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":1.3504,"duration":16},{"rotate":14.684,"duration":0}],"scaleFrame":[{"duration":36},{"duration":6,"x":0.76,"tweenEasing":0,"y":0.76},{"duration":16,"x":1.06,"y":1.06}],"translateFrame":[{"duration":36},{"duration":6,"x":-75.2458,"tweenEasing":0,"y":113.8304},{"duration":16,"x":187.2658,"tweenEasing":0,"y":-45.4869},{"duration":0,"x":241.5785,"y":-65.8542}]},{"name":"黄小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-13.971,"duration":16},{"rotate":-44.2933,"duration":0}],"scaleFrame":[{"duration":42},{"duration":16,"tweenEasing":0},{"duration":0,"x":1.6852,"y":1.6852}],"translateFrame":[{"duration":36},{"duration":6,"tweenEasing":0},{"duration":16,"x":120.0538,"tweenEasing":0,"y":230.8291},{"duration":0,"x":145.9655,"y":313.7692}]},{"name":"蓝小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"rotate":-20.9945,"duration":16}],"scaleFrame":[{"duration":36},{"duration":22,"tweenEasing":0},{"duration":0,"x":1.6667,"y":1.6667}],"translateFrame":[{"duration":36},{"duration":6,"x":35.6427,"tweenEasing":0,"y":15.2755},{"duration":16,"x":17.4253,"tweenEasing":0,"y":257.0803},{"duration":0,"x":-56.1232,"y":346.0173}]},{"name":"绿小","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-317.8124,"duration":16},{"rotate":-301.3673,"duration":0}],"scaleFrame":[{"duration":36},{"duration":22,"tweenEasing":0},{"duration":0,"x":1.77,"y":1.77}],"translateFrame":[{"duration":36},{"duration":6,"tweenEasing":0},{"duration":16,"x":-11.3152,"tweenEasing":0,"y":-220.1929},{"duration":0,"x":-58.8388,"y":-250.7438}]},{"name":"绿大","rotateFrame":[{"duration":36},{"tweenEasing":0,"rotate":-19.1872,"duration":6},{"tweenEasing":0,"rotate":-7.828,"duration":16},{"rotate":-2.4632,"duration":0}],"scaleFrame":[{"duration":36},{"duration":22,"x":0.66,"tweenEasing":0,"y":0.66},{"duration":0,"x":1.25,"y":1.25}],"translateFrame":[{"duration":36},{"duration":6,"x":28.6273,"tweenEasing":0,"y":-188.0578},{"duration":16,"x":-120.7327,"tweenEasing":0,"y":-23.9881},{"duration":0,"x":-150.1521,"y":-1.3578}]},{"name":"奖牌","rotateFrame":[],"scaleFrame":[{"duration":6,"x":3,"tweenEasing":0,"y":3},{"duration":52}],"translateFrame":[{"duration":22,"x":393,"tweenEasing":0},{"duration":2,"x":393,"tweenEasing":0},{"duration":34,"x":-2.2005}]},{"name":"高光","rotateFrame":[],"scaleFrame":[{"duration":30},{"duration":14,"tweenEasing":0},{"duration":8,"x":1.48,"curve":[0.5,0,1,1],"y":1.48},{"duration":6,"x":0.67,"y":0.67}],"translateFrame":[]},{"name":"奖励","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"左翅膀","rotateFrame":[{"duration":26},{"tweenEasing":0,"duration":8},{"tweenEasing":0,"rotate":-355,"duration":4},{"duration":20}],"scaleFrame":[],"translateFrame":[{"duration":26},{"duration":8,"tweenEasing":0},{"duration":4,"x":-23.797,"tweenEasing":0,"y":-0.0235},{"duration":20}]},{"name":"绳","rotateFrame":[],"scaleFrame":[],"translateFrame":[{"duration":32},{"duration":3,"x":0.2019,"tweenEasing":0,"y":-204.0594},{"duration":23}]},{"name":"下一个","rotateFrame":[],"scaleFrame":[],"translateFrame":[]},{"name":"奖牌星","rotateFrame":[],"scaleFrame":[{"duration":9},{"duration":3,"x":1.2,"tweenEasing":0,"y":1.2},{"duration":46}],"translateFrame":[]},{"name":"右翅膀","rotateFrame":[{"duration":26},{"tweenEasing":0,"duration":8},{"tweenEasing":0,"rotate":-5,"duration":4},{"duration":20}],"scaleFrame":[],"translateFrame":[{"duration":26},{"duration":8,"tweenEasing":0},{"duration":4,"x":22.9471,"tweenEasing":0,"y":0.0227},{"duration":20}]},{"name":"奖牌角","rotateFrame":[],"scaleFrame":[{"duration":24},{"duration":6,"x":0.8,"tweenEasing":0,"y":0.8},{"duration":4,"x":1.05,"tweenEasing":0,"y":1.05},{"duration":24}],"translateFrame":[]},{"name":"星","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-75.8955,"tweenEasing":0,"y":53.7133},{"duration":42,"x":61.5323,"y":1.0199}]},{"name":"星1","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-40.115,"tweenEasing":0,"y":30.3412},{"duration":42,"x":-112.3559,"y":-81.8448}]},{"name":"星2","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-104.7919,"tweenEasing":0,"y":86.8591},{"duration":42,"x":-13.6833,"y":139.2126}]},{"name":"星3","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-32.5509,"tweenEasing":0,"y":4.7594},{"duration":42,"x":-134.6232,"y":70.4562}]},{"name":"星21","rotateFrame":[],"scaleFrame":[{"duration":18},{"duration":4,"tweenEasing":0},{"duration":36,"x":0.8,"y":0.8}],"translateFrame":[{"duration":12},{"duration":4,"x":-110.3162,"tweenEasing":0,"y":-179.3276},{"duration":42,"x":-112.2709,"y":-313.5258}]},{"name":"蓝小1","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-20.9945,"duration":16},{"rotate":-46.9864,"duration":0}],"scaleFrame":[],"translateFrame":[{"duration":36},{"duration":6,"x":-185.7948,"tweenEasing":0,"y":-168.4826},{"duration":16,"x":68.3435,"tweenEasing":0,"y":-17.8779},{"duration":0,"x":180.2504,"y":54.539}]},{"name":"黄小1","rotateFrame":[{"duration":36},{"tweenEasing":0,"duration":6},{"tweenEasing":0,"rotate":-13.971,"duration":16},{"rotate":-36.3411,"duration":0}],"scaleFrame":[],"translateFrame":[{"duration":36},{"duration":6,"tweenEasing":0},{"duration":16,"x":-190.434,"tweenEasing":0,"y":-80.7902},{"duration":0,"x":-292.9493,"y":-136.0081}]}],"playTimes":0,"ffd":[]}],"slot":[{"name":"下一个","color":{},"parent":"下一个"},{"name":"再来一次","color":{},"z":1,"parent":"再来一次"},{"name":"底条","color":{},"z":2,"parent":"底条"},{"name":"gj","color":{},"z":3,"parent":"gj"},{"name":"光圈","color":{},"z":4,"parent":"光圈"},{"name":"绳","color":{},"z":5,"parent":"绳"},{"name":"左翅膀","color":{},"z":6,"parent":"左翅膀"},{"name":"右翅膀","color":{},"z":7,"parent":"右翅膀"},{"name":"奖牌角","color":{},"z":8,"parent":"奖牌角"},{"name":"奖牌","color":{},"z":9,"parent":"奖牌"},{"name":"奖牌星","color":{},"z":10,"parent":"奖牌星"},{"name":"高光","color":{},"z":11,"parent":"高光"},{"name":"红小","color":{},"z":12,"parent":"红小"},{"name":"黄小","color":{},"z":13,"parent":"黄小"},{"name":"蓝小","color":{},"z":14,"parent":"蓝小"},{"name":"绿小","color":{},"z":15,"parent":"绿小"},{"name":"绿大","color":{},"z":16,"parent":"绿大"},{"name":"红大","color":{},"z":17,"parent":"红大"},{"name":"蓝小1","color":{},"z":18,"parent":"蓝小1"},{"name":"黄小1","color":{},"z":19,"parent":"黄小1"}],"bone":[{"name":"root","transform":{}},{"name":"底条","transform":{"x":36.6,"skY":-93.71,"y":-159.15,"skX":-93.71},"length":49,"parent":"root"},{"name":"gj","transform":{"x":146.4,"skY":-90,"y":-76.9455,"skX":-90},"length":54,"parent":"root"},{"name":"光圈","transform":{"x":-393,"y":-109},"parent":"root"},{"name":"再来一次","transform":{"x":-237.95,"skY":-135,"y":325.45,"skX":-135},"length":1,"parent":"root"},{"name":"红小","transform":{"x":257.8,"skY":45,"y":-424.95,"skX":45},"length":1,"parent":"root"},{"name":"红大","transform":{"x":615.05,"skY":-90,"y":-279.3,"skX":-90},"length":1,"parent":"root"},{"name":"黄小","transform":{"x":406.1204,"skY":18.9715,"y":30.4998,"scX":1.62,"scY":1.62,"skX":18.9715},"parent":"root"},{"name":"蓝小","transform":{"x":-490.611,"skY":87.7255,"y":79.2786,"scX":1.14,"scY":1.14,"skX":87.7255},"length":1,"parent":"root"},{"name":"绿小","transform":{"x":36.2247,"skY":151.0221,"y":-196.5644,"skX":151.0221},"parent":"root"},{"name":"绿大","transform":{"x":-653.3,"y":280.9},"parent":"root"},{"name":"奖牌","transform":{"x":-393,"skY":-0.0567,"y":-106,"skX":-0.0567},"parent":"root"},{"name":"高光","transform":{"x":-306.8,"y":-204.3},"parent":"root"},{"name":"奖励","transform":{"x":44.95,"skY":180,"y":141.85,"skX":180},"length":101,"parent":"root"},{"name":"星","transform":{"x":134.45,"skY":-45,"y":-228.45,"skX":-45},"length":1,"parent":"root"},{"name":"星1","transform":{"x":-55.0763,"skY":-45,"y":-178.3063,"scX":0.9,"scY":0.9,"skX":-45},"length":1,"parent":"root"},{"name":"星2","transform":{"x":187.9933,"skY":-45,"y":-117.9638,"scX":0.8,"scY":0.8,"skX":-45},"length":1,"parent":"root"},{"name":"星3","transform":{"x":-37.9084,"skY":-45,"y":-30.2548,"skX":-45},"length":1,"parent":"root"},{"name":"星21","transform":{"x":81.4166,"skY":-45,"y":-13.1719,"scX":0.7,"scY":0.7,"skX":-45},"length":1,"parent":"root"},{"name":"蓝小1","transform":{"x":668.4,"skY":63.4349,"y":213.25,"skX":63.4349},"length":1,"parent":"root"},{"name":"黄小1","transform":{"x":105.2505,"skY":73.6246,"y":-245.5899,"skX":73.6246},"parent":"root"},{"name":"绳","transform":{"x":5.6292,"skY":-89.9433,"y":-181.1445,"skX":-89.9433},"length":100,"parent":"奖牌"},{"name":"下一个","transform":{"x":-343.7953,"skY":0.0178,"y":348.3208,"skX":0.0178},"parent":"再来一次"},{"name":"左翅膀","transform":{"x":-98.4479,"skY":180,"y":-2.216,"skX":180},"length":66,"parent":"奖牌"},{"name":"右翅膀","transform":{"x":106.6002,"y":-2.2436},"length":61,"parent":"奖牌"},{"name":"奖牌角","transform":{"x":0.6196,"skY":0.0567,"y":-1.5558,"skX":0.0567},"length":2,"parent":"奖牌"},{"name":"奖牌星","transform":{"x":0.756,"y":-0.7305},"parent":"奖牌"}],"skin":[{"name":"","slot":[{"name":"红小","display":[{"name":"finish/红小","transform":{"x":8.2378,"skY":-45,"y":4.4194,"skX":-45},"type":"image","path":"finish/红小"}]},{"name":"左翅膀","display":[{"name":"finish/左翅膀","transform":{"x":14.0506,"skY":-179.9433,"y":-0.6046,"skX":-179.9433},"type":"image","path":"finish/左翅膀"}]},{"name":"蓝小","display":[{"name":"finish/蓝小","transform":{"x":2.0572,"skY":-63.4349,"y":4.2709,"skX":-63.4349},"type":"image","path":"finish/蓝小"}]},{"name":"高光","display":[{"name":"finish/高光","transform":{"x":2.0406,"y":0.8},"type":"image","path":"finish/高光"}]},{"name":"奖牌星","display":[{"name":"finish/奖牌星","transform":{"x":-0.7639,"skY":0.0567,"y":8.7305,"skX":0.0567},"type":"image","path":"finish/奖牌星"}]},{"name":"奖牌","display":[{"name":"finish/奖牌","transform":{},"type":"image","path":"finish/奖牌"}]},{"name":"奖牌角","display":[{"name":"finish/奖牌角","transform":{"x":-0.6181,"y":1.0564},"type":"image","path":"finish/奖牌角"}]},{"name":"黄小1","display":[{"name":"finish/黄小","transform":{"x":0.3,"y":0.35},"type":"image","path":"finish/黄小"}]},{"name":"右翅膀","display":[{"name":"finish/右翅膀","transform":{"x":5.9013,"skY":0.0567,"y":0.8549,"skX":0.0567},"type":"image","path":"finish/右翅膀"}]},{"name":"gj","display":[{"name":"finish/gj","transform":{"x":17.1,"skY":90,"y":17.6,"skX":90},"type":"image","path":"finish/gj"}]},{"name":"绳","display":[{"name":"finish/绳","transform":{"x":100.35,"skY":90,"y":-5.45,"skX":90},"type":"image","path":"finish/绳"}]},{"name":"下一个","display":[{"name":"finish/下一个","transform":{"x":-8.3439,"skY":135,"y":-19.5869,"skX":135},"type":"image","path":"finish/下一个"}]},{"name":"底条","display":[{"name":"finish/底条","transform":{"x":-52.8279,"skY":93.6781,"y":-37.5971,"skX":93.6781},"type":"image","path":"finish/底条"}]},{"name":"光圈","display":[{"name":"finish/光圈","transform":{},"type":"image","path":"finish/光圈"}]},{"name":"红大","display":[{"name":"finish/红大","transform":{"x":-1.8,"skY":90,"y":-17.05,"skX":90},"type":"image","path":"finish/红大"}]},{"name":"绿大","display":[{"name":"finish/绿大","transform":{"x":9.8,"y":2.6},"type":"image","path":"finish/绿大"}]},{"name":"绿小","display":[{"name":"finish/绿小","transform":{"x":2.6,"y":5.85},"type":"image","path":"finish/绿小"}]},{"name":"蓝小1","display":[{"name":"finish/蓝小","transform":{"x":2.0572,"skY":-63.4349,"y":4.2709,"skX":-63.4349},"type":"image","path":"finish/蓝小"}]},{"name":"黄小","display":[{"name":"finish/黄小","transform":{"x":0.3,"y":0.35},"type":"image","path":"finish/黄小"}]},{"name":"再来一次","display":[{"name":"finish/再来一次","transform":{"x":-5.6569,"skY":135.0108,"y":-17.7484,"skX":135.0108},"type":"image","path":"finish/再来一次"}]}]}],"canvas":{"x":0,"height":1080,"y":0,"width":1920},"ik":[],"frameRate":24,"defaultActions":[{"gotoAndPlay":"newAnimation"}],"type":"Armature","aabb":{"x":-977,"height":958,"y":-541,"width":1959}}],"isGlobal":0}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "5aa327b7-4621-44df-9af7-8eee48a90ef9",
"subMetas": {}
}
\ No newline at end of file
{"name":"finish2","imagePath":"finish2_tex.png","height":1024,"SubTexture":[{"name":"finish/下一个","x":779,"height":150,"y":759,"width":373},{"name":"finish/再来一次","x":1,"height":150,"y":771,"width":373},{"name":"finish/底条","x":1,"height":302,"y":1,"width":1959},{"name":"finish/gj","x":779,"height":145,"y":612,"width":602},{"name":"finish/光圈","x":1,"height":464,"y":305,"width":464},{"name":"finish/绳","x":1383,"height":307,"y":612,"width":234},{"name":"finish/左翅膀","x":1619,"height":233,"y":540,"width":235},{"name":"finish/右翅膀","x":1619,"height":233,"y":305,"width":235},{"name":"finish/奖牌角","x":467,"height":305,"y":305,"width":342},{"name":"finish/奖牌","x":467,"height":310,"y":612,"width":310},{"name":"finish/奖牌星","x":1770,"height":162,"y":775,"width":142},{"name":"finish/高光","x":1914,"height":101,"y":921,"width":101},{"name":"finish/红小","x":376,"height":58,"y":771,"width":79},{"name":"finish/黄小","x":1306,"height":39,"y":759,"width":42},{"name":"finish/蓝小","x":376,"height":34,"y":887,"width":51},{"name":"finish/绿小","x":376,"height":54,"y":831,"width":50},{"name":"finish/绿大","x":1619,"height":161,"y":775,"width":149},{"name":"finish/红大","x":1154,"height":167,"y":759,"width":150}],"width":2048}
\ No newline at end of file
{
"ver": "1.0.1",
"uuid": "285a0950-285a-4f1d-a533-2b8e716aa44a",
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8a3a75cf-5a92-4aea-8ed8-4d11b23a33d8",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 2048,
"height": 1024,
"platformSettings": {},
"subMetas": {
"finish2_tex": {
"ver": "1.0.4",
"uuid": "2053f8f3-9022-4ab0-b457-c6df22da7b42",
"rawTextureUuid": "8a3a75cf-5a92-4aea-8ed8-4d11b23a33d8",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -16,
"offsetY": 0.5,
"trimX": 1,
"trimY": 1,
"width": 2014,
"height": 1021,
"rawWidth": 2048,
"rawHeight": 1024,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"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.
import { asyncCallNetworkApiGet, asyncCallNetworkApiPost, getSpriteFrimeByUrl, playLocalAudio, playAudioByUrl } from "./util"; import { asyncCallNetworkApiGet, asyncCallNetworkApiPost, getSpriteFrimeByUrl, playLocalAudio, playAudioByUrl } from "./util";
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Node) @property(cc.Node)
Viewer: cc.Node = null; Viewer: cc.Node = null;
@property(cc.Node) @property(cc.Node)
userPage: cc.Node = null; userPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
CourseItem: cc.Node = null; CourseItem: cc.Node = null;
@property(cc.Node) @property(cc.Node)
SvContent: cc.Node = null; SvContent: cc.Node = null;
@property(cc.Node) @property(cc.Node)
loading: cc.Node = null; loading: cc.Node = null;
_inited = false; _inited = false;
// 点击用户中心 // 点击用户中心
handleClickUserCenter() { handleClickUserCenter() {
this.userPage.active = true; this.userPage.active = true;
// const vc = this.Viewer.getComponent("PageViewer"); // const vc = this.Viewer.getComponent("PageViewer");
// vc.toView("UserPage", "topIn") // vc.toView("UserPage", "topIn")
} }
// 点击资源库 // 点击资源库
handleClickLibrary() { handleClickLibrary() {
const vc = this.Viewer.getComponent("PageViewer"); const vc = this.Viewer.getComponent("PageViewer");
vc.toView("LibraryPage", "bottomIn") vc.toView("LibraryPage", "bottomIn")
} }
// 点击课程 // 点击课程
handleClickCourseItem(pid) { handleClickCourseItem(pid) {
const vc = this.Viewer.getComponent("PageViewer"); const vc = this.Viewer.getComponent("PageViewer");
vc.unitPage.attr({syllabus_pid: pid}); vc.unitPage.attr({syllabus_pid: pid});
vc.toView("UnitPage", "rightIn"); vc.toView("UnitPage", "rightIn");
} }
// 获取课程清单 // 获取课程清单
async getCourseList() { async getCourseList() {
this.SvContent.removeAllChildren(); this.SvContent.removeAllChildren();
this.loading.active = true; this.loading.active = true;
const userInfo = await global.middleLayer.getUserInfo(); const userInfo = await global.middleLayer.getUserInfo();
const {rows} = await asyncCallNetworkApiGet('/api/kyxq/v1/user/jclist', { const {rows} = await asyncCallNetworkApiGet('/api/kyxq/v1/user/jclist', {
jc_arr: userInfo.jc_arr, jc_arr: userInfo.jc_arr,
}); });
for(let i=0; i<rows.length; i++) { for(let i=0; i<rows.length; i++) {
const row = rows[i]; const row = rows[i];
const ci = cc.instantiate(this.CourseItem); const ci = cc.instantiate(this.CourseItem);
cc.find(`progressText`, ci).getComponent(cc.Label).string = `学习进度:${row.process}`; cc.find(`progressText`, ci).getComponent(cc.Label).string = `学习进度:${row.process}`;
const arr = row.process.split(`/`); const arr = row.process.split(`/`);
const a = parseInt(arr[0]); const a = parseInt(arr[0]);
const b = parseInt(arr[1]); const b = parseInt(arr[1]);
if (b == 0) { if (b == 0) {
cc.find(`progress`, ci).getComponent(cc.ProgressBar).progress = 0; cc.find(`progress`, ci).getComponent(cc.ProgressBar).progress = 0;
} else { } else {
cc.find(`progress`, ci).getComponent(cc.ProgressBar).progress = Math.floor(a/b*10)/10; cc.find(`progress`, ci).getComponent(cc.ProgressBar).progress = Math.floor(a/b*10)/10;
} }
getSpriteFrimeByUrl(row.cover, (spriteFrame) => { getSpriteFrimeByUrl(row.cover, (spriteFrame) => {
const coverNode = cc.find(`bg`, ci); const coverNode = cc.find(`bg`, ci);
coverNode.getComponent(cc.Sprite).spriteFrame = spriteFrame; coverNode.getComponent(cc.Sprite).spriteFrame = spriteFrame;
const sx = 476 / coverNode.width; const sx = 476 / coverNode.width;
const sy = 630 / coverNode.height; const sy = 630 / coverNode.height;
coverNode.scale = Math.max(sx, sy); coverNode.scale = Math.max(sx, sy);
ci.active = true; ci.active = true;
ci.attr({syllabus_id: row.id}); ci.attr({syllabus_id: row.id});
ci.on("click", ()=>{ ci.on("click", ()=>{
this.handleClickCourseItem(ci[`syllabus_id`]); this.handleClickCourseItem(ci[`syllabus_id`]);
}) })
}); });
this.SvContent.addChild(ci); this.SvContent.addChild(ci);
} }
this.loading.active = false; this.loading.active = false;
} }
// onLoad () {} // onLoad () {}
_canTouch = false; _canTouch = false;
async start () { async start () {
await this.getCourseList(); await this.getCourseList();
this._canTouch = true; this._canTouch = true;
this._inited = true; this._inited = true;
} }
async onEnable() { async onEnable() {
this._canTouch = false; this._canTouch = false;
if(this._inited) { if(this._inited) {
await this.getCourseList(); await this.getCourseList();
this._canTouch = true; this._canTouch = true;
} }
} }
// update (dt) {} // update (dt) {}
} }
import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util"; import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Node) @property(cc.Node)
Viewer: cc.Node = null; Viewer: cc.Node = null;
@property(cc.Node) @property(cc.Node)
scrollView: cc.Node = null; scrollView: cc.Node = null;
@property(cc.Node)
@property(cc.Node) svItem: cc.Node = null;
loading: cc.Node = null;
@property(cc.Node)
data; loading: cc.Node = null;
handleClickBackBtn() { data;
const vc = this.Viewer.getComponent("PageViewer");
vc.toView("LibraryPage", "leftIn") handleClickBackBtn() {
} const vc = this.Viewer.getComponent("PageViewer");
vc.toView("LibraryPage", "leftIn")
// onLoad () {} }
async start() { // onLoad () {}
this.loading.active = true;
await this.initData(); async start() {
await this.initView(); this.initUI()
this.loading.active = false; this.loading.active = true;
} await this.initData();
await this.initView();
async initData() { this.loading.active = false;
const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']}); }
this.data = rows;
} initUI(){
this.svItem.active=false
initView() { }
this.initListView();
} async initData() {
const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']});
initListView() { this.data = rows;
}
const svNode = this.scrollView; initView() {
this.initListView();
const view = cc.find("view", svNode); }
view.width = svNode.width;
view.height = svNode.height; initListView() {
const itemArr = this.getItemArr(this.data);
const svNode = this.scrollView;
const sv = svNode.getComponent(cc.ScrollView);
this.initScrollViewItem(sv, itemArr, 1); const view = cc.find("view", svNode);
view.width = svNode.width;
} view.height = svNode.height;
const itemArr = this.getItemArr(this.data);
getItemArr(dataArr) {
const sv = svNode.getComponent(cc.ScrollView);
const listItem = cc.find("view/content/item", this.scrollView);
sv.content.removeAllChildren()
const itemArr = []; sv.content.height=0
for (let i = 0; i < dataArr.length; i++) { let _rowCnt = 4
for (let i = 0;i<Math.ceil(itemArr.length/_rowCnt);i++){
const data = dataArr[i]; let _node = new cc.Node()
_node.height=409
const itemNode = cc.instantiate(listItem); _node.anchorX=0
itemNode['data'] = data; _node.x=-892
let _layout = _node.addComponent(cc.Layout)
getSprNodeByUrl(data.cover, (spr) => { _layout.type=cc.Layout.Type.HORIZONTAL
_layout.paddingLeft=50
const sprNode = spr.node; _layout.spacingX=100
const picLayer = cc.find("mask/pic_layer", itemNode); _layout.resizeMode=cc.Layout.ResizeMode.CONTAINER
picLayer.addChild(sprNode); sv.content.addChild(_node)
for (let j=0;j<_rowCnt;j++){
setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true); let _index = i*_rowCnt+j
}) if (itemArr[_index]){
_node.addChild(itemArr[_index])
cc.find("title_label", itemNode).getComponent(cc.Label).string = data.name; itemArr[_index].y=0
}
itemNode.addComponent(cc.Button); }
itemNode.on("click", () => { sv.content.height+=409+75
global.middleLayer.backPageNode = this.node; }
global.middleLayer.loadOnlineCourseWare(data.id); sv.content.height+=40
}) sv.scrollToTop()
}
itemArr.push(itemNode);
}
return itemArr; getItemArr(dataArr) {
}
const itemArr = [];
initScrollViewItem(sv, itemArr, row = 1) { for (let i = 0; i < dataArr.length; i++) {
if (!itemArr || itemArr.length == 0) { const data = dataArr[i];
return;
} const itemNode = cc.instantiate(this.svItem);
sv.scrollToTop(); itemNode.active=true
const content = sv.content; itemNode['data'] = data;
content.width = sv.node.width;
content.height = sv.node.height; getSprNodeByUrl(data.cover, (spr) => {
content.removeAllChildren();
const sprNode = spr.node;
const tempH = content.height / row; const picLayer = cc.find("mask/pic_layer", itemNode);
const disY = tempH * 0.95; picLayer.addChild(sprNode);
const baseY = (row - 1) * 0.5 * disY;
let rowCount = 0; setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true);
})
const disX = 40;
const baseX = itemArr[0].width / 2 * itemArr[0].scaleX + disX; cc.find("title_label", itemNode).getComponent(cc.Label).string = data.name;
let colCount = 0;
itemNode.addComponent(cc.Button);
let lastX = baseX; itemNode.on("click", () => {
global.middleLayer.backPageNode = this.node;
for (let i = 0; i < itemArr.length; i++) { global.middleLayer.loadOnlineCourseWare(data.id);
})
const item = itemArr[i];
itemArr.push(itemNode);
item.x = lastX + disX; }
item.y = baseY - rowCount * disY; return itemArr;
}
lastX = item.x + item.width * item.scale;
content.addChild(itemArr[i]);
// update (dt) {}
const tempW = Math.abs(item.x + disX + item.width / 2 * item.scale); }
content.width = lastX - item.width / 2 * item.scaleX + disX * 2;
rowCount++;
if (rowCount >= row) {
rowCount = 0;
colCount++;
}
}
}
// update (dt) {}
}
import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util"; import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Node) @property(cc.Node)
Viewer: cc.Node = null; Viewer: cc.Node = null;
@property(cc.Node) @property(cc.Node)
scrollView: cc.Node = null; scrollView: cc.Node = null;
@property(cc.Node)
@property(cc.Node) svItem: cc.Node = null;
loading: cc.Node = null;
@property(cc.Node)
data; loading: cc.Node = null;
handleClickBackBtn() { @property(cc.Node)
const vc = this.Viewer.getComponent("PageViewer"); levelChangeBtn: cc.Node = null;
vc.toView("LibraryReadPage", "leftIn")
} @property(cc.Node)
levelChangeView: cc.Node = null;
// LIFE-CYCLE CALLBACKS:
@property(cc.Node)
// onLoad () {} levelChangeSV: cc.Node = null;
@property(cc.Node)
async start() { levelChangeItem: cc.Node = null;
this.loading.active = true;
await this.initData(); data=[];
this.initView(); levelData=[];
this.loading.active = false;
} chooseLevel=0;
async initData() { // 是否加载数据
const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']}); m_isLoadData = false
this.data = rows;
} handleClickBackBtn() {
const vc = this.Viewer.getComponent("PageViewer");
initView() { vc.toView("LibraryReadPage", "leftIn")
this.initListView(); }
}
// LIFE-CYCLE CALLBACKS:
initListView() {
const svNode = this.scrollView; // onLoad () {}
const view = cc.find("view", svNode); // async start() {
view.width = svNode.width; // this.loading.active = true;
view.height = svNode.height; // await this.initData();
// this.initView();
const itemArr = this.getItemArr(this.data); // this.loading.active = false;
// }
const sv = svNode.getComponent(cc.ScrollView);
this.initScrollViewItemCol(sv, itemArr, 4); async onEnable() {
if (!this.m_isLoadData){
} this.loading.active = true;
await this.initData();
this.initView();
getItemArr(dataArr) { this.loading.active = false;
}
const listItem = cc.find("view/content/item", this.scrollView); }
const itemArr = []; async initData() {
for (let i = 0; i < dataArr.length; i++) { const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']});
this.levelData = rows;
const data = dataArr[i]; if (rows && rows.length>0){
this.m_isLoadData = true
const itemNode = cc.instantiate(listItem); }
itemNode['data'] = data; }
getSprNodeByUrl(data.cover, (spr) => { initView() {
this.initUI()
const sprNode = spr.node; this.initListView();
const picLayer = cc.find("mask/pic_layer", itemNode); this.initLevelListView()
picLayer.addChild(sprNode); }
setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true); initUI(){
}) this.levelChangeItem.active=false
this.levelChangeView.active=false
cc.find("title_label", itemNode).getComponent(cc.Label).string = data.name; this.levelChangeBtn.active=true
this.svItem.active=false
itemNode.addComponent(cc.Button); }
itemNode.on("click", () => {
global.middleLayer.backPageNode = this.node; async initListView() {
global.middleLayer.loadOnlineCourseWare(data.id);
}) let _levelData = this.levelData[this.chooseLevel]
if (_levelData){
itemArr.push(itemNode); const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: _levelData.id});
} this.data = rows
return itemArr; console.log("qsj???", _levelData.id, rows)
} }
const svNode = this.scrollView;
const view = cc.find("view", svNode);
initScrollViewItemRow(sv, itemArr, row = 1) { view.width = svNode.width;
view.height = svNode.height;
sv.scrollToTop();
const content = sv.content; const itemArr = this.getItemArr(this.data);
content.width = sv.node.width;
content.height = sv.node.height; const sv = svNode.getComponent(cc.ScrollView);
content.removeAllChildren(); this.initScrollViewItemCol(sv, itemArr, 4);
const tempH = content.height / row; }
const disY = tempH * 0.95;
const baseY = (row - 1) * 0.5 * disY;
let rowCount = 0; getItemArr(dataArr) {
const itemArr = [];
const disX = 40; for (let i = 0; i < dataArr.length; i++) {
const baseX = itemArr[0].width / 2 * itemArr[0].scaleX + disX;
let colCount = 0; const data = dataArr[i];
let lastX = baseX; const itemNode = cc.instantiate(this.svItem);
itemNode.active=true
for (let i = 0; i < itemArr.length; i++) { itemNode['data'] = data;
const item = itemArr[i]; getSprNodeByUrl(data.cover, (spr) => {
item.x = lastX + disX; const sprNode = spr.node;
item.y = baseY - rowCount * disY; const picLayer = cc.find("mask/pic_layer", itemNode);
picLayer.addChild(sprNode);
lastX = item.x + item.width * item.scale;
setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true);
content.addChild(itemArr[i]); })
const tempW = Math.abs(item.x + disX + item.width / 2 * item.scale); cc.find("title_label", itemNode).getComponent(cc.Label).string = data.name;
content.width = lastX - item.width / 2 * item.scaleX + disX * 2;
itemNode.addComponent(cc.Button);
rowCount++; itemNode.on("click", () => {
if (rowCount >= row) { global.middleLayer.backPageNode = this.node;
rowCount = 0; global.middleLayer.loadOnlineCourseWare(data.id);
colCount++; })
}
} itemArr.push(itemNode);
} }
return itemArr;
}
initScrollViewItemCol(sv, itemArr, col=1) {
initScrollViewItemRow(sv, itemArr, row = 1) {
sv.scrollToTop();
const content = sv.content; sv.scrollToTop();
content.width = sv.node.width; const content = sv.content;
content.height = sv.node.height; content.width = sv.node.width;
content.removeAllChildren(); content.height = sv.node.height;
content.removeAllChildren();
console.log("content.width : " , content.width );
const tempH = content.height / row;
const tempW = content.width / col; const disY = tempH * 0.95;
const disX = tempW * 0.95 //1.05; const baseY = (row - 1) * 0.5 * disY;
const baseX = -(col - 1) * 0.5 * disX; let rowCount = 0;
let colCount = 0;
const disX = 40;
console.log("tempW : " , tempW ); const baseX = itemArr[0].width / 2 * itemArr[0].scaleX + disX;
let colCount = 0;
const disY = 80 // this._mapScaleMin;
const topOffY = 70; let lastX = baseX;
const baseY = -itemArr[0].height / 2 * itemArr[0].scaleY - disY + topOffY;
let rowCount = 0; for (let i = 0; i < itemArr.length; i++) {
for (let i=0; i<itemArr.length; i++) {
const item = itemArr[i];
const item = itemArr[i];
item.x = baseX + colCount * disX; item.x = lastX + disX;
item.y = baseY - rowCount * (( item.height + disY) * item.scaleY ); item.y = baseY - rowCount * disY;
content.addChild(itemArr[i]);
lastX = item.x + item.width * item.scale;
const tempH = Math.abs(item.y - disY - item.height / 2 * item.scale);
content.height = tempH; content.addChild(itemArr[i]);
colCount++; const tempW = Math.abs(item.x + disX + item.width / 2 * item.scale);
if (colCount >= col) { content.width = lastX - item.width / 2 * item.scaleX + disX * 2;
colCount = 0;
rowCount++; rowCount++;
} if (rowCount >= row) {
} rowCount = 0;
} colCount++;
}
}
}
// update (dt) {}
} initScrollViewItemCol(sv, itemArr, col=1) {
sv.scrollToTop();
const content = sv.content;
content.width = sv.node.width;
content.height = sv.node.height;
content.removeAllChildren();
console.log("content.width : " , content.width );
const tempW = content.width / col;
const disX = tempW * 0.95 //1.05;
const baseX = -(col - 1) * 0.5 * disX;
let colCount = 0;
console.log("tempW : " , tempW );
if (itemArr.length<=0) return
const disY = 80 // this._mapScaleMin;
const topOffY = 70;
const baseY = -itemArr[0].height / 2 * itemArr[0].scaleY - disY + topOffY;
let rowCount = 0;
for (let i=0; i<itemArr.length; i++) {
const item = itemArr[i];
item.x = baseX + colCount * disX;
item.y = baseY - rowCount * (( item.height + disY) * item.scaleY );
content.addChild(itemArr[i]);
const tempH = Math.abs(item.y - disY - item.height / 2 * item.scale);
content.height = tempH;
colCount++;
if (colCount >= col) {
colCount = 0;
rowCount++;
}
}
}
/////////// LEVEL ///////////
initLevelListView() {
const svNode = this.levelChangeSV;
const view = cc.find("view", svNode);
view.width = svNode.width;
view.height = svNode.height;
const itemArr = this.getItemArrLevel(this.levelData);
const sv = svNode.getComponent(cc.ScrollView);
sv.content.destroyAllChildren()
for (let v of itemArr){
v.active=true
sv.content.addChild(v)
}
sv.content.height = 20+20+itemArr.length*this.levelChangeItem.height;
sv.scrollToTop()
}
getItemArrLevel(dataArr) {
const listItem = this.levelChangeItem;
const itemArr = [];
for (let i = 0; i < dataArr.length; i++) {
const data = dataArr[i];
const itemNode = cc.instantiate(listItem);
itemNode['data'] = data;
itemNode["unchoose"] = itemNode.getChildByName("unchoose")
itemNode["choose"] = itemNode.getChildByName("choose")
itemNode["unchoose"].getChildByName("lblLevel").getComponent(cc.Label).string=data.name
itemNode["choose"].getChildByName("lblLevel").getComponent(cc.Label).string=data.name
itemNode["index"] = i
itemArr.push(itemNode);
}
return itemArr;
}
refreshLevelItems(){
let _contnet = this.levelChangeSV.getComponent(cc.ScrollView).content
for (let v of _contnet.children){
v["unchoose"].active = this.chooseLevel != v["index"]
v["choose"].active = this.chooseLevel == v["index"]
}
}
onClickShowLevelView(){
this.levelChangeBtn.active=false
this.levelChangeView.active=true
}
onClickHideLevelView(){
this.levelChangeBtn.active=true
this.levelChangeView.active=false
}
onClickLevelItem(event:cc.Event){
let _item = event.target
if (_item){
this.chooseLevel = _item["index"]
this.refreshLevelItems()
this.initListView()
}
}
// update (dt) {}
}
import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util"; import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Node) @property(cc.Node)
Viewer: cc.Node = null; Viewer: cc.Node = null;
@property(cc.Node) @property(cc.Node)
scrollView: cc.Node = null; scrollView: cc.Node = null;
@property(cc.Node) @property(cc.Node)
loading: cc.Node = null; loading: cc.Node = null;
data; data;
handleClickBackBtn() { handleClickBackBtn() {
const vc = this.Viewer.getComponent("PageViewer"); const vc = this.Viewer.getComponent("PageViewer");
vc.toView("LibraryPage", "leftIn") vc.toView("LibraryPage", "leftIn")
} }
// onLoad () {} // onLoad () {}
async start() { async start() {
this.loading.active = true; this.loading.active = true;
await this.initData(); await this.initData();
await this.initView(); await this.initView();
this.loading.active = false; this.loading.active = false;
} }
async initData() { async initData() {
const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']}); const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']});
this.data = rows; this.data = rows;
} }
initView() { initView() {
this.initListView(); this.initListView();
} }
initListView() { initListView() {
const svNode = this.scrollView; const svNode = this.scrollView;
const view = cc.find("view", svNode); const view = cc.find("view", svNode);
view.width = svNode.width; view.width = svNode.width;
view.height = svNode.height; view.height = svNode.height;
const itemArr = this.getItemArr(this.data); const itemArr = this.getItemArr(this.data);
const sv = svNode.getComponent(cc.ScrollView); const sv = svNode.getComponent(cc.ScrollView);
this.initScrollViewItem(sv, itemArr, 1); this.initScrollViewItem(sv, itemArr, 1);
} }
getItemArr(dataArr) { getItemArr(dataArr) {
const listItem = cc.find("view/content/item", this.scrollView); const listItem = cc.find("view/content/item", this.scrollView);
const itemArr = []; const itemArr = [];
for (let i = 0; i < dataArr.length; i++) { for (let i = 0; i < dataArr.length; i++) {
const data = dataArr[i]; const data = dataArr[i];
const itemNode = cc.instantiate(listItem); const itemNode = cc.instantiate(listItem);
itemNode['data'] = data; itemNode['data'] = data;
getSprNodeByUrl(data.cover, (spr) => { getSprNodeByUrl(data.cover, (spr) => {
const sprNode = spr.node; const sprNode = spr.node;
const picLayer = cc.find("mask/pic_layer", itemNode); const picLayer = cc.find("mask/pic_layer", itemNode);
picLayer.addChild(sprNode); picLayer.addChild(sprNode);
setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true); setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true);
}) })
const labelNodeCn = cc.find("title_label", itemNode); const labelNodeCn = cc.find("title_label", itemNode);
const labelNodeEn = cc.find("English_label", itemNode); const labelNodeEn = cc.find("English_label", itemNode);
const labelCn = labelNodeCn.getComponent(cc.Label); const labelCn = labelNodeCn.getComponent(cc.Label);
const labelEn = labelNodeEn.getComponent(cc.Label); const labelEn = labelNodeEn.getComponent(cc.Label);
labelCn.string = data.name; labelCn.string = data.name;
labelEn.string = data.tag; labelEn.string = data.tag;
itemNode.addComponent(cc.Button); itemNode.addComponent(cc.Button);
itemNode.on("click", () => { itemNode.on("click", () => {
const vc = this.Viewer.getComponent("PageViewer"); const vc = this.Viewer.getComponent("PageViewer");
vc.libraryReadDetailPage.attr({syllabus_pid: data.id}); vc.libraryReadDetailPage.attr({syllabus_pid: data.id});
vc.toView("LibraryReadDetailPage", "rightIn") vc.toView("LibraryReadDetailPage", "rightIn")
}) })
itemArr.push(itemNode); itemArr.push(itemNode);
} }
return itemArr; return itemArr;
} }
initScrollViewItem(sv, itemArr, row = 1) { initScrollViewItem(sv, itemArr, row = 1) {
if (!itemArr || itemArr.length == 0) { if (!itemArr || itemArr.length == 0) {
return; return;
} }
sv.scrollToTop(); sv.scrollToTop();
const content = sv.content; const content = sv.content;
content.width = sv.node.width; content.width = sv.node.width;
content.height = sv.node.height; content.height = sv.node.height;
content.removeAllChildren(); content.removeAllChildren();
const tempH = content.height / row; const tempH = content.height / row;
const disY = tempH * 0.95; const disY = tempH * 0.95;
const baseY = (row - 1) * 0.5 * disY; const baseY = (row - 1) * 0.5 * disY;
let rowCount = 0; let rowCount = 0;
const disX = 40; const disX = 40;
const baseX = itemArr[0].width / 2 * itemArr[0].scaleX + disX; const baseX = itemArr[0].width / 2 * itemArr[0].scaleX + disX;
let colCount = 0; let colCount = 0;
let lastX = baseX; let lastX = baseX;
for (let i = 0; i < itemArr.length; i++) { for (let i = 0; i < itemArr.length; i++) {
const item = itemArr[i]; const item = itemArr[i];
item.x = lastX + disX; item.x = lastX + disX;
item.y = baseY - rowCount * disY; item.y = baseY - rowCount * disY;
lastX = item.x + item.width * item.scale; lastX = item.x + item.width * item.scale;
content.addChild(itemArr[i]); content.addChild(itemArr[i]);
const tempW = Math.abs(item.x + disX + item.width / 2 * item.scale); const tempW = Math.abs(item.x + disX + item.width / 2 * item.scale);
content.width = lastX - item.width / 2 * item.scaleX + disX * 2; content.width = lastX - item.width / 2 * item.scaleX + disX * 2;
rowCount++; rowCount++;
if (rowCount >= row) { if (rowCount >= row) {
rowCount = 0; rowCount = 0;
colCount++; colCount++;
} }
} }
} }
// update (dt) {} // update (dt) {}
} }
import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util"; import { getSprNodeByUrl, setSprNodeMaxLen, asyncCallNetworkApiGet } from "./util";
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Node) @property(cc.Node)
Viewer: cc.Node = null; Viewer: cc.Node = null;
@property(cc.Node) @property(cc.Node)
scrollView: cc.Node = null; scrollView: cc.Node = null;
@property(cc.Node)
@property(cc.Node) svItem: cc.Node = null;
loading: cc.Node = null;
@property(cc.Node)
data; loading: cc.Node = null;
handleClickBackBtn() { data;
const vc = this.Viewer.getComponent("PageViewer");
vc.toView("LibraryPage", "leftIn") handleClickBackBtn() {
} const vc = this.Viewer.getComponent("PageViewer");
vc.toView("LibraryPage", "leftIn")
// onLoad () {} }
async start() { // onLoad () {}
this.loading.active = true;
await this.initData(); async start() {
await this.initView(); this.initUI()
this.loading.active = false; this.loading.active = true;
} await this.initData();
await this.initView();
async initData() { this.loading.active = false;
const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']}); }
this.data = rows;
} initUI(){
this.svItem.active=false
initView() { }
this.initListView();
} async initData() {
const {rows} = await asyncCallNetworkApiGet(`/api/syllabus/v1/list`, {pid: this.node['syllabus_pid']});
initListView() { this.data = rows;
}
const svNode = this.scrollView; initView() {
this.initListView();
const view = cc.find("view", svNode); }
view.width = svNode.width;
view.height = svNode.height; initListView() {
const itemArr = this.getItemArr(this.data);
const svNode = this.scrollView;
const sv = svNode.getComponent(cc.ScrollView);
this.initScrollViewItem(sv, itemArr, 1); const view = cc.find("view", svNode);
view.width = svNode.width;
} view.height = svNode.height;
const itemArr = this.getItemArr(this.data);
getItemArr(dataArr) {
const sv = svNode.getComponent(cc.ScrollView);
const listItem = cc.find("view/content/item", this.scrollView); sv.content.removeAllChildren()
sv.content.height=0
const itemArr = []; let _rowCnt = 3
for (let i = 0; i < dataArr.length; i++) { for (let i = 0;i<Math.ceil(itemArr.length/_rowCnt);i++){
let _node = new cc.Node()
const data = dataArr[i]; _node.height=409
_node.anchorX=0
const itemNode = cc.instantiate(listItem); _node.x=-892
itemNode['data'] = data; let _layout = _node.addComponent(cc.Layout)
_layout.type=cc.Layout.Type.HORIZONTAL
getSprNodeByUrl(data.cover, (spr) => { _layout.paddingLeft=10
_layout.spacingX=50
const sprNode = spr.node; _layout.resizeMode=cc.Layout.ResizeMode.CONTAINER
const picLayer = cc.find("mask/pic_layer", itemNode); sv.content.addChild(_node)
picLayer.addChild(sprNode); for (let j=0;j<_rowCnt;j++){
let _index = i*_rowCnt+j
setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true); if (itemArr[_index]){
}) _node.addChild(itemArr[_index])
itemArr[_index].y=0
cc.find("title_label", itemNode).getComponent(cc.Label).string = data.name; }
}
itemNode.addComponent(cc.Button); sv.content.height+=440
itemNode.on("click", () => { }
global.middleLayer.backPageNode = this.node; sv.scrollToTop()
global.middleLayer.loadOnlineCourseWare(data.id);
}) // this.initScrollViewItemRow(sv, itemArr, 4);
// sv.content.removeAllChildren()
itemArr.push(itemNode);
} }
return itemArr;
} getItemArr(dataArr) {
const itemArr = [];
initScrollViewItem(sv, itemArr, row = 1) { for (let i = 0; i < dataArr.length; i++) {
if (!itemArr || itemArr.length == 0) { const data = dataArr[i];
return;
} const itemNode = cc.instantiate(this.svItem);
sv.scrollToTop(); itemNode.active=true
const content = sv.content; itemNode['data'] = data;
content.width = sv.node.width;
content.height = sv.node.height; getSprNodeByUrl(data.cover, (spr) => {
content.removeAllChildren();
const sprNode = spr.node;
const tempH = content.height / row; const picLayer = cc.find("mask/pic_layer", itemNode);
const disY = tempH * 0.95; picLayer.addChild(sprNode);
const baseY = (row - 1) * 0.5 * disY;
let rowCount = 0; setSprNodeMaxLen(sprNode, picLayer.width, picLayer.height, true);
})
const disX = 40;
const baseX = itemArr[0].width / 2 * itemArr[0].scaleX + disX; cc.find("title_label", itemNode).getComponent(cc.Label).string = data.name;
let colCount = 0;
itemNode.addComponent(cc.Button);
let lastX = baseX; itemNode.on("click", async () => {
global.middleLayer.backPageNode = this.node;
for (let i = 0; i < itemArr.length; i++) { global.middleLayer.loadOnlineCourseWare(data.id);
})
const item = itemArr[i];
itemArr.push(itemNode);
item.x = lastX + disX; }
item.y = baseY - rowCount * disY; return itemArr;
}
lastX = item.x + item.width * item.scale;
content.addChild(itemArr[i]); // update (dt) {}
}
const tempW = Math.abs(item.x + disX + item.width / 2 * item.scale);
content.width = lastX - item.width / 2 * item.scaleX + disX * 2;
rowCount++;
if (rowCount >= row) {
rowCount = 0;
colCount++;
}
}
}
// update (dt) {}
}
// Learn TypeScript: // Learn TypeScript:
// - https://docs.cocos.com/creator/manual/en/scripting/typescript.html // - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute: // Learn Attribute:
// - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html // - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks: // Learn life-cycle callbacks:
// - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html // - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html
const {ccclass, property} = cc._decorator; const {ccclass, property} = cc._decorator;
@ccclass @ccclass
export default class NewClass extends cc.Component { export default class NewClass extends cc.Component {
@property(cc.Node) @property(cc.Node)
loginPage: cc.Node = null; loginPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
homePage: cc.Node = null; homePage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
libraryPage: cc.Node = null; libraryPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
libraryReadPage: cc.Node = null; libraryReadPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
libraryReadDetailPage: cc.Node = null; libraryReadDetailPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
libraryAudioPage: cc.Node = null; libraryAudioPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
libraryVideoPage: cc.Node = null; libraryVideoPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
unitPage: cc.Node = null; unitPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
missionPage: cc.Node = null; missionPage: cc.Node = null;
// LIFE-CYCLE CALLBACKS: // LIFE-CYCLE CALLBACKS:
// onLoad () {} // onLoad () {}
async start () { async start () {
const userInfo = await global.middleLayer.getUserInfo(); const userInfo = await global.middleLayer.getUserInfo();
if (!userInfo) { if (!userInfo) {
this._currentViewNode = this.loginPage; this._currentViewNode = this.loginPage;
this._currentViewName = "LoginPage" this._currentViewName = "LoginPage"
} else { } else {
this._currentViewNode = this.homePage; this._currentViewNode = this.homePage;
this._currentViewName = "HomePage"; this._currentViewName = "HomePage";
} }
// this._currentViewNode = this.missionPage; // this._currentViewNode = this.missionPage;
// this._currentViewName = "MissionPage" // this._currentViewName = "MissionPage"
this._currentViewNode.active = true; this._currentViewNode.active = true;
}
if (userInfo){
_currentViewName = "" this.justShowView("homePage")
_currentViewNode = null } else {
async toView(viewName, aniType="fade-in-out") { this.justShowView("LoginPage")
if(viewName == this._currentViewName) { }
cc.log(`重复跳转页面: ${this._currentViewName}`); }
return
} _currentViewName = ""
switch(viewName) { _currentViewNode = null
case 'LoginPage': async toView(viewName, aniType="fade-in-out") {
await this.switchView(this.loginPage, this._currentViewNode, aniType); if(viewName == this._currentViewName) {
this._currentViewName = 'LoginPage'; cc.log(`重复跳转页面: ${this._currentViewName}`);
this._currentViewNode = this.loginPage; return
break; }
case 'HomePage': switch(viewName) {
await this.switchView(this.homePage, this._currentViewNode, aniType); case 'LoginPage':
this._currentViewName = 'HomePage'; await this.switchView(this.loginPage, this._currentViewNode, aniType);
this._currentViewNode = this.homePage; this._currentViewName = 'LoginPage';
break; this._currentViewNode = this.loginPage;
case 'LibraryPage': break;
await this.switchView(this.libraryPage, this._currentViewNode, aniType); case 'HomePage':
this._currentViewName = 'LibraryPage'; await this.switchView(this.homePage, this._currentViewNode, aniType);
this._currentViewNode = this.libraryPage; this._currentViewName = 'HomePage';
break; this._currentViewNode = this.homePage;
case 'LibraryReadPage': break;
await this.switchView(this.libraryReadPage, this._currentViewNode, aniType); case 'LibraryPage':
this._currentViewName = 'LibraryReadPage'; await this.switchView(this.libraryPage, this._currentViewNode, aniType);
this._currentViewNode = this.libraryReadPage; this._currentViewName = 'LibraryPage';
break; this._currentViewNode = this.libraryPage;
case 'LibraryAudioPage': break;
await this.switchView(this.libraryAudioPage, this._currentViewNode, aniType); case 'LibraryReadPage':
this._currentViewName = 'LibraryAudioPage'; await this.switchView(this.libraryReadPage, this._currentViewNode, aniType);
this._currentViewNode = this.libraryAudioPage; this._currentViewName = 'LibraryReadPage';
break; this._currentViewNode = this.libraryReadPage;
case 'LibraryVideoPage': break;
await this.switchView(this.libraryVideoPage, this._currentViewNode, aniType); case 'LibraryAudioPage':
this._currentViewName = 'LibraryVideoPage'; await this.switchView(this.libraryAudioPage, this._currentViewNode, aniType);
this._currentViewNode = this.libraryVideoPage; this._currentViewName = 'LibraryAudioPage';
break; this._currentViewNode = this.libraryAudioPage;
case 'LibraryReadDetailPage': break;
await this.switchView(this.libraryReadDetailPage, this._currentViewNode, aniType); case 'LibraryVideoPage':
this._currentViewName = 'LibraryReadDetailPage'; await this.switchView(this.libraryVideoPage, this._currentViewNode, aniType);
this._currentViewNode = this.libraryReadDetailPage; this._currentViewName = 'LibraryVideoPage';
break; this._currentViewNode = this.libraryVideoPage;
case 'UnitPage': break;
await this.switchView(this.unitPage, this._currentViewNode, aniType); case 'LibraryReadDetailPage':
this._currentViewName = 'UnitPage'; await this.switchView(this.libraryReadDetailPage, this._currentViewNode, aniType);
this._currentViewNode = this.unitPage; this._currentViewName = 'LibraryReadDetailPage';
break; this._currentViewNode = this.libraryReadDetailPage;
case 'MissionPage': break;
await this.switchView(this.missionPage, this._currentViewNode, aniType); case 'UnitPage':
this._currentViewName = 'MissionPage'; await this.switchView(this.unitPage, this._currentViewNode, aniType);
this._currentViewNode = this.missionPage; this._currentViewName = 'UnitPage';
break; this._currentViewNode = this.unitPage;
} break;
this._currentViewName = viewName; case 'MissionPage':
} await this.switchView(this.missionPage, this._currentViewNode, aniType);
this._currentViewName = 'MissionPage';
switchView(inPage, outPage, aniType) { this._currentViewNode = this.missionPage;
if(aniType == "leftIn" || aniType == "rightIn") { break;
let targetX = -this.node.width; }
if(aniType == "leftIn") { this._currentViewName = viewName;
targetX = -targetX }
}
inPage.active = true; switchView(inPage, outPage, aniType) {
inPage.x = -targetX; if(aniType == "leftIn" || aniType == "rightIn") {
outPage.active = true; let targetX = -this.node.width;
cc.tween(inPage) if(aniType == "leftIn") {
.to(0.2, { targetX = -targetX
x: 0 }
}) inPage.active = true;
.start(); inPage.x = -targetX;
return new Promise((resovle, reject)=>{ outPage.active = true;
cc.tween(outPage) cc.tween(inPage)
.to(0.2, { .to(0.2, {
x: targetX x: 0
}) })
.call(() => { .start();
outPage.active = false; return new Promise((resovle, reject)=>{
resovle(true) cc.tween(outPage)
}) .to(0.2, {
.start(); x: targetX
}) })
} else if(aniType == "topIn" || aniType == "bottomIn") { .call(() => {
let targetY = -this.node.height; outPage.active = false;
if(aniType == "bottomIn") { resovle(true)
targetY = -targetY })
} .start();
inPage.y = -targetY; })
inPage.active = true; } else if(aniType == "topIn" || aniType == "bottomIn") {
outPage.active = true; let targetY = -this.node.height;
cc.tween(inPage) if(aniType == "bottomIn") {
.to(0.2, { targetY = -targetY
y: 0 }
}) inPage.y = -targetY;
.start(); inPage.active = true;
return new Promise((resovle, reject)=>{ outPage.active = true;
cc.tween(outPage) cc.tween(inPage)
.to(0.2, { .to(0.2, {
y: targetY y: 0
}) })
.call(() => { .start();
outPage.active = false; return new Promise((resovle, reject)=>{
resovle(true) cc.tween(outPage)
}) .to(0.2, {
.start(); y: targetY
}) })
} else { .call(() => {
inPage.opacity = 0; outPage.active = false;
outPage.opacity = 255; resovle(true)
inPage.active = true; })
cc.tween(inPage) .start();
.to(0.1, { })
opacity: 255 } else {
}) inPage.opacity = 0;
.start(); outPage.opacity = 255;
return new Promise((resovle, reject)=>{ inPage.active = true;
cc.tween(outPage) cc.tween(inPage)
.to(0.1, { .to(0.1, {
opacity: 0 opacity: 255
}) })
.call(() => { .start();
outPage.active = false; return new Promise((resovle, reject)=>{
resovle(true) cc.tween(outPage)
}) .to(0.1, {
.start(); opacity: 0
}) })
} .call(() => {
outPage.active = false;
} resovle(true)
// update (dt) {} })
} .start();
})
}
}
justShowView(viewName){
this.loginPage.active=viewName=="LoginPage"
this.homePage.active=viewName=="homePage"
this.libraryPage.active=viewName=="libraryPage"
this.libraryReadPage.active=viewName=="libraryReadPage"
this.libraryAudioPage.active=viewName=="libraryAudioPage"
this.libraryVideoPage.active=viewName=="libraryVideoPage"
this.libraryReadDetailPage.active=viewName=="libraryReadDetailPage"
this.unitPage.active=viewName=="unitPage"
this.missionPage.active=viewName=="missionPage"
}
// update (dt) {}
}
import { middleLayerBase } from "./middleLayerBase"; import { middleLayerBase } from "./middleLayerBase";
import { initAir } from './air'; import { initAir } from './air';
import { getSprNode, appearAnim, asyncPlayDragonBoneAnimation, playLocalAudio, disappearAnim } from './util'; import { getSprNode, appearAnim, asyncPlayDragonBoneAnimation, playLocalAudio, disappearAnim } from './util';
const { ccclass, property } = cc._decorator; const { ccclass, property } = cc._decorator;
@ccclass @ccclass
export default class NewClass extends middleLayerBase { export default class NewClass extends middleLayerBase {
@property(cc.Node) @property(cc.Node)
frontPage: cc.Node = null; frontPage: cc.Node = null;
@property(cc.Node) @property(cc.Node)
loginPage: cc.Node = null; loginPage: cc.Node = null;
role; @property(cc.Prefab)
JJ_Video_01_template:cc.Prefab = null;
// 统一释放异步资源的方法
onLoad() { role;
this.initSize(); // 统一释放异步资源的方法
onLoad() {
initAir(this);
this.reWriteAir(); this.initSize();
(<any>window).courseware.getEngineInfo();
initAir(this);
this.role = 'student'; // 上古遗留问题 this.reWriteAir();
(<any>window).courseware.getEngineInfo();
global.middleLayer = cc.find('middleLayer').getComponent('middleLayer');
this.role = 'student'; // 上古遗留问题
}
global.middleLayer = cc.find('middleLayer').getComponent('middleLayer');
doHeart() {
const token = cc.sys.localStorage.getItem('token'); }
const engine_uuid = this.ENGINE_INFO?this.ENGINE_INFO.uuid:"";
this.callNetworkApiGet(`/api/kyxq/v1/heart`, {token, engine_uuid}, ()=>{ doHeart() {
// 心跳结果,暂时不做任何处理 const token = cc.sys.localStorage.getItem('token');
}); const engine_uuid = this.ENGINE_INFO?this.ENGINE_INFO.uuid:"";
this.scheduleOnce(()=>{ this.callNetworkApiGet(`/api/kyxq/v1/heart`, {token, engine_uuid}, ()=>{
this.doHeart(); // 心跳结果,暂时不做任何处理
}, 5); });
} this.scheduleOnce(()=>{
this.doHeart();
async navLogCaller() { }, 5);
const { data } = await this.asyncCallNetworkApiGet("/api/application/v1/engine/report", { }
engineid: this.ENGINE_INFO.uuid,
packagename: 'com.iplayabc.kyxq' async navLogCaller() {
}); const { data } = await this.asyncCallNetworkApiGet("/api/application/v1/engine/report", {
if (data && data == true) { engineid: this.ENGINE_INFO.uuid,
(<any>window).courseware.logUpload(async (res) => { packagename: 'com.iplayabc.kyxq'
const {fileUrl, error} = JSON.parse(res); });
if (fileUrl) { if (data && data == true) {
await this.asyncCallNetworkApiPost("/api/application/v1/engine/report", { (<any>window).courseware.logUpload(async (res) => {
engineid: this.ENGINE_INFO.uuid, const {fileUrl, error} = JSON.parse(res);
packagename: 'com.iplayabc.kyxq', if (fileUrl) {
file_name: fileUrl await this.asyncCallNetworkApiPost("/api/application/v1/engine/report", {
}); engineid: this.ENGINE_INFO.uuid,
} packagename: 'com.iplayabc.kyxq',
}); file_name: fileUrl
} });
this.scheduleOnce(()=>{ }
this.navLogCaller(); });
}, 5); }
} this.scheduleOnce(()=>{
this.navLogCaller();
async start() { }, 5);
this.node.zIndex = 9999; }
cc.game.addPersistRootNode(this.node);
this.initListener(); async start() {
this.node.zIndex = 9999;
this.doHeart(); cc.game.addPersistRootNode(this.node);
this.scheduleOnce(()=>{ this.initListener();
// 启动日志召回监听服务
this.navLogCaller(); this.doHeart();
}, 5); this.scheduleOnce(()=>{
// 启动日志召回监听服务
try { this.navLogCaller();
// 有些壳上没有提供这个方法,所以处理一下异常 }, 5);
this.onMiddleLayerLoadingFinish(); // 这个是用来隐藏原生端启动页的方法,酌情在适当的地方调用
} catch (error) {} try {
// setTimeout(() => { // 有些壳上没有提供这个方法,所以处理一下异常
// this.showFinish(); this.onMiddleLayerLoadingFinish(); // 这个是用来隐藏原生端启动页的方法,酌情在适当的地方调用
// }, 2000); } catch (error) {}
} // setTimeout(() => {
// this.showFinish();
onHomeworkFinish(d1 = null, d2 = null) { // }, 2000);
let data = null; this.loadTemplate();
let callback = null; }
if (typeof(d1) == 'function') {
data = d2; onHomeworkFinish(d1 = null, d2 = null) {
callback = d1; let data = null;
} else { let callback = null;
data = d1; if (typeof(d1) == 'function') {
callback = d2; data = d2;
} callback = d1;
console.log('onHomeworkFinish: ' + JSON.stringify(data)); } else {
callback && callback(); data = d1;
} callback = d2;
}
_designSize = null; // 设计分辨率 console.log('onHomeworkFinish: ' + JSON.stringify(data));
_frameSize = null; // 屏幕分辨率 callback && callback();
_mapScaleMin = null; // 场景中常用缩放(取大值) }
_mapScaleMax = null; // 场景中常用缩放(取小值)
_cocosScale = null; // cocos 自缩放 (较少用到) _designSize = null; // 设计分辨率
initSize() { _frameSize = null; // 屏幕分辨率
// 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小 _mapScaleMin = null; // 场景中常用缩放(取大值)
let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height _mapScaleMax = null; // 场景中常用缩放(取小值)
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height _cocosScale = null; // cocos 自缩放 (较少用到)
let f = screen_size >= design_size initSize() {
cc.Canvas.instance.fitHeight = f // 注意cc.winSize只有在适配后(修改fitHeight/fitWidth后)才能获取到正确的值,因此使用cc.getFrameSize()来获取初始的屏幕大小
cc.Canvas.instance.fitWidth = !f let screen_size = cc.view.getFrameSize().width / cc.view.getFrameSize().height
let design_size = cc.Canvas.instance.designResolution.width / cc.Canvas.instance.designResolution.height
const frameSize = cc.view.getFrameSize(); let f = screen_size >= design_size
this._frameSize = frameSize; cc.Canvas.instance.fitHeight = f
cc.Canvas.instance.fitWidth = !f
this._designSize = cc.view.getDesignResolutionSize();
const frameSize = cc.view.getFrameSize();
let sx = cc.winSize.width / frameSize.width; this._frameSize = frameSize;
let sy = cc.winSize.height / frameSize.height;
this._cocosScale = Math.min(sx, sy); this._designSize = cc.view.getDesignResolutionSize();
sx = frameSize.width / this._designSize.width; let sx = cc.winSize.width / frameSize.width;
sy = frameSize.height / this._designSize.height; let sy = cc.winSize.height / frameSize.height;
this._mapScaleMin = Math.min(sx, sy) * this._cocosScale; this._cocosScale = Math.min(sx, sy);
this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
sx = frameSize.width / this._designSize.width;
cc.director['_scene'].width = frameSize.width; sy = frameSize.height / this._designSize.height;
cc.director['_scene'].height = frameSize.height; this._mapScaleMin = Math.min(sx, sy) * this._cocosScale;
} this._mapScaleMax = Math.max(sx, sy) * this._cocosScale;
async getUserInfo() { cc.director['_scene'].width = frameSize.width;
const { code, data } = await this.asyncCallNetworkApiGet("/api/kyxq/v1/user/info", null); cc.director['_scene'].height = frameSize.height;
if (code == 200) { }
return data;
} async getUserInfo() {
return null; const { code, data } = await this.asyncCallNetworkApiGet("/api/kyxq/v1/user/info", null);
} if (code == 200) {
return data;
initListener() { }
} return null;
}
backPageNode: cc.Node = null; // 从绘本里返回的界面
exitGame() { initListener() {
cc.audioEngine.stopAll(); }
(<any>window).courseware.freeAllOcMethod();
this.hideTips(); backPageNode: cc.Node = null; // 从绘本里返回的界面
// 切换到空场景 exitGame(data?, isLocalTemplate=false) {
cc.director.loadScene('middleLayer_for_kyxq', () => { console.log("qsj?????")
this.initSize(); if (isLocalTemplate){
this.backPageNode.active = true; // 模板已经放到项目内
this.hideTips(); this.hideTemplateByName(data.templateName);
}) } else {
} // 加载的bundle
cc.audioEngine.stopAll();
getPageInfo() { (<any>window).courseware.freeAllOcMethod();
return {length: this.courses.length, index: this.courseIndex}; this.hideTips();
} // 切换到空场景
cc.director.loadScene('middleLayer_for_kyxq', () => {
golds = null; this.initSize();
saveGolds(gold:Number = 0) { // this.node.scale = 1;
if (!this.golds) { this.backPageNode.active = true;
this.golds = { this.hideTips();
total: 0 })
}; }
} }
if (this.golds[this.courseItem.id]) {
// 覆盖关系 getPageInfo() {
this.golds.total -= this.golds[this.courseItem.id]; return {length: this.courses.length, index: this.courseIndex};
} }
// 上报金币成绩
golds = null;
this.golds[this.courseItem.id] = gold; saveGolds(gold:Number = 0) {
this.golds.total += gold; if (!this.golds) {
} this.golds = {
total: 0
goNextPage() { };
if (this.courseIndex<this.courses.length-1) { }
this.goTarIndexPage(this.courseIndex + 1); if (this.golds[this.courseItem.id]) {
return; // 覆盖关系
} this.golds.total -= this.golds[this.courseItem.id];
// 庆祝画面 }
this.showFinish(); // 上报金币成绩
}
this.golds[this.courseItem.id] = gold;
academyArray = []; // 关卡数组 this.golds.total += gold;
goNextCross() { }
const currentid = this.courseItem.course_id;
let currentIndex = null; goNextPage() {
for (let i = 0; i < this.academyArray.length; i++) { if (this.courseIndex<this.courses.length-1) {
const item = this.academyArray[i]; this.goTarIndexPage(this.courseIndex + 1);
if (item.id == currentid) { return;
currentIndex = i; }
break; // 庆祝画面
} this.showFinish();
} }
if (currentIndex!=null && this.academyArray[currentIndex+1]) {
this.loadOnlineCourseWare(this.academyArray[currentIndex+1].id, null, null); academyArray = []; // 关卡数组
} else { goNextCross() {
this.showTips(`已经是最后一关了`); const currentid = this.courseItem.course_id;
} let currentIndex = null;
// 重置金币数 for (let i = 0; i < this.academyArray.length; i++) {
this.golds = null; const item = this.academyArray[i];
} if (item.id == currentid) {
currentIndex = i;
async showGold(cb) { break;
console.log(' in showGold') }
const goldAnim = cc.instantiate(cc.find('middleLayer/res/anim/gold_anim')); }
const particleLayer = cc.find("middleLayer/particleLayer"); if (currentIndex!=null && this.academyArray[currentIndex+1]) {
goldAnim.active = true; this.loadOnlineCourseWare(this.academyArray[currentIndex+1].id, null, null);
goldAnim.parent = particleLayer; } else {
particleLayer.active = true; this.showTips(`已经是最后一关了`);
appearAnim(particleLayer, 0.3); }
// 重置金币数
console.log('goldAnim: ', goldAnim); this.golds = null;
}
await asyncPlayDragonBoneAnimation(goldAnim, 'three', 1, null);
async showGold(cb) {
disappearAnim(goldAnim, 1); console.log(' in showGold')
disappearAnim(particleLayer, 1, () => { const goldAnim = cc.instantiate(cc.find('middleLayer/res/anim/gold_anim'));
particleLayer.active = false; const particleLayer = cc.find("middleLayer/particleLayer");
}); goldAnim.active = true;
cb(); goldAnim.parent = particleLayer;
} particleLayer.active = true;
appearAnim(particleLayer, 0.3);
async showFinish() {
console.log(' in showFinish') console.log('goldAnim: ', goldAnim);
const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/hy_finish'));
finishAnim.active = true; await asyncPlayDragonBoneAnimation(goldAnim, 'three', 1, null);
finishAnim.y = -100; disappearAnim(goldAnim, 1);
disappearAnim(particleLayer, 1, () => {
const bgFinish = getSprNode("bg_finish"); particleLayer.active = false;
finishAnim.addChild(bgFinish); });
cb();
const labelLayer = new cc.Node(); }
const labelNode = new cc.Node(); async showFinish() {
const label = labelNode.addComponent(cc.Label); console.log(' in showFinish')
label.string = "恭喜你获得"; const finishAnim = cc.instantiate(cc.find('middleLayer/res/anim/kyxq_finish'));
labelLayer.addChild(labelNode); finishAnim.active = true;
labelNode.anchorX = 0;
finishAnim.y = -100;
const labelIcon = getSprNode("icon_coin");
labelLayer.addChild(labelIcon); const bgFinish = getSprNode("bg_finish");
labelIcon.y = 10; finishAnim.addChild(bgFinish);
labelIcon.anchorX = 0;
const labelLayer = new cc.Node();
const labelNode2 = new cc.Node();
const label2 = labelNode2.addComponent(cc.Label); const labelNode = new cc.Node();
label2.string = `x ${this.golds?this.golds.total:0}`; const label = labelNode.addComponent(cc.Label);
labelLayer.addChild(labelNode2); label.string = "恭喜你获得";
labelNode2.anchorX = 0; labelLayer.addChild(labelNode);
labelNode.anchorX = 0;
const distance = 10;
setTimeout(() => { const labelIcon = getSprNode("icon_coin");
labelLayer.width = labelNode.width + labelIcon.width + labelNode2.width + distance * 2; labelLayer.addChild(labelIcon);
labelLayer.x = -labelLayer.width / 2; labelIcon.y = 10;
labelIcon.x = distance + labelNode.width; labelIcon.anchorX = 0;
labelNode2.x = labelIcon.x + labelIcon.width + distance;
const labelNode2 = new cc.Node();
}, 1); const label2 = labelNode2.addComponent(cc.Label);
label2.string = `x ${this.golds?this.golds.total:0}`;
bgFinish.addChild(labelLayer); labelLayer.addChild(labelNode2);
appearAnim(labelLayer, 0.3); labelNode2.anchorX = 0;
const finishLayer = cc.find("middleLayer/finishLayer") const distance = 10;
finishLayer.addChild(finishAnim, 2); setTimeout(() => {
labelLayer.width = labelNode.width + labelIcon.width + labelNode2.width + distance * 2;
finishLayer.active = true; labelLayer.x = -labelLayer.width / 2;
appearAnim(finishLayer, 0.3, () => { labelIcon.x = distance + labelNode.width;
playLocalAudio(`finish`); labelNode2.x = labelIcon.x + labelIcon.width + distance;
});
}, 1);
console.log('finishAnim: ', finishAnim);
bgFinish.addChild(labelLayer);
const finishLight = getSprNode('bg_finishlight'); appearAnim(labelLayer, 0.3);
finishLayer.addChild(finishLight);
const finishLayer = cc.find("middleLayer/finishLayer")
const rotateAction = cc.repeatForever(cc.rotateBy(5, 360)); finishLayer.addChild(finishAnim, 2);
finishLight.runAction(rotateAction);
finishLayer.active = true;
appearAnim(finishLayer, 0.3, () => {
await asyncPlayDragonBoneAnimation(finishAnim, 'finish', 1, null); playLocalAudio(`finish`);
});
const replayBtn = getSprNode("btn_replay");
finishLayer.addChild(replayBtn); console.log('finishAnim: ', finishAnim);
replayBtn.x = -400;
replayBtn.y = -270; const finishLight = getSprNode('bg_finishlight');
finishLayer.addChild(finishLight);
const nextBtn = getSprNode("btn_next"); const rotateAction = cc.repeatForever(cc.rotateBy(5, 360));
finishLayer.addChild(nextBtn); finishLight.runAction(rotateAction);
nextBtn.x = -replayBtn.x;
nextBtn.y = replayBtn.y;
await asyncPlayDragonBoneAnimation(finishAnim, 'finish', 1, null);
const xBtn = getSprNode("btn_x");
finishLayer.addChild(xBtn); const replayBtn = getSprNode("btn_replay");
xBtn.x = 400; finishLayer.addChild(replayBtn);
xBtn.y = 270; replayBtn.x = -400;
replayBtn.y = -270;
const hideFinish = ()=>{
finishLayer.removeChild(xBtn);
finishLayer.removeChild(nextBtn); const nextBtn = getSprNode("btn_next");
finishLayer.removeChild(replayBtn); finishLayer.addChild(nextBtn);
finishLayer.removeChild(finishLight); nextBtn.x = -replayBtn.x;
finishLayer.removeChild(finishAnim); nextBtn.y = replayBtn.y;
finishLayer.active = false; const xBtn = getSprNode("btn_x");
} finishLayer.addChild(xBtn);
xBtn.x = 400;
replayBtn.on('touchstart' , () =>{ xBtn.y = 270;
hideFinish();
this.loadOnlineCourseWare(this.courseItem.course_id, null, null); const hideFinish = ()=>{
}) finishLayer.removeChild(xBtn);
finishLayer.removeChild(nextBtn);
nextBtn.on("touchstart", () => { finishLayer.removeChild(replayBtn);
hideFinish(); finishLayer.removeChild(finishLight);
this.goNextCross(); finishLayer.removeChild(finishAnim);
})
finishLayer.active = false;
xBtn.on("touchstart", () => { }
hideFinish();
this.exitGame(); replayBtn.on('touchstart' , () =>{
}) hideFinish();
this.loadOnlineCourseWare(this.courseItem.course_id, null, null);
appearAnim(replayBtn); })
appearAnim(nextBtn);
appearAnim(xBtn); nextBtn.on("touchstart", () => {
} hideFinish();
this.goNextCross();
reWriteAir() { })
(<any>window).courseware.getData = (callback) => {
let data = null; xBtn.on("touchstart", () => {
if (this.courseItem && this.courseItem.data) { hideFinish();
data = JSON.parse(this.courseItem.data); this.exitGame();
} })
this.log("===成功调用getData===" + JSON.stringify(data));
callback && callback(data); appearAnim(replayBtn);
} appearAnim(nextBtn);
(<any>window).courseware.nextPage = () => { appearAnim(xBtn);
this.goNextPage(); }
if (this.courseIndex == 0) {
cc.find('middleLayer/BtnLeft').active = false; reWriteAir() {
} else { (<any>window).courseware.getData = (callback) => {
cc.find('middleLayer/BtnLeft').active = false; let data = null;
} if (this.courseItem && this.courseItem.data) {
if (this.courseIndex == this.courses.length - 1) { data = JSON.parse(this.courseItem.data);
cc.find('middleLayer/BtnRight').active = false; }
} else { this.log("===成功调用getData===" + JSON.stringify(data));
cc.find('middleLayer/BtnRight').active = true; callback && callback(data);
} }
} (<any>window).courseware.nextPage = () => {
(<any>window).courseware.beforePage = () => { this.goNextPage();
this.goPrePage(); if (this.courseIndex == 0) {
if (this.courseIndex == 0) { cc.find('middleLayer/BtnLeft').active = false;
cc.find('middleLayer/BtnLeft').active = false; } else {
} else { cc.find('middleLayer/BtnLeft').active = false;
cc.find('middleLayer/BtnLeft').active = false; }
} if (this.courseIndex == this.courses.length - 1) {
if (this.courseIndex == this.courses.length - 1) { cc.find('middleLayer/BtnRight').active = false;
cc.find('middleLayer/BtnRight').active = false; } else {
} else { cc.find('middleLayer/BtnRight').active = true;
cc.find('middleLayer/BtnRight').active = true; }
} }
} (<any>window).courseware.beforePage = () => {
this.goPrePage();
(<any>window).courseware.getAnswer = (queryObj, callback) => { if (this.courseIndex == 0) {
this.log("===成功调用getAnswer===" + JSON.stringify(queryObj)); cc.find('middleLayer/BtnLeft').active = false;
// TODO 查询成绩 } else {
// this.callNetworkApiGet(`/api/oxford/courseware/v1/${this.courseItem.id}/getanswer`, queryObj, (data) => { cc.find('middleLayer/BtnLeft').active = false;
// callback && callback(JSON.stringify(data.rows)); }
// }); if (this.courseIndex == this.courses.length - 1) {
} cc.find('middleLayer/BtnRight').active = false;
} else {
if (!(<any>window).air) { cc.find('middleLayer/BtnRight').active = true;
(<any>window).air = {}; }
} }
(<any>window).air.hideAirClassLoading = () => {
if ((<any>window).air.onCourseInScreen) { (<any>window).courseware.getAnswer = (queryObj, callback) => {
(<any>window).air.onCourseInScreen(() => { this.log("===成功调用getAnswer===" + JSON.stringify(queryObj));
console.log("***成功调用onCourseInScreen***"); // TODO 查询成绩
(<any>window).air.onCourseInScreen = null; // this.callNetworkApiGet(`/api/oxford/courseware/v1/${this.courseItem.id}/getanswer`, queryObj, (data) => {
this.hidePreloadWaiting(); // callback && callback(JSON.stringify(data.rows));
}); // });
} else { }
this.hidePreloadWaiting();
} if (!(<any>window).air) {
} (<any>window).air = {};
} }
(<any>window).air.hideAirClassLoading = () => {
} if ((<any>window).air.onCourseInScreen) {
(<any>window).air.onCourseInScreen(() => {
console.log("***成功调用onCourseInScreen***");
(<any>window).air.onCourseInScreen = null;
this.hidePreloadWaiting();
});
} else {
this.hidePreloadWaiting();
}
}
}
loadTemplate(){
this.hideTemplateByName("JJ_Video_01");
}
hideTemplateByName(name=""){
if (name=="JJ_Video_01"){
this.hide_JJ_Video_01_template()
}
}
showTemplateByName(name=""){
if (name=="JJ_Video_01"){
this.show_JJ_Video_01_template()
}
}
private m_JJ_Video_01_template
show_JJ_Video_01_template(){
// 每次加载新资源,需要刷新数据
this.m_JJ_Video_01_template = cc.instantiate(this.JJ_Video_01_template);
this.m_JJ_Video_01_template.parent=this.node.parent;
this.m_JJ_Video_01_template.active=true;
this.node.active=false;
}
hide_JJ_Video_01_template(){
this.node.active=true;
if(this.backPageNode)
this.backPageNode.active = true;
if(this.m_JJ_Video_01_template){ // 释放资源
this.m_JJ_Video_01_template.removeFromParent();
cc.assetManager.releaseAsset(this.m_JJ_Video_01_template);
this.m_JJ_Video_01_template=null;
}
}
}
import { asyncDelay, randomSortByArr } from "./util"; import { asyncDelay, randomSortByArr } from "./util";
export abstract class middleLayerBase extends cc.Component { export abstract class middleLayerBase extends cc.Component {
abstract reWriteAir(): void; abstract reWriteAir(): void;
isShowWaiting = false; isShowWaiting = false;
hidePreloadWaiting(){ hidePreloadWaiting(){
if (!this.isShowWaiting) { if (!this.isShowWaiting) {
return; return;
} }
this.isShowWaiting = false; this.isShowWaiting = false;
// 隐藏遮罩层 // 隐藏遮罩层
cc.find(`middleLayer/loadingLayer`).active = false; cc.find(`middleLayer/loadingLayer`).active = false;
} }
showPreloadWaiting(){ showPreloadWaiting(){
if (this.isShowWaiting) { if (this.isShowWaiting) {
return; return;
} }
this.isShowWaiting = true; this.isShowWaiting = true;
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
// 显示遮罩层 // 显示遮罩层
cc.find(`middleLayer/loadingLayer`).active = true; cc.find(`middleLayer/loadingLayer`).active = true;
} }
oldSceneName = null; oldSceneName = null;
IS_BUNDLE_LOADING = false; IS_BUNDLE_LOADING = false;
onMiddleLayerLoadingFinish() { onMiddleLayerLoadingFinish() {
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) { if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) {
jsb.reflection.callStaticMethod( jsb.reflection.callStaticMethod(
"RootViewController", "RootViewController",
"getMiddleLayerInfoFinish:", "getMiddleLayerInfoFinish:",
"" ""
); );
} }
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) { if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) {
jsb.reflection.callStaticMethod( jsb.reflection.callStaticMethod(
"com/iplayabc/cocos/AppActivity", "com/iplayabc/cocos/AppActivity",
"getMiddleLayerInfoFinish", "getMiddleLayerInfoFinish",
"(Ljava/lang/String;)Ljava/lang/String;", "(Ljava/lang/String;)Ljava/lang/String;",
"" ""
); );
} }
} }
callNetworkApiPost(uri, data, callBack, sendHook = null) { callNetworkApiPost(uri, data, callBack, sendHook = null) {
const token = cc.sys.localStorage.getItem('token'); const token = cc.sys.localStorage.getItem('token');
data = {...data, token}; data = {...data, token};
this.getEngineInfo().then((engineInfo) => { this.getEngineInfo().then((engineInfo) => {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
const url = `${engineInfo["apiBase"]}${uri}`; const url = `${engineInfo["apiBase"]}${uri}`;
xhr.open("POST", url, true); xhr.open("POST", url, true);
xhr.setRequestHeader('content-type', 'application/json'); xhr.setRequestHeader('content-type', 'application/json');
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
callBack(JSON.parse(xhr.responseText)); callBack(JSON.parse(xhr.responseText));
} }
} }
xhr.send(JSON.stringify(data)); xhr.send(JSON.stringify(data));
sendHook && sendHook(xhr); sendHook && sendHook(xhr);
}); });
} }
callNetworkApiGet(uri, data, callback, sendHook = null) { callNetworkApiGet(uri, data, callback, sendHook = null) {
const token = cc.sys.localStorage.getItem('token'); const token = cc.sys.localStorage.getItem('token');
data = {...data, token}; data = {...data, token};
this.getEngineInfo().then((engineInfo) => { this.getEngineInfo().then((engineInfo) => {
let queryStr = '?'; let queryStr = '?';
const params = []; const params = [];
for (const key in data) { for (const key in data) {
if (Object.hasOwnProperty.call(data, key)) { if (Object.hasOwnProperty.call(data, key)) {
params.push(`${key}=${data[key]}`); params.push(`${key}=${data[key]}`);
} }
} }
queryStr += params.join("&"); queryStr += params.join("&");
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
let flag = false; let flag = false;
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) {
flag = true; flag = true;
callback(JSON.parse(xhr.responseText)); callback(JSON.parse(xhr.responseText));
} }
}; };
const url = `${engineInfo["apiBase"]}${uri}${queryStr}`; const url = `${engineInfo["apiBase"]}${uri}${queryStr}`;
console.log('url = ' + url); console.log('url = ' + url);
sendHook && sendHook(xhr); sendHook && sendHook(xhr);
xhr.open('GET', url, true); xhr.open('GET', url, true);
xhr.send(); xhr.send();
// 五秒超时重试一次 // 五秒超时重试一次
if (sendHook) { if (sendHook) {
// 有hook的无法重试请求 // 有hook的无法重试请求
return; return;
} }
this.scheduleOnce(() => { this.scheduleOnce(() => {
if (flag) { if (flag) {
return; return;
} }
xhr.abort(); xhr.abort();
this.callNetworkApiGet(uri, data, callback); this.callNetworkApiGet(uri, data, callback);
}, 5); }, 5);
}); });
} }
getConfigInfo(url, callback) { getConfigInfo(url, callback) {
const xhr = new XMLHttpRequest(); const xhr = new XMLHttpRequest();
let flag = false; let flag = false;
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status < 400)) {
flag = true; flag = true;
callback(JSON.parse(xhr.responseText)); callback(JSON.parse(xhr.responseText));
} }
}; };
xhr.open('GET', `${url}/config.json`, true); xhr.open('GET', `${url}/config.json`, true);
xhr.send(); xhr.send();
// 五秒超时重试一次 // 五秒超时重试一次
this.scheduleOnce(() => { this.scheduleOnce(() => {
if (flag) { if (flag) {
return; return;
} }
xhr.abort(); xhr.abort();
this.getConfigInfo(url, callback); this.getConfigInfo(url, callback);
}, 5); }, 5);
} }
ENGINE_INFO; ENGINE_INFO;
getEngineInfo() { getEngineInfo() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (this.ENGINE_INFO) { if (this.ENGINE_INFO) {
resolve(this.ENGINE_INFO); resolve(this.ENGINE_INFO);
return; return;
} }
const loopEngineInfo = () => { const loopEngineInfo = () => {
this.scheduleOnce(() => { this.scheduleOnce(() => {
if (!(<any>window).air.engineInfo) { if (!(<any>window).air.engineInfo) {
loopEngineInfo(); loopEngineInfo();
return; return;
} }
if (this.ENGINE_INFO) { if (this.ENGINE_INFO) {
resolve(this.ENGINE_INFO); resolve(this.ENGINE_INFO);
return; return;
} }
const engineInfo = JSON.parse((<any>window).air.engineInfo); const engineInfo = JSON.parse((<any>window).air.engineInfo);
if (engineInfo.isDev == 1) { if (engineInfo.isDev == 1) {
engineInfo.domain = "http://staging-teach.cdn.ireadabc.com/"; engineInfo.domain = "http://staging-teach.cdn.ireadabc.com/";
engineInfo.apiBase = 'http://staging-openapi.iteachabc.com'; engineInfo.apiBase = 'http://staging-openapi.iteachabc.com';
engineInfo.orgId = 521; engineInfo.orgId = 521;
} else { } else {
engineInfo.domain = "http://teach.cdn.ireadabc.com/"; engineInfo.domain = "http://teach.cdn.ireadabc.com/";
engineInfo.apiBase = 'http://openapi.iteachabc.com'; engineInfo.apiBase = 'http://openapi.iteachabc.com';
engineInfo.orgId = 519; engineInfo.orgId = 519;
} }
this.ENGINE_INFO = engineInfo; this.ENGINE_INFO = engineInfo;
resolve(engineInfo); resolve(engineInfo);
}, 0.05); }, 0.05);
}; };
loopEngineInfo(); loopEngineInfo();
}); });
} }
asyncCallNetworkApiGet(uri, data): Promise<any> { asyncCallNetworkApiGet(uri, data): Promise<any> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.callNetworkApiGet(uri, data, (res => { this.callNetworkApiGet(uri, data, (res => {
resolve(res); resolve(res);
})); }));
}); });
} }
asyncCallNetworkApiPost(uri, data): Promise<any> { asyncCallNetworkApiPost(uri, data): Promise<any> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.callNetworkApiPost(uri, data, (res) => { this.callNetworkApiPost(uri, data, (res) => {
resolve(res); resolve(res);
}); });
}); });
} }
currentBundleInfo = null; currentBundleInfo = null;
reloadBundle() { reloadBundle() {
if (this.IS_BUNDLE_LOADING) { if (this.IS_BUNDLE_LOADING) {
return; return;
} }
this.IS_BUNDLE_LOADING = true; this.IS_BUNDLE_LOADING = true;
const { sceneName, version, bondleUrl } = this.currentBundleInfo; const { sceneName, version, bondleUrl } = this.currentBundleInfo;
this.loadBundle(sceneName, version, bondleUrl); this.loadBundle(sceneName, version, bondleUrl);
} }
async loadBundle(sceneName, version, bondleUrl, callback = null) { async loadBundle(sceneName, version, bondleUrl, callback = null) {
if (this.oldSceneName) { if (this.oldSceneName) {
await this.checkRotateScreen(this.oldSceneName, sceneName); await this.checkRotateScreen(this.oldSceneName, sceneName);
} }
this.assetList = []; this.assetList = [];
this.textureList = []; this.textureList = [];
this.assetObj = {}; this.assetObj = {};
this.atlasList = []; this.atlasList = [];
this.nodeList = []; this.nodeList = [];
this.getDragonDisplayAssetList(cc.find('Canvas')); this.getDragonDisplayAssetList(cc.find('Canvas'));
this.currentBundleInfo = { sceneName, version, bondleUrl }; this.currentBundleInfo = { sceneName, version, bondleUrl };
this.showPreloadWaiting(); this.showPreloadWaiting();
cc.audioEngine.stopAll(); cc.audioEngine.stopAll();
cc.assetManager.loadBundle(bondleUrl, { version: version }, async (err, bundle) => { cc.assetManager.loadBundle(bondleUrl, { version: version }, async (err, bundle) => {
bundle.loadScene(sceneName, null, null, (err, scene) => { bundle.loadScene(sceneName, null, null, (err, scene) => {
this.courseOpenTimeStamp = Date.now(); this.courseOpenTimeStamp = Date.now();
cc.director.runScene(scene, null, () => { cc.director.runScene(scene, null, () => {
console.log('sceneName = ' + sceneName); console.log('sceneName = ' + sceneName);
const canvas = cc.find('Canvas'); const canvas = cc.find('Canvas');
const middleLayer = cc.find('middleLayer'); const middleLayer = cc.find('middleLayer');
const wgt = canvas.getComponent(cc.Widget); const wgt = canvas.getComponent(cc.Widget);
if(wgt) { if(wgt) {
wgt.updateAlignment(); wgt.updateAlignment();
} }
middleLayer.scale = canvas.width / middleLayer.width; middleLayer.scale = canvas.width / middleLayer.width;
// 挂载清洁骨骼机制节点 // 挂载清洁骨骼机制节点
const destroyer = cc.instantiate(cc.find('middleLayer/Destroyer')); const destroyer = cc.instantiate(cc.find('middleLayer/Destroyer'));
destroyer.parent = cc.find('Canvas'); destroyer.parent = cc.find('Canvas');
destroyer.active = true; destroyer.active = true;
// 手机端强制垃圾回收 // 手机端强制垃圾回收
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID) { if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS || cc.sys.os == cc.sys.OS_ANDROID) {
cc.sys.garbageCollect(); cc.sys.garbageCollect();
} }
callback && callback(); callback && callback();
this.IS_BUNDLE_LOADING = false; this.IS_BUNDLE_LOADING = false;
this.oldSceneName = sceneName; this.oldSceneName = sceneName;
}); });
}); });
}); });
} }
setNodeListVisible() { setNodeListVisible() {
const setParentVisible = (n) => { const setParentVisible = (n) => {
n.active = true; n.active = true;
if (n.parent) { if (n.parent) {
setParentVisible(n.parent); setParentVisible(n.parent);
} }
} }
this.nodeList.forEach(node => { this.nodeList.forEach(node => {
setParentVisible(node); setParentVisible(node);
}); });
} }
getUUID() { getUUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, var r = Math.random() * 16 | 0,
v = c == 'x' ? r : (r & 0x3 | 0x8); v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16); return v.toString(16);
}); });
} }
checkRotateScreen(oldSceneName: string, newSceneName: string) { checkRotateScreen(oldSceneName: string, newSceneName: string) {
const sceneNameList = []; const sceneNameList = [];
if (sceneNameList.includes(oldSceneName) || sceneNameList.includes(newSceneName)) { if (sceneNameList.includes(oldSceneName) || sceneNameList.includes(newSceneName)) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (sceneNameList.includes(newSceneName)) { if (sceneNameList.includes(newSceneName)) {
// 如果已经是竖屏了 // 如果已经是竖屏了
if (cc.view.getCanvasSize().width < cc.view.getCanvasSize().height) { if (cc.view.getCanvasSize().width < cc.view.getCanvasSize().height) {
resolve(null); resolve(null);
return; return;
} }
// 旋转到竖屏 // 旋转到竖屏
(<any>window).courseware.onConfigurationPortrait({}, async () => { (<any>window).courseware.onConfigurationPortrait({}, async () => {
while (cc.view.getCanvasSize().width > cc.view.getCanvasSize().height) { while (cc.view.getCanvasSize().width > cc.view.getCanvasSize().height) {
await asyncDelay(0.1); await asyncDelay(0.1);
} }
resolve(null); resolve(null);
}); });
} else { } else {
// 如果已经是横屏了 // 如果已经是横屏了
if (cc.view.getCanvasSize().width > cc.view.getCanvasSize().height) { if (cc.view.getCanvasSize().width > cc.view.getCanvasSize().height) {
resolve(null); resolve(null);
return; return;
} }
// 旋转到横屏 // 旋转到横屏
(<any>window).courseware.onConfigurationLandscape({}, async () => { (<any>window).courseware.onConfigurationLandscape({}, async () => {
while (cc.view.getCanvasSize().width < cc.view.getCanvasSize().height) { while (cc.view.getCanvasSize().width < cc.view.getCanvasSize().height) {
await asyncDelay(0.1); await asyncDelay(0.1);
} }
resolve(null); resolve(null);
}); });
} }
}); });
} }
} }
courses = null; courses = null;
courseIndex = 0; courseIndex = 0;
courseItem = null; courseItem = null;
courseOpenTimeStamp = null; courseOpenTimeStamp = null;
loadOnlineCourseWare(courseId, courseIndex = null, callback) { loadOnlineCourseWare(courseId, courseIndex = null, callback) {
if (this.IS_BUNDLE_LOADING) { if (this.IS_BUNDLE_LOADING) {
return; return;
} }
this.IS_BUNDLE_LOADING = true; this.IS_BUNDLE_LOADING = true;
this.hideTips(); this.hideTips();
this.showPreloadWaiting(); this.showPreloadWaiting();
let api = `/api/courseware/v2/${courseId}/list`; let api = `/api/courseware/v2/${courseId}/list`;
this.callNetworkApiGet(api, {}, (data) => { this.callNetworkApiGet(api, {}, (data) => {
if (data.rows && data.rows.length > 0) { if (data.rows && data.rows.length > 0) {
this.courses = data.rows; this.courses = data.rows;
if(typeof courseIndex != null && !isNaN(courseIndex) && courseIndex > 0) { if(typeof courseIndex != null && !isNaN(courseIndex) && courseIndex > 0) {
this.courseIndex = courseIndex - 1; this.courseIndex = courseIndex - 1;
} else { } else {
this.courseIndex = data.index || 0; this.courseIndex = data.index || 0;
} }
this.courseItem = data.rows[this.courseIndex]; this.courseItem = data.rows[this.courseIndex];
} else { } else {
this.hidePreloadWaiting(); this.hidePreloadWaiting();
this.showTips(`内容还未制作`); this.showTips(`内容还未制作`);
this.IS_BUNDLE_LOADING = false; this.IS_BUNDLE_LOADING = false;
callback && callback(false); callback && callback(false);
return; return;
} }
this.loadPageBundle(() => { if (this.courseItem.template_name == "JJ_Video_01"){
callback && callback(true); this.hidePreloadWaiting();
}); cc.find('middleLayer').getComponent("middleLayer").showTemplateByName(this.courseItem.template_name);
}); this.IS_BUNDLE_LOADING = false;
} callback && callback(true);
return;
loadPageBundle(callback = null) { } else {
let sceneName, version, bondleUrl = ""; this.loadPageBundle(() => {
this.getEngineInfo().then(engineInfo => { callback && callback(true);
const templateBaseUrl = `${engineInfo["domain"]}h5template/${this.courseItem.template_name}/v${this.courseItem.last_version}`; });
this.getConfigInfo(templateBaseUrl, (conf) => { }
if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) { // this.loadPageBundle(() => {
sceneName = conf.ios.sceneName; // callback && callback(true);
version = conf.ios.version; // });
bondleUrl = `${templateBaseUrl}/ios/${conf.ios.sceneName}`; });
} else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) { }
sceneName = conf.android.sceneName;
version = conf.android.version; loadPageBundle(callback = null) {
bondleUrl = `${templateBaseUrl}/android/${conf.ios.sceneName}`; let sceneName, version, bondleUrl = "";
} else { this.getEngineInfo().then(engineInfo => {
sceneName = conf.android.sceneName; const templateBaseUrl = `${engineInfo["domain"]}h5template/${this.courseItem.template_name}/v${this.courseItem.last_version}`;
version = ""; this.getConfigInfo(templateBaseUrl, (conf) => {
bondleUrl = `${templateBaseUrl}/web_desktop`; if (cc.sys.isNative && cc.sys.os == cc.sys.OS_IOS) {
} sceneName = conf.ios.sceneName;
this.loadBundle(sceneName, version, bondleUrl, callback); version = conf.ios.version;
}); bondleUrl = `${templateBaseUrl}/ios/${conf.ios.sceneName}`;
}); } else if (cc.sys.isNative && cc.sys.os == cc.sys.OS_ANDROID) {
} sceneName = conf.android.sceneName;
version = conf.android.version;
goPrePage() { bondleUrl = `${templateBaseUrl}/android/${conf.ios.sceneName}`;
this.goTarIndexPage(this.courseIndex - 1); } else {
} sceneName = conf.android.sceneName;
goNextPage() { version = "";
this.goTarIndexPage(this.courseIndex + 1); bondleUrl = `${templateBaseUrl}/web_desktop`;
} }
goTarIndexPage(index) { this.loadBundle(sceneName, version, bondleUrl, callback);
if (this.IS_BUNDLE_LOADING) { });
return; });
} }
this.IS_BUNDLE_LOADING = true;
if (!this.courses || index == this.courseIndex || index < 0 || index > this.courses.length - 1) { goPrePage() {
this.IS_BUNDLE_LOADING = false; this.goTarIndexPage(this.courseIndex - 1);
return; }
} goNextPage() {
this.goTarIndexPage(this.courseIndex + 1);
this.showPreloadWaiting(); }
goTarIndexPage(index) {
(<any>window).courseware.freeAllOcMethod(); if (this.IS_BUNDLE_LOADING) {
return;
this.courseIndex = index; }
this.courseItem = this.courses[this.courseIndex]; this.IS_BUNDLE_LOADING = true;
if (!this.courses || index == this.courseIndex || index < 0 || index > this.courses.length - 1) {
if (this.courseIndex < this.courses.length - 1) { this.IS_BUNDLE_LOADING = false;
cc.find('middleLayer/BtnRight').active = false; return;
} else { }
cc.find('middleLayer/BtnRight').active = false;
} this.showPreloadWaiting();
this.loadPageBundle();
} (<any>window).courseware.freeAllOcMethod();
tipsTween = null; this.courseIndex = index;
async showTips(str: string) { this.courseItem = this.courses[this.courseIndex];
const tipsLayer = cc.find('middleLayer/tipsLayer');
if (this.courseIndex < this.courses.length - 1) {
if (this.tipsTween) { cc.find('middleLayer/BtnRight').active = false;
this.tipsTween.stop(); } else {
tipsLayer.active = false; cc.find('middleLayer/BtnRight').active = false;
} }
const label = cc.find('middleLayer/tipsLayer/tips/label'); this.loadPageBundle();
label.getComponent(cc.Label).string = ` ${str} `; }
const tips = cc.find('middleLayer/tipsLayer/tips');
tipsLayer.active = true; tipsTween = null;
tips.width = Math.max(300, label.width + 50); async showTips(str: string) {
const tipsLayer = cc.find('middleLayer/tipsLayer');
this.tipsTween = cc.tween(tips)
.set({ opacity: 255 }) if (this.tipsTween) {
.to(5, { opacity: 0 }) this.tipsTween.stop();
.call(() => { tipsLayer.active = false;
tipsLayer.active = false; }
this.tipsTween = null; const label = cc.find('middleLayer/tipsLayer/tips/label');
}) label.getComponent(cc.Label).string = ` ${str} `;
.start(); const tips = cc.find('middleLayer/tipsLayer/tips');
} tipsLayer.active = true;
tips.width = Math.max(300, label.width + 50);
async hideTips () {
const tipsLayer = cc.find('middleLayer/tipsLayer'); this.tipsTween = cc.tween(tips)
if (this.tipsTween) { .set({ opacity: 255 })
this.tipsTween.stop(); .to(5, { opacity: 0 })
} .call(() => {
tipsLayer.active = false; tipsLayer.active = false;
} this.tipsTween = null;
})
log(str) { .start();
console.log(str); }
}
async hideTips () {
async clearDragonDisplayAssetList() { const tipsLayer = cc.find('middleLayer/tipsLayer');
if (this.atlasList.length == 0) { if (this.tipsTween) {
return; this.tipsTween.stop();
} }
tipsLayer.active = false;
this.setNodeListVisible(); }
for (let i=0; i<this.atlasList.length; i++) { log(str) {
const atlas = this.atlasList[i]; console.log(str);
const asset = this.assetList[i]; }
const texture = this.textureList[i];
const node = this.nodeList[i]; async clearDragonDisplayAssetList() {
if (this.atlasList.length == 0) {
return;
atlas.decRef(); }
cc.assetManager.releaseAsset(atlas);
atlas.destroy(); this.setNodeListVisible();
asset.decRef(); for (let i=0; i<this.atlasList.length; i++) {
cc.assetManager.releaseAsset(asset); const atlas = this.atlasList[i];
asset.destroy(); const asset = this.assetList[i];
const texture = this.textureList[i];
texture.decRef(); const node = this.nodeList[i];
}
atlas.decRef();
cc.assetManager.releaseAsset(atlas);
} atlas.destroy();
assetObj = null; asset.decRef();
nodeList = null; cc.assetManager.releaseAsset(asset);
atlasList = null; asset.destroy();
assetList = null;
textureList = null; texture.decRef();
getDragonDisplayAssetList(node) {
}
const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay);
if (dragonDisplay) {
const atlas = dragonDisplay.dragonAtlasAsset; }
const asset = dragonDisplay.dragonAsset;
assetObj = null;
if (atlas && atlas.texture) { nodeList = null;
if (atlas.texture.nativeUrl.includes('h5template')) { atlasList = null;
node.children.forEach(child => { assetList = null;
this.getDragonDisplayAssetList(child); textureList = null;
}); getDragonDisplayAssetList(node) {
return;
} const dragonDisplay = node.getComponent(dragonBones.ArmatureDisplay);
if (dragonDisplay) {
this.nodeList.push(node); const atlas = dragonDisplay.dragonAtlasAsset;
this.atlasList.push(atlas); const asset = dragonDisplay.dragonAsset;
this.assetList.push(asset);
this.textureList.push(atlas.texture); if (atlas && atlas.texture) {
} if (atlas.texture.nativeUrl.includes('h5template')) {
} node.children.forEach(child => {
this.getDragonDisplayAssetList(child);
node.children.forEach(child => { });
this.getDragonDisplayAssetList(child); return;
}); }
}
this.nodeList.push(node);
toCleanParent() { this.atlasList.push(atlas);
const canvas = cc.find("Canvas"); this.assetList.push(asset);
this.textureList.push(atlas.texture);
this.nodeList.forEach(node => { }
node.parent = canvas; }
});
} node.children.forEach(child => {
this.getDragonDisplayAssetList(child);
});
}
toCleanParent() {
const canvas = cc.find("Canvas");
this.nodeList.forEach(node => {
node.parent = canvas;
});
}
} }
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "105ced1a-bbfe-456a-aea0-b81fc99b5987",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b5ad6bac-79f2-48f9-86ac-40cc684dca4d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"13-听音频": {
"ver": "1.0.4",
"uuid": "00115443-955f-4f8e-928d-cf1bb8c2fbcb",
"rawTextureUuid": "b5ad6bac-79f2-48f9-86ac-40cc684dca4d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "a6c991f2-470b-4fc0-8c46-b613dc1e5878",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 460,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "863f30d6-8f44-455b-bd45-3b34120bcd4f",
"rawTextureUuid": "a6c991f2-470b-4fc0-8c46-b613dc1e5878",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 460,
"height": 1080,
"rawWidth": 460,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "5ab1492a-ba68-4a71-9c53-7120f5ab46f2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 357,
"height": 420,
"platformSettings": {},
"subMetas": {
"bg_book2": {
"ver": "1.0.4",
"uuid": "ce6d6baf-ac01-48b7-aea2-0293efb01bb8",
"rawTextureUuid": "5ab1492a-ba68-4a71-9c53-7120f5ab46f2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 3.5,
"trimX": 9,
"trimY": 2,
"width": 339,
"height": 409,
"rawWidth": 357,
"rawHeight": 420,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "0f417639-fc2c-4ca6-ac63-0b4315a11055",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 357,
"height": 420,
"platformSettings": {},
"subMetas": {
"bg_book2_shadow": {
"ver": "1.0.4",
"uuid": "f96e9ee8-bbb9-4e26-9bc9-c5f6833b3361",
"rawTextureUuid": "0f417639-fc2c-4ca6-ac63-0b4315a11055",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -139.5,
"offsetY": 17,
"trimX": 18,
"trimY": 2,
"width": 42,
"height": 382,
"rawWidth": 357,
"rawHeight": 420,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "34738f23-e3bc-4396-924d-14b5b78472b2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 153,
"height": 588,
"platformSettings": {},
"subMetas": {
"bg_left": {
"ver": "1.0.4",
"uuid": "27f4e564-5195-427a-acab-dee839fa3555",
"rawTextureUuid": "34738f23-e3bc-4396-924d-14b5b78472b2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -4,
"offsetY": 3.5,
"trimX": 0,
"trimY": 2,
"width": 145,
"height": 577,
"rawWidth": 153,
"rawHeight": 588,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "69d2277e-238c-4f76-9522-084a21b5c276",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 350,
"height": 274,
"platformSettings": {},
"subMetas": {
"bg_planet": {
"ver": "1.0.4",
"uuid": "bbe927ce-e052-4751-881f-026581719673",
"rawTextureUuid": "69d2277e-238c-4f76-9522-084a21b5c276",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 350,
"height": 274,
"rawWidth": 350,
"rawHeight": 274,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "83977f4b-4b94-4c80-8e52-62e2ae11f950",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 166,
"height": 588,
"platformSettings": {},
"subMetas": {
"bg_right": {
"ver": "1.0.4",
"uuid": "e4054170-6f66-45e8-9108-12509f851b98",
"rawTextureUuid": "83977f4b-4b94-4c80-8e52-62e2ae11f950",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 6,
"offsetY": 4.5,
"trimX": 12,
"trimY": 2,
"width": 154,
"height": 575,
"rawWidth": 166,
"rawHeight": 588,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "8860119a-e7b3-4f8f-b3ce-526448935fe2",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 92,
"height": 92,
"platformSettings": {},
"subMetas": {
"icon_music": {
"ver": "1.0.4",
"uuid": "7a03ff82-3cc3-49f4-be72-a10ad2ab6f44",
"rawTextureUuid": "8860119a-e7b3-4f8f-b3ce-526448935fe2",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -1,
"offsetY": 1,
"trimX": 2,
"trimY": 1,
"width": 86,
"height": 88,
"rawWidth": 92,
"rawHeight": 92,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "d61a5755-23a6-4b11-adb6-faf4894f700e",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "dfe38758-571d-46d9-99a2-8059a158c10d",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 20,
"height": 20,
"platformSettings": {},
"subMetas": {
"default_panel": {
"ver": "1.0.4",
"uuid": "4b659ef8-9222-4cbe-bebb-2a282b63bd53",
"rawTextureUuid": "dfe38758-571d-46d9-99a2-8059a158c10d",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 20,
"height": 20,
"rawWidth": 20,
"rawHeight": 20,
"borderTop": 4,
"borderBottom": 4,
"borderLeft": 4,
"borderRight": 4,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "6ac31659-a801-477a-81ef-02e979219c57",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 222,
"height": 106,
"platformSettings": {},
"subMetas": {
"btn_level_unchosen": {
"ver": "1.0.4",
"uuid": "2d85931f-3e1d-46de-96b9-eafed561fcb9",
"rawTextureUuid": "6ac31659-a801-477a-81ef-02e979219c57",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 222,
"height": 106,
"rawWidth": 222,
"rawHeight": 106,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "8784dae2-22c5-4ae9-9f95-367404f80fca",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "441990fa-1b2d-455d-95b1-6865f2325bdf",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 480,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "49ace7bb-e59e-4c27-8208-39c200ce2a45",
"rawTextureUuid": "441990fa-1b2d-455d-95b1-6865f2325bdf",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 480,
"height": 1080,
"rawWidth": 480,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "b9c016ce-26da-4375-bcbd-3dd7ae25ba88",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg_cloud": {
"ver": "1.0.4",
"uuid": "bf9e8d51-bf84-493e-a263-1e8bb1856c9b",
"rawTextureUuid": "b9c016ce-26da-4375-bcbd-3dd7ae25ba88",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "3da9a327-fdf3-47f9-ae0d-e52bc46054f9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 647,
"height": 362,
"platformSettings": {},
"subMetas": {
"bg_logo": {
"ver": "1.0.4",
"uuid": "478260e5-9b30-430a-8b0a-d6d90c30da7d",
"rawTextureUuid": "3da9a327-fdf3-47f9-ae0d-e52bc46054f9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 1.5,
"trimX": 3,
"trimY": 1,
"width": 641,
"height": 357,
"rawWidth": 647,
"rawHeight": 362,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "c133a998-01fb-4370-9de4-1a0a81608a8a",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1400,
"height": 102,
"platformSettings": {},
"subMetas": {
"bg_progress": {
"ver": "1.0.4",
"uuid": "8117c75d-0a4b-4e00-8337-908519edffff",
"rawTextureUuid": "c133a998-01fb-4370-9de4-1a0a81608a8a",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 14,
"trimX": 26,
"trimY": 14,
"width": 1348,
"height": 46,
"rawWidth": 1400,
"rawHeight": 102,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "e13c8176-cacb-4b9c-9129-a8e5b00c33f9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1400,
"height": 102,
"platformSettings": {},
"subMetas": {
"bg_progress_bg": {
"ver": "1.0.4",
"uuid": "ae746dc7-f385-47e0-8475-4a5ddae848b3",
"rawTextureUuid": "e13c8176-cacb-4b9c-9129-a8e5b00c33f9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 1,
"trimX": 4,
"trimY": 2,
"width": 1392,
"height": 96,
"rawWidth": 1400,
"rawHeight": 102,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "1cf71559-2e66-48d1-b933-465935db098f",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "467fbdec-4537-4ffd-9057-063791eb42a0",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 1920,
"height": 1080,
"platformSettings": {},
"subMetas": {
"14-看动画": {
"ver": "1.0.4",
"uuid": "53124d41-486f-4c38-b14a-18ecb0178277",
"rawTextureUuid": "467fbdec-4537-4ffd-9057-063791eb42a0",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1920,
"height": 1080,
"rawWidth": 1920,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "9428bc52-3960-450d-98f4-e41600a36595",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 460,
"height": 1080,
"platformSettings": {},
"subMetas": {
"bg_bg": {
"ver": "1.0.4",
"uuid": "549b318e-ddba-481c-966a-5a47cb9f8a6b",
"rawTextureUuid": "9428bc52-3960-450d-98f4-e41600a36595",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 460,
"height": 1080,
"rawWidth": 460,
"rawHeight": 1080,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4088a1f0-c99c-4890-82cc-e4853e0e03fa",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 309,
"height": 884,
"platformSettings": {},
"subMetas": {
"bg_left": {
"ver": "1.0.4",
"uuid": "9347e7cd-e5e9-4601-91f7-45e2f7724113",
"rawTextureUuid": "4088a1f0-c99c-4890-82cc-e4853e0e03fa",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -4.5,
"offsetY": 9,
"trimX": 0,
"trimY": 0,
"width": 300,
"height": 866,
"rawWidth": 309,
"rawHeight": 884,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "4354384f-6069-4c2d-b798-68b4ca60e8de",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 350,
"height": 274,
"platformSettings": {},
"subMetas": {
"bg_planet": {
"ver": "1.0.4",
"uuid": "fa3bbc17-8249-4130-812d-03e2f454da9f",
"rawTextureUuid": "4354384f-6069-4c2d-b798-68b4ca60e8de",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 350,
"height": 274,
"rawWidth": 350,
"rawHeight": 274,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "ee9cce7d-f601-419d-a137-d30fe1c2afb9",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 283,
"height": 856,
"platformSettings": {},
"subMetas": {
"bg_right": {
"ver": "1.0.4",
"uuid": "1c134ce7-b8e4-4bcf-acfe-7d5438c048d3",
"rawTextureUuid": "ee9cce7d-f601-419d-a137-d30fe1c2afb9",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 8.5,
"offsetY": -0.5,
"trimX": 17,
"trimY": 1,
"width": 266,
"height": 855,
"rawWidth": 283,
"rawHeight": 856,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "514bd4ab-2ec0-4ab9-ab58-deb56fdc152e",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 542,
"height": 420,
"platformSettings": {},
"subMetas": {
"bg_video_bg": {
"ver": "1.0.4",
"uuid": "18715ea1-91e6-4da7-b8db-f813e41f990e",
"rawTextureUuid": "514bd4ab-2ec0-4ab9-ab58-deb56fdc152e",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 2.5,
"trimX": 5,
"trimY": 0,
"width": 532,
"height": 415,
"rawWidth": 542,
"rawHeight": 420,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "54c4c20d-587c-4aae-a173-f203789aeb86",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 542,
"height": 420,
"platformSettings": {},
"subMetas": {
"bg_video_mask": {
"ver": "1.0.4",
"uuid": "694ded2e-d020-42cd-bf55-ac7b03b19d45",
"rawTextureUuid": "54c4c20d-587c-4aae-a173-f203789aeb86",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 30,
"trimX": 30,
"trimY": 30,
"width": 482,
"height": 300,
"rawWidth": 542,
"rawHeight": 420,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "93eb8c46-e2f7-4374-9b0f-502f1a8f0810",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 72,
"height": 74,
"platformSettings": {},
"subMetas": {
"icon_video": {
"ver": "1.0.4",
"uuid": "4263b0f6-7045-49be-9bd2-f7d68ecd379d",
"rawTextureUuid": "93eb8c46-e2f7-4374-9b0f-502f1a8f0810",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 1.5,
"trimX": 3,
"trimY": 0,
"width": 66,
"height": 71,
"rawWidth": 72,
"rawHeight": 74,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
{
"ver": "1.1.2",
"uuid": "7de805a0-f60b-4b08-833f-f5b9cc5adc87",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {},
"subMetas": {}
}
\ No newline at end of file
{
"ver": "2.3.5",
"uuid": "15c02242-f87d-4fca-b55d-2cf4bf233b38",
"type": "sprite",
"wrapMode": "clamp",
"filterMode": "bilinear",
"premultiplyAlpha": false,
"genMipmaps": false,
"packable": true,
"width": 718,
"height": 408,
"platformSettings": {},
"subMetas": {
"效果图": {
"ver": "1.0.4",
"uuid": "321be2de-2892-4b3b-9c74-da11cd274f7b",
"rawTextureUuid": "15c02242-f87d-4fca-b55d-2cf4bf233b38",
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 718,
"height": 408,
"rawWidth": 718,
"rawHeight": 408,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"subMetas": {}
}
}
}
\ No newline at end of file
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