Commit 2c4a0792 authored by haiyoucuv's avatar haiyoucuv

init

parent 2d1b28a3
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "a24bae72-cd44-4348-8911-01bab1ebf50e",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "NoPrizePanel"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "78a597fc-4f7b-4fed-bfc7-1468ed73391e",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "78a597fc-4f7b-4fed-bfc7-1468ed73391e@6c48a",
"displayName": "noPrizeBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "78a597fc-4f7b-4fed-bfc7-1468ed73391e",
"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": "78a597fc-4f7b-4fed-bfc7-1468ed73391e@f9941",
"displayName": "noPrizeBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 582,
"height": 519,
"rawWidth": 582,
"rawHeight": 519,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-291,
-259.5,
0,
291,
-259.5,
0,
-291,
259.5,
0,
291,
259.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
519,
582,
519,
0,
0,
582,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-291,
-259.5,
0
],
"maxPos": [
291,
259.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "78a597fc-4f7b-4fed-bfc7-1468ed73391e@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "78a597fc-4f7b-4fed-bfc7-1468ed73391e@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "f2319fb6-7453-480a-b3b7-e55145424263",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "f2319fb6-7453-480a-b3b7-e55145424263@6c48a",
"displayName": "tip",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "f2319fb6-7453-480a-b3b7-e55145424263",
"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": "f2319fb6-7453-480a-b3b7-e55145424263@f9941",
"displayName": "tip",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 133,
"height": 32,
"rawWidth": 133,
"rawHeight": 32,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-66.5,
-16,
0,
66.5,
-16,
0,
-66.5,
16,
0,
66.5,
16,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
32,
133,
32,
0,
0,
133,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-66.5,
-16,
0
],
"maxPos": [
66.5,
16,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "f2319fb6-7453-480a-b3b7-e55145424263@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "f2319fb6-7453-480a-b3b7-e55145424263@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "4fee771a-c621-45c0-bd19-8ce65d4d4371",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "4fee771a-c621-45c0-bd19-8ce65d4d4371@6c48a",
"displayName": "再玩一次",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "4fee771a-c621-45c0-bd19-8ce65d4d4371",
"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": "4fee771a-c621-45c0-bd19-8ce65d4d4371@f9941",
"displayName": "再玩一次",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 294,
"height": 77,
"rawWidth": 294,
"rawHeight": 77,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-147,
-38.5,
0,
147,
-38.5,
0,
-147,
38.5,
0,
147,
38.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
77,
294,
77,
0,
0,
294,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-147,
-38.5,
0
],
"maxPos": [
147,
38.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "4fee771a-c621-45c0-bd19-8ce65d4d4371@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "4fee771a-c621-45c0-bd19-8ce65d4d4371@6c48a"
}
}
import { _decorator, Button, 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 { changeScene, showShareGuide } from "db://assets/core/Module/UIFast";
import { MainGame } from "db://assets/Scripts/Scenes/MainGame/MainGame";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
const { ccclass, property } = _decorator;
@ccclass('NoPrizePanel')
export class NoPrizePanel extends Panel {
static skin: string = "NoPrizePanel";
static bundle: string = "GamePanel";
@property(Node) okBtn: 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(Button.EventType.CLICK, this.ok, this);
this.closeBtn.on(Button.EventType.CLICK, this.cancel, this);
}
start(): void {
}
cancel = () => {
AudioMgr.ins.playOneShot(AudioClipName.button_ok);
this.hidePanel();
}
ok = () => {
AudioMgr.ins.playOneShot(AudioClipName.button_ok);
this.hidePanel();
changeScene(HomeScene);
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"c7e02c3f-4c04-4a65-9e9c-698ee23e653b","files":[],"subMetas":{},"userData":{}}
import { _decorator, Label, Node, Sprite, SpriteFrame } from 'cc'; import { _decorator, Button, Label, Node, Sprite, SpriteFrame } from 'cc';
import { CarColorsGlobalInstance } from 'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance'; import { CarColorsGlobalInstance } from 'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance';
import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr"; import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import Panel from "db://assets/core/Module/Panel"; import Panel from "db://assets/core/Module/Panel";
...@@ -23,9 +23,9 @@ export class ReviewPanel extends Panel { ...@@ -23,9 +23,9 @@ export class ReviewPanel extends Panel {
onLoad() { onLoad() {
super.onLoad(); super.onLoad();
this.okBtn.on(Node.EventType.TOUCH_END, this.ok, this); this.okBtn.on(Button.EventType.CLICK, this.ok, this);
this.cancelBtn.on(Node.EventType.TOUCH_END, this.cancel, this); this.cancelBtn.on(Button.EventType.CLICK, this.cancel, this);
this.closeBtn.on(Node.EventType.TOUCH_END, this.cancel, this); this.closeBtn.on(Button.EventType.CLICK, this.cancel, this);
} }
start(): void { start(): void {
......
import { _decorator, Label, Node, Sprite, SpriteFrame } from 'cc'; import { _decorator, Button, Label, Node, Sprite, SpriteFrame } from 'cc';
import { CarColorsGlobalInstance } from 'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance'; import { CarColorsGlobalInstance } from 'db://assets/CarColorsGame/Scrips/CarColorsGlobalInstance';
import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr"; import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import Panel from "db://assets/core/Module/Panel"; import Panel from "db://assets/core/Module/Panel";
...@@ -22,9 +22,9 @@ export class UnlockPanel extends Panel { ...@@ -22,9 +22,9 @@ export class UnlockPanel extends Panel {
onLoad() { onLoad() {
super.onLoad(); super.onLoad();
this.okBtn.on(Node.EventType.TOUCH_END, this.ok, this); this.okBtn.on(Button.EventType.CLICK, this.ok, this);
this.cancelBtn.on(Node.EventType.TOUCH_END, this.cancel, this); this.cancelBtn.on(Button.EventType.CLICK, this.cancel, this);
this.closeBtn.on(Node.EventType.TOUCH_END, this.cancel, this); this.closeBtn.on(Button.EventType.CLICK, this.cancel, this);
} }
start(): void { start(): void {
......
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