Commit 7acf7e4c authored by haiyoucuv's avatar haiyoucuv

init

parent 45d45205
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "57b5028e-63ea-48a8-bc02-a67525202f52",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "PrizePanel"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "8e597a70-2fbd-4636-a100-6d33455e3ea2",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "8e597a70-2fbd-4636-a100-6d33455e3ea2@6c48a",
"displayName": "prizeBg",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "8e597a70-2fbd-4636-a100-6d33455e3ea2",
"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": "8e597a70-2fbd-4636-a100-6d33455e3ea2@f9941",
"displayName": "prizeBg",
"id": "f9941",
"name": "spriteFrame",
"userData": {
"trimThreshold": 1,
"rotated": false,
"offsetX": 0,
"offsetY": 0,
"trimX": 0,
"trimY": 0,
"width": 582,
"height": 619,
"rawWidth": 582,
"rawHeight": 619,
"borderTop": 0,
"borderBottom": 0,
"borderLeft": 0,
"borderRight": 0,
"packable": true,
"pixelsToUnit": 100,
"pivotX": 0.5,
"pivotY": 0.5,
"meshType": 0,
"vertices": {
"rawPosition": [
-291,
-309.5,
0,
291,
-309.5,
0,
-291,
309.5,
0,
291,
309.5,
0
],
"indexes": [
0,
1,
2,
2,
1,
3
],
"uv": [
0,
619,
582,
619,
0,
0,
582,
0
],
"nuv": [
0,
0,
1,
0,
0,
1,
1,
1
],
"minPos": [
-291,
-309.5,
0
],
"maxPos": [
291,
309.5,
0
]
},
"isUuid": true,
"imageUuidOrDatabaseUri": "8e597a70-2fbd-4636-a100-6d33455e3ea2@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "8e597a70-2fbd-4636-a100-6d33455e3ea2@6c48a"
}
}
{
"ver": "1.0.27",
"importer": "image",
"imported": true,
"uuid": "7baf6c34-b3fb-4720-8811-45727ded4756",
"files": [
".json",
".png"
],
"subMetas": {
"6c48a": {
"importer": "texture",
"uuid": "7baf6c34-b3fb-4720-8811-45727ded4756@6c48a",
"displayName": "开启宝箱",
"id": "6c48a",
"name": "texture",
"userData": {
"wrapModeS": "clamp-to-edge",
"wrapModeT": "clamp-to-edge",
"imageUuidOrDatabaseUri": "7baf6c34-b3fb-4720-8811-45727ded4756",
"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": "7baf6c34-b3fb-4720-8811-45727ded4756@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": "7baf6c34-b3fb-4720-8811-45727ded4756@6c48a",
"atlasUuid": "",
"trimType": "auto"
},
"ver": "1.0.12",
"imported": true,
"files": [
".json"
],
"subMetas": {}
}
},
"userData": {
"type": "sprite-frame",
"hasAlpha": true,
"fixAlphaTransparencyArtifacts": false,
"redirect": "7baf6c34-b3fb-4720-8811-45727ded4756@6c48a"
}
}
import { _decorator, Button, Label, Node, Sprite, SpriteFrame } from 'cc';
import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import Panel from "db://assets/core/Module/Panel";
import { changeScene } from "db://assets/core/Module/UIFast";
import { HomeScene } from "db://assets/Scripts/Scenes/HomeScene";
const { ccclass, property } = _decorator;
@ccclass('PrizePanel')
export class PrizePanel extends Panel {
static skin: string = "PrizePanel";
static bundle: string = "GamePanel";
@property(Node) okBtn: Node = null;
@property(Node) closeBtn: Node = null;
@property(Label) levelNum: Label = null;
@property(Label) boxNum: Label = 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":"8be1d565-3d12-4c16-a6ac-e5092994e62b","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