This commit is contained in:
2026-05-19 11:55:24 +08:00
parent f62f6b4ac9
commit 4ee43cf71a
462 changed files with 75251 additions and 0 deletions

12
assets/app-appinit.meta Normal file
View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "5aa02f13-d2f9-4d73-a79e-58b9fe6eca78",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@@ -0,0 +1,2 @@
1、框架初始化首屏
2、不可删除此文件夹

View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e1ee8c84-c9c2-4a48-8e6e-9e242ed718f3",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2a89c2f6-f894-47db-88e9-1017df6fbf0d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2a89c2f6-f894-47db-88e9-1017df6fbf0d@6c48a",
"displayName": "logo",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2a89c2f6-f894-47db-88e9-1017df6fbf0d",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2a89c2f6-f894-47db-88e9-1017df6fbf0d@f9941",
"displayName": "logo",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -2.5,
"offsetY": 1,
"trimX": 0,
"trimY": 1,
"width": 982,
"height": 801,
"rawWidth": 987,
"rawHeight": 805,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-491,
-400.5,
0,
491,
-400.5,
0,
-491,
400.5,
0,
491,
400.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
804,
982,
804,
0,
3,
982,
3
],
"nuv": [
0,
0.0037267080745341614,
0.9949341438703141,
0.0037267080745341614,
0,
0.9987577639751553,
0.9949341438703141,
0.9987577639751553
],
"minPos": [
-491,
-400.5,
0
],
"maxPos": [
491,
400.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2a89c2f6-f894-47db-88e9-1017df6fbf0d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2a89c2f6-f894-47db-88e9-1017df6fbf0d@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 B

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132@6c48a",
"displayName": "singleColor",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132@f9941",
"displayName": "singleColor",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2,
"height": 2,
"rawWidth": 2,
"rawHeight": 2,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-1,
-1,
0,
1,
-1,
0,
-1,
1,
0,
1,
1,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
2,
2,
2,
0,
0,
2,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-1,
-1,
0
],
"maxPos": [
1,
1,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"fixAlphaTransparencyArtifacts": true,
"hasAlpha": false,
"redirect": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132@6c48a"
}
}

View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "2d1f88c5-c88d-43c1-9bad-8c188f9314e0",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@@ -0,0 +1,502 @@
[
{
"__type__": "cc.Prefab",
"_name": "AppInit",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "AppInit",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 20
},
{
"__id__": 22
}
],
"_prefab": {
"__id__": 24
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1bUhFF79dG46Ne46ZRxKpC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 227,
"g": 235,
"b": 228,
"a": 255
},
"_spriteFrame": {
"__uuid__": "a4cadc68-5c93-4683-8ee0-cf3bb6acb132@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f0x+xHB+BD77gwz9qesmbl"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fd5ETT07RFqrFUq6p6ErCa"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0fJ7SovSVCVawCNYpB3WTW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "logo",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 11
},
{
"__id__": 13
},
{
"__id__": 15
}
],
"_prefab": {
"__id__": 17
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.5,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 12
},
"_contentSize": {
"__type__": "cc.Size",
"width": 982,
"height": 801
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "830VxCeINAa7bLC2kyd2Db"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "2a89c2f6-f894-47db-88e9-1017df6fbf0d@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fdljxQ6hREBoCDN2bRrUnW"
},
{
"__type__": "cc.UIOpacity",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 16
},
"_opacity": 255,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8foH2eGy5DX4TvPYTKru5b"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8cWbsI+kdMYYPLYQrEFecs",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fdxpU8hWdAMIljPcrHWSD1"
},
{
"__type__": "598f2EhUohEebUzsqwXHool",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"logo": {
"__id__": 10
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ffhkucpqlE+aHYz+nafs1t"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 23
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "10GYyo4FNMU6BKnnXpm7FG"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "7aBxAgUy9NRJNTrHNH6/6R",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "19a93f71-0300-44b3-9bd9-efbc15271e7d",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "AppInit"
}
}

View File

@@ -0,0 +1,75 @@
import { Node, UIOpacity, _decorator, tween } from 'cc';
import BaseAppInit from '../../../extensions/app/assets/base/BaseAppInit';
import { LOGIN_TOKEN } from '../../res-native/network/HttpRequest';
import { Tools } from '../../res-native/tools/Tools';
import { app } from '../../app/app';
import { USERDATA } from '../../res-native/data/UserData';
const { ccclass, property } = _decorator;
@ccclass('AppInit')
export class AppInit extends BaseAppInit {
@property(Node)
private logo: Node;
/**
* 获得用户资源总量这里返回几就需要用户自行调用几次nextInit
*/
protected getUserAssetNum(): number {
return 1;
}
protected onLoad() {
this.initToken();
if (LOGIN_TOKEN.access_token == "" || LOGIN_TOKEN.access_token == undefined) {
return
}
// 执行初始化操作
const opacity = this.logo.getComponent(UIOpacity);
opacity.opacity = 0;
tween(opacity)
.to(0.5, { opacity: 255 })
.delay(1)
.to(0.5, { opacity: 0 })
.call(() => {
Tools.httpReq("prize-list", {}, (res:any) => {
USERDATA.setUserData(res);
this.nextInit();
})
})
.start();
}
/** 根据参数初始化TOKEN */
initToken(){
let str = window.location.search.slice(1)
const pairs = str.split('&');
const params: { [key: string]: string } = {};
pairs.forEach(pair => {
const [key, value] = pair.split('=');
params[decodeURIComponent(key)] = decodeURIComponent(value || '');
});
const at = Tools.parseJWT(params.access_token)
const actualKey = 'xyxfz83d'.substring(0, 8); // 取前8个字符
// 解密appkey
const appkey = Tools.desEcbDecrypt(at.extend.channel, actualKey);
// 如果解密失败,尝试原始值
if (!appkey) {
console.log('Failed to decrypt token, using original value');
}
LOGIN_TOKEN.setToken(params.access_token, params.refresh_token, at.extend.app_id, appkey)
}
// BaseAppInit中使用start方法作为初始化入口如果重写start方法请注意调用父类方法
// protected start() { }
protected onFinish() {
// 执行完成操作
this.node.destroy();
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "598f2121-5288-4479-b533-b2ac171e8a25",
"files": [],
"subMetas": {},
"userData": {}
}

12
assets/app-builtin.meta Normal file
View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "8564f435-63c9-4e21-bda9-2927d8c7b90d",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@@ -0,0 +1,2 @@
1、存储内置功能的文件夹
2、不可删除此文件夹

View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "95e76f7f-cbcf-4726-87bf-efbf19fb0e33",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_398Ij6Mc1B2Y7sW3e6BgFC"
}
}

View File

@@ -0,0 +1,2 @@
1、一些配置类的资产(框架自动维护)
2、不可删除此文件夹

View File

@@ -0,0 +1,41 @@
/* eslint-disable */
import { Component,director,Director } from 'cc';
import { app } from '../../app/app';
import { EDITOR,EDITOR_NOT_IN_PREVIEW } from 'cc/env';
export type IReadOnly<T> = { readonly [P in keyof T]: T[P] extends Function ? T[P] : (T[P] extends Object ? IReadOnly<T[P]> : T[P]); };
export type IViewName = "PageMain"|"PageRewardhistory"|"PageTips"
export type IViewNames = IViewName[]
export type IMiniViewName = "never"
export type IMiniViewNames = IMiniViewName[]
export type IMusicName = "music/bgm"
export type IMusicNames = IMusicName[]
export type IEffectName = "effect/click"|"effect/jump"|"effect/win"
export type IEffectNames = IEffectName[]
import EventManager from '../../../extensions/app/assets/manager/event/EventManager'
import LoaderManager from '../../../extensions/app/assets/manager/loader/LoaderManager'
import SoundManager from '../../../extensions/app/assets/manager/sound/SoundManager'
import TimerManager from '../../../extensions/app/assets/manager/timer/TimerManager'
import UIManager from '../../../extensions/app/assets/manager/ui/UIManager'
export type IApp = {
Controller: {},
controller: {},
Manager: {Event:Omit<typeof EventManager,keyof Component>,Loader:Omit<typeof LoaderManager,keyof Component>,Sound:Omit<typeof SoundManager,keyof Component>,Timer:Omit<typeof TimerManager,keyof Component>,UI:Omit<typeof UIManager,keyof Component>},
manager: {event:Omit<EventManager,keyof Component>,loader:Omit<LoaderManager,keyof Component>,sound:Omit<SoundManager<IEffectName,IMusicName>,keyof Component>,timer:Omit<TimerManager,keyof Component>,ui:Omit<UIManager<IViewName,IMiniViewName>,keyof Component>},
data: {},
config: {}
store: {}
}
function init(){
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.config, {})
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.data, {})
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.store, {})
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.Controller, {})
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) Object.assign(app.controller, {})
}
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) director.on(Director.EVENT_RESET,init)
if(!EDITOR||!EDITOR_NOT_IN_PREVIEW) init()

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "f187b639-0be1-421c-ac96-f3891a260321",
"files": [],
"subMetas": {},
"userData": {}
}

9
assets/app-bundle.meta Normal file
View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "77941b47-de7f-4917-8716-2b6c7a2f4c44",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,2 @@
1、存储内置的Bundle的文件夹
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,13 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "1641af30-73a6-4372-8a9c-c943ec12e662",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_11aBEBWDxI/6ryvKvFthEo",
"priority": 8
}
}

View File

@@ -0,0 +1,4 @@
存储音乐/音效资源的文件夹
1、通过app.manager.sound管理
2、通过菜单「App/创建/Sound」创建目录
3、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "32c9cd5c-ed73-4e47-be3c-ea1a8f78e77e",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,3 @@
存储音效资源的文件夹
1、通过app.manager.sound.playEffect播放
2、如不再需要可以直接删除此文件夹

Binary file not shown.

View File

@@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "04f32df8-49f5-42a3-821d-55e09e767c24",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "d3b7bcd2-f720-43d9-a8a9-6671c8036f4e",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

Binary file not shown.

View File

@@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "9559b267-20c1-4c94-b217-187b72211b76",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "5ae9e382-f181-4129-a699-efef7ad9dd41",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,3 @@
存储音乐资源的文件夹
1、通过app.manager.sound.playMusic播放
2、如不再需要可以直接删除此文件夹

Binary file not shown.

View File

@@ -0,0 +1,14 @@
{
"ver": "1.0.0",
"importer": "audio-clip",
"imported": true,
"uuid": "c86a2589-3d6b-4f8f-84f2-7976c9976512",
"files": [
".json",
".mp3"
],
"subMetas": {},
"userData": {
"downloadMode": 0
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "d4316074-6ccc-4906-90e1-b98c8c421ae1",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,4 @@
存储UI资源的文件夹
1、通过app.manager.ui管理
2、通过菜单「App/创建/View」创建
3、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "5854d615-edf1-435d-9ec6-1ecb4ee0af2a",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,2 @@
1、所有page类型UI的根目录
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "06135315-0b97-4b53-97f0-5ee82ea63600",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,3 @@
PageMain所在文件夹
1、通过app.manager.ui.show({ name:'PageMain' })的方式加载
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,14 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "616115b0-9188-44c6-8a76-26bb2fe12d3c",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_f7NI9WxFVIO6e8LbJGF72k",
"priority": 1,
"bundleName": "page-main"
}
}

View File

@@ -0,0 +1,4 @@
存放UI以及脚本的文件夹
1、除了UI本身外不允许存放其它任何预置体或场景资源🔥
2、UI脚本在根目录下其它脚本放到expansion目录下
3、不可单独删除此文件夹

View File

@@ -0,0 +1,5753 @@
[
{
"__type__": "cc.Prefab",
"_name": "PageMain",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "PageMain",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 102
},
{
"__id__": 159
},
{
"__id__": 210
}
],
"_active": true,
"_components": [
{
"__id__": 234
},
{
"__id__": 236
},
{
"__id__": 238
}
],
"_prefab": {
"__id__": 240
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 38
},
{
"__id__": 63
},
{
"__id__": 69
},
{
"__id__": 75
},
{
"__id__": 87
}
],
"_active": true,
"_components": [
{
"__id__": 95
},
{
"__id__": 97
},
{
"__id__": 99
}
],
"_prefab": {
"__id__": 101
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "btns",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 4
},
{
"__id__": 13
},
{
"__id__": 22
}
],
"_active": true,
"_components": [
{
"__id__": 31
},
{
"__id__": 33
},
{
"__id__": 35
}
],
"_prefab": {
"__id__": 37
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 327.5,
"y": 880,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "btn_sounds",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 9
}
],
"_prefab": {
"__id__": 12
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 139,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 4
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_contentSize": {
"__type__": "cc.Size",
"width": 119,
"height": 117
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e2/A010hdBzqRot0QFZOVA"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 4
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f76d4098-86bb-4d85-8e5b-beb06b7308f2@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2cPeWZE15GIJPOJww7DMwl"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 4
},
"_enabled": true,
"__prefab": {
"__id__": 10
},
"clickEvents": [
{
"__id__": 11
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "30tMFRufRPS6thCSAPy1CT"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "5c1d6Gm/4FIG5IXQwohh/9Q",
"handler": "oncClickMusic",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8cKb4xJVNHz72xOkrc+uql",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "btn_tips",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 14
},
{
"__id__": 16
},
{
"__id__": 18
}
],
"_prefab": {
"__id__": 21
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_contentSize": {
"__type__": "cc.Size",
"width": 119,
"height": 117
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4foCR92opPj6lk+3k4vT7A"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": {
"__id__": 17
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "5b600712-8704-49cd-9f95-5f013387a423@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "97cTpcRLFL3Jy4GrDB0Bb9"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 13
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"clickEvents": [
{
"__id__": 20
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "84c9SsOvlNuqqwtfx91Ol+"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "5c1d6Gm/4FIG5IXQwohh/9Q",
"handler": "onClickTips",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b0z4M59nZLL4w7oI1eOvGR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "btn_reward",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 3
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 27
}
],
"_prefab": {
"__id__": 30
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -139,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 24
},
"_contentSize": {
"__type__": "cc.Size",
"width": 119,
"height": 117
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "96hdW6mp9LyZBwuDutlpHC"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 26
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "33qVBjJN5P9ZxSdhWBdn+9"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 22
},
"_enabled": true,
"__prefab": {
"__id__": 28
},
"clickEvents": [
{
"__id__": 29
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "23q/qHGVBD+YDTkeVuj0JP"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "5c1d6Gm/4FIG5IXQwohh/9Q",
"handler": "onClickRwHis",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d5EWLydc5Ld4lZGQqHycXf",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 32
},
"_contentSize": {
"__type__": "cc.Size",
"width": 397,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "896ypyn1dMer+1KrKXbeaZ"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 34
},
"_resizeMode": 1,
"_layoutType": 1,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 20,
"_spacingY": 0,
"_verticalDirection": 1,
"_horizontalDirection": 1,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": true,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b1VhtDkqlGupwYHDc2b8bE"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": {
"__id__": 36
},
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": 14,
"_top": 30,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e7xuazH95FbauhmmDUDOKl"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ecuU/wqItCrJga8HPiXzNI",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg_box",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 39
},
{
"__id__": 54
}
],
"_active": true,
"_components": [
{
"__id__": 58
},
{
"__id__": 60
}
],
"_prefab": {
"__id__": 62
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -385,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "btn_remain",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
},
"_children": [
{
"__id__": 40
}
],
"_active": true,
"_components": [
{
"__id__": 46
},
{
"__id__": 48
},
{
"__id__": 50
}
],
"_prefab": {
"__id__": 53
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "lab",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 39
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 41
},
{
"__id__": 43
}
],
"_prefab": {
"__id__": 45
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -44.958,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 40
},
"_enabled": true,
"__prefab": {
"__id__": 42
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "54y9NcOoVI4Z/h7orgLi9I"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 40
},
"_enabled": true,
"__prefab": {
"__id__": 44
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 67,
"g": 160,
"b": 255,
"a": 255
},
"_string": "CHANCE:100",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 29,
"_fontSize": 30,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8bn1FVkyhBB4U8AOZxTszB"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "bcJA1VODNHGLRdyY9wgwuy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
"_enabled": true,
"__prefab": {
"__id__": 47
},
"_contentSize": {
"__type__": "cc.Size",
"width": 335,
"height": 345
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7ev6toP6RPWY4BxG9whx/l"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
"_enabled": true,
"__prefab": {
"__id__": 49
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "59e8aac3-ea8a-4bf1-bc34-998f7766b965@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "63SSqDMNxLWps2U76Q7nNP"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 39
},
"_enabled": true,
"__prefab": {
"__id__": 51
},
"clickEvents": [
{
"__id__": 52
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6eALcMfwlPSZ6miixQzlPu"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "5c1d6Gm/4FIG5IXQwohh/9Q",
"handler": "onStartGame",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a6qLE0+HFEZKS0YD8L6h/z",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "box_list",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 38
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 55
}
],
"_prefab": {
"__id__": 57
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 54
},
"_enabled": true,
"__prefab": {
"__id__": 56
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1ffS0jYrlKHZWxigmMnHhv"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c241mIyERGfoJc6tJpsjp/",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": {
"__id__": 59
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1169
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "44Nzdw4H5A8a387dN0P6s6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": {
"__id__": 61
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "9e1afa58-b75a-41b2-9340-1134d40ef800@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e7DAGJBfRF/YZP7DrXws9R"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "91wUz56w1BaYXefwID94HR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "main_icon_dio_1",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 64
},
{
"__id__": 66
}
],
"_prefab": {
"__id__": 68
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -420,
"y": 385,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 63
},
"_enabled": true,
"__prefab": {
"__id__": 65
},
"_contentSize": {
"__type__": "cc.Size",
"width": 196,
"height": 150
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a67l87gQtCQbs1eV13jG99"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 63
},
"_enabled": true,
"__prefab": {
"__id__": 67
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "8bdde44e-263e-4494-8ecd-07be2039f5f6@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "84U1ZPcvpIBZ67as3GkEbq"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "c6T0xopz9KV45uPuE+xkkj",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "main_icon_dio_2",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 70
},
{
"__id__": 72
}
],
"_prefab": {
"__id__": 74
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 405,
"y": 530,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
},
"_enabled": true,
"__prefab": {
"__id__": 71
},
"_contentSize": {
"__type__": "cc.Size",
"width": 72,
"height": 66
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "feEvpP0wxIx7AT38rflweO"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 69
},
"_enabled": true,
"__prefab": {
"__id__": 73
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ee1PbuEFNAZ4cylTwldBYx"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "45Pmecq8pAFKibatlwC1XO",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "logo",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 76
}
],
"_active": true,
"_components": [
{
"__id__": 82
},
{
"__id__": 84
}
],
"_prefab": {
"__id__": 86
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 485,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "logo",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 75
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
},
{
"__id__": 79
}
],
"_prefab": {
"__id__": 81
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -235,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 78
},
"_contentSize": {
"__type__": "cc.Size",
"width": 357,
"height": 108
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "45fTegy+dLG6OmyKadrPdt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 80
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "afXUqYsgREP47lMQwWdsk+"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "10MNzOb/FDwJkGRjH4wDnW",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 83
},
"_contentSize": {
"__type__": "cc.Size",
"width": 954,
"height": 805
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9bIpIw2SdJ9J/nZ/+ZCsbh"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 75
},
"_enabled": true,
"__prefab": {
"__id__": 85
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "c1864093-fe69-4a27-9c0d-af1dbf554ed6@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2diusO0xJP0oArPfPsOwRq"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "f9ZVqkmY5HgLfyLq3KWn+i",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "partical_snow",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 88
},
{
"__id__": 90
},
{
"__id__": 92
}
],
"_prefab": {
"__id__": 94
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 1020,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 87
},
"_enabled": true,
"__prefab": {
"__id__": 89
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c2iBH04FVFgKHGu7T5P0jo"
},
{
"__type__": "cc.ParticleSystem2D",
"_name": "Node<ParticleSystem2D>",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 87
},
"_enabled": true,
"__prefab": {
"__id__": 91
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 1,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": -1,
"emissionRate": 200,
"life": 10,
"lifeVar": 10,
"angle": 360,
"angleVar": 360,
"startSize": 3,
"startSizeVar": 50,
"endSize": 30,
"endSizeVar": 10,
"startSpin": -47.369998931884766,
"startSpinVar": 0,
"endSpin": -47.369998931884766,
"endSpinVar": -142.11000061035156,
"sourcePos": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"posVar": {
"__type__": "cc.Vec2",
"x": 600,
"y": 10
},
"emitterMode": 0,
"gravity": {
"__type__": "cc.Vec2",
"x": 0,
"y": -500
},
"speed": 0,
"speedVar": 0,
"tangentialAccel": 0,
"tangentialAccelVar": 0,
"radialAccel": 0,
"radialAccelVar": 0,
"rotationIsDir": false,
"startRadius": 100,
"startRadiusVar": 0,
"endRadius": 0,
"endRadiusVar": 0,
"rotatePerS": 0,
"rotatePerSVar": 0,
"playOnLoad": true,
"autoRemoveOnFinish": false,
"_preview": true,
"preview": true,
"_custom": true,
"_file": null,
"_spriteFrame": {
"__uuid__": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_totalParticles": 500,
"_startColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 224
},
"_startColorVar": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"_endColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 180
},
"_endColorVar": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 0
},
"_positionType": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a495/jvolHAbNemESKcGlb"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 87
},
"_enabled": true,
"__prefab": {
"__id__": 93
},
"_alignFlags": 1,
"_target": null,
"_left": 0,
"_right": 0,
"_top": -110,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f41tCANuFF8rPOgYd3m1Tc"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0ftkCDHgxDOolp4Urp+vXl",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 96
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f0wS1MBeVC2qST1WgJNsb+"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 98
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ca1CEiO99ODLqV1afHRaOv"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 100
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 1080,
"_originalHeight": 1920,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f9Dv7o/0ZNNIc5F8GA7XQ0"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e7vp3L/4RNUJbrPDn69Oi8",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg_rw",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 103
},
{
"__id__": 113
},
{
"__id__": 137
},
{
"__id__": 146
}
],
"_active": false,
"_components": [
{
"__id__": 152
},
{
"__id__": 154
},
{
"__id__": 156
}
],
"_prefab": {
"__id__": 158
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 102
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 104
},
{
"__id__": 106
},
{
"__id__": 108
},
{
"__id__": 110
}
],
"_prefab": {
"__id__": 112
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 103
},
"_enabled": true,
"__prefab": {
"__id__": 105
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "dbGJFlZ7FBB7F1atKRqZ8T"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 103
},
"_enabled": true,
"__prefab": {
"__id__": 107
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 163
},
"_spriteFrame": {
"__uuid__": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "80ZlSiSDNBEZtJkCnjKwPl"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 103
},
"_enabled": true,
"__prefab": {
"__id__": 109
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "99/nRhkQVCF7iQ0lPw0kGj"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 103
},
"_enabled": true,
"__prefab": {
"__id__": 111
},
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7emp6hdsRHYa5A92C9vTo5"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "02jElotXNA0JWlW4F9n9ab",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 102
},
"_children": [
{
"__id__": 114
},
{
"__id__": 126
}
],
"_active": true,
"_components": [
{
"__id__": 132
},
{
"__id__": 134
}
],
"_prefab": {
"__id__": 136
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "bg_lab",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 113
},
"_children": [
{
"__id__": 115
}
],
"_active": true,
"_components": [
{
"__id__": 121
},
{
"__id__": 123
}
],
"_prefab": {
"__id__": 125
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 88,
"y": -247,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "lab",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 114
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 116
},
{
"__id__": 118
}
],
"_prefab": {
"__id__": 120
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 115
},
"_enabled": true,
"__prefab": {
"__id__": 117
},
"_contentSize": {
"__type__": "cc.Size",
"width": 226.73828125,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c1iEwpF6BIEZBYL/Jemv22"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 115
},
"_enabled": true,
"__prefab": {
"__id__": 119
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 236,
"g": 254,
"b": 238,
"a": 255
},
"_string": "100 CREDIT",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 40,
"_fontSize": 40,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2crLb0JYxASJj0bFD+iN2b"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "64mtwFschIO40nVGfgDnLj",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 114
},
"_enabled": true,
"__prefab": {
"__id__": 122
},
"_contentSize": {
"__type__": "cc.Size",
"width": 928,
"height": 95
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "dbrHp3+6BKz4q1X8TU6XpP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 114
},
"_enabled": true,
"__prefab": {
"__id__": 124
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": null,
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e0UoCILuJJ/pIJkdkfc7lQ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a0y0AtlDpBHIcRRWZRpod2",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 113
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 127
},
{
"__id__": 129
}
],
"_prefab": {
"__id__": 131
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 107,
"y": -50,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 126
},
"_enabled": true,
"__prefab": {
"__id__": 128
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6c3lQAKJ1JuZjWY5jEqinP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 126
},
"_enabled": true,
"__prefab": {
"__id__": 130
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": null,
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "90HSae421OQ40btCecUv9q"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ce4YJzvExDu7lKzkT25O3p",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 113
},
"_enabled": true,
"__prefab": {
"__id__": 133
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 934
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eclZZY5g1H+I1/5qlVy6BP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 113
},
"_enabled": true,
"__prefab": {
"__id__": 135
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "14U/XixTNJgqq4Qksmi9uD"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "14MnHB3hlP3ZPdm1vCncaX",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "btn_sure",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 102
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 138
},
{
"__id__": 140
},
{
"__id__": 142
}
],
"_prefab": {
"__id__": 145
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -620,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 139
},
"_contentSize": {
"__type__": "cc.Size",
"width": 515,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "40pMS13htJYobTi56eLFrm"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 141
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "3c11c55b-7a54-49e4-aa32-d99c3002822e@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d3mKDR6gRDmpz4/tYMyoiA"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 137
},
"_enabled": true,
"__prefab": {
"__id__": 143
},
"clickEvents": [
{
"__id__": 144
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f6dowBXDlA2LcgFS9DKDh6"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "5c1d6Gm/4FIG5IXQwohh/9Q",
"handler": "onClickRewardSure",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "38l1UK181HLaTBYjniMuAe",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 102
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 147
},
{
"__id__": 149
}
],
"_prefab": {
"__id__": 151
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 330,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 146
},
"_enabled": true,
"__prefab": {
"__id__": 148
},
"_contentSize": {
"__type__": "cc.Size",
"width": 907,
"height": 213
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4cGf2U9txMHaEZCe71fVEv"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 146
},
"_enabled": true,
"__prefab": {
"__id__": 150
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "8b0af801-7117-437d-bd29-f1460c4e4ec4@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b2NlTJRQFN76TZ2Wxe3iYr"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b8KK3KxxFEgqDYpAtRkIll",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 102
},
"_enabled": true,
"__prefab": {
"__id__": 153
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c8JkgZNnRJHpZ6YAWPVxSg"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 102
},
"_enabled": true,
"__prefab": {
"__id__": 155
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2350NQjz1KI6WQv6hORKDy"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 102
},
"_enabled": true,
"__prefab": {
"__id__": 157
},
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "23wJ2dsRdFN4f5J64Amk7j"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "6dQuVkpRlMYJ7g0tRXoVCR",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg_no_rw",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 160
},
{
"__id__": 170
}
],
"_active": false,
"_components": [
{
"__id__": 203
},
{
"__id__": 205
},
{
"__id__": 207
}
],
"_prefab": {
"__id__": 209
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 159
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 161
},
{
"__id__": 163
},
{
"__id__": 165
},
{
"__id__": 167
}
],
"_prefab": {
"__id__": 169
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 162
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "921waqHABOroU8FJqfv+vP"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 164
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 162
},
"_spriteFrame": {
"__uuid__": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "13//D1CA1D4rwJrGPV4HEf"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 166
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ecG9q7rkFGa531/lgXYA9X"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 160
},
"_enabled": true,
"__prefab": {
"__id__": 168
},
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "battEflx1FX7/fSRy3Gzut"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "1bmooKGqxOeb9rzJsi2mU4",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 159
},
"_children": [
{
"__id__": 171
},
{
"__id__": 183
},
{
"__id__": 192
}
],
"_active": true,
"_components": [
{
"__id__": 198
},
{
"__id__": 200
}
],
"_prefab": {
"__id__": 202
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "lab_bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 170
},
"_children": [
{
"__id__": 172
}
],
"_active": true,
"_components": [
{
"__id__": 178
},
{
"__id__": 180
}
],
"_prefab": {
"__id__": 182
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -362.67,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 171
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 173
},
{
"__id__": 175
}
],
"_prefab": {
"__id__": 177
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 172
},
"_enabled": true,
"__prefab": {
"__id__": 174
},
"_contentSize": {
"__type__": "cc.Size",
"width": 579.736328125,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e1A/Xsy7ROrZoBgZZ7lAP/"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 172
},
"_enabled": true,
"__prefab": {
"__id__": 176
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "Sorry, no prize this time.",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 50,
"_fontSize": 50,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "33EeRQvD5I/po5DWHi2JDo"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "36TAhrhLdDr7/SX1pCtkGs",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 171
},
"_enabled": true,
"__prefab": {
"__id__": 179
},
"_contentSize": {
"__type__": "cc.Size",
"width": 879,
"height": 86
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bfhEN2KRhGFpNiZqjgtxW8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 171
},
"_enabled": true,
"__prefab": {
"__id__": 181
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "1bacdabd-ef9d-4be3-aee4-6a04882f4878@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d1Z2e0jIlDVKaBVv+wLFor"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "829xnVCG5KP4TSTHDEaVPl",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "btn_sure",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 170
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 184
},
{
"__id__": 186
},
{
"__id__": 188
}
],
"_prefab": {
"__id__": 191
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -620,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 183
},
"_enabled": true,
"__prefab": {
"__id__": 185
},
"_contentSize": {
"__type__": "cc.Size",
"width": 515,
"height": 191
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "6ftXoW4jRIW59BPhE4IxYK"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 183
},
"_enabled": true,
"__prefab": {
"__id__": 187
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "88FUvb+PpNjZRtXYpB2j7R"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 183
},
"_enabled": true,
"__prefab": {
"__id__": 189
},
"clickEvents": [
{
"__id__": 190
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d191HxvBlAc7HJ+fZU8hn7"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "5c1d6Gm/4FIG5IXQwohh/9Q",
"handler": "onClickRewardSure",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "adDYutSp5KNKttJBBJE6Ge",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 170
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 193
},
{
"__id__": 195
}
],
"_prefab": {
"__id__": 197
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 330,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 192
},
"_enabled": true,
"__prefab": {
"__id__": 194
},
"_contentSize": {
"__type__": "cc.Size",
"width": 986,
"height": 184
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "09Q5Llze9MtKrUx3WDIpKB"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 192
},
"_enabled": true,
"__prefab": {
"__id__": 196
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "4726b5e7-3f98-4702-95d7-9833b36b9c47@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "2ewoC8eytAvofNbgWZtBSf"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "85zYsQ98pLFqGxZtrpTSd9",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 170
},
"_enabled": true,
"__prefab": {
"__id__": 199
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1043,
"height": 1587
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "84fhd3Y69KQa7Wch+vdPtw"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 170
},
"_enabled": true,
"__prefab": {
"__id__": 201
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "b48a11de-b5fc-495a-9040-89e5d3fd874c@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1aTeVrBzJJ3YunsBdgchk5"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "cbUo4NC8ZLB4LnAQYdtk8I",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 159
},
"_enabled": true,
"__prefab": {
"__id__": 204
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8bErge52RJ0a3/uX42aLZq"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 159
},
"_enabled": true,
"__prefab": {
"__id__": 206
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 2,
"_originalHeight": 2,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a6yB1CIetDoYPExPGzL5xc"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 159
},
"_enabled": true,
"__prefab": {
"__id__": 208
},
"clickEvents": [],
"_interactable": true,
"_transition": 0,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 1.2,
"_target": {
"__id__": 159
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "48uZ3Z5EpOmrV5u9RFOpTa"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "87L8rEjHJLYqB7q6OWEwy9",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "box_item",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 211
},
{
"__id__": 217
},
{
"__id__": 223
}
],
"_active": false,
"_components": [
{
"__id__": 229
},
{
"__id__": 231
}
],
"_prefab": {
"__id__": 233
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -310,
"y": -60,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "select",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 210
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 212
},
{
"__id__": 214
}
],
"_prefab": {
"__id__": 216
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 211
},
"_enabled": true,
"__prefab": {
"__id__": 213
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 294
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eczMJav6VJa45eEpekLAxt"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 211
},
"_enabled": true,
"__prefab": {
"__id__": 215
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "7818a295-f828-4ba0-b359-612ce7e4e0b8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "96c2zz4cZAxpPnHzZ39DTW"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "e6t7G+7JlPepmqkxrBC2lB",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 210
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 218
},
{
"__id__": 220
}
],
"_prefab": {
"__id__": 222
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 35,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 217
},
"_enabled": true,
"__prefab": {
"__id__": 219
},
"_contentSize": {
"__type__": "cc.Size",
"width": 180,
"height": 180
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b1jiYcD7JNEZT+rUtX7cMu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 217
},
"_enabled": true,
"__prefab": {
"__id__": 221
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": null,
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3adzpcmB5KeYMkIlx3nkNE"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "bdawajh4VE07Dk02aZpEJ9",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lab",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 210
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 224
},
{
"__id__": 226
}
],
"_prefab": {
"__id__": 228
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -90,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 223
},
"_enabled": true,
"__prefab": {
"__id__": 225
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 60
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "0125iZyrNLTayv2Wf+hhBF"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 223
},
"_enabled": true,
"__prefab": {
"__id__": 227
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 238,
"g": 254,
"b": 255,
"a": 255
},
"_string": "",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 27,
"_fontSize": 26,
"_fontFamily": "Arial",
"_lineHeight": 26,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "fez3n3nPpHD7buc/MKTax9"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "86Ug6Xc+1I1YB63g+tyPR0",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 210
},
"_enabled": true,
"__prefab": {
"__id__": 230
},
"_contentSize": {
"__type__": "cc.Size",
"width": 281,
"height": 294
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "57I43KhLJDE40GW8YRpPKu"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 210
},
"_enabled": true,
"__prefab": {
"__id__": 232
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bbq65ps+tMqY2Vjl0ktnOz"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "6bXPtU8LlKiZ9g9IOYIexQ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "5c1d6Gm/4FIG5IXQwohh/9Q",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 235
},
"_hideEvent": 1,
"_singleton": true,
"_captureFocus": true,
"_shade": false,
"_blockInput": true,
"_alwaysExist": true,
"btn_music": {
"__id__": 4
},
"lab_rw": {
"__id__": 118
},
"reward_bg": {
"__id__": 102
},
"noreward_bg": {
"__id__": 159
},
"box_item": {
"__id__": 210
},
"list_box": {
"__id__": 54
},
"icon_rw": {
"__id__": 129
},
"lab_remain": {
"__id__": 43
},
"diomand": [
{
"__id__": 63
},
{
"__id__": 69
}
],
"logo": {
"__id__": 75
},
"game_logo": {
"__id__": 79
},
"game_logo_bg": {
"__id__": 84
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "70ggeL6RdBvb3k6EFfOvBi"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 237
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "93kLNYVP5I3YSkAXyvc+8y"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 239
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "beSbf3LfhHg4Z7OdUM5hMf"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "181hznodBBtYZzEfaJaWeP",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "4892f711-598c-44a7-888d-fb1ceb7ae920",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "PageMain"
}
}

View File

@@ -0,0 +1,303 @@
import { _decorator, Node, tween, Vec3, Sprite, Asset, ImageAsset, SpriteFrame, Texture2D, Label, EventTouch, UITransform } from 'cc';
import BaseView from '../../../../../../extensions/app/assets/base/BaseView';
import { PageTips } from '../../tips/native/PageTips';
import { app } from 'db://assets/app/app';
import { PageRewardhistory } from '../../rewardhistory/native/PageRewardhistory';
import { Tools } from 'db://assets/res-native/tools/Tools';
import { USERDATA } from 'db://assets/res-native/data/UserData';
const { ccclass, property } = _decorator;
@ccclass('PageMain')
export class PageMain extends BaseView {
/** 音乐按钮 */
@property(Node)
btn_music: Node = null!;
/** 奖励文字 */
@property(Label)
lab_rw: Label = null!;
/** 奖励 */
@property(Node)
reward_bg: Node = null!;
/** 奖励 */
@property(Node)
noreward_bg: Node = null!;
/** 宝箱item */
@property(Node)
box_item: Node = null!;
/** 宝箱列表 */
@property(Node)
list_box: Node = null!;
/** 奖励icon */
@property(Sprite)
icon_rw: Sprite = null!;
/** 剩余次数 */
@property(Label)
lab_remain: Label = null!;
/** 钻石 */
@property(Node)
diomand: Node[] = [];
/** 钻石 */
@property(Node)
logo: Node = null!;
/** 奖励icon */
@property(Sprite)
game_logo: Sprite = null!;
/** 奖励icon */
@property(Sprite)
game_logo_bg: Sprite = null!;
/** 宝箱位置 */
private _position: { [key: number]: Vec3 } = {
0: new Vec3(-310, 320, 0),
1: new Vec3(0, 320, 0),
2: new Vec3(310, 320, 0),
3: new Vec3(310, 0, 0),
4: new Vec3(310, -320, 0),
5: new Vec3(0, -320, 0),
6: new Vec3(-310, -320, 0),
7: new Vec3(-310, 0, 0),
};
/** 是否可以开始游戏 */
private _canStart = true;
/** 宝箱管理 */
private _boxMgr : Node[] = []
/** 是否正在播放动画 */
private _isSpinning: boolean = false;
// 初始化的相关逻辑写在这
onLoad() {}
// 界面打开时的相关逻辑写在这(onShow可被多次调用-它与onHide不成对)
onShow(params: any) {
this.lab_remain.string = "CHANCE:" + USERDATA.point.toString()
this.initRw()
this.startAnimation()
// 加载配置的logo
if (USERDATA.logo && this.game_logo) {
Tools.remoteLoadSprite(USERDATA.logo, this.game_logo)
}
if (USERDATA.logo_back && this.game_logo_bg) {
Tools.remoteLoadSprite(USERDATA.logo_back, this.game_logo_bg)
}
}
// 界面关闭时的相关逻辑写在这(已经关闭的界面不会触发onHide)
onHide(result: undefined) {
// app.manager.ui.show<PageMain>({name: 'PageMain', onHide:(result) => { 接收到return的数据并且有类型提示 }})
return result;
}
startAnimation(){
// 钻石上下移动动画
this.diomand.forEach((diamond, index) => {
if (diamond) {
tween(diamond)
.repeatForever(
tween()
.by(0.5, { position: new Vec3(0, 10, 0) })
.by(0.5, { position: new Vec3(0, -10, 0) })
)
.start();
}
});
// Logo放大缩小动画
if (this.logo) {
tween(this.logo)
.repeatForever(
tween()
.to(0.8, { scale: new Vec3(1.1, 1.1, 1) })
.to(0.8, { scale: new Vec3(1, 1, 1) })
)
.start();
}
}
initRw(){
this._boxMgr = []
for (let i = 0; i < 8; i++) {
this._boxMgr[i] = Tools.AddChild(this.list_box, this.box_item, "item_" + i)
let item = this._boxMgr[i]
item.setPosition(this._position[i])
item.active = true
if (USERDATA.prize_list[i]){
Tools.remoteLoadSprite(USERDATA.prize_list[i].pic, Tools.GetChildComp(item, "icon", Sprite))
Tools.SetChildText(item, "lab", USERDATA.prize_list[i].name)
}
}
this._canStart = true
}
/** 点击奖励确定 */
onClickRewardSure(){
this.reward_bg.active = false
this.noreward_bg.active = false
this._canStart = true
}
/** 点击提示 */
onClickTips(){
app.manager.ui.show<PageTips>({name: 'PageTips'})
}
/** 点击音乐 */
oncClickMusic(){
let music = app.manager.sound.isMusicPlaying
music ? app.manager.sound.stopMusic() : app.manager.sound.playDefaultMusic()
this.loadSprite(music ? "main_btn_sounds_off" : "main_btn_sounds_on", this.btn_music)
}
/** 点击历史 */
onClickRwHis(){
app.manager.ui.show<PageRewardhistory>({name: 'PageRewardhistory'})
}
/** 点击开始 */
onStartGame() {
if (!this._canStart) return;
if (USERDATA.point <= 0) {
app.manager.ui.showToast(Tools.GetLocalized("no chance"));
return;
}
this._canStart = false;
Tools.httpReq("lottery", {}, (res:any)=>{
let n = this.checkRwId(res.prize_id)
if (n == null){
app.manager.ui.showToast(Tools.GetLocalized("fail"))
return
}
USERDATA.point--
this.lab_remain.string = "CHANCE:" + USERDATA.point.toString()
this.lab_rw.string = Tools.StringLFormat(res.message)
Tools.remoteLoadSprite(USERDATA.prize_list[n].pic, this.icon_rw)
// 开始转格子动画
this.startSpinAnimation(n, res.prize_type);
},()=>{
this._canStart = true;
})
}
checkRwId(prize_id: number){
let n = null
for (let i = 0; i < USERDATA.prize_list.length; i++) {
const element = USERDATA.prize_list[i];
if (prize_id == element.id){
n = i
break
}
}
return n
}
loadSprite(pic: string, node: Node){
this.loadRes(pic, Asset, (res: ImageAsset)=>{
let sp = new SpriteFrame()
let tex = new Texture2D();
tex.image = res;
sp.texture = tex
node.getComponent(Sprite).spriteFrame = sp
});
}
/**
* 开始转格子动画
* @param targetIndex 目标格子索引
*/
private startSpinAnimation(targetIndex: number, prize_type:number) {
if (this._isSpinning) return;
this._isSpinning = true;
// 先清除所有高亮
this.clearAllHighlights();
// 开始动画 - 至少转3圈再停到目标位置
const totalSpins = 3;
const totalSteps = totalSpins * 8 + targetIndex;
this.spinStep(0, totalSteps, targetIndex, prize_type);
}
/**
* 执行旋转步骤
* @param currentStep 当前步数
* @param totalSteps 总步数
* @param targetIndex 目标索引
* @param prize_type 奖品类型
*/
private spinStep(currentStep: number, totalSteps: number, targetIndex: number, prize_type:number) {
if (currentStep >= totalSteps) {
// 动画结束 - 确保目标格子高亮
this.clearAllHighlights();
this.highlightBox(targetIndex);
this._isSpinning = false;
// 延迟显示奖励面板
this.scheduleOnce(() => {
this.reward_bg.active = prize_type != 3;
this.noreward_bg.active = prize_type == 3;
app.manager.sound.playEffect({name: 'effect/win'});
}, 0.5);
return;
}
// 计算当前应该高亮的格子索引
const currentIndex = currentStep % 8;
// 清除之前高亮并设置新的高亮
this.clearAllHighlights();
this.highlightBox(currentIndex);
// 根据进度调整速度(越接近终点越慢)
let delay = 100; // 默认速度
const remainingSteps = totalSteps - currentStep;
if (remainingSteps < 8) {
delay = 200 + (8 - remainingSteps) * 50; // 最后几帧逐渐变慢
}
// 继续下一步动画
this.scheduleOnce(() => {
app.manager.sound.playEffect({name: 'effect/jump'});
this.spinStep(currentStep + 1, totalSteps, targetIndex, prize_type);
}, delay / 1000); // scheduleOnce 使用秒为单位
}
/**
* 高亮指定格子
* @param index 格子索引
*/
private highlightBox(index: number) {
if (index < 0 || index >= this._boxMgr.length) return;
const boxNode = this._boxMgr[index];
if (boxNode) {
Tools.ActChild(boxNode, "select", true);
}
}
/**
* 清除所有格子的高亮状态
*/
private clearAllHighlights() {
for (let i = 0; i < this._boxMgr.length; i++) {
const boxNode = this._boxMgr[i];
Tools.ActChild(boxNode, "select", false);
}
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "5c1d61a6-ff81-481b-9217-430a2187ff50",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "bdb63f02-2584-4780-ab06-23ee67be4568",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,2 @@
1、只能存放脚本⚠
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,14 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a99733dc-4564-4361-bf0a-458cf9eaf630",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_11aBEBWDxI/6ryvKvFthEo",
"priority": 4,
"bundleName": "page-main-res"
}
}

View File

@@ -0,0 +1,6 @@
UI资源目录
1、脚本资源一定不要放在此文件夹内🔥
2、资源会随着UI销毁自动释放
3、在UI脚本内可通过this.loadRes动态加载
4、在UI子节点的脚本内可通过app.manager.ui.loadRes(this, ...)动态加载
5、不可单独删除此文件夹

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "59e8aac3-ea8a-4bf1-bc34-998f7766b965",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "59e8aac3-ea8a-4bf1-bc34-998f7766b965@6c48a",
"displayName": "mai_btn_remain",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "59e8aac3-ea8a-4bf1-bc34-998f7766b965",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "59e8aac3-ea8a-4bf1-bc34-998f7766b965@f9941",
"displayName": "mai_btn_remain",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -3.5,
"offsetY": 1,
"trimX": 0,
"trimY": 0,
"width": 335,
"height": 345,
"rawWidth": 342,
"rawHeight": 347,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-167.5,
-172.5,
0,
167.5,
-172.5,
0,
-167.5,
172.5,
0,
167.5,
172.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
347,
335,
347,
0,
2,
335,
2
],
"nuv": [
0,
0.005763688760806916,
0.97953216374269,
0.005763688760806916,
0,
1,
0.97953216374269,
1
],
"minPos": [
-167.5,
-172.5,
0
],
"maxPos": [
167.5,
172.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "59e8aac3-ea8a-4bf1-bc34-998f7766b965@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "59e8aac3-ea8a-4bf1-bc34-998f7766b965@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d@6c48a",
"displayName": "main_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d@f9941",
"displayName": "main_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 1920,
"rawWidth": 1080,
"rawHeight": 1920,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-540,
-960,
0,
540,
-960,
0,
-540,
960,
0,
540,
960,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1920,
1080,
1920,
0,
0,
1080,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-540,
-960,
0
],
"maxPos": [
540,
960,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c6bfc33f-9fd1-43af-9d7c-60d13b21df2d@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "9e1afa58-b75a-41b2-9340-1134d40ef800",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "9e1afa58-b75a-41b2-9340-1134d40ef800@6c48a",
"displayName": "main_bg_box",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "9e1afa58-b75a-41b2-9340-1134d40ef800",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "9e1afa58-b75a-41b2-9340-1134d40ef800@f9941",
"displayName": "main_bg_box",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -32,
"trimX": 0,
"trimY": 64,
"width": 1080,
"height": 1169,
"rawWidth": 1080,
"rawHeight": 1233,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-540,
-584.5,
0,
540,
-584.5,
0,
-540,
584.5,
0,
540,
584.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1169,
1080,
1169,
0,
0,
1080,
0
],
"nuv": [
0,
0,
1,
0,
0,
0.9480940794809408,
1,
0.9480940794809408
],
"minPos": [
-540,
-584.5,
0
],
"maxPos": [
540,
584.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "9e1afa58-b75a-41b2-9340-1134d40ef800@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "9e1afa58-b75a-41b2-9340-1134d40ef800@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "7818a295-f828-4ba0-b359-612ce7e4e0b8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7818a295-f828-4ba0-b359-612ce7e4e0b8@6c48a",
"displayName": "main_bg_box_select",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "7818a295-f828-4ba0-b359-612ce7e4e0b8",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "7818a295-f828-4ba0-b359-612ce7e4e0b8@f9941",
"displayName": "main_bg_box_select",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 281,
"height": 294,
"rawWidth": 282,
"rawHeight": 294,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-140.5,
-147,
0,
140.5,
-147,
0,
-140.5,
147,
0,
140.5,
147,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
294,
281,
294,
0,
0,
281,
0
],
"nuv": [
0,
0,
0.9964539007092199,
0,
0,
1,
0.9964539007092199,
1
],
"minPos": [
-140.5,
-147,
0
],
"maxPos": [
140.5,
147,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "7818a295-f828-4ba0-b359-612ce7e4e0b8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "7818a295-f828-4ba0-b359-612ce7e4e0b8@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde@6c48a",
"displayName": "main_bg_card",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde@f9941",
"displayName": "main_bg_card",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 281,
"height": 294,
"rawWidth": 282,
"rawHeight": 294,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-140.5,
-147,
0,
140.5,
-147,
0,
-140.5,
147,
0,
140.5,
147,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
294,
281,
294,
0,
0,
281,
0
],
"nuv": [
0,
0,
0.9964539007092199,
0,
0,
1,
0.9964539007092199,
1
],
"minPos": [
-140.5,
-147,
0
],
"maxPos": [
140.5,
147,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "45225fa4-0af9-4d51-b6bc-8192e9b8bbde@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93@6c48a",
"displayName": "main_bg_logo",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93@f9941",
"displayName": "main_bg_logo",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 1,
"trimY": 0,
"width": 357,
"height": 108,
"rawWidth": 359,
"rawHeight": 109,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-178.5,
-54,
0,
178.5,
-54,
0,
-178.5,
54,
0,
178.5,
54,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
1,
109,
358,
109,
1,
1,
358,
1
],
"nuv": [
0.002785515320334262,
0.009174311926605505,
0.9972144846796658,
0.009174311926605505,
0.002785515320334262,
1,
0.9972144846796658,
1
],
"minPos": [
-178.5,
-54,
0
],
"maxPos": [
178.5,
54,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a407e8b4-a4b9-4ef2-958e-a8ae098b5d93@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861@6c48a",
"displayName": "main_bg_rw",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861@f9941",
"displayName": "main_bg_rw",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1080,
"height": 934,
"rawWidth": 1080,
"rawHeight": 934,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-540,
-467,
0,
540,
-467,
0,
-540,
467,
0,
540,
467,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
934,
1080,
934,
0,
0,
1080,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-540,
-467,
0
],
"maxPos": [
540,
467,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "fa6f2ba4-2e7c-4186-ae18-fa5c78b58861@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0@6c48a",
"displayName": "main_btn_reward",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0@f9941",
"displayName": "main_btn_reward",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 119,
"height": 117,
"rawWidth": 119,
"rawHeight": 118,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-59.5,
-58.5,
0,
59.5,
-58.5,
0,
-59.5,
58.5,
0,
59.5,
58.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
117,
119,
117,
0,
0,
119,
0
],
"nuv": [
0,
0,
1,
0,
0,
0.9915254237288136,
1,
0.9915254237288136
],
"minPos": [
-59.5,
-58.5,
0
],
"maxPos": [
59.5,
58.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "658b2f1e-7429-4c65-9a9d-8ba14adf34a0@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3c11c55b-7a54-49e4-aa32-d99c3002822e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3c11c55b-7a54-49e4-aa32-d99c3002822e@6c48a",
"displayName": "main_btn_rw_sure",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3c11c55b-7a54-49e4-aa32-d99c3002822e",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3c11c55b-7a54-49e4-aa32-d99c3002822e@f9941",
"displayName": "main_btn_rw_sure",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 458,
"height": 184,
"rawWidth": 458,
"rawHeight": 184,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-229,
-92,
0,
229,
-92,
0,
-229,
92,
0,
229,
92,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
184,
458,
184,
0,
0,
458,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-229,
-92,
0
],
"maxPos": [
229,
92,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3c11c55b-7a54-49e4-aa32-d99c3002822e@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3c11c55b-7a54-49e4-aa32-d99c3002822e@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "482daa8e-3325-4cdf-ae00-bebb26f7a9a3",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "482daa8e-3325-4cdf-ae00-bebb26f7a9a3@6c48a",
"displayName": "main_btn_sounds_off",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "482daa8e-3325-4cdf-ae00-bebb26f7a9a3",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "482daa8e-3325-4cdf-ae00-bebb26f7a9a3@f9941",
"displayName": "main_btn_sounds_off",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 119,
"height": 117,
"rawWidth": 119,
"rawHeight": 118,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-59.5,
-58.5,
0,
59.5,
-58.5,
0,
-59.5,
58.5,
0,
59.5,
58.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
117,
119,
117,
0,
0,
119,
0
],
"nuv": [
0,
0,
1,
0,
0,
0.9915254237288136,
1,
0.9915254237288136
],
"minPos": [
-59.5,
-58.5,
0
],
"maxPos": [
59.5,
58.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "482daa8e-3325-4cdf-ae00-bebb26f7a9a3@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "482daa8e-3325-4cdf-ae00-bebb26f7a9a3@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f76d4098-86bb-4d85-8e5b-beb06b7308f2",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f76d4098-86bb-4d85-8e5b-beb06b7308f2@6c48a",
"displayName": "main_btn_sounds_on",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f76d4098-86bb-4d85-8e5b-beb06b7308f2",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "f76d4098-86bb-4d85-8e5b-beb06b7308f2@f9941",
"displayName": "main_btn_sounds_on",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 119,
"height": 117,
"rawWidth": 119,
"rawHeight": 118,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-59.5,
-58.5,
0,
59.5,
-58.5,
0,
-59.5,
58.5,
0,
59.5,
58.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
117,
119,
117,
0,
0,
119,
0
],
"nuv": [
0,
0,
1,
0,
0,
0.9915254237288136,
1,
0.9915254237288136
],
"minPos": [
-59.5,
-58.5,
0
],
"maxPos": [
59.5,
58.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f76d4098-86bb-4d85-8e5b-beb06b7308f2@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f76d4098-86bb-4d85-8e5b-beb06b7308f2@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "5b600712-8704-49cd-9f95-5f013387a423",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "5b600712-8704-49cd-9f95-5f013387a423@6c48a",
"displayName": "main_btn_tips",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "5b600712-8704-49cd-9f95-5f013387a423",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "5b600712-8704-49cd-9f95-5f013387a423@f9941",
"displayName": "main_btn_tips",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": -0.5,
"trimX": 0,
"trimY": 1,
"width": 119,
"height": 117,
"rawWidth": 119,
"rawHeight": 118,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-59.5,
-58.5,
0,
59.5,
-58.5,
0,
-59.5,
58.5,
0,
59.5,
58.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
117,
119,
117,
0,
0,
119,
0
],
"nuv": [
0,
0,
1,
0,
0,
0.9915254237288136,
1,
0.9915254237288136
],
"minPos": [
-59.5,
-58.5,
0
],
"maxPos": [
59.5,
58.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "5b600712-8704-49cd-9f95-5f013387a423@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "5b600712-8704-49cd-9f95-5f013387a423@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8bdde44e-263e-4494-8ecd-07be2039f5f6",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8bdde44e-263e-4494-8ecd-07be2039f5f6@6c48a",
"displayName": "main_icon_dio_1",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8bdde44e-263e-4494-8ecd-07be2039f5f6",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "8bdde44e-263e-4494-8ecd-07be2039f5f6@f9941",
"displayName": "main_icon_dio_1",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 196,
"height": 150,
"rawWidth": 196,
"rawHeight": 150,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-98,
-75,
0,
98,
-75,
0,
-98,
75,
0,
98,
75,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
150,
196,
150,
0,
0,
196,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-98,
-75,
0
],
"maxPos": [
98,
75,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8bdde44e-263e-4494-8ecd-07be2039f5f6@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8bdde44e-263e-4494-8ecd-07be2039f5f6@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe@6c48a",
"displayName": "main_icon_dio_2",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe@f9941",
"displayName": "main_icon_dio_2",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 72,
"height": 66,
"rawWidth": 72,
"rawHeight": 66,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-36,
-33,
0,
36,
-33,
0,
-36,
33,
0,
36,
33,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
66,
72,
66,
0,
0,
72,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-36,
-33,
0
],
"maxPos": [
36,
33,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c4fe11ea-e93a-41c1-89ab-0c15b3c99bfe@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8b0af801-7117-437d-bd29-f1460c4e4ec4",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8b0af801-7117-437d-bd29-f1460c4e4ec4@6c48a",
"displayName": "main_lab_rw_title",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8b0af801-7117-437d-bd29-f1460c4e4ec4",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "8b0af801-7117-437d-bd29-f1460c4e4ec4@f9941",
"displayName": "main_lab_rw_title",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": -0.5,
"offsetY": 0,
"trimX": 0,
"trimY": 1,
"width": 907,
"height": 213,
"rawWidth": 908,
"rawHeight": 215,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-453.5,
-106.5,
0,
453.5,
-106.5,
0,
-453.5,
106.5,
0,
453.5,
106.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
214,
907,
214,
0,
1,
907,
1
],
"nuv": [
0,
0.004651162790697674,
0.998898678414097,
0.004651162790697674,
0,
0.9953488372093023,
0.998898678414097,
0.9953488372093023
],
"minPos": [
-453.5,
-106.5,
0
],
"maxPos": [
453.5,
106.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8b0af801-7117-437d-bd29-f1460c4e4ec4@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8b0af801-7117-437d-bd29-f1460c4e4ec4@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "c1864093-fe69-4a27-9c0d-af1dbf554ed6",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "c1864093-fe69-4a27-9c0d-af1dbf554ed6@6c48a",
"displayName": "main_logo",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "c1864093-fe69-4a27-9c0d-af1dbf554ed6",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "c1864093-fe69-4a27-9c0d-af1dbf554ed6@f9941",
"displayName": "main_logo",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 954,
"height": 805,
"rawWidth": 954,
"rawHeight": 805,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-477,
-402.5,
0,
477,
-402.5,
0,
-477,
402.5,
0,
477,
402.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
805,
954,
805,
0,
0,
954,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-477,
-402.5,
0
],
"maxPos": [
477,
402.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "c1864093-fe69-4a27-9c0d-af1dbf554ed6@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "c1864093-fe69-4a27-9c0d-af1dbf554ed6@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87@6c48a",
"displayName": "main_norw_btn",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87@f9941",
"displayName": "main_norw_btn",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 458,
"height": 184,
"rawWidth": 458,
"rawHeight": 184,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-229,
-92,
0,
229,
-92,
0,
-229,
92,
0,
229,
92,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
184,
458,
184,
0,
0,
458,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-229,
-92,
0
],
"maxPos": [
229,
92,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "a2189ef6-e9f7-42b7-b49b-f4ffb925ce87@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1004 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "b48a11de-b5fc-495a-9040-89e5d3fd874c",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "b48a11de-b5fc-495a-9040-89e5d3fd874c@6c48a",
"displayName": "main_norw_icon",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "b48a11de-b5fc-495a-9040-89e5d3fd874c",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "b48a11de-b5fc-495a-9040-89e5d3fd874c@f9941",
"displayName": "main_norw_icon",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 8.5,
"offsetY": 137.5,
"trimX": 25,
"trimY": 29,
"width": 1043,
"height": 1587,
"rawWidth": 1076,
"rawHeight": 1920,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-521.5,
-793.5,
0,
521.5,
-793.5,
0,
-521.5,
793.5,
0,
521.5,
793.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
25,
1891,
1068,
1891,
25,
304,
1068,
304
],
"nuv": [
0.023234200743494422,
0.15833333333333333,
0.9925650557620818,
0.15833333333333333,
0.023234200743494422,
0.9848958333333333,
0.9925650557620818,
0.9848958333333333
],
"minPos": [
-521.5,
-793.5,
0
],
"maxPos": [
521.5,
793.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "b48a11de-b5fc-495a-9040-89e5d3fd874c@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "b48a11de-b5fc-495a-9040-89e5d3fd874c@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4726b5e7-3f98-4702-95d7-9833b36b9c47",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4726b5e7-3f98-4702-95d7-9833b36b9c47@6c48a",
"displayName": "main_norw_lab",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4726b5e7-3f98-4702-95d7-9833b36b9c47",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "4726b5e7-3f98-4702-95d7-9833b36b9c47@f9941",
"displayName": "main_norw_lab",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 986,
"height": 184,
"rawWidth": 986,
"rawHeight": 184,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-493,
-92,
0,
493,
-92,
0,
-493,
92,
0,
493,
92,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
184,
986,
184,
0,
0,
986,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-493,
-92,
0
],
"maxPos": [
493,
92,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4726b5e7-3f98-4702-95d7-9833b36b9c47@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4726b5e7-3f98-4702-95d7-9833b36b9c47@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1bacdabd-ef9d-4be3-aee4-6a04882f4878",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1bacdabd-ef9d-4be3-aee4-6a04882f4878@6c48a",
"displayName": "main_norw_lab_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1bacdabd-ef9d-4be3-aee4-6a04882f4878",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "1bacdabd-ef9d-4be3-aee4-6a04882f4878@f9941",
"displayName": "main_norw_lab_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 879,
"height": 86,
"rawWidth": 879,
"rawHeight": 86,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-439.5,
-43,
0,
439.5,
-43,
0,
-439.5,
43,
0,
439.5,
43,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
86,
879,
86,
0,
0,
879,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-439.5,
-43,
0
],
"maxPos": [
439.5,
43,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1bacdabd-ef9d-4be3-aee4-6a04882f4878@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1bacdabd-ef9d-4be3-aee4-6a04882f4878@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571@6c48a",
"displayName": "main_snow",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571@f9941",
"displayName": "main_snow",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 14.5,
"offsetY": -9,
"trimX": 77,
"trimY": 120,
"width": 275,
"height": 311,
"rawWidth": 400,
"rawHeight": 533,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-137.5,
-155.5,
0,
137.5,
-155.5,
0,
-137.5,
155.5,
0,
137.5,
155.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
77,
413,
352,
413,
77,
102,
352,
102
],
"nuv": [
0.1925,
0.19136960600375236,
0.88,
0.19136960600375236,
0.1925,
0.774859287054409,
0.88,
0.774859287054409
],
"minPos": [
-137.5,
-155.5,
0
],
"maxPos": [
137.5,
155.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "20b0b7c3-7492-45b9-8d6e-1d1d312e0571@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b@6c48a",
"displayName": "singleColor",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b@f9941",
"displayName": "singleColor",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2,
"height": 2,
"rawWidth": 2,
"rawHeight": 2,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-1,
-1,
0,
1,
-1,
0,
-1,
1,
0,
1,
1,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
2,
2,
2,
0,
0,
2,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-1,
-1,
0
],
"maxPos": [
1,
1,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "3b5a4365-09ed-46db-bdb4-c1dc2d3b806b@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "169756bf-bc5f-471b-8200-c13e4a174b8e",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,3 @@
PageRewardhistory所在文件夹
1、通过app.manager.ui.show({ name:'PageRewardhistory' })的方式加载
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,14 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "e76f98d3-131d-48aa-bbd5-a1fc99406971",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_f7NI9WxFVIO6e8LbJGF72k",
"priority": 1,
"bundleName": "page-rewardhistory"
}
}

View File

@@ -0,0 +1,4 @@
存放UI以及脚本的文件夹
1、除了UI本身外不允许存放其它任何预置体或场景资源🔥
2、UI脚本在根目录下其它脚本放到expansion目录下
3、不可单独删除此文件夹

View File

@@ -0,0 +1,2423 @@
[
{
"__type__": "cc.Prefab",
"_name": "PageRewardhistory",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "PageRewardhistory",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
},
{
"__id__": 63
}
],
"_active": true,
"_components": [
{
"__id__": 99
},
{
"__id__": 101
},
{
"__id__": 103
}
],
"_prefab": {
"__id__": 105
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bffYXjGadNB7Q4+PI/QoIF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7cRCi+2JVIPbbMKk3eVKfp"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 150
},
"_spriteFrame": {
"__uuid__": "f02366ec-9682-4417-87b0-bd9723cb4041@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7aZEEniLZLnoT2A6qDMGfE"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "bbqnhfc8RA8aXR1wCSgaxy",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "rehis_bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 11
},
{
"__id__": 17
},
{
"__id__": 23
},
{
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 58
},
{
"__id__": 60
}
],
"_prefab": {
"__id__": 62
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "rehis_icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 14
}
],
"_prefab": {
"__id__": 16
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 502,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"_contentSize": {
"__type__": "cc.Size",
"width": 841,
"height": 362
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "32OvmziOtEvZxKLUiMYsjF"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 15
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "4e96f507-f26d-4701-a9a4-912f7547b295@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1fSh9XTYJFEKc1W2xCpgDF"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "30sN1g0INEQ6tJnGr4ctEU",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "rehis_bg_title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 20
}
],
"_prefab": {
"__id__": 22
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 710,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_contentSize": {
"__type__": "cc.Size",
"width": 775,
"height": 197
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a1GKjezwlJSJnN7pe9xqLJ"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 17
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "2f12e860-64f6-462e-b3a0-eb4d04dfec81@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "984eQoJG9DX5FV3uH1n2PL"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "36np2mmfVGS4ROL8gu3fv8",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "btn_close",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 26
},
{
"__id__": 28
},
{
"__id__": 30
}
],
"_prefab": {
"__id__": 33
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 415,
"y": 608,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 25
},
"_contentSize": {
"__type__": "cc.Size",
"width": 125,
"height": 125
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3bs6eCETFKzYTMMb53B9n2"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 27
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "381a00f4-28a8-42d0-b9cb-cb658a3bc139@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "69YgQPdGZKpK1htY243dkH"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 29
},
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": -26,
"_top": 41,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "80ALlTPLBFNrNvhpkQYKPM"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 31
},
"clickEvents": [
{
"__id__": 32
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "02hBBBYaxEPJVtzXIX+TQH"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "a70db4PkldMrqJCkQvJdOTQ",
"handler": "hide",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a2aT9KQWRHAoC5YWwCC8Aw",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "rw_list",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [
{
"__id__": 35
}
],
"_active": true,
"_components": [
{
"__id__": 51
},
{
"__id__": 53
},
{
"__id__": 55
}
],
"_prefab": {
"__id__": 57
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -165,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 34
},
"_children": [
{
"__id__": 36
}
],
"_active": true,
"_components": [
{
"__id__": 42
},
{
"__id__": 44
},
{
"__id__": 46
},
{
"__id__": 48
}
],
"_prefab": {
"__id__": 50
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "content",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 35
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 37
},
{
"__id__": 39
}
],
"_prefab": {
"__id__": 41
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 596,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 36
},
"_enabled": true,
"__prefab": {
"__id__": 38
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": -30
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 1
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c5R0L9MrBJZrzT+2sQTjhl"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 36
},
"_enabled": true,
"__prefab": {
"__id__": 40
},
"_resizeMode": 1,
"_layoutType": 2,
"_cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_startAxis": 0,
"_paddingLeft": 0,
"_paddingRight": 0,
"_paddingTop": 0,
"_paddingBottom": 0,
"_spacingX": 0,
"_spacingY": 30,
"_verticalDirection": 1,
"_horizontalDirection": 0,
"_constraint": 0,
"_constraintNum": 2,
"_affectedByScale": false,
"_isAlign": false,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c20JVpkGFH9ZQrsnjUP7J1"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "adwgBXFMJHP6vbTClSkkcv",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 35
},
"_enabled": true,
"__prefab": {
"__id__": 43
},
"_contentSize": {
"__type__": "cc.Size",
"width": 743,
"height": 920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "dfecdW6XZH4rtvJ4XNsqvn"
},
{
"__type__": "cc.Mask",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 35
},
"_enabled": true,
"__prefab": {
"__id__": 45
},
"_type": 0,
"_inverted": false,
"_segments": 64,
"_alphaThreshold": 0.1,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9cXLtOWxFAi7aY7KonSggx"
},
{
"__type__": "cc.Graphics",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 35
},
"_enabled": true,
"__prefab": {
"__id__": 47
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_lineWidth": 1,
"_strokeColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_lineJoin": 2,
"_lineCap": 0,
"_fillColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 0
},
"_miterLimit": 10,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "13TM5Y/e1IiLSO90FdQfVR"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 35
},
"_enabled": true,
"__prefab": {
"__id__": 49
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "eaipPus09CE47pOj0qhOJ3"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "626PlbjDVN/5DyH4A13Hbo",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": {
"__id__": 52
},
"_contentSize": {
"__type__": "cc.Size",
"width": 743,
"height": 920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "87EV8TcYxOU4q32+Rca4yo"
},
{
"__type__": "cc.ScrollView",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": {
"__id__": 54
},
"bounceDuration": 1,
"brake": 0.5,
"elastic": true,
"inertia": true,
"horizontal": false,
"vertical": true,
"cancelInnerEvents": true,
"scrollEvents": [],
"_content": {
"__id__": 36
},
"_horizontalScrollBar": null,
"_verticalScrollBar": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "77Yv3wlQpK1KCIl+GZVf+P"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": {
"__id__": 56
},
"_alignFlags": 45,
"_target": null,
"_left": 80,
"_right": 80,
"_top": 416.5,
"_bottom": 86.50000000000006,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bfLCQyoshOuJK46743VnVw"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "7chrvFK39HT7lXWyIdpNHV",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 59
},
"_contentSize": {
"__type__": "cc.Size",
"width": 903,
"height": 1423
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8bBpxEqYlOBbTY+5sAe0wj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 61
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "8cJTs+KZNODIWRuB6R4Qcc"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "aeI23Z1VFFHbej1+bcDfxJ",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "rw_item",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 64
},
{
"__id__": 76
},
{
"__id__": 82
},
{
"__id__": 88
}
],
"_active": false,
"_components": [
{
"__id__": 94
},
{
"__id__": 96
}
],
"_prefab": {
"__id__": 98
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "rehis_bg_rw",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 63
},
"_children": [
{
"__id__": 65
}
],
"_active": true,
"_components": [
{
"__id__": 71
},
{
"__id__": 73
}
],
"_prefab": {
"__id__": 75
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -228.041,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "icon",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 64
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 66
},
{
"__id__": 68
}
],
"_prefab": {
"__id__": 70
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 65
},
"_enabled": true,
"__prefab": {
"__id__": 67
},
"_contentSize": {
"__type__": "cc.Size",
"width": 136,
"height": 135
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9eJIwEfKVN7ZjkTTxdPEhW"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 65
},
"_enabled": true,
"__prefab": {
"__id__": 69
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": null,
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "daSNSwwHFBo51DBDnYrYVf"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ebADOrCZhMm4etSoWUvB7w",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 64
},
"_enabled": true,
"__prefab": {
"__id__": 72
},
"_contentSize": {
"__type__": "cc.Size",
"width": 259,
"height": 225
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "81G7eldpxJ3ppKZ8P9hkPf"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 64
},
"_enabled": true,
"__prefab": {
"__id__": 74
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "2305111f-e56f-4991-8aac-e10282bc8b86@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 1,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f4tK6bBplAMbGC2GPdKezH"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "6fBetE+YhHaIsM9ozM2HLs",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lab_num",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 77
},
{
"__id__": 79
}
],
"_prefab": {
"__id__": 81
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 60,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 78
},
"_contentSize": {
"__type__": "cc.Size",
"width": 400,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "b70p2VMCZPm7AEeTP27on1"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 76
},
"_enabled": true,
"__prefab": {
"__id__": 80
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 254,
"b": 228,
"a": 255
},
"_string": "50 Credits",
"_horizontalAlign": 0,
"_verticalAlign": 1,
"_actualFontSize": 47,
"_fontSize": 46,
"_fontFamily": "Arial",
"_lineHeight": 46,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": true,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": true,
"_shadowColor": {
"__type__": "cc.Color",
"r": 7,
"g": 43,
"b": 83,
"a": 134
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "54F83KoqVCtI0BFr62hprZ"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a9isNGzsZLMr75cXd8J/j+",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lab_time_title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 83
},
{
"__id__": 85
}
],
"_prefab": {
"__id__": 87
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -20,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 82
},
"_enabled": true,
"__prefab": {
"__id__": 84
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "68yXRYR6tKjLomSWMi/Ltl"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 82
},
"_enabled": true,
"__prefab": {
"__id__": 86
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 64,
"g": 229,
"b": 254,
"a": 255
},
"_string": "Obtain Time:",
"_horizontalAlign": 0,
"_verticalAlign": 1,
"_actualFontSize": 29,
"_fontSize": 28,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "3eTBI9VzVCn7bERganRT8e"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "60wH7WTQdKXp6CoZ1OUbk+",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lab_time",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 63
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 89
},
{
"__id__": 91
}
],
"_prefab": {
"__id__": 93
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -60,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 88
},
"_enabled": true,
"__prefab": {
"__id__": 90
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "5bxHv7aA1BL7dB0hqsxwod"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 88
},
"_enabled": true,
"__prefab": {
"__id__": 92
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "2025-06-06 12:33:33",
"_horizontalAlign": 0,
"_verticalAlign": 1,
"_actualFontSize": 29,
"_fontSize": 28,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "ebNOJUgtBO6q1/3SWWWyHu"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "7aBrKuUghLXaJlAwDPvCrB",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 63
},
"_enabled": true,
"__prefab": {
"__id__": 95
},
"_contentSize": {
"__type__": "cc.Size",
"width": 805,
"height": 294
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "91RRU2DW9IZouOvD6QIqhT"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 63
},
"_enabled": true,
"__prefab": {
"__id__": 97
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "9f6qaYWzRMxKruomyp/IkF"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "0e35HmFcBAvqnvHR0uCSOh",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "a70db4PkldMrqJCkQvJdOTQ",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 100
},
"_hideEvent": 2,
"_singleton": true,
"_captureFocus": true,
"_shade": false,
"_blockInput": true,
"_alwaysExist": false,
"rw_item": {
"__id__": 63
},
"rw_list": {
"__id__": 53
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "689lCMjJZJI4uUV6znpRKN"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 102
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "7ba1ZyY9tHo4Hrq2Ww9Oa6"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 104
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "744gmrD/dAUoVkMgrOfyML"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "68C1xdSS5HCqj8JNp7fqdk",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "5231a223-7efb-466d-849b-e506ffbf58bf",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "PageRewardhistory"
}
}

View File

@@ -0,0 +1,39 @@
import { _decorator, Node, ScrollView, Sprite } from 'cc';
import BaseView from '../../../../../../extensions/app/assets/base/BaseView';
import { Tools } from 'db://assets/res-native/tools/Tools';
const { ccclass, property } = _decorator;
@ccclass('PageRewardhistory')
export class PageRewardhistory extends BaseView {
@property(Node)
rw_item: Node = null!;
@property(ScrollView)
rw_list: ScrollView = null!;
// 初始化的相关逻辑写在这
onLoad() {}
// 界面打开时的相关逻辑写在这(onShow可被多次调用-它与onHide不成对)
onShow(params: any) {
this.initRw()
}
initRw() {
this.rw_list.content.removeAllChildren()
Tools.httpReq("draw-records", {}, (res:any)=>{
for (let i = 0; i < res.length; i++) {
let d = res[i]
let item = Tools.AddChild(this.rw_list.content, this.rw_item, "item" + i);
Tools.SetChildText(item, "lab_num", d.prize_name)
Tools.SetChildText(item, "lab_time", d.draw_time)
Tools.remoteLoadSprite(d.prize_pic, Tools.GetChildComp(item, "rehis_bg_rw/icon", Sprite))
item.active = true;
}
})
}
// 界面关闭时的相关逻辑写在这(已经关闭的界面不会触发onHide)
onHide(result: undefined) {
// app.manager.ui.show<PageRewardhistory>({name: 'PageRewardhistory', onHide:(result) => { 接收到return的数据并且有类型提示 }})
return result;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "a70dbe0f-9257-4cae-a242-910bc974e4d0",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "cb733b05-a6d4-4c8c-a674-9e1dd4ad3084",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,2 @@
1、只能存放脚本⚠
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,14 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "ede1d7ef-2b9f-48e9-b21a-107727dba4e0",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_11aBEBWDxI/6ryvKvFthEo",
"priority": 4,
"bundleName": "page-rewardhistory-res"
}
}

View File

@@ -0,0 +1,6 @@
UI资源目录
1、脚本资源一定不要放在此文件夹内🔥
2、资源会随着UI销毁自动释放
3、在UI脚本内可通过this.loadRes动态加载
4、在UI子节点的脚本内可通过app.manager.ui.loadRes(this, ...)动态加载
5、不可单独删除此文件夹

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f@6c48a",
"displayName": "rehis_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f@f9941",
"displayName": "rehis_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 903,
"height": 1423,
"rawWidth": 903,
"rawHeight": 1423,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-451.5,
-711.5,
0,
451.5,
-711.5,
0,
-451.5,
711.5,
0,
451.5,
711.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1423,
903,
1423,
0,
0,
903,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-451.5,
-711.5,
0
],
"maxPos": [
451.5,
711.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "5198c377-3de0-4ac4-ab9e-81a5c3b85c9f@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2305111f-e56f-4991-8aac-e10282bc8b86",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2305111f-e56f-4991-8aac-e10282bc8b86@6c48a",
"displayName": "rehis_bg_rw",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2305111f-e56f-4991-8aac-e10282bc8b86",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2305111f-e56f-4991-8aac-e10282bc8b86@f9941",
"displayName": "rehis_bg_rw",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 1,
"trimY": 1,
"width": 259,
"height": 225,
"rawWidth": 261,
"rawHeight": 227,
"borderTop": 132,
"borderBottom": 93,
"borderLeft": 132,
"borderRight": 127,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-129.5,
-112.5,
0,
129.5,
-112.5,
0,
-129.5,
112.5,
0,
129.5,
112.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
1,
226,
260,
226,
1,
1,
260,
1
],
"nuv": [
0.0038314176245210726,
0.004405286343612335,
0.9961685823754789,
0.004405286343612335,
0.0038314176245210726,
0.9955947136563876,
0.9961685823754789,
0.9955947136563876
],
"minPos": [
-129.5,
-112.5,
0
],
"maxPos": [
129.5,
112.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2305111f-e56f-4991-8aac-e10282bc8b86@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2305111f-e56f-4991-8aac-e10282bc8b86@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "381a00f4-28a8-42d0-b9cb-cb658a3bc139",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "381a00f4-28a8-42d0-b9cb-cb658a3bc139@6c48a",
"displayName": "rehis_btn_close",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "381a00f4-28a8-42d0-b9cb-cb658a3bc139",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "381a00f4-28a8-42d0-b9cb-cb658a3bc139@f9941",
"displayName": "rehis_btn_close",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 125,
"height": 125,
"rawWidth": 125,
"rawHeight": 125,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-62.5,
-62.5,
0,
62.5,
-62.5,
0,
-62.5,
62.5,
0,
62.5,
62.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
125,
125,
125,
0,
0,
125,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-62.5,
-62.5,
0
],
"maxPos": [
62.5,
62.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "381a00f4-28a8-42d0-b9cb-cb658a3bc139@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "381a00f4-28a8-42d0-b9cb-cb658a3bc139@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4e96f507-f26d-4701-a9a4-912f7547b295",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4e96f507-f26d-4701-a9a4-912f7547b295@6c48a",
"displayName": "rehis_icon",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4e96f507-f26d-4701-a9a4-912f7547b295",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "4e96f507-f26d-4701-a9a4-912f7547b295@f9941",
"displayName": "rehis_icon",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 841,
"height": 362,
"rawWidth": 841,
"rawHeight": 362,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-420.5,
-181,
0,
420.5,
-181,
0,
-420.5,
181,
0,
420.5,
181,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
362,
841,
362,
0,
0,
841,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-420.5,
-181,
0
],
"maxPos": [
420.5,
181,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4e96f507-f26d-4701-a9a4-912f7547b295@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4e96f507-f26d-4701-a9a4-912f7547b295@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8@6c48a",
"displayName": "rehis_rw_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8@f9941",
"displayName": "rehis_rw_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 805,
"height": 294,
"rawWidth": 805,
"rawHeight": 294,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-402.5,
-147,
0,
402.5,
-147,
0,
-402.5,
147,
0,
402.5,
147,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
294,
805,
294,
0,
0,
805,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-402.5,
-147,
0
],
"maxPos": [
402.5,
147,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2f833d48-cce6-4b5e-bcc3-de30bfa9ebc8@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "2f12e860-64f6-462e-b3a0-eb4d04dfec81",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "2f12e860-64f6-462e-b3a0-eb4d04dfec81@6c48a",
"displayName": "rehis_title",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "2f12e860-64f6-462e-b3a0-eb4d04dfec81",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "2f12e860-64f6-462e-b3a0-eb4d04dfec81@f9941",
"displayName": "rehis_title",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 769,
"height": 212,
"rawWidth": 769,
"rawHeight": 212,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-384.5,
-106,
0,
384.5,
-106,
0,
-384.5,
106,
0,
384.5,
106,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
212,
769,
212,
0,
0,
769,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-384.5,
-106,
0
],
"maxPos": [
384.5,
106,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "2f12e860-64f6-462e-b3a0-eb4d04dfec81@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "2f12e860-64f6-462e-b3a0-eb4d04dfec81@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f02366ec-9682-4417-87b0-bd9723cb4041",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f02366ec-9682-4417-87b0-bd9723cb4041@6c48a",
"displayName": "singleColor",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f02366ec-9682-4417-87b0-bd9723cb4041",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "f02366ec-9682-4417-87b0-bd9723cb4041@f9941",
"displayName": "singleColor",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2,
"height": 2,
"rawWidth": 2,
"rawHeight": 2,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-1,
-1,
0,
1,
-1,
0,
-1,
1,
0,
1,
1,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
2,
2,
2,
0,
0,
2,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-1,
-1,
0
],
"maxPos": [
1,
1,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f02366ec-9682-4417-87b0-bd9723cb4041@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f02366ec-9682-4417-87b0-bd9723cb4041@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "09e2d82a-3d4f-4102-b780-de9ea86f192b",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,3 @@
PageTips所在文件夹
1、通过app.manager.ui.show({ name:'PageTips' })的方式加载
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,14 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "4ed45723-cb84-4213-9fde-d70ce968b9b0",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_f7NI9WxFVIO6e8LbJGF72k",
"priority": 1,
"bundleName": "page-tips"
}
}

View File

@@ -0,0 +1,4 @@
存放UI以及脚本的文件夹
1、除了UI本身外不允许存放其它任何预置体或场景资源🔥
2、UI脚本在根目录下其它脚本放到expansion目录下
3、不可单独删除此文件夹

View File

@@ -0,0 +1,1218 @@
[
{
"__type__": "cc.Prefab",
"_name": "PageTips",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "PageTips",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 10
}
],
"_active": true,
"_components": [
{
"__id__": 47
},
{
"__id__": 49
},
{
"__id__": 51
}
],
"_prefab": {
"__id__": 53
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "mask",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 9
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "855hhnaT9AHLxt7GxEQCL8"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 150
},
"_spriteFrame": {
"__uuid__": "06c69eac-72f1-4cf9-938e-ece19602cc55@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "d0VapTGlhL44GLDGmoMHIi"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 8
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1aLpquux9Dob4Ar9pF7GYh"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "d0CzyElo5AOI+9uKiojWR3",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "bg",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 11
},
{
"__id__": 23
},
{
"__id__": 34
}
],
"_active": true,
"_components": [
{
"__id__": 42
},
{
"__id__": 44
}
],
"_prefab": {
"__id__": 46
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "tips_bg_title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [
{
"__id__": 12
}
],
"_active": true,
"_components": [
{
"__id__": 18
},
{
"__id__": 20
}
],
"_prefab": {
"__id__": 22
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 760,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "title",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 11
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 13
},
{
"__id__": 15
}
],
"_prefab": {
"__id__": 17
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 15,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 14
},
"_contentSize": {
"__type__": "cc.Size",
"width": 882,
"height": 214
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e6bFRknSRAV6SOBlTbQbE5"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 12
},
"_enabled": true,
"__prefab": {
"__id__": 16
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f28663c8-a56e-4250-bc32-12e6ec054846@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "34QGt3dJ1De4Ky5PX7dhEc"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "ccSv3OFI5JMI2YR4/vJJH0",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 19
},
"_contentSize": {
"__type__": "cc.Size",
"width": 772,
"height": 193
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "10k+HQ+dhEOpv+h1gNkMpj"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 11
},
"_enabled": true,
"__prefab": {
"__id__": 21
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "f28663c8-a56e-4250-bc32-12e6ec054846@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "64wrR76RpGh66GmfFhXwGs"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "8cdTt93QFJQ47qdk9zWm47",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "btn_close",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 24
},
{
"__id__": 26
},
{
"__id__": 28
},
{
"__id__": 30
}
],
"_prefab": {
"__id__": 33
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 415,
"y": 608,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 25
},
"_contentSize": {
"__type__": "cc.Size",
"width": 125,
"height": 125
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "c81oaqd/hFMJbTtvIOpb7a"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 27
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "e4c4a51f-4906-4750-92fa-eda8ea787e68@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e32xl/XVNMw4Mux/FhoJHg"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 29
},
"_alignFlags": 33,
"_target": null,
"_left": 0,
"_right": -26,
"_top": 41,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a77EROo3VIyIVVyfiCA3gh"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 23
},
"_enabled": true,
"__prefab": {
"__id__": 31
},
"clickEvents": [
{
"__id__": 32
}
],
"_interactable": true,
"_transition": 3,
"_normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_hoverColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_normalSprite": null,
"_hoverSprite": null,
"_pressedSprite": null,
"_disabledSprite": null,
"_duration": 0.1,
"_zoomScale": 0.96,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "41MXh67GBHSaRHn+G95VLq"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 1
},
"component": "",
"_componentId": "79948hibTlEY5RVGpx/edvj",
"handler": "hide",
"customEventData": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "a7p8qYyWlARb/S9yiHW8xE",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.Node",
"_name": "lab_tips",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 10
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 35
},
{
"__id__": 37
},
{
"__id__": 39
}
],
"_prefab": {
"__id__": 41
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -25,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": ""
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": {
"__id__": 36
},
"_contentSize": {
"__type__": "cc.Size",
"width": 663,
"height": 1073
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "4buQ/O/8VKfqYQlwSjTu2D"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": {
"__id__": 38
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 201,
"g": 235,
"b": 255,
"a": 255
},
"_string": "",
"_horizontalAlign": 0,
"_verticalAlign": 0,
"_actualFontSize": 33,
"_fontSize": 32,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 2,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": false,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_outlineWidth": 2,
"_enableShadow": false,
"_shadowColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_shadowOffset": {
"__type__": "cc.Vec2",
"x": 2,
"y": 2
},
"_shadowBlur": 2,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "abLDZbR01A+Z/f720dYtxZ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 34
},
"_enabled": true,
"__prefab": {
"__id__": 40
},
"_alignFlags": 45,
"_target": null,
"_left": 120,
"_right": 120,
"_top": 200,
"_bottom": 150,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 700,
"_originalHeight": 400,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "95NfXeQS1GaqBmpbIGFS9v"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "99FUHm8JhMHK4TbR9+XfqB",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 43
},
"_contentSize": {
"__type__": "cc.Size",
"width": 903,
"height": 1423
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "73lVCMbLRPRJ7jqVFJXNn+"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 10
},
"_enabled": true,
"__prefab": {
"__id__": 45
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174@f9941",
"__expectedType__": "cc.SpriteFrame"
},
"_type": 0,
"_fillType": 0,
"_sizeMode": 1,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_useGrayscale": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "bfPwi6E+VBTKSgAzV1+snk"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "b31L8f7wxDCZX14TH8RZ2P",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "79948hibTlEY5RVGpx/edvj",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 48
},
"_hideEvent": 2,
"_singleton": true,
"_captureFocus": true,
"_shade": false,
"_blockInput": true,
"_alwaysExist": false,
"lab_tips": {
"__id__": 37
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "61DG2Hhm9Lf7Z9V9XAwcZD"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 50
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "e1RBJlY5BO27PDlfslJaia"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 52
},
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 100,
"_originalHeight": 100,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "f09VrsjTNCgKly1ztpB1Gx"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "13R0oe3xFAmrvlQLMv2EeI",
"instance": null,
"targetOverrides": null
}
]

View File

@@ -0,0 +1,13 @@
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "f8f8b7ef-6d55-4b2e-997d-fb96104ac47d",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "PageTips"
}
}

View File

@@ -0,0 +1,24 @@
import { _decorator, Label, Node } from 'cc';
import BaseView from '../../../../../../extensions/app/assets/base/BaseView';
import { USERDATA } from 'db://assets/res-native/data/UserData';
const { ccclass, property } = _decorator;
@ccclass('PageTips')
export class PageTips extends BaseView {
/** tips */
@property(Label)
lab_tips: Label = null!;
// 初始化的相关逻辑写在这
onLoad() {}
// 界面打开时的相关逻辑写在这(onShow可被多次调用-它与onHide不成对)
onShow(params: any) {
this.lab_tips.string = USERDATA.description
}
// 界面关闭时的相关逻辑写在这(已经关闭的界面不会触发onHide)
onHide(result: undefined) {
// app.manager.ui.show<PageTips>({name: 'PageTips', onHide:(result) => { 接收到return的数据并且有类型提示 }})
return result;
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "79948862-6d39-4463-9455-1a9c7f79dbe3",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "d5c2c247-b89a-42bc-a389-290ca94b79d9",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,2 @@
1、只能存放脚本⚠
2、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,14 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "bc281800-ee8d-4ec9-bd7d-1373ede53490",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true,
"bundleConfigID": "auto_11aBEBWDxI/6ryvKvFthEo",
"priority": 4,
"bundleName": "page-tips-res"
}
}

View File

@@ -0,0 +1,6 @@
UI资源目录
1、脚本资源一定不要放在此文件夹内🔥
2、资源会随着UI销毁自动释放
3、在UI脚本内可通过this.loadRes动态加载
4、在UI子节点的脚本内可通过app.manager.ui.loadRes(this, ...)动态加载
5、不可单独删除此文件夹

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "06c69eac-72f1-4cf9-938e-ece19602cc55",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "06c69eac-72f1-4cf9-938e-ece19602cc55@6c48a",
"displayName": "singleColor",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "06c69eac-72f1-4cf9-938e-ece19602cc55",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "06c69eac-72f1-4cf9-938e-ece19602cc55@f9941",
"displayName": "singleColor",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 2,
"height": 2,
"rawWidth": 2,
"rawHeight": 2,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-1,
-1,
0,
1,
-1,
0,
-1,
1,
0,
1,
1,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
2,
2,
2,
0,
0,
2,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-1,
-1,
0
],
"maxPos": [
1,
1,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "06c69eac-72f1-4cf9-938e-ece19602cc55@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "06c69eac-72f1-4cf9-938e-ece19602cc55@6c48a"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174@6c48a",
"displayName": "tips_bg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174@f9941",
"displayName": "tips_bg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 903,
"height": 1423,
"rawWidth": 903,
"rawHeight": 1423,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-451.5,
-711.5,
0,
451.5,
-711.5,
0,
-451.5,
711.5,
0,
451.5,
711.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1423,
903,
1423,
0,
0,
903,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-451.5,
-711.5,
0
],
"maxPos": [
451.5,
711.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "d4a6fcf4-f444-4ba7-83be-b2bfae37b174@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "e4c4a51f-4906-4750-92fa-eda8ea787e68",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "e4c4a51f-4906-4750-92fa-eda8ea787e68@6c48a",
"displayName": "tips_btn_close",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "e4c4a51f-4906-4750-92fa-eda8ea787e68",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "e4c4a51f-4906-4750-92fa-eda8ea787e68@f9941",
"displayName": "tips_btn_close",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 125,
"height": 125,
"rawWidth": 125,
"rawHeight": 125,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-62.5,
-62.5,
0,
62.5,
-62.5,
0,
-62.5,
62.5,
0,
62.5,
62.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
125,
125,
125,
0,
0,
125,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-62.5,
-62.5,
0
],
"maxPos": [
62.5,
62.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "e4c4a51f-4906-4750-92fa-eda8ea787e68@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "e4c4a51f-4906-4750-92fa-eda8ea787e68@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -0,0 +1,138 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f28663c8-a56e-4250-bc32-12e6ec054846",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f28663c8-a56e-4250-bc32-12e6ec054846@6c48a",
"displayName": "tips_title",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f28663c8-a56e-4250-bc32-12e6ec054846",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "f28663c8-a56e-4250-bc32-12e6ec054846@f9941",
"displayName": "tips_title",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0.5,
"trimX": 2,
"trimY": 1,
"width": 882,
"height": 214,
"rawWidth": 886,
"rawHeight": 217,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-441,
-107,
0,
441,
-107,
0,
-441,
107,
0,
441,
107,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
2,
216,
884,
216,
2,
2,
884,
2
],
"nuv": [
0.002257336343115124,
0.009216589861751152,
0.9977426636568849,
0.009216589861751152,
0.002257336343115124,
0.9953917050691244,
0.9977426636568849,
0.9953917050691244
],
"minPos": [
-441,
-107,
0
],
"maxPos": [
441,
107,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f28663c8-a56e-4250-bc32-12e6ec054846@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f28663c8-a56e-4250-bc32-12e6ec054846@6c48a",
"compressSettings": {
"useCompressTexture": true,
"presetId": "b1rRMHaV9Gz5HhQd3Z8obg"
}
}
}

12
assets/app-scene.meta Normal file
View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "104c58a7-687b-47fb-b7b0-dac627418567",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

View File

@@ -0,0 +1,2 @@
1、存储主场景的文件夹
2、不可删除此文件夹

1415
assets/app-scene/main.scene Normal file
View File

@@ -0,0 +1,1415 @@
[
{
"__type__": "cc.SceneAsset",
"_name": "main",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"scene": {
"__id__": 1
}
},
{
"__type__": "cc.Scene",
"_name": "main",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [],
"_prefab": {
"__id__": 59
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 1073741824,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"autoReleaseAssets": false,
"_globals": {
"__id__": 63
},
"_id": "5298bb0b-166e-4978-af98-0047d43757de"
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 3
},
{
"__id__": 5
},
{
"__id__": 7
},
{
"__id__": 38
},
{
"__id__": 41
},
{
"__id__": 53
}
],
"_active": true,
"_components": [
{
"__id__": 56
},
{
"__id__": 57
},
{
"__id__": 58
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 540,
"y": 960,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "beI88Z2HpFELqR4T5EMHpg"
},
{
"__type__": "cc.Node",
"_name": "CameraCleaner",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 4
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "44sn5JnYZMDacIjGeLTb9L"
},
{
"__type__": "cc.Camera",
"_name": "Camera<CameraComponent>",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 3
},
"_enabled": true,
"__prefab": null,
"_projection": 0,
"_priority": 0,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 667,
"_near": 0,
"_far": 1,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 7,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 0,
"_targetTexture": null,
"_postProcess": null,
"_usePostProcess": false,
"_cameraType": -1,
"_trackingType": 0,
"_id": "90ePEmbuZG5pOTEw/PvfiP"
},
{
"__type__": "cc.Node",
"_name": "CameraDefault",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 1000
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "ebFwiq8gBFaYpqYbdoDODe"
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 5
},
"_enabled": true,
"__prefab": null,
"_projection": 0,
"_priority": 1000,
"_fov": 45,
"_fovAxis": 0,
"_orthoHeight": 960,
"_near": 0,
"_far": 2000,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": 1,
"_stencil": 0,
"_clearFlags": 6,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_aperture": 19,
"_shutter": 7,
"_iso": 0,
"_screenScale": 1,
"_visibility": 33554432,
"_targetTexture": null,
"_postProcess": null,
"_usePostProcess": false,
"_cameraType": -1,
"_trackingType": 0,
"_id": "63WIch3o5BEYRlXzTT0oWc"
},
{
"__type__": "cc.Node",
"_name": "AppInitLayer",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 8
}
],
"_active": true,
"_components": [
{
"__id__": 36
},
{
"__id__": 37
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "c1MYxrXkRChJfRVULozYQ1"
},
{
"__type__": "cc.Node",
"_objFlags": 512,
"_parent": {
"__id__": 7
},
"_prefab": {
"__id__": 9
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 8
},
"asset": {
"__uuid__": "19a93f71-0300-44b3-9bd9-efbc15271e7d",
"__expectedType__": "cc.Prefab"
},
"fileId": "7aBxAgUy9NRJNTrHNH6/6R",
"instance": {
"__id__": 10
},
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "59H08KPE9KIrsVoKNgJyQL",
"prefabRootNode": null,
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 11
},
{
"__id__": 13
},
{
"__id__": 14
},
{
"__id__": 15
},
{
"__id__": 16
},
{
"__id__": 18
},
{
"__id__": 20
},
{
"__id__": 21
},
{
"__id__": 23
},
{
"__id__": 25
},
{
"__id__": 27
},
{
"__id__": 29
},
{
"__id__": 31
},
{
"__id__": 32
},
{
"__id__": 34
},
{
"__id__": 35
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 12
},
"propertyPath": [
"_name"
],
"value": "AppInit"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"7aBxAgUy9NRJNTrHNH6/6R"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 12
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 12
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 12
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 17
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"fdxpU8hWdAMIljPcrHWSD1"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 19
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"1bUhFF79dG46Ne46ZRxKpC"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 12
},
"propertyPath": [
"_layer"
],
"value": 33554432
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 22
},
"propertyPath": [
"_layer"
],
"value": 33554432
},
{
"__type__": "cc.TargetInfo",
"localID": [
"0fJ7SovSVCVawCNYpB3WTW"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 24
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 982,
"height": 801
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"830VxCeINAa7bLC2kyd2Db"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 26
},
"propertyPath": [
"_sizeMode"
],
"value": 1
},
{
"__type__": "cc.TargetInfo",
"localID": [
"fdljxQ6hREBoCDN2bRrUnW"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 28
},
"propertyPath": [
"_color"
],
"value": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"f0x+xHB+BD77gwz9qesmbl"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 30
},
"propertyPath": [
"sp_flash"
],
"value": null
},
{
"__type__": "cc.TargetInfo",
"localID": [
"ffhkucpqlE+aHYz+nafs1t"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 26
},
"propertyPath": [
"_color"
],
"value": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 33
},
"propertyPath": [
"_lscale"
],
"value": {
"__type__": "cc.Vec3",
"x": 0.4,
"y": 0.4,
"z": 1
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"8cWbsI+kdMYYPLYQrEFecs"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 33
},
"propertyPath": [
"_active"
],
"value": false
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 28
},
"propertyPath": [
"_spriteFrame"
],
"value": {
"__uuid__": "1fc6b57d-ae88-4565-be7a-545305c50cbb@f9941",
"__expectedType__": "cc.SpriteFrame"
}
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "3fCzoQamRD6YqJ5xAJrIrF"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 7
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 750,
"_originalHeight": 1334,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "39b7+TQHZNjLetoDp6d0KT"
},
{
"__type__": "cc.Node",
"_name": "UserInterface",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 39
},
{
"__id__": 40
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "22nXmnonVOVLZIZLp3/gsy"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "49vj7BWZpFRron6sjoM8FB"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 38
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 750,
"_originalHeight": 1334,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "7bO/h4uK5NkKHZJR3g+kQE"
},
{
"__type__": "cc.Node",
"_objFlags": 512,
"_parent": {
"__id__": 2
},
"_prefab": {
"__id__": 42
},
"__editorExtras__": {}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 41
},
"asset": {
"__uuid__": "5e43bb09-848f-434a-b3a5-a6b6602e00af",
"__expectedType__": "cc.Prefab"
},
"fileId": "09f6AV8NhG8amoujtBeGc3",
"instance": {
"__id__": 43
},
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.PrefabInstance",
"fileId": "6bff0rS6pG9K1dncpRrgk3",
"prefabRootNode": null,
"mountedChildren": [],
"mountedComponents": [],
"propertyOverrides": [
{
"__id__": 44
},
{
"__id__": 46
},
{
"__id__": 47
},
{
"__id__": 48
},
{
"__id__": 49
},
{
"__id__": 51
}
],
"removedComponents": []
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 45
},
"propertyPath": [
"_name"
],
"value": "MainManager"
},
{
"__type__": "cc.TargetInfo",
"localID": [
"09f6AV8NhG8amoujtBeGc3"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 45
},
"propertyPath": [
"_lpos"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 45
},
"propertyPath": [
"_lrot"
],
"value": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 45
},
"propertyPath": [
"_euler"
],
"value": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
}
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 50
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"bab8wNsgZHRICm9NXgLsKC"
]
},
{
"__type__": "CCPropertyOverrideInfo",
"targetInfo": {
"__id__": 52
},
"propertyPath": [
"_contentSize"
],
"value": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"c3fJug795H8Zpvt/9PivC1"
]
},
{
"__type__": "cc.Node",
"_name": "UserManager",
"_objFlags": 512,
"__editorExtras__": {},
"_parent": {
"__id__": 2
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 54
},
{
"__id__": 55
}
],
"_prefab": null,
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_lrot": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_mobility": 0,
"_layer": 33554432,
"_euler": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_id": "85DtqjhStE35D/yB7DOLJP"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 53
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "75nDyZNw1Ba5VJGHfNgh1y"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 53
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 750,
"_originalHeight": 1334,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "bbmV5F90ZFTpPH7eVrcMtt"
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_contentSize": {
"__type__": "cc.Size",
"width": 1080,
"height": 1920
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": "d6rUX5yfhMlKoWX2bSbawx"
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_cameraComponent": {
"__id__": 6
},
"_alignCanvasWithScreen": true,
"_id": "12O/ljcVlEqLmVm3U2gEOQ"
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": null,
"_alignFlags": 45,
"_target": null,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 750,
"_originalHeight": 1334.0000000000002,
"_alignMode": 2,
"_lockFlags": 0,
"_id": "eaKwWyCaFLR50mqc10Dr1B"
},
{
"__type__": "cc.PrefabInfo",
"root": null,
"asset": null,
"fileId": "5298bb0b-166e-4978-af98-0047d43757de",
"instance": null,
"targetOverrides": [
{
"__id__": 60
}
],
"nestedPrefabInstanceRoots": [
{
"__id__": 8
},
{
"__id__": 41
}
]
},
{
"__type__": "cc.TargetOverrideInfo",
"source": {
"__id__": 8
},
"sourceInfo": {
"__id__": 61
},
"propertyPath": [
"logo"
],
"target": {
"__id__": 8
},
"targetInfo": {
"__id__": 62
}
},
{
"__type__": "cc.TargetInfo",
"localID": [
"ffhkucpqlE+aHYz+nafs1t"
]
},
{
"__type__": "cc.TargetInfo",
"localID": [
"8cWbsI+kdMYYPLYQrEFecs"
]
},
{
"__type__": "cc.SceneGlobals",
"ambient": {
"__id__": 64
},
"shadows": {
"__id__": 65
},
"_skybox": {
"__id__": 66
},
"fog": {
"__id__": 67
},
"octree": {
"__id__": 68
},
"skin": {
"__id__": 69
},
"lightProbeInfo": {
"__id__": 70
},
"postSettings": {
"__id__": 71
},
"bakedWithStationaryMainLight": false,
"bakedWithHighpLightmap": false
},
{
"__type__": "cc.AmbientInfo",
"_skyColorHDR": {
"__type__": "cc.Vec4",
"x": 0.242612,
"y": 0.362617,
"z": 0.798746,
"w": 0.520833125
},
"_skyColor": {
"__type__": "cc.Vec4",
"x": 0.242612,
"y": 0.362617,
"z": 0.798746,
"w": 0.520833125
},
"_skyIllumHDR": 20000,
"_skyIllum": 20000,
"_groundAlbedoHDR": {
"__type__": "cc.Vec4",
"x": 0.241836,
"y": 0.361964,
"z": 0.798801,
"w": 0
},
"_groundAlbedo": {
"__type__": "cc.Vec4",
"x": 0.241836,
"y": 0.361964,
"z": 0.798801,
"w": 0
},
"_skyColorLDR": {
"__type__": "cc.Vec4",
"x": 0.2,
"y": 0.5,
"z": 0.8,
"w": 1
},
"_skyIllumLDR": 20000,
"_groundAlbedoLDR": {
"__type__": "cc.Vec4",
"x": 0.2,
"y": 0.2,
"z": 0.2,
"w": 1
}
},
{
"__type__": "cc.ShadowsInfo",
"_enabled": false,
"_type": 0,
"_normal": {
"__type__": "cc.Vec3",
"x": 0,
"y": 1,
"z": 0
},
"_distance": 0,
"_planeBias": 1,
"_shadowColor": {
"__type__": "cc.Color",
"r": 76,
"g": 76,
"b": 76,
"a": 255
},
"_maxReceived": 4,
"_size": {
"__type__": "cc.Vec2",
"x": 512,
"y": 512
}
},
{
"__type__": "cc.SkyboxInfo",
"_envLightingType": 0,
"_envmapHDR": null,
"_envmap": null,
"_envmapLDR": null,
"_diffuseMapHDR": null,
"_diffuseMapLDR": null,
"_enabled": false,
"_useHDR": true,
"_editableMaterial": null,
"_reflectionHDR": null,
"_reflectionLDR": null,
"_rotationAngle": 0
},
{
"__type__": "cc.FogInfo",
"_type": 0,
"_fogColor": {
"__type__": "cc.Color",
"r": 200,
"g": 200,
"b": 200,
"a": 255
},
"_enabled": false,
"_fogDensity": 0.3,
"_fogStart": 0.5,
"_fogEnd": 300,
"_fogAtten": 5,
"_fogTop": 1.5,
"_fogRange": 1.2,
"_accurate": false
},
{
"__type__": "cc.OctreeInfo",
"_enabled": false,
"_minPos": {
"__type__": "cc.Vec3",
"x": -1024,
"y": -1024,
"z": -1024
},
"_maxPos": {
"__type__": "cc.Vec3",
"x": 1024,
"y": 1024,
"z": 1024
},
"_depth": 8
},
{
"__type__": "cc.SkinInfo",
"_enabled": true,
"_blurRadius": 0.01,
"_sssIntensity": 3
},
{
"__type__": "cc.LightProbeInfo",
"_giScale": 1,
"_giSamples": 1024,
"_bounces": 2,
"_reduceRinging": 0,
"_showProbe": true,
"_showWireframe": true,
"_showConvex": false,
"_data": null,
"_lightProbeSphereVolume": 1
},
{
"__type__": "cc.PostSettingsInfo",
"_toneMappingType": 0
}
]

View File

@@ -0,0 +1,11 @@
{
"ver": "1.1.50",
"importer": "scene",
"imported": true,
"uuid": "5298bb0b-166e-4978-af98-0047d43757de",
"files": [
".json"
],
"subMetas": {},
"userData": {}
}

12
assets/app.meta Normal file
View File

@@ -0,0 +1,12 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "a7084ee0-ab27-4f9f-a846-6d4b38db50ba",
"files": [],
"subMetas": {},
"userData": {
"compressionType": {},
"isRemoteBundle": {}
}
}

2
assets/app/.app.md Normal file
View File

@@ -0,0 +1,2 @@
1、框架配置、生命周期及全局导出
2、不可删除此文件夹

33
assets/app/app.ts Normal file
View File

@@ -0,0 +1,33 @@
import { Game, game } from 'cc';
import { DEBUG, DEV, EDITOR } from 'cc/env';
import Core from '../../extensions/app/assets/Core';
import { IApp } from '../app-builtin/app-admin/executor';
import { appInited, appReady, cccInited, cccReady } from './handle';
export class App extends Core<IApp> {
protected static _inst: App | undefined;
static get inst() {
if (!this._inst) this._inst = new App();
return this._inst;
}
private constructor() {
super();
}
}
export const app = App.inst;
if (DEBUG) {
//@ts-ignore
window['app'] = app;
//@ts-ignore
window['App'] = App;
}
if (!EDITOR || DEV) {
cccReady && cccReady(app);
appReady && appReady(app);
cccInited && game.once(Game.EVENT_ENGINE_INITED, function () { cccInited(app); });
appInited && app.once(App.EventType.EVENT_APPINIT_FINISHED, function () { appInited(app); });
}

9
assets/app/app.ts.meta Normal file
View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "121df84f-631d-4557-831a-19641e7deea8",
"files": [],
"subMetas": {},
"userData": {}
}

34
assets/app/handle.ts Normal file
View File

@@ -0,0 +1,34 @@
import { game, sys } from 'cc';
import { App } from './app';
/**
* ccc除物理引擎等外的基础功能已经准备好了
*/
export function cccReady(app: App) {
// 为了防止web环境中异常掉帧问题(关键代码在cc.game._pacer._handleRAF中)
if (sys.isBrowser) {
// game.frameRate = 100; // 在60、90帧率手机上满帧率运行120帧率手机上以60帧率运行(可能不够流畅但省电)
game.frameRate = 200; // 满帧率运行
}
}
/**
* ccc全部功能都初始化完毕了
*/
export function cccInited(app: App) {
}
/**
* app除了用户自定义Manager未加载外其它都已准备好了
*/
export function appReady(app: App) {
}
/**
* app全部功能都初始化完毕了
*/
export function appInited(app: App) {
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "8afaf85a-fbcd-4213-aacb-2e9337926fee",
"files": [],
"subMetas": {},
"userData": {}
}

32
assets/app/setting.ts Normal file
View File

@@ -0,0 +1,32 @@
import { DEBUG } from 'cc/env';
import { Logger } from 'db://app/lib/logger/logger';
import { Storage } from 'db://app/lib/storage/storage';
import SoundManager from 'db://app/manager/sound/SoundManager';
import UIManager from 'db://app/manager/ui/UIManager';
// 如果需要加密内容,请设置密钥的值
Storage.setting.secretKey = '';
// 设置日志过滤
Logger.setting.filter = DEBUG ? ['error', 'log', 'warn'] : ['error'];
// 预加载的UI列表
UIManager.setting.preload = ['PageMain', 'PageRewardhistory', 'PageTips'];
// 默认UI, 会在首屏流程后自动show
UIManager.setting.defaultUI = 'PageMain'; // 通过App菜单创建Page类型的UI后填入该UI的名称(会有自动提示与类型检查)
// 是否自动适配分辨率策略
UIManager.setting.autoFit = true; // 开启后,会弃用项目设置中的适配策略,并自动根据设备分辨率与设计分辨率计算出新的适配策略
// 弹窗默认遮罩展现动画配置
UIManager.setting.shade = {
delay: 0,
begin: 100,
end: 200,
speed: 400,
blur: false
};
// 预加载的音频(按数组顺序依次预加载)
SoundManager.setting.preload = ['music/bgm'];
// 默认音乐, 会在首屏流程后自动播放
SoundManager.setting.defaultMusicName = 'music/bgm';
// 默认音效, 会在Button被点击后播放
SoundManager.setting.defaultEffectName = 'effect/click';

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "9a8d2a40-9eb2-4058-8883-a7de0fedbd33",
"files": [],
"subMetas": {},
"userData": {}
}

9
assets/res-native.meta Normal file
View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "1a0d9ccf-f49e-434f-9e73-241ccac52e5b",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,5 @@
存储静态资源的文件夹
1、非公共脚本资源尽量不放到主包内
3、图片、字体等非脚本类公共资源尽量不放到主包内(因为构建后这些资源会被拷贝到其它Bundle中)
2、如果公共脚本资源体积较大可以考虑放到Bundle内保证首屏体积尽量小
4、如不再需要可以直接删除此文件夹

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "769a05ac-21c9-496a-8982-371919a27245",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "f5e99d2a-0445-4298-85ea-fbe37da68ad2",
"files": [],
"subMetas": {},
"userData": {}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 477 KiB

View File

@@ -0,0 +1,134 @@
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1fc6b57d-ae88-4565-be7a-545305c50cbb",
"files": [
".jpg",
".json"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1fc6b57d-ae88-4565-be7a-545305c50cbb@6c48a",
"displayName": "com_loading",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1fc6b57d-ae88-4565-be7a-545305c50cbb",
"isUuid": true,
"visible": false,
"minfilter": "linear",
"magfilter": "linear",
"mipfilter": "none",
"anisotropy": 0
},
"ver": "1.0.22",
"imported": true,
"files": [
".json"
],
"subMetas": {}
},
"f9941": {
"importer": "sprite-frame",
"uuid": "1fc6b57d-ae88-4565-be7a-545305c50cbb@f9941",
"displayName": "com_loading",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimType": "auto",
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 1081,
"height": 1920,
"rawWidth": 1081,
"rawHeight": 1920,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-540.5,
-960,
0,
540.5,
-960,
0,
-540.5,
960,
0,
540.5,
960,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
1920,
1081,
1920,
0,
0,
1081,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-540.5,
-960,
0
],
"maxPos": [
540.5,
960,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1fc6b57d-ae88-4565-be7a-545305c50cbb@6c48a",
"atlasUuid": ""
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": false,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1fc6b57d-ae88-4565-be7a-545305c50cbb@6c48a"
}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "da6dc13a-ba14-40ce-a8ee-791a814c21d7",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,81 @@
import { _decorator } from 'cc';
const { ccclass } = _decorator;
/** 玩家数据类 */
@ccclass('ChannelData')
class ChannelData {
public static instance: ChannelData | null = null;
/** 获取渠道数据状态 */
public get_success: boolean = false;
/** 活动开关(0:关闭,1:开启) */
public activity_open : number = 0;
/** 币商功能(0:禁用,1:启用) */
public coin_status : boolean = true;
/** 币别代码 */
public currency : string = "";
/** 讨论组功能(0:禁用,1:启用) */
public discussion_group_status : boolean = true;
/** 渠道域名 */
public domain : string = "";
/** 下载地址 */
public download_url : string = "";
/** 渠道ID */
public id : number = 0;
/** 语言 */
public lang : string = "";
/** line client id */
public line_client_id : string = "";
/** line 登录功能(0:禁用,1:启用) */
public line_login_status : boolean = true;
/** 机台线路 */
public machine_media_line : number = 0;
/** 渠道名称 */
public name : string = "";
/** 全民代理功能(0:禁用,1:启用) */
public national_promoter_status : boolean = true;
/** 代理开启状态 */
public promotion_status : boolean = true;
/** Q币转入(0:禁用,1:启用) */
public q_talk_point_status : boolean = true;
/** Q币充值(0:禁用,1:启用) */
public q_talk_recharge_status : boolean = true;
/** Q币转出(0:禁用,1:启用) */
public q_talk_withdraw_status : boolean = true;
/** 排行榜功能(0:禁用,1:启用) */
public ranking_status : boolean = true;
/** 充值开启状态 */
public recharge_status : boolean = true;
/** 反水开启状态 */
public reverse_water_status : boolean = true;
/** 实体机台开关 0关闭1-开启 */
public status_machine : boolean = true;
/** web登录状态(0:禁用,1:启用) */
public web_login_status : boolean = true;
/** 人工提现(0:禁用,1:启用) */
public withdraw_status : boolean = true;
private constructor(){}
static get Instance(){
if(ChannelData.instance == null){
ChannelData.instance = new ChannelData();
}
return ChannelData.instance;
}
public setChannelData(data:any){
for (let key in data){
if (this.hasOwnProperty(key)){
(this as any)[key] = data[key];
}
}
this.get_success = true;
}
}
/**
* 游戏配置数据
*/
export const CHANNELDATA = ChannelData.Instance;

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "c2e6b946-cc1f-4b8a-b626-42968399e30d",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,40 @@
import { _decorator } from 'cc';
const { ccclass } = _decorator;
/** 玩家数据类 */
@ccclass('UserData')
class UserData {
public static instance: UserData | null = null;
/** 剩余抽奖次数 */
public point : number = 0;
/** 奖品列表 */
public prize_list : any[] = [];
/** 游戏描述 */
public description : string = "";
/* 游戏logo */
public logo : string = "";
public logo_back : string = "";
private constructor(){}
static get Instance(){
if(UserData.instance == null){
UserData.instance = new UserData();
}
return UserData.instance;
}
public setUserData(data:any){
for (let key in data){
if (this.hasOwnProperty(key)){
(this as any)[key] = data[key];
}
}
}
}
/**
* 玩家数据
*/
export const USERDATA = UserData.Instance;

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "29d17a77-7796-4df7-a0ed-7e0ececeae54",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "baf2ef12-30f7-46ec-af55-620c096bef72",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,294 @@
import { game } from "cc";
import { HTTP_SITE_ID, SERVER_LIST, GAME_VER } from "../setting/ServerConfig";
import { Tools } from "../tools/Tools";
import { app } from "../../app/app";
import { CHANNELDATA } from "../data/ChannelData";
var urls: any = {}; // 当前请求地址集合
var reqparams: any = {}; // 请求参数
/**
* 登录token类全局唯一
*/
export class LoginToken{
private static instance: LoginToken | null = null;
public access_token: string = "";
public refresh_token: string = "";
public appId: string = "";
public appKey: string = "";
private constructor(){}
static get Instance(){
if(LoginToken.instance == null){
LoginToken.instance = new LoginToken();
}
return LoginToken.instance;
}
public setToken(access_token: string, refresh_token: string, appID: string, appKey: string){
this.access_token = access_token;
this.refresh_token = refresh_token;
this.appId = appID
this.appKey = appKey
}
}
/** 当前保存的token */
export const LOGIN_TOKEN : LoginToken = LoginToken.Instance;
export enum HttpEvent {
NO_NETWORK = "http_request_no_network", // 断网
UNKNOWN_ERROR = "http_request_unknown_error", // 未知错误
TIMEOUT = "http_request_timout" // 请求超时
}
export class HttpRequest {
/** 服务器地址 */
public server: string = SERVER_LIST
/** 请求超时时间 */
public timeout: number = 10000;
public lobbyUrl = ""
public setUrl (url:string) {
this.server = "http://" + url + "/"
}
/**
* HTTP GET请求
* 例:
*
* Get
var complete = function(response){
LogWrap.log(response);
}
var error = function(response){
LogWrap.log(response);
}
this.get(name, complete, error);
*/
public get(name: string, completeCallback: Function, errorCallback?: Function) {
this.sendRequest(name, null, false, completeCallback, errorCallback)
}
public getWithParams(name: string, params: any, completeCallback: Function, errorCallback?: Function) {
this.sendRequest(name, params, false, completeCallback, errorCallback)
}
public getByArraybuffer(name: string, completeCallback: Function, errorCallback?: Function) {
this.sendRequest(name, null, false, completeCallback, errorCallback, 'arraybuffer', false);
}
public getWithParamsByArraybuffer(name: string, params: any, completeCallback: Function, errorCallback?: Function) {
this.sendRequest(name, params, false, completeCallback, errorCallback, 'arraybuffer', false);
}
/**
* HTTP POST请求
* 例:
*
* Post
var param = '{"LoginCode":"donggang_dev","Password":"e10adc3949ba59abbe56e057f20f883e"}'
var complete = function(response){
var jsonData = JSON.parse(response);
var data = JSON.parse(jsonData.Data);
LogWrap.log(data.Id);
}
var error = function(response){
LogWrap.log(response);
}
this.post(name, param, complete, error);
*/
public post(name: string, params: any, completeCallback?: Function, errorCallback?: Function) {
this.sendRequest(name, params, true, completeCallback, errorCallback);
}
/** 取消请求中的请求 */
public abort(name: string) {
var xhr = urls[this.server + name];
if (xhr) {
xhr.abort();
}
}
/**
* 获得字符串形式的参数
*/
private getParamString(params: any) {
var result = "";
for (var name in params) {
let data = params[name];
if (data instanceof Object) {
for (var key in data)
result += `${key}=${data[key]}&`;
}
else {
result += `${name}=${data}&`;
}
}
return result.substring(0, result.length - 1);
}
/**
* Http请求
* @param name(string) 请求地址
* @param params(JSON) 请求参数
* @param isPost(boolen) 是否为POST方式
* @param callback(function) 请求成功回调
* @param errorCallback(function) 请求失败回调
* @param responseType(string) 响应类型
*/
private async sendRequest(
name: string,
params: any,
isPost: boolean,
completeCallback?: Function,
errorCallback?: Function,
responseType?: string,
isOpenTimeout = true,
timeout: number = this.timeout
) {
if (!name) {
console.log("请求地址不能为空");
return;
}
let url: string, newUrl: string, paramsStr: string;
if (name.toLocaleLowerCase().indexOf("http") === 0) {
url = name;
} else {
url = this.server + name;
}
if (params) {
paramsStr = this.getParamString(params);
if (url.indexOf("?") > -1)
newUrl = url + "&" + encodeURIComponent(paramsStr);
else
newUrl = url + "?" + paramsStr;
} else {
newUrl = url;
}
if (urls[newUrl] != null && reqparams[newUrl] === paramsStr!) {
console.log(`地址【${url}】已正在请求中,不能重复请求`);
return;
}
const xhr = new XMLHttpRequest();
urls[newUrl] = xhr;
reqparams[newUrl] = paramsStr!;
if (isPost) {
xhr.open("POST", url);
} else {
xhr.open("GET", newUrl);
}
if (LOGIN_TOKEN.access_token !== "") {
xhr.setRequestHeader("Authorization", "Bearer " + LOGIN_TOKEN.access_token);
}
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8");
// 加密设置
const time = Math.floor(Date.now() / 1000);
xhr.setRequestHeader("Lang", CHANNELDATA.lang);
if (!params) params = {};
let _params = params;
_params.appId = LOGIN_TOKEN.appId;
_params.nonceStr = Tools.getRandomStr(6);
_params.timestamp = time;
let sha256DDD: string;
try {
sha256DDD = await Tools.generateSignNative(_params, LOGIN_TOKEN.appKey);
} catch (err) {
console.error("生成签名失败:", err);
this.deleteCache(newUrl);
const data: any = { url, params, event: HttpEvent.UNKNOWN_ERROR };
if (errorCallback) errorCallback(data);
return; // 出错直接返回,避免继续执行
}
xhr.setRequestHeader("appId", LOGIN_TOKEN.appId);
xhr.setRequestHeader("timestamp", _params.timestamp.toString());
xhr.setRequestHeader("signature", sha256DDD);
xhr.setRequestHeader("nonceStr", _params.nonceStr);
xhr.setRequestHeader("Site-Id", HTTP_SITE_ID);
const v = app.lib.storage.get("CURR_VERSION") || "100";
xhr.setRequestHeader("app-version-key", v.toString());
xhr.setRequestHeader("system-key", "android");
xhr.setRequestHeader("Client-Version", GAME_VER);
const data: any = { url, params };
// 请求超时
if (isOpenTimeout) {
xhr.timeout = timeout;
xhr.ontimeout = () => {
this.deleteCache(newUrl);
data.event = HttpEvent.TIMEOUT;
if (errorCallback) errorCallback(data);
};
}
xhr.onloadend = () => {
if (xhr.status === 500) {
this.deleteCache(newUrl);
data.event = HttpEvent.NO_NETWORK;
if (errorCallback) errorCallback(data);
}
};
xhr.onerror = () => {
this.deleteCache(newUrl);
if (!errorCallback) return;
if (xhr.readyState === 0 || xhr.readyState === 1 || xhr.status === 0) {
data.event = HttpEvent.NO_NETWORK;
} else {
data.event = HttpEvent.UNKNOWN_ERROR;
}
errorCallback(data);
};
xhr.onreadystatechange = () => {
if (xhr.readyState !== 4) return;
this.deleteCache(newUrl);
if (xhr.status === 200) {
if (completeCallback) {
if (responseType === "arraybuffer") {
xhr.responseType = responseType;
completeCallback(xhr.response);
} else {
try {
const resp: any = JSON.parse(xhr.response);
if (Number(resp.code) === 200 || Number(resp.code) === 406) {
completeCallback(resp.data);
} else {
app.manager.ui.showToast(Tools.GetLocalized(resp.msg));
if (errorCallback) errorCallback(resp.data);
}
} catch (error) {
console.log("解析响应失败:", error);
if (errorCallback) errorCallback({ event: HttpEvent.UNKNOWN_ERROR });
}
}
}
}
};
if (!paramsStr) {
xhr.send();
} else {
xhr.send(paramsStr!);
}
}
private deleteCache(url: string) {
delete urls[url];
delete reqparams[url];
}
}
export let httpRequest = new HttpRequest()

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "58832863-cdb2-4696-85ed-027e9449985d",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "c3f3b179-7966-4963-a10d-f690739ee781",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,34 @@
/** 服务区域 */
export const enum SERVER_EREA {
// 一级棒横版
ZP = 0,
}
/** 当前服务区域配置(根据打包修改) */
export const NOW_SERVER_EREA : SERVER_EREA = SERVER_EREA.ZP;
// 默认地址
const DEFAULT_URL = "https://xyxapi.yuliao666.top"
/** 通用版本 */
const DEFAULT_VERSION = "1.0.5"
/** 测试服版本号 */
const DEFAULT_TEST_VERSION = "1.0.0"
/** 区域打包配置文件 */
const SERVER_CONFIG = {
// 横版一级棒
[0] : {
"server" : DEFAULT_URL,
"site_id" : "ba5ea4dc-75bb-438d-8a3a-b8031ef89426",
"ver" : DEFAULT_TEST_VERSION,
"area" : "86",
}
}
/** 服务器地址 */
export const SERVER_LIST = SERVER_CONFIG[NOW_SERVER_EREA]["server"];
/** Site ID */
export const HTTP_SITE_ID = SERVER_CONFIG[NOW_SERVER_EREA]["site_id"];
/** 当前版本号 */
export const GAME_VER = SERVER_CONFIG[NOW_SERVER_EREA]["ver"];
/** 国家电话区号 */
export const COUNTRY_CODE = SERVER_CONFIG[NOW_SERVER_EREA]["area"];

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "29ef329c-fd90-4d8a-a91a-95ab0b17eace",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,9 @@
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "c1e551ce-e4da-42b1-b6e7-60cf4cf1f45c",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -0,0 +1,627 @@
import { _decorator, SpriteFrame, Node, Sprite, instantiate, Label, Prefab, Color, Size, UITransform, RichText, Component, Texture2D, ImageAsset } from 'cc';
import { httpRequest } from '../network/HttpRequest';
import { app } from '../../app/app';
const { ccclass } = _decorator;
//@ts-ignore
import CryptoJS from "crypto-js";
type ConstructorOf<T> = new (...args: any[]) => T;
// 定义数据接口
interface DataObject {
[key: string]: string | number | boolean;
}
/** 事件名称 */
export enum EventType {
/** 刷新玩家数据 */
RefreshUserInfo = "RefreshUserInfo",
/** 刷新玩家数据成功 */
RefreshUserInfoSuccess = "RefreshUserInfoSuccess",
}
// 定义阈值和对应的num值
const sizeThresholds = [
{ size: 20000000, num: 100 },
{ size: 19000000, num: 95 },
{ size: 18000000, num: 90 },
{ size: 17000000, num: 85 },
{ size: 16000000, num: 80 },
{ size: 15000000, num: 75 },
{ size: 14000000, num: 70 },
{ size: 13000000, num: 65 },
{ size: 12000000, num: 60 },
{ size: 11000000, num: 55 },
{ size: 10000000, num: 50 },
{ size: 9000000, num: 45 },
{ size: 8000000, num: 40 },
{ size: 7000000, num: 35 },
{ size: 6000000, num: 30 },
{ size: 5000000, num: 25 },
{ size: 4000000, num: 20 },
{ size: 3000000, num: 15 },
{ size: 2000000, num: 10 },
{ size: 1000000, num: 5 },
{ size: 500000, num: 2.5 },
{ size: 250000, num: 1.5 }
];
/** 用户代理等级和图片对照表 */
const AGENT_LV_TO_PIC = {
["等级青铜"] : "a",
["等级白银"] : "b",
["等级黄金"] : "c",
["等级VIP"] : "d",
["等级超级VIP"] : "e"
}
/** 通用工具类 */
@ccclass('Tools')
export class Tools
{
//#region Sprite相关操作
/** 设置节点的SpriteFrame 默认从resource/ui下面找 */
static SetSpriteFrame(node:Node, uiname:string, uipath:string, fuc:Function = null) {
app.manager.loader.load({
bundle: "", // 不传入bundle默认为resources
path: 'xxx/xxxx',
type: SpriteFrame,
onComplete(asset){
if (node){
let c = node.getComponent(Sprite)
if (c) c.spriteFrame = asset
if (fuc) fuc()
}
}
})
}
/** 加载远程图片 */
static remoteLoadSprite(url: string, node: Sprite, fuc?: Function) {
app.manager.loader.loadRemote( {
url: url,
ext: null,
onComplete: (result: ImageAsset | null) => {
if (result) {
if(node) {
let sp = new SpriteFrame()
let tex = new Texture2D();
tex.image = result;
sp.texture = tex
node.spriteFrame = sp
if (fuc) fuc()
}
}
}
})
}
/** 设置子节点uisprite */
static SetChildSprite(node:Node, path:string, uiname:string, uipath:string, fuc:Function = null) {
let n = node.getChildByPath(path)
if (n) this.SetSpriteFrame(n, uiname, uipath, fuc)
}
/**
* 设置艺术字
* itemPath:字体预制件位置, numPath:字体图片位置, pre:图片名前缀
*/
// static SetArtNums(str:any, item:Node, itemPath:string = "ui/numbers/num_Item", numPath:string = "ui/numbers", pre:string = "numbers_0") {
// str = String(str)
// item.destroyAllChildren()
// let m_resLoader = new ResLoader();
// m_resLoader.loadPrefabNode(itemPath, (prefab:Node) => {
// console.log(itemPath, prefab)
// // 根据字符串长度,显示对应数量的数字图片
// for (let i = 0; i < str.length; i++) {
// let n = Tools.AddChild(item, prefab, "num_" + i)
// n.active = true
// this.SetSpriteFrame(n, pre + (str[i] == "." ? "dot" : str[i]), numPath)
// }
// })
// }
//#endregion
//#region http相关
/** 发送http请求 */
static httpReq(str:string, param:any, callback:Function, failCallBack:Function = null) {
httpRequest.post("/agent/api/" + str, param, callback, failCallBack)
}
//#endregion
//#region Node 相关
/** 添加子节点 */
static AddChild(node:Node, prefab:Node|Prefab, name:string = null):Node {
var n = instantiate(prefab as Node)
node.addChild(n)
if (name) n.name = name
return n
}
/** 设置子节点显示 */
static ActChild(node:Node, path:string, act:boolean)
{
let n = node.getChildByPath(path)
if (n) n.active = act
}
/** 获取子节点组件 */
static GetChildComp<T extends Component>(node: Node, path: string, compClass: ConstructorOf<T>): T {
return node.getChildByPath(path)?.getComponent(compClass);
}
//#endregion
//#region Text 相关
/** 设置子节点文字 */
static SetText(node:Node, str:string) {
str = String(str)
node.getComponent(Label).string = str
}
/** 设置子节点文字 */
static SetChildText(node:Node, path:string, str:string) {
str = String(str)
let n = node.getChildByPath(path)
n.getComponent(Label).string = str
}
/** 设置子节点文字 */
static SetChildRichText(node:Node, path:string, str:string) {
str = String(str)
let n = node.getChildByPath(path)
n.getComponent(RichText).string = str
}
/** 设置节点文字颜色 */
static SetLabColor(node:Node, str:string) {
node.getComponent(Label).color = Color.fromHEX(new Color(), str)
}
/** 设置子节点字体颜色 */
static SetChildLabColor(node:Node, path:string, str:string) {
let n = node.getChildByPath(path)
n.getComponent(Label).color = Color.fromHEX(new Color(), str)
}
/** 设置节点大小 */
static SetSize(node:Node, size:Size) {
node.getComponent(UITransform).setContentSize(size);
}
/** 设置节点触摸事件 */
static SetTouchEndEvt(node:Node, func:Function) {
node.off(Node.EventType.TOUCH_END)
node.on(Node.EventType.TOUCH_END, func)
}
/** 设置子节点触摸事件 */
static SetChildTouchEndEvt(node:Node, path:string, func:Function) {
let n = node.getChildByPath(path)
if (n) this.SetTouchEndEvt(n, func)
}
//#endregion
//#region 字符串操作
/**
** 替换占位符{0},{1}....
** 例子: const message = Tools.stringFormat("My name is {0} and I am {1} years old.", name, age);
*/
static StringFormat(format: string, ...args: any[]): string {
return format.replace(/{(\d+)}/g, (match, index) => {
return typeof args[index] !== "undefined" ? args[index] : match;
});
}
static StringLFormat(format: string, ...args: any[]): string {
format = this.GetLocalized(format)
return this.StringFormat(format, ...args)
}
//#endregion
//#region 其他
/** 本地化 */
static GetLocalized(str : string) {
return str
//return LabelConfig[str] ? LabelConfig[str][LocalizadManager.getInstance().getLanauge()-1] : str
}
/** 压缩上传图片成base64 */
static CompressImageToBase64(param:any, callback:Function = null){
var fileList = param.files[0];
var reader = new FileReader();
reader.readAsDataURL(fileList);
reader.onload = (event) => {
let image = new Image() //新建一个img标签还没嵌入DOM节点)
var dataImg = event.target.result;
var num = 1;
//@ts-ignore
image.src = event.target.result
image.onload = () => {
//由于不能将太多Base64字符给服务端发过于咱们压缩一下
//如果想支持更大图片,请继续加判断,增加除数
// 检查文件大小是否超过20M
if (fileList.size > 20000000) {
console.log("文件大小不能大于20M");
param.value = '';
return;
}
// 根据文件大小设置num值
for (const threshold of sizeThresholds) {
if (fileList.size > threshold.size) {
num = threshold.num;
break;
}
}
let canvas = document.createElement('canvas');
let context = canvas.getContext('2d');
let imageWidth = image.width / num; //压缩后图片的大小
let imageHeight = image.height / num;
const minSize = 640; // 设置最小尺寸
if (imageWidth < minSize || imageHeight < minSize) {
const scaleFactor = Math.max(minSize / imageWidth, minSize / imageHeight);
imageWidth *= scaleFactor;
imageHeight *= scaleFactor;
}
canvas.width = imageWidth;
canvas.height = imageHeight;
context.drawImage(image, 0, 0, imageWidth, imageHeight);
dataImg = canvas.toDataURL('image/png');
//此时的dataImg就是你要上传给服务器的字符
param.value = '';
if (callback) callback(dataImg)
return dataImg;
}
};
}
/** 生成二维码 */
// static SetQRCode(text: string, item : Node){
// const qr = QRCode(0, 'M');
// qr.addData(text);
// qr.make();
// const dataUrl = qr.createDataURL(4, 4);
// const img = new Image();
// img.src = dataUrl;
// assetManager.loadRemote(dataUrl, {ext : '.png'}, (err, imgAsset: ImageAsset) => {
// if (err) {
// console.error(err.message || err);
// return;
// }
// const sp = new SpriteFrame()
// const tx = new Texture2D()
// tx.image = imgAsset
// sp.texture = tx
// item.getComponent(Sprite).spriteFrame = sp
// })
// }
/** 通过base64字符串设置图片 */
static SetBase64Pic(src: string, node: Node): void {
let image = new Image()
image.src = src // base 64是string看后端返回是二进制是否带头data:image/png;base64, 不带要手动添加
image.onload = () => {
let texture = new Texture2D()
texture.image = new ImageAsset(image)
let _frame = new SpriteFrame()
_frame.texture = texture
// 获取节点的容器
let c = node.getComponent(Sprite)
if (c) c.spriteFrame = _frame
}
}
/** 复制到剪切板 */
static CopyToClipboard(str:string) {
var input = str + '';
const el = document.createElement('textarea');
el.value = input;
el.setAttribute('readonly', '');
el.style.contain = 'strict';
el.style.position = 'absolute';
el.style.left = '-9999px';
el.style.fontSize = '12pt'; // Prevent zooming on iOS
const selection = getSelection();
var originalRange = null;
if (selection.rangeCount > 0) {
originalRange = selection.getRangeAt(0);
}
document.body.appendChild(el);
el.select();
el.selectionStart = 0;
el.selectionEnd = input.length;
var success = false;
try {
success = document.execCommand('copy');
} catch (err) {}
document.body.removeChild(el);
if (originalRange) {
selection.removeAllRanges();
selection.addRange(originalRange);
}
app.manager.ui.showToast("复制成功")
return success;
}
/** 获取代理等级本地化 */
static GetAgentLvLocalized(agentLv:string, lv :number) {
return this.StringFormat(this.GetLocalized(agentLv), lv)
}
/** 设置代理等级图标 */
// static SetAgentLvIcon(item:Node, agentLv:string, lv :number) {
// if (!AGENT_LV_TO_PIC[agentLv]) return
// var icon = "icon" + AGENT_LV_TO_PIC[agentLv] + this.Return2LengthNumber(lv)
// this.SetSpriteFrame(item, icon, "Lobby/ui/allagent/icon")
// }
/** 设置子节点代理等级图标 */
// static SetChildAgentLvIcon(item:Node, path :string, agentLv:string, lv :number) {
// let n = item.getChildByPath(path)
// this.SetAgentLvIcon(n, agentLv, lv)
// }
/** 返回两位数 */
static Return2LengthNumber(n : number) {
return n < 10 ? "0" + n : n.toString()
}
//#endregion
//#region 数学算法
static MathClampZeroToOne(value: number): number {
return Math.max(0, Math.min(1, value));
}
static MathClamp(value: number, min: number, max: number): number {
return Math.max(min, Math.min(max, value));
}
//#endregion
static OpenWeb(url:string) {
const link = document.createElement('a');
link.href = url;
link.target = '_blank';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
/**
* 获取指定长度随机字符串
*/
public static getRandomStr (len:number) {
let chars =
'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz'
let maxPos = chars.length
let pwd = ''
for (let i = 0; i < len; i++) {
pwd += chars.charAt(Math.floor(Math.random() * maxPos))
}
return pwd
}
/**
* 使用 crypto-js 生成签名
* @param data - 要签名的数据
* @param key - 签名密钥
* @param encrypt - 加密算法 (sha1, sha256)
* @returns Promise<string> 签名结果
*/
public static generateSignNative(
data: Record<string, string>,
key: string,
encrypt: string = 'sha256'
): Promise<string> {
// 1. 对数据进行排序
const sortedData = Tools.sortData(data);
// 2. 构建查询字符串(自定义实现)
const queryString = Object.keys(sortedData)
.map(k => encodeURIComponent(k) + "=" + encodeURIComponent(sortedData[k]))
.join("&");
// 3. URL解码并拼接密钥
const decodedString = decodeURIComponent(queryString);
const str = decodedString + key;
// 4. 根据算法生成签名
let hash;
switch (encrypt.toLowerCase()) {
case 'sha1':
hash = CryptoJS.SHA1(str);
break;
case 'sha256':
default:
hash = CryptoJS.SHA256(str);
break;
}
// 5. 返回十六进制字符串
return Promise.resolve(hash.toString(CryptoJS.enc.Hex));
}
// 示例排序函数(你已有的话可以直接用)
public static sortData(data: Record<string, string>): Record<string, string> {
return Object.keys(data)
.sort()
.reduce((acc, key) => {
acc[key] = data[key];
return acc;
}, {} as Record<string, string>);
}
//#region 加密解密
/** 解析JWT令牌 */
public static parseJWT(token: string) {
try {
const parts = token.split('.');
if (parts.length !== 3) {
throw new Error('Invalid JWT token');
}
// 解码 payload 部分(第二部分)
const payload = JSON.parse(atob(parts[1]));
return payload;
} catch (error) {
console.error('Failed to parse JWT token:', error);
return null;
}
}
/**
* 解密 DES-ECB 模式加密的数据
* @param encryptedData base64编码的加密数据
* @param secretKey 8位密钥
* @returns 解密后的字符串
*/
static desEcbDecrypt(encryptedData: string, secretKey: string): string {
try {
// 确保密钥为8位 (PHP的openssl_encrypt会自动截取前8位)
const key = secretKey.length > 8 ? secretKey.substring(0, 8) : this.padKey(secretKey, 8);
// 创建CryptoJS格式的密钥
const keyWordArray = CryptoJS.enc.Utf8.parse(key);
// 解密
const decrypted = CryptoJS.DES.decrypt(
encryptedData,
keyWordArray,
{
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
}
);
return decrypted.toString(CryptoJS.enc.Utf8);
} catch (error) {
console.error('DES-ECB decryption failed:', error);
return '';
}
}
/**
* 加密 DES-ECB 模式数据
* @param data 待加密的数据
* @param secretKey 8位密钥
* @returns base64编码的加密数据
*/
static desEcbEncrypt(data: string, secretKey: string): string {
try {
// 确保密钥为8位
const key = secretKey.length > 8 ? secretKey.substring(0, 8) : this.padKey(secretKey, 8);
// 创建CryptoJS格式的密钥
const keyWordArray = CryptoJS.enc.Utf8.parse(key);
// 加密
const encrypted = CryptoJS.DES.encrypt(
data,
keyWordArray,
{
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
}
);
return encrypted.toString();
} catch (error) {
console.error('DES-ECB encryption failed:', error);
return '';
}
}
/**
* 补齐或截断密钥到指定长度
* @param key 原始密钥
* @param length 目标长度
*/
private static padKey(key: string, length: number): string {
if (key.length > length) {
return key.substring(0, length);
} else if (key.length < length) {
while (key.length < length) {
key += '\0'; // 用null字符补齐
}
return key;
}
return key;
}
/**
* 3DES-ECB 解密 (Triple DES)
* @param encryptedData base64编码的加密数据
* @param secretKey 24位密钥 (3DES需要24字节密钥)
* @returns 解密后的字符串
*/
static tripleDesEcbDecrypt(encryptedData: string, secretKey: string): string {
try {
// 确保密钥为24位
const key = this.padKey(secretKey, 24);
// 创建CryptoJS格式的密钥
const keyWordArray = CryptoJS.enc.Utf8.parse(key);
// 解密
const decrypted = CryptoJS.TripleDES.decrypt(
encryptedData,
keyWordArray,
{
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
}
);
return decrypted.toString(CryptoJS.enc.Utf8);
} catch (error) {
console.error('3DES-ECB decryption failed:', error);
return '';
}
}
/**
* 3DES-ECB 加密 (Triple DES)
* @param data 待加密的数据
* @param secretKey 24位密钥
* @returns base64编码的加密数据
*/
static tripleDesEcbEncrypt(data: string, secretKey: string): string {
try {
// 确保密钥为24位
const key = this.padKey(secretKey, 24);
// 创建CryptoJS格式的密钥
const keyWordArray = CryptoJS.enc.Utf8.parse(key);
// 加密
const encrypted = CryptoJS.TripleDES.encrypt(
data,
keyWordArray,
{
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
}
);
return encrypted.toString();
} catch (error) {
console.error('3DES-ECB encryption failed:', error);
return '';
}
}
//#endregion
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "20f5e370-8629-444b-85bb-ebe2ee037cff",
"files": [],
"subMetas": {},
"userData": {}
}