Commit 27d295ea authored by haiyoucuv's avatar haiyoucuv

init

parent bf51acc7
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"d40d19f8-eda5-486f-9af3-e11806edcc3a","files":[],"subMetas":{},"userData":{"isBundle":true}}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "60bed32d-e2fc-47ba-8264-fc9b38058d02",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "ReviewPanel"
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "b335eac1-a392-4aff-b25c-6c1294a6fcdc",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "UnlockPanel"
}
}
{"ver":"1.2.0","importer":"directory","imported":true,"uuid":"ccedc5b7-bad6-4c97-b91c-b655cde4301c","files":[],"subMetas":{},"userData":{}}
{
"__type__": "cc.SpriteAtlas"
}
{"ver":"1.0.8","importer":"auto-atlas","imported":true,"uuid":"3ef6602e-d3de-43bd-baa1-34fe0a23c206","files":[".json"],"subMetas":{},"userData":{"maxWidth":2048,"maxHeight":2048,"padding":2,"allowRotation":true,"forceSquared":false,"powerOfTwo":false,"algorithm":"MaxRects","format":"png","quality":80,"contourBleed":true,"paddingBleed":true,"filterUnused":false,"removeTextureInBundle":true,"removeImageInBundle":true,"removeSpriteAtlasInBundle":true,"compressSettings":{},"textureSetting":{"wrapModeS":"repeat","wrapModeT":"repeat","minfilter":"linear","magfilter":"linear","mipfilter":"none","anisotropy":0}}}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8d0f6ebc-6461-4a81-9225-90f63591adbe",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8d0f6ebc-6461-4a81-9225-90f63591adbe@6c48a",
"displayName": "reviewBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8d0f6ebc-6461-4a81-9225-90f63591adbe",
"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": "8d0f6ebc-6461-4a81-9225-90f63591adbe@f9941",
"displayName": "reviewBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 582,
"height": 639,
"rawWidth": 582,
"rawHeight": 639,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-291,
-319.5,
0,
291,
-319.5,
0,
-291,
319.5,
0,
291,
319.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
639,
582,
639,
0,
0,
582,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-291,
-319.5,
0
],
"maxPos": [
291,
319.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8d0f6ebc-6461-4a81-9225-90f63591adbe@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8d0f6ebc-6461-4a81-9225-90f63591adbe@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "1af47d8a-9ed9-475e-a53c-c581bee309b7",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "1af47d8a-9ed9-475e-a53c-c581bee309b7@6c48a",
"displayName": "unlockBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "1af47d8a-9ed9-475e-a53c-c581bee309b7",
"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": "1af47d8a-9ed9-475e-a53c-c581bee309b7@f9941",
"displayName": "unlockBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 582,
"height": 639,
"rawWidth": 582,
"rawHeight": 639,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-291,
-319.5,
0,
291,
-319.5,
0,
-291,
319.5,
0,
291,
319.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
639,
582,
639,
0,
0,
582,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-291,
-319.5,
0
],
"maxPos": [
291,
319.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "1af47d8a-9ed9-475e-a53c-c581bee309b7@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "1af47d8a-9ed9-475e-a53c-c581bee309b7@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "78ebacf5-5777-4854-acaf-4b16960ea6ed",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "78ebacf5-5777-4854-acaf-4b16960ea6ed@6c48a",
"displayName": "光",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "78ebacf5-5777-4854-acaf-4b16960ea6ed",
"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": "78ebacf5-5777-4854-acaf-4b16960ea6ed@f9941",
"displayName": "光",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 750,
"height": 974,
"rawWidth": 750,
"rawHeight": 974,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-375,
-487,
0,
375,
-487,
0,
-375,
487,
0,
375,
487,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
974,
750,
974,
0,
0,
750,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-375,
-487,
0
],
"maxPos": [
375,
487,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "78ebacf5-5777-4854-acaf-4b16960ea6ed@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "78ebacf5-5777-4854-acaf-4b16960ea6ed@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "09964a76-6b3b-44ed-b6af-5a6879fb8539",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "09964a76-6b3b-44ed-b6af-5a6879fb8539@6c48a",
"displayName": "取消",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "09964a76-6b3b-44ed-b6af-5a6879fb8539",
"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": "09964a76-6b3b-44ed-b6af-5a6879fb8539@f9941",
"displayName": "取消",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 174,
"height": 77,
"rawWidth": 174,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-87,
-38.5,
0,
87,
-38.5,
0,
-87,
38.5,
0,
87,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
174,
77,
0,
0,
174,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-87,
-38.5,
0
],
"maxPos": [
87,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "09964a76-6b3b-44ed-b6af-5a6879fb8539@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "09964a76-6b3b-44ed-b6af-5a6879fb8539@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "07fa2f84-3ba4-48b4-b091-c039fa89b832",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "07fa2f84-3ba4-48b4-b091-c039fa89b832@6c48a",
"displayName": "确认消耗",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "07fa2f84-3ba4-48b4-b091-c039fa89b832",
"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": "07fa2f84-3ba4-48b4-b091-c039fa89b832@f9941",
"displayName": "确认消耗",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 234,
"height": 77,
"rawWidth": 234,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-117,
-38.5,
0,
117,
-38.5,
0,
-117,
38.5,
0,
117,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
234,
77,
0,
0,
234,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-117,
-38.5,
0
],
"maxPos": [
117,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "07fa2f84-3ba4-48b4-b091-c039fa89b832@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "07fa2f84-3ba4-48b4-b091-c039fa89b832@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@6c48a",
"displayName": "立即分享",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed",
"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": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@f9941",
"displayName": "立即分享",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 234,
"height": 77,
"rawWidth": 234,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-117,
-38.5,
0,
117,
-38.5,
0,
-117,
38.5,
0,
117,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
234,
77,
0,
0,
234,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-117,
-38.5,
0
],
"maxPos": [
117,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "ccfa1794-4f7c-40ab-b14b-f8bfbccd54ed@6c48a"
}
}
import { _decorator, Label, Node, Sprite, SpriteFrame } from 'cc';
import { CarColorsGlobalInstance } from 'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance';
import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import Panel from "db://assets/core/Module/Panel";
import { showShareGuide } from "db://assets/core/Module/UIFast";
import { MainGame } from "db://assets/Scripts/Scenes/MainGame/MainGame";
const { ccclass, property } = _decorator;
@ccclass('ReviewPanel')
export class ReviewPanel extends Panel {
static skin: string = "ReviewPanel";
static bundle: string = "GamePanel";
@property(Node) okBtn: Node = null;
@property(Node) cancelBtn: Node = null;
@property(Node) closeBtn: Node = null;
@property(Label) tip: Label = null;
@property(SpriteFrame) shareSf: SpriteFrame = null;
@property(SpriteFrame) exchangeSf: SpriteFrame = null;
onLoad() {
super.onLoad();
this.okBtn.on(Node.EventType.TOUCH_END, this.ok, this);
this.cancelBtn.on(Node.EventType.TOUCH_END, this.cancel, this);
this.closeBtn.on(Node.EventType.TOUCH_END, this.cancel, this);
}
start(): void {
const { type } = this.data;
const isShare = type == "share";
this.okBtn.getComponent(Sprite).spriteFrame = isShare ? this.shareSf : this.exchangeSf;
// 分享给好友复活 并解锁1个车位
// 消耗x积分复活 并解锁1个车位
// 消耗x青果复活 并解锁1个车位
}
hidePanel() {
super.hidePanel();
CarColorsGlobalInstance.instance.roleSysterm.isGaming = true
}
cancel = () => {
AudioMgr.ins.playOneShot(AudioClipName.button_ok);
this.hidePanel();
}
ok = () => {
const { type } = this.data;
if (type == "share") {
showShareGuide();
setTimeout(() => {
MainGame.ins.shareUnlock();
}, 2500);
} else {
}
AudioMgr.ins.playOneShot(AudioClipName.button_ok);
this.hidePanel();
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"02a7009c-146d-4120-9518-bee85819a480","files":[],"subMetas":{},"userData":{}}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment