Commit 6e7c485e authored by haiyoucuv's avatar haiyoucuv

init

parent d449fb88
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "1dd829d7-750d-4b01-8b6c-38d379b1fb65",
"files": [],
"subMetas": {},
"userData": {
"isBundle": true
}
}
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "96e62dd7-077f-46f4-9d7b-f87229f1d62d",
"files": [
".json",
".svga"
],
"subMetas": {},
"userData": {}
}
{
"ver": "1.0.0",
"importer": "*",
"imported": true,
"uuid": "319ea6d0-2efa-4f36-a13f-83598cd1dc8d",
"files": [
".json",
".svga"
],
"subMetas": {},
"userData": {}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "156b8466-839d-4011-b8c4-444a3e43aea8",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "BoxPanel"
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "a24bae72-cd44-4348-8911-01bab1ebf50e",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "OverPanel"
}
}
This diff is collapsed.
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "8d52b28c-227e-4960-a527-931cfa5b4085",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "SucPanel"
}
}
{
"ver": "1.2.0",
"importer": "directory",
"imported": true,
"uuid": "5fece3d5-b8ab-40aa-a69f-eb32d31bfe81",
"files": [],
"subMetas": {},
"userData": {}
}
[
{
"__type__": "cc.Prefab",
"_name": "boxItem",
"_objFlags": 0,
"__editorExtras__": {},
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"persistent": false
},
{
"__type__": "cc.Node",
"_name": "boxItem",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 8
},
{
"__id__": 10
},
{
"__id__": 12
}
],
"_prefab": {
"__id__": 14
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -250,
"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": "Label",
"_objFlags": 0,
"__editorExtras__": {},
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 7
},
"_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__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 4
},
"_contentSize": {
"__type__": "cc.Size",
"width": 91.34765625,
"height": 56.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a1BBCHFs9Ner7N7LFYuvWz"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 2
},
"_enabled": true,
"__prefab": {
"__id__": 6
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_string": "通过1关",
"_horizontalAlign": 1,
"_verticalAlign": 1,
"_actualFontSize": 24,
"_fontSize": 24,
"_fontFamily": "Arial",
"_lineHeight": 40,
"_overflow": 0,
"_enableWrapText": true,
"_font": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_isItalic": false,
"_isBold": false,
"_isUnderline": false,
"_underlineHeight": 2,
"_cacheMode": 0,
"_enableOutline": true,
"_outlineColor": {
"__type__": "cc.Color",
"r": 0,
"g": 94,
"b": 215,
"a": 255
},
"_outlineWidth": 3,
"_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": "bfW9S8tixC7b8ryBW2HeHh"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "3290dNGY5P55Ek8BL8eeTj",
"instance": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
},
{
"__type__": "cc.UITransform",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 9
},
"_contentSize": {
"__type__": "cc.Size",
"width": 78,
"height": 68
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "1elo13tHJFZYKsV72AqzIn"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 11
},
"_customMaterial": null,
"_srcBlendFactor": 2,
"_dstBlendFactor": 4,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_spriteFrame": {
"__uuid__": "440b5af3-fc8b-4956-98a9-d4f2907b9a0f@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": "daAo0nfq9JELC0x41y6/Ay"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 1
},
"_enabled": true,
"__prefab": {
"__id__": 13
},
"clickEvents": [],
"_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.05,
"_zoomScale": 0.9,
"_target": null,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "17bHk/YXlJob6r/J63PnKE"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__id__": 0
},
"fileId": "47MBiAYwRLnbXeVS9lV1sR",
"instance": null,
"targetOverrides": null
}
]
\ No newline at end of file
{
"ver": "1.1.50",
"importer": "prefab",
"imported": true,
"uuid": "00b5739c-05b1-472f-886b-ca6c52862700",
"files": [
".json"
],
"subMetas": {},
"userData": {
"syncNodeName": "boxItem"
}
}
import { _decorator, Node } from 'cc';
import Panel from "db://assets/core/Module/Panel";
import Svga from "db://assets/core/Component/Svga/Svga";
const { ccclass, property } = _decorator;
@ccclass('BoxPanel')
export class BoxPanel extends Panel {
static skin: string = "BoxPanel";
static bundle: string = "BoxPanel";
@property(Svga) boxSvga: Svga = null;
onLoad() {
super.onLoad();
this.boxSvga.play();
this.boxSvga.node.on(Svga.EventType.END_FRAME, this.onEndFrame, this);
}
start(): void {
}
onEndFrame = () => {
console.log(this.data);
}
}
{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"82b0795b-3fd1-44c4-bee1-570ec60de2d9","files":[],"subMetas":{},"userData":{}}
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('OverPanel')
export class OverPanel extends Panel {
static skin: string = "OverPanel";
static bundle: string = "GamePanel";
@property(Node) okBtn: Node = null;
@property(Node) closeBtn: Node = null;
@property(Label) tip: Label = null;
@property(Label) tip2: 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":"c7e02c3f-4c04-4a65-9e9c-698ee23e653b","files":[],"subMetas":{},"userData":{}}
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('SucPanel')
export class SucPanel extends Panel {
static skin: string = "SucPanel";
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