性能优化,对象池管理弹窗和其他组件

This commit is contained in:
贝密游戏
2017-08-05 18:04:59 +08:00
parent b112184546
commit 70a4a77910
33 changed files with 4891 additions and 3954 deletions

View File

@@ -0,0 +1,6 @@
{
"ver": "1.0.1",
"uuid": "19ba101d-e713-4326-8f16-971ad9e102db",
"isGroup": false,
"subMetas": {}
}

View File

@@ -0,0 +1,987 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_rawFiles": null,
"data": {
"__id__": 1
}
},
{
"__type__": "cc.Node",
"_name": "dialog",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 7
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": {
"__id__": 31
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "shade",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 6
},
"_id": "",
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 167,
"g": 167,
"b": 167,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_resize": 0,
"_N$layoutType": 0,
"_N$padding": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0
},
{
"__type__": "14bfe1GqB5C77bPnI+ETJt7",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "4c78ajn2H9JjZqvvf3CZWUx",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "layout",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
},
{
"__id__": 21
},
{
"__id__": 16
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
}
],
"_prefab": {
"__id__": 30
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 167,
"g": 167,
"b": 167,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 815,
"height": 473
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 19,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 9
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 20
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 167,
"height": 68
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -129,
"y": -67
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "确认按钮",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "031fehFnPhAdYJluBGIOemf",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"transition": 3,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"clickEvents": [
{
"__id__": 14
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
}
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 15
},
"component": "dialog",
"handler": "onCloseClick",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "dialog",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 18
}
],
"_prefab": {
"__id__": 19
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "action",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 15
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": {
"__id__": 17
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "1db83Mga8RFgqAX1yMPOt1P",
"sync": false
},
{
"__type__": "16d18o/xiJL/7rFDrEjg4ir",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "92e92oXAfZAv604wDznNSp6",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "a7610yyImBJ36e9Z29uacuy",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 22
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": {
"__id__": 27
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 70
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 189,
"y": -70
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "关闭按钮",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "e6813+yf0BOtZm/bosRkKH4",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"transition": 3,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 21
}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "15358oAdRhKLaJDnJSV+KCg",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 3,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 815,
"height": 473
},
"_resize": 0,
"_N$layoutType": 0,
"_N$padding": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "717f6BCMvJFT7itjm7p7P2C",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "f30aaj50iJIBIxHzz4QfH8b",
"sync": false
}
]

View File

@@ -0,0 +1,6 @@
{
"ver": "1.0.0",
"uuid": "fc609d55-9908-4bbe-ab60-f53f3a411653",
"asyncLoadAssets": false,
"subMetas": {}
}

File diff suppressed because it is too large Load Diff

View File

@@ -16,22 +16,41 @@ cc.Class({
onLoad: function () {
var self = this;
this._dialog = cc.find("Canvas/dialog");
this._button = cc.find("Canvas/button");
this._button.active = false ;
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
},
onClick:function(){
this._dialog.active = false ;
this._button.active = true ;
let root = cc.find("Canvas");
if (cc.tools.dialogNodePool.size() > 0) {
cc.tools.dialog = cc.tools.dialogNodePool.get();
if(cc.tools.dialog !== null){
cc.tools.dialog.parent = root ;
cc.tools.dialog.position = cc.p(0 , 0 ) ;
cc.tools.dialog.on(cc.Node.EventType.TOUCH_START, function(e){
e.stopPropagation();
});
}
}
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
this._animCtrl.play("girl_to_left");
},
onShowClick:function(){
this._button.active = false ;
this._dialog.active = true ;
var anim = this.getComponent(cc.Animation);
onCloseClick:function(){
if(cc.tools.dialog){
/**
* 对象池返回, 释放资源 同时 解除 事件绑定
*
*/
cc.tools.dialog.off(cc.Node.EventType.TOUCH_START, function(e){
e.stopPropagation();
});
cc.tools.dialogNodePool.put(cc.tools.dialog);
cc.tools.dialog = null ;
}
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
this._animCtrl.play("girl_to_right");
//this._animCtrl.play("girl_to_right");
}
// called every frame, uncomment this function to activate update callback

View File

@@ -0,0 +1,29 @@
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null, // The default value will be used only when the component attaching
// to a node for the first time
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
},
// use this for initialization
onLoad: function () {
this.node.opacity = 50;
this.node.on(cc.Node.EventType.TOUCH_START, function (e) {
e.stopPropagation();
});
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "14bfed46-a81e-42ef-b6cf-9c8f844c9b7b",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

View File

@@ -0,0 +1,6 @@
{
"ver": "1.0.1",
"uuid": "b492ad5f-c227-4885-9d1c-244033ae4b05",
"isGroup": false,
"subMetas": {}
}

View File

@@ -0,0 +1,30 @@
cc.Class({
extends: cc.Component,
properties: {
root: {
default: null,
type: cc.Node
},
prefab: {
default: null,
type: cc.Prefab
},
canvas: {
default: null,
type: cc.Canvas
}
},
// use this for initialization
onLoad: function () {
cc.tools.dialogNodePool = new cc.NodePool();
let dialog = cc.instantiate(this.prefab);
cc.tools.dialogNodePool.put(dialog);
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,9 @@
{
"ver": "1.0.5",
"uuid": "e9755130-3682-4520-8786-4d439479ed02",
"isPlugin": false,
"loadPluginInWeb": true,
"loadPluginInNative": true,
"loadPluginInEditor": false,
"subMetas": {}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,33 @@
"use strict";
cc._RF.push(module, '14bfe1GqB5C77bPnI+ETJt7', 'event');
// script/action/login/event.js
"use strict";
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null, // The default value will be used only when the component attaching
// to a node for the first time
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
},
// use this for initialization
onLoad: function onLoad() {
this.node.opacity = 50;
this.node.on(cc.Node.EventType.TOUCH_START, function (e) {
e.stopPropagation();
});
}
});
cc._RF.pop();

View File

@@ -0,0 +1 @@
{"version":3,"sources":["assets\\script\\action\\login\\event.js"],"names":["cc","Class","extends","Component","properties","onLoad","node","opacity","on","Node","EventType","TOUCH_START","e","stopPropagation"],"mappings":";;;;;;AAAAA,GAAGC,KAAH,CAAS;AACLC,aAASF,GAAGG,SADP;;AAGLC,gBAAY;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVQ,KAHP;;AAgBL;AACAC,YAAQ,kBAAY;AAChB,aAAKC,IAAL,CAAUC,OAAV,GAAoB,EAApB;AACC,aAAKD,IAAL,CAAUE,EAAV,CAAaR,GAAGS,IAAH,CAAQC,SAAR,CAAkBC,WAA/B,EAA4C,UAAUC,CAAV,EAAa;AACtDA,cAAEC,eAAF;AACH,SAFA;AAGJ;;AAtBI,CAAT","file":"unknown","sourcesContent":["cc.Class({\r\n extends: cc.Component,\r\n\r\n properties: {\r\n // foo: {\r\n // default: null, // The default value will be used only when the component attaching\r\n // to a node for the first time\r\n // url: cc.Texture2D, // optional, default is typeof default\r\n // serializable: true, // optional, default is true\r\n // visible: true, // optional, default is true\r\n // displayName: 'Foo', // optional\r\n // readonly: false, // optional, default is false\r\n // },\r\n // ...\r\n },\r\n\r\n // use this for initialization\r\n onLoad: function () {\r\n this.node.opacity = 50;\r\n this.node.on(cc.Node.EventType.TOUCH_START, function (e) {\r\n e.stopPropagation();\r\n });\r\n },\r\n\r\n // called every frame, uncomment this function to activate update callback\r\n // update: function (dt) {\r\n\r\n // },\r\n});\r\n"]}

View File

@@ -22,22 +22,41 @@ cc.Class({
onLoad: function onLoad() {
var self = this;
this._dialog = cc.find("Canvas/dialog");
this._button = cc.find("Canvas/button");
this._button.active = false;
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
},
onClick: function onClick() {
this._dialog.active = false;
this._button.active = true;
var root = cc.find("Canvas");
if (cc.tools.dialogNodePool.size() > 0) {
cc.tools.dialog = cc.tools.dialogNodePool.get();
if (cc.tools.dialog !== null) {
cc.tools.dialog.parent = root;
cc.tools.dialog.position = cc.p(0, 0);
cc.tools.dialog.on(cc.Node.EventType.TOUCH_START, function (e) {
e.stopPropagation();
});
}
}
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
this._animCtrl.play("girl_to_left");
},
onShowClick: function onShowClick() {
this._button.active = false;
this._dialog.active = true;
var anim = this.getComponent(cc.Animation);
onCloseClick: function onCloseClick() {
if (cc.tools.dialog) {
/**
* 对象池返回, 释放资源 同时 解除 事件绑定
*
*/
cc.tools.dialog.off(cc.Node.EventType.TOUCH_START, function (e) {
e.stopPropagation();
});
cc.tools.dialogNodePool.put(cc.tools.dialog);
cc.tools.dialog = null;
}
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
this._animCtrl.play("girl_to_right");
//this._animCtrl.play("girl_to_right");
}
// called every frame, uncomment this function to activate update callback

View File

@@ -1 +1 @@
{"version":3,"sources":["assets\\script\\action\\login\\dialog.js"],"names":["cc","Class","extends","Component","properties","onLoad","self","_dialog","find","_button","active","_girl","_animCtrl","getComponent","Animation","onClick","play","onShowClick","anim"],"mappings":";;;;;;AAAAA,GAAGC,KAAH,CAAS;AACLC,aAASF,GAAGG,SADP;;AAGLC,gBAAY;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVQ,KAHP;;AAgBLC,YAAQ,kBAAY;AAChB,YAAIC,OAAO,IAAX;AACA,aAAKC,OAAL,GAAeP,GAAGQ,IAAH,CAAQ,eAAR,CAAf;AACA,aAAKC,OAAL,GAAeT,GAAGQ,IAAH,CAAQ,eAAR,CAAf;AACA,aAAKC,OAAL,CAAaC,MAAb,GAAsB,KAAtB;AACA,aAAKC,KAAL,GAAaX,GAAGQ,IAAH,CAAQ,+BAAR,CAAb;AACA,aAAKI,SAAL,GAAiB,KAAKD,KAAL,CAAWE,YAAX,CAAwBb,GAAGc,SAA3B,CAAjB;AACH,KAvBI;AAwBLC,aAAQ,mBAAU;AACd,aAAKR,OAAL,CAAaG,MAAb,GAAsB,KAAtB;AACA,aAAKD,OAAL,CAAaC,MAAb,GAAsB,IAAtB;AACA,aAAKE,SAAL,CAAeI,IAAf,CAAoB,cAApB;AACH,KA5BI;AA6BLC,iBAAY,uBAAU;AAClB,aAAKR,OAAL,CAAaC,MAAb,GAAsB,KAAtB;AACA,aAAKH,OAAL,CAAaG,MAAb,GAAsB,IAAtB;AACA,YAAIQ,OAAO,KAAKL,YAAL,CAAkBb,GAAGc,SAArB,CAAX;AACA,aAAKF,SAAL,CAAeI,IAAf,CAAoB,eAApB;AACH;;AAED;AACA;;AAEA;AAvCK,CAAT","file":"unknown","sourcesContent":["cc.Class({\r\n extends: cc.Component,\r\n\r\n properties: {\r\n // foo: {\r\n // default: null, // The default value will be used only when the component attaching\r\n // to a node for the first time\r\n // url: cc.Texture2D, // optional, default is typeof default\r\n // serializable: true, // optional, default is true\r\n // visible: true, // optional, default is true\r\n // displayName: 'Foo', // optional\r\n // readonly: false, // optional, default is false\r\n // },\r\n // ...\r\n },\r\n\r\n onLoad: function () {\r\n var self = this;\r\n this._dialog = cc.find(\"Canvas/dialog\");\r\n this._button = cc.find(\"Canvas/button\");\r\n this._button.active = false ;\r\n this._girl = cc.find(\"Canvas/splash/background/girl\");\r\n this._animCtrl = this._girl.getComponent(cc.Animation);\r\n },\r\n onClick:function(){\r\n this._dialog.active = false ;\r\n this._button.active = true ;\r\n this._animCtrl.play(\"girl_to_left\");\r\n },\r\n onShowClick:function(){\r\n this._button.active = false ;\r\n this._dialog.active = true ;\r\n var anim = this.getComponent(cc.Animation);\r\n this._animCtrl.play(\"girl_to_right\");\r\n }\r\n\r\n // called every frame, uncomment this function to activate update callback\r\n // update: function (dt) {\r\n\r\n // },\r\n});\r\n"]}
{"version":3,"sources":["assets\\script\\action\\login\\dialog.js"],"names":["cc","Class","extends","Component","properties","onLoad","self","onClick","root","find","tools","dialogNodePool","size","dialog","get","parent","position","p","on","Node","EventType","TOUCH_START","e","stopPropagation","_girl","_animCtrl","getComponent","Animation","play","onCloseClick","off","put"],"mappings":";;;;;;AAAAA,GAAGC,KAAH,CAAS;AACLC,aAASF,GAAGG,SADP;;AAGLC,gBAAY;AACR;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVQ,KAHP;;AAgBLC,YAAQ,kBAAY;AAChB,YAAIC,OAAO,IAAX;AACH,KAlBI;AAmBLC,aAAQ,mBAAU;AACd,YAAIC,OAAOR,GAAGS,IAAH,CAAQ,QAAR,CAAX;AACA,YAAIT,GAAGU,KAAH,CAASC,cAAT,CAAwBC,IAAxB,KAAiC,CAArC,EAAwC;AACpCZ,eAAGU,KAAH,CAASG,MAAT,GAAkBb,GAAGU,KAAH,CAASC,cAAT,CAAwBG,GAAxB,EAAlB;;AAEA,gBAAGd,GAAGU,KAAH,CAASG,MAAT,KAAoB,IAAvB,EAA4B;AACxBb,mBAAGU,KAAH,CAASG,MAAT,CAAgBE,MAAhB,GAAyBP,IAAzB;AACAR,mBAAGU,KAAH,CAASG,MAAT,CAAgBG,QAAhB,GAA2BhB,GAAGiB,CAAH,CAAK,CAAL,EAAS,CAAT,CAA3B;;AAEAjB,mBAAGU,KAAH,CAASG,MAAT,CAAgBK,EAAhB,CAAmBlB,GAAGmB,IAAH,CAAQC,SAAR,CAAkBC,WAArC,EAAkD,UAASC,CAAT,EAAW;AACzDA,sBAAEC,eAAF;AACH,iBAFD;AAGH;AACJ;AACD,aAAKC,KAAL,GAAaxB,GAAGS,IAAH,CAAQ,+BAAR,CAAb;AACA,aAAKgB,SAAL,GAAiB,KAAKD,KAAL,CAAWE,YAAX,CAAwB1B,GAAG2B,SAA3B,CAAjB;AACA,aAAKF,SAAL,CAAeG,IAAf,CAAoB,cAApB;AACH,KApCI;AAqCLC,kBAAa,wBAAU;AACnB,YAAG7B,GAAGU,KAAH,CAASG,MAAZ,EAAmB;AACf;;;;AAIAb,eAAGU,KAAH,CAASG,MAAT,CAAgBiB,GAAhB,CAAoB9B,GAAGmB,IAAH,CAAQC,SAAR,CAAkBC,WAAtC,EAAmD,UAASC,CAAT,EAAW;AAC1DA,kBAAEC,eAAF;AACH,aAFD;AAGAvB,eAAGU,KAAH,CAASC,cAAT,CAAwBoB,GAAxB,CAA4B/B,GAAGU,KAAH,CAASG,MAArC;AACAb,eAAGU,KAAH,CAASG,MAAT,GAAkB,IAAlB;AACH;AACD,aAAKW,KAAL,GAAaxB,GAAGS,IAAH,CAAQ,+BAAR,CAAb;AACA,aAAKgB,SAAL,GAAiB,KAAKD,KAAL,CAAWE,YAAX,CAAwB1B,GAAG2B,SAA3B,CAAjB;AACA,aAAKF,SAAL,CAAeG,IAAf,CAAoB,eAApB;AACA;AACH;;AAED;AACA;;AAEA;AA1DK,CAAT","file":"unknown","sourcesContent":["cc.Class({\r\n extends: cc.Component,\r\n\r\n properties: {\r\n // foo: {\r\n // default: null, // The default value will be used only when the component attaching\r\n // to a node for the first time\r\n // url: cc.Texture2D, // optional, default is typeof default\r\n // serializable: true, // optional, default is true\r\n // visible: true, // optional, default is true\r\n // displayName: 'Foo', // optional\r\n // readonly: false, // optional, default is false\r\n // },\r\n // ...\r\n },\r\n\r\n onLoad: function () {\r\n var self = this;\r\n },\r\n onClick:function(){\r\n let root = cc.find(\"Canvas\");\r\n if (cc.tools.dialogNodePool.size() > 0) {\r\n cc.tools.dialog = cc.tools.dialogNodePool.get();\r\n \r\n if(cc.tools.dialog !== null){\r\n cc.tools.dialog.parent = root ;\r\n cc.tools.dialog.position = cc.p(0 , 0 ) ;\r\n \r\n cc.tools.dialog.on(cc.Node.EventType.TOUCH_START, function(e){\r\n e.stopPropagation();\r\n });\r\n }\r\n }\r\n this._girl = cc.find(\"Canvas/splash/background/girl\");\r\n this._animCtrl = this._girl.getComponent(cc.Animation);\r\n this._animCtrl.play(\"girl_to_left\");\r\n },\r\n onCloseClick:function(){\r\n if(cc.tools.dialog){\r\n /**\r\n * 对象池返回, 释放资源 同时 解除 事件绑定\r\n * \r\n */\r\n cc.tools.dialog.off(cc.Node.EventType.TOUCH_START, function(e){\r\n e.stopPropagation();\r\n });\r\n cc.tools.dialogNodePool.put(cc.tools.dialog);\r\n cc.tools.dialog = null ;\r\n }\r\n this._girl = cc.find(\"Canvas/splash/background/girl\");\r\n this._animCtrl = this._girl.getComponent(cc.Animation);\r\n this._animCtrl.play(\"girl_to_right\");\r\n //this._animCtrl.play(\"girl_to_right\");\r\n }\r\n\r\n // called every frame, uncomment this function to activate update callback\r\n // update: function (dt) {\r\n\r\n // },\r\n});\r\n"]}

View File

@@ -0,0 +1,34 @@
"use strict";
cc._RF.push(module, 'e9755EwNoJFIIeGTUOUee0C', 'DialogPrefab');
// script/prefab/DialogPrefab.js
"use strict";
cc.Class({
extends: cc.Component,
properties: {
root: {
default: null,
type: cc.Node
},
prefab: {
default: null,
type: cc.Prefab
},
canvas: {
default: null,
type: cc.Canvas
}
},
// use this for initialization
onLoad: function onLoad() {
cc.tools.dialogNodePool = new cc.NodePool();
var dialog = cc.instantiate(this.prefab);
cc.tools.dialogNodePool.put(dialog);
}
});
cc._RF.pop();

View File

@@ -0,0 +1 @@
{"version":3,"sources":["assets\\script\\prefab\\DialogPrefab.js"],"names":["cc","Class","extends","Component","properties","root","default","type","Node","prefab","Prefab","canvas","Canvas","onLoad","tools","dialogNodePool","NodePool","dialog","instantiate","put"],"mappings":";;;;;;AAAAA,GAAGC,KAAH,CAAS;AACLC,aAASF,GAAGG,SADP;;AAGNC,gBAAY;AACPC,cAAM;AACFC,qBAAS,IADP;AAEFC,kBAAMP,GAAGQ;AAFP,SADC;AAKPC,gBAAQ;AACJH,qBAAS,IADL;AAEJC,kBAAMP,GAAGU;AAFL,SALD;AASPC,gBAAQ;AACJL,qBAAS,IADL;AAEJC,kBAAMP,GAAGY;AAFL;AATD,KAHN;;AAkBL;AACAC,YAAQ,kBAAY;AAChBb,WAAGc,KAAH,CAASC,cAAT,GAA0B,IAAIf,GAAGgB,QAAP,EAA1B;AACA,YAAIC,SAASjB,GAAGkB,WAAH,CAAe,KAAKT,MAApB,CAAb;AACAT,WAAGc,KAAH,CAASC,cAAT,CAAwBI,GAAxB,CAA4BF,MAA5B;AACH;;AAvBI,CAAT","file":"unknown","sourcesContent":["cc.Class({\r\n extends: cc.Component,\r\n\r\n properties: {\r\n root: {\r\n default: null,\r\n type: cc.Node\r\n },\r\n prefab: {\r\n default: null,\r\n type: cc.Prefab\r\n },\r\n canvas: {\r\n default: null,\r\n type: cc.Canvas\r\n }\r\n },\r\n\r\n // use this for initialization\r\n onLoad: function () {\r\n cc.tools.dialogNodePool = new cc.NodePool();\r\n let dialog = cc.instantiate(this.prefab);\r\n cc.tools.dialogNodePool.put(dialog);\r\n },\r\n\r\n // called every frame, uncomment this function to activate update callback\r\n // update: function (dt) {\r\n\r\n // },\r\n});\r\n"]}

View File

@@ -0,0 +1,988 @@
[
{
"__type__": "cc.Prefab",
"_name": "dialog",
"_objFlags": 0,
"_rawFiles": null,
"data": {
"__id__": 1
},
"asyncLoadAssets": false
},
{
"__type__": "cc.Node",
"_name": "dialog",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 7
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": {
"__id__": 31
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "shade",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 6
},
"_id": "",
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 167,
"g": 167,
"b": 167,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_resize": 0,
"_N$layoutType": 0,
"_N$padding": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0
},
{
"__type__": "14bfe1GqB5C77bPnI+ETJt7",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "4c78ajn2H9JjZqvvf3CZWUx",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "layout",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
},
{
"__id__": 21
},
{
"__id__": 16
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
}
],
"_prefab": {
"__id__": 30
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 167,
"g": 167,
"b": 167,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 815,
"height": 473
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 19,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 9
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 20
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 167,
"height": 68
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -129,
"y": -67
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "确认按钮",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "031fehFnPhAdYJluBGIOemf",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"transition": 3,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"clickEvents": [
{
"__id__": 14
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
}
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 15
},
"component": "dialog",
"handler": "onCloseClick",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "dialog",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 18
}
],
"_prefab": {
"__id__": 19
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "action",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 15
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": {
"__id__": 17
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "1db83Mga8RFgqAX1yMPOt1P",
"sync": false
},
{
"__type__": "16d18o/xiJL/7rFDrEjg4ir",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "92e92oXAfZAv604wDznNSp6",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "a7610yyImBJ36e9Z29uacuy",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 22
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": {
"__id__": 27
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 70
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 189,
"y": -70
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "关闭按钮",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "e6813+yf0BOtZm/bosRkKH4",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"transition": 3,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 21
}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "15358oAdRhKLaJDnJSV+KCg",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 3,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 815,
"height": 473
},
"_resize": 0,
"_N$layoutType": 0,
"_N$padding": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "717f6BCMvJFT7itjm7p7P2C",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "f30aaj50iJIBIxHzz4QfH8b",
"sync": false
}
]

View File

@@ -1,232 +1,12 @@
{
"f8e6b000-5643-4b86-9080-aa680ce1f599": {
"asset": 1501734583028,
"meta": 1501854414277,
"relativePath": "image"
},
"71561142-4c83-4933-afca-cb7a17f67053": {
"asset": 1499393011534,
"meta": 1501854414361,
"relativePath": "image\\default_btn_disabled.png"
},
"e851e89b-faa2-4484-bea6-5c01dd9f06e2": {
"asset": 1499393011540,
"meta": 1501854414366,
"relativePath": "image\\default_btn_normal.png"
},
"b43ff3c2-02bb-4874-81f7-f2dea6970f18": {
"asset": 1499393011546,
"meta": 1501854414372,
"relativePath": "image\\default_btn_pressed.png"
},
"d81ec8ad-247c-4e62-aa3c-d35c4193c7af": {
"asset": 1499393011550,
"meta": 1501854414376,
"relativePath": "image\\default_panel.png"
},
"99170b0b-d210-46f1-b213-7d9e3f23098a": {
"asset": 1499393011559,
"meta": 1501854414383,
"relativePath": "image\\default_progressbar_bg.png"
},
"cfef78f1-c8df-49b7-8ed0-4c953ace2621": {
"asset": 1499393011555,
"meta": 1501854414387,
"relativePath": "image\\default_progressbar.png"
},
"567dcd80-8bf4-4535-8a5a-313f1caf078a": {
"asset": 1499393011564,
"meta": 1501854414396,
"relativePath": "image\\default_radio_button_off.png"
},
"9d60001f-b5f4-4726-a629-2659e3ded0b8": {
"asset": 1499393011570,
"meta": 1501854414398,
"relativePath": "image\\default_radio_button_on.png"
},
"4bab67cb-18e6-4099-b840-355f0473f890": {
"asset": 1499393011584,
"meta": 1501854414404,
"relativePath": "image\\default_scrollbar_bg.png"
},
"617323dd-11f4-4dd3-8eec-0caf6b3b45b9": {
"asset": 1499393011596,
"meta": 1501854414408,
"relativePath": "image\\default_scrollbar_vertical_bg.png"
},
"d6d3ca85-4681-47c1-b5dd-d036a9d39ea2": {
"asset": 1499393011590,
"meta": 1501854414417,
"relativePath": "image\\default_scrollbar_vertical.png"
},
"0291c134-b3da-4098-b7b5-e397edbe947f": {
"asset": 1499393011577,
"meta": 1501854414419,
"relativePath": "image\\default_scrollbar.png"
},
"6e056173-d285-473c-b206-40a7fff5386e": {
"asset": 1499393011603,
"meta": 1501854414431,
"relativePath": "image\\default_sprite.png"
},
"0275e94c-56a7-410f-bd1a-fc7483f7d14a": {
"asset": 1499393011609,
"meta": 1501854414426,
"relativePath": "image\\default_sprite_splash.png"
},
"73a0903d-d80e-4e3c-aa67-f999543c08f5": {
"asset": 1499393011616,
"meta": 1501854414439,
"relativePath": "image\\default_toggle_checkmark.png"
},
"c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f": {
"asset": 1499393011623,
"meta": 1501854414444,
"relativePath": "image\\default_toggle_disabled.png"
},
"b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd": {
"asset": 1499393011636,
"meta": 1501854414457,
"relativePath": "image\\default_toggle_pressed.png"
},
"d29077ba-1627-4a72-9579-7b56a235340c": {
"asset": 1499393011630,
"meta": 1501854414453,
"relativePath": "image\\default_toggle_normal.png"
},
"fc09f9bd-2cce-4605-b630-8145ef809ed6": {
"asset": 1501734526206,
"meta": 1501854414460,
"relativePath": "misc"
},
"2be36297-9abb-4fee-8049-9ed5e271da8a": {
"asset": 1499393011642,
"meta": 1499393011644,
"relativePath": "misc\\default_video.mp4"
},
"f6e6dd15-71d1-4ffe-ace7-24fd39942c05": {
"asset": 1501734539933,
"meta": 1501854414462,
"relativePath": "obsolete"
},
"b8223619-7e38-47c4-841f-9160c232495a": {
"asset": 1499393011647,
"meta": 1499393011650,
"relativePath": "obsolete\\atom.plist"
},
"f743d2b6-b7ea-4c14-a55b-547ed4d0a045": {
"asset": 1501734526226,
"meta": 1501854414472,
"relativePath": "particle"
},
"b2687ac4-099e-403c-a192-ff477686f4f5": {
"asset": 1499393011653,
"meta": 1499393011656,
"relativePath": "particle\\atom.plist"
},
"ae6c6c98-11e4-452f-8758-75f5c6a56e83": {
"asset": 1501734616746,
"meta": 1501854414476,
"relativePath": "prefab"
},
"972b9a4d-47ee-4c74-b5c3-61d8a69bc29f": {
"asset": 1499393011761,
"meta": 1501854414480,
"relativePath": "prefab\\button.prefab"
},
"2c937608-2562-40ea-b264-7395df6f0cea": {
"asset": 1499393011767,
"meta": 1501854414483,
"relativePath": "prefab\\canvas.prefab"
},
"61aeb05b-3b32-452b-8eed-2b76deeed554": {
"asset": 1499393011772,
"meta": 1501854414489,
"relativePath": "prefab\\editbox.prefab"
},
"27756ebb-3d33-44b0-9b96-e858fadd4dd4": {
"asset": 1499393011779,
"meta": 1501854414492,
"relativePath": "prefab\\label.prefab"
},
"785a442c-3ceb-45be-a46e-7317f625f3b9": {
"asset": 1499393011787,
"meta": 1501854414502,
"relativePath": "prefab\\layout.prefab"
},
"ca8401fe-ad6e-41a8-bd46-8e3e4e9945be": {
"asset": 1499393011793,
"meta": 1501854414504,
"relativePath": "prefab\\pageview.prefab"
},
"cd33edea-55f5-46c2-958d-357a01384a36": {
"asset": 1499393011799,
"meta": 1501854414509,
"relativePath": "prefab\\particlesystem.prefab"
},
"5965ffac-69da-4b55-bcde-9225d0613c28": {
"asset": 1499393011804,
"meta": 1501854414510,
"relativePath": "prefab\\progressBar.prefab"
},
"4a37dd57-78cd-4cec-aad4-f11a73d12b63": {
"asset": 1499393011813,
"meta": 1501854414523,
"relativePath": "prefab\\richtext.prefab"
},
"32044bd2-481f-4cf1-a656-e2b2fb1594eb": {
"asset": 1499393011819,
"meta": 1501854414520,
"relativePath": "prefab\\scrollview.prefab"
},
"0004d1cf-a0ad-47d8-ab17-34d3db9d35a3": {
"asset": 1499393011825,
"meta": 1501854414530,
"relativePath": "prefab\\slider.prefab"
},
"1f55e3be-b89b-4b79-88de-47fd31018044": {
"asset": 1499393011838,
"meta": 1501854414532,
"relativePath": "prefab\\sprite_splash.prefab"
},
"96083d03-c332-4a3f-9386-d03e2d19e8ee": {
"asset": 1499393011832,
"meta": 1501854414536,
"relativePath": "prefab\\sprite.prefab"
},
"7de03a80-4457-438d-95a7-3e7cdffd6086": {
"asset": 1499393011846,
"meta": 1501854414540,
"relativePath": "prefab\\tiledmap.prefab"
},
"bf0a434c-84dd-4a8e-a08a-7a36f180cc75": {
"asset": 1499393011859,
"meta": 1501854414552,
"relativePath": "prefab\\toggleGroup.prefab"
},
"0d784963-d024-4ea6-a7db-03be0ad63010": {
"asset": 1499393011853,
"meta": 1501854414544,
"relativePath": "prefab\\toggle.prefab"
},
"232d2782-c4bd-4bb4-9e01-909f03d6d3b9": {
"asset": 1499393011865,
"meta": 1501854414557,
"relativePath": "prefab\\videoplayer.prefab"
},
"8c5001fd-07ee-4a4b-a8a0-63e15195e94d": {
"asset": 1499393011871,
"meta": 1501854414560,
"relativePath": "prefab\\webview.prefab"
},
"7280c7fe-0a27-4246-8efe-f2f40d898ff5": {
"asset": 1501772867811,
"meta": 1501773227597,
"relativePath": "scene"
},
"4bd396a2-fbc3-4567-8d91-51bcb9640147": {
"asset": 1501841657863,
"meta": 1501852358986,
"asset": 1501855120207,
"meta": 1501921969056,
"relativePath": "images"
},
"fc231bfc-8225-42c5-b578-27ffdd6d536e": {
@@ -655,8 +435,8 @@
"relativePath": "scene\\dating"
},
"9ffef9bb-4c0f-40bb-b096-cd5b6c6281d8": {
"asset": 1501856163185,
"meta": 1501856163238,
"asset": 1501925966661,
"meta": 1501925966692,
"relativePath": "scene\\dating\\login.fire"
},
"c3362f07-3cd8-4e58-8025-6ae3c744fd20": {
@@ -665,8 +445,8 @@
"relativePath": "script\\lib\\socket.io.js"
},
"16d18a3f-c622-4bff-bac5-0eb1238388ab": {
"asset": 1501854494323,
"meta": 1501854494737,
"asset": 1501926677259,
"meta": 1501926677393,
"relativePath": "script\\action\\login\\dialog.js"
},
"d2140a5b-ab05-43cb-8771-fe43732bded3": {
@@ -695,8 +475,8 @@
"relativePath": "images\\menu_bottm.png"
},
"dbc93d82-0631-4ef3-910a-3cdd666a1bee": {
"asset": 1501855116658,
"meta": 1501855116668,
"asset": 1501855773728,
"meta": 1501921969057,
"relativePath": "images\\menu"
},
"3b173f9b-2b59-423f-84d8-3dab2a02c44a": {
@@ -733,5 +513,250 @@
"asset": 1501855769460,
"meta": 1501855773754,
"relativePath": "images\\menu\\shop.png"
},
"19ba101d-e713-4326-8f16-971ad9e102db": {
"asset": 1501922203484,
"meta": 1501922203491,
"relativePath": "prefab"
},
"fc609d55-9908-4bbe-ab60-f53f3a411653": {
"asset": 1501926102998,
"meta": 1501926103026,
"relativePath": "prefab\\dialog.prefab"
},
"f8e6b000-5643-4b86-9080-aa680ce1f599": {
"asset": 1501734583028,
"meta": 1501922334705,
"relativePath": "image"
},
"71561142-4c83-4933-afca-cb7a17f67053": {
"asset": 1499393011534,
"meta": 1501922334881,
"relativePath": "image\\default_btn_disabled.png"
},
"e851e89b-faa2-4484-bea6-5c01dd9f06e2": {
"asset": 1499393011540,
"meta": 1501922334887,
"relativePath": "image\\default_btn_normal.png"
},
"4bab67cb-18e6-4099-b840-355f0473f890": {
"asset": 1499393011584,
"meta": 1501922334986,
"relativePath": "image\\default_scrollbar_bg.png"
},
"617323dd-11f4-4dd3-8eec-0caf6b3b45b9": {
"asset": 1499393011596,
"meta": 1501922334991,
"relativePath": "image\\default_scrollbar_vertical_bg.png"
},
"d6d3ca85-4681-47c1-b5dd-d036a9d39ea2": {
"asset": 1499393011590,
"meta": 1501922335001,
"relativePath": "image\\default_scrollbar_vertical.png"
},
"0291c134-b3da-4098-b7b5-e397edbe947f": {
"asset": 1499393011577,
"meta": 1501922335005,
"relativePath": "image\\default_scrollbar.png"
},
"0275e94c-56a7-410f-bd1a-fc7483f7d14a": {
"asset": 1499393011609,
"meta": 1501922335017,
"relativePath": "image\\default_sprite_splash.png"
},
"6e056173-d285-473c-b206-40a7fff5386e": {
"asset": 1499393011603,
"meta": 1501922335021,
"relativePath": "image\\default_sprite.png"
},
"c25b9d50-c8fc-4d27-beeb-6e7c1f2e5c0f": {
"asset": 1499393011623,
"meta": 1501922335035,
"relativePath": "image\\default_toggle_disabled.png"
},
"73a0903d-d80e-4e3c-aa67-f999543c08f5": {
"asset": 1499393011616,
"meta": 1501922335040,
"relativePath": "image\\default_toggle_checkmark.png"
},
"b181c1e4-0a72-4a91-bfb0-ae6f36ca60bd": {
"asset": 1499393011636,
"meta": 1501922335063,
"relativePath": "image\\default_toggle_pressed.png"
},
"d29077ba-1627-4a72-9579-7b56a235340c": {
"asset": 1499393011630,
"meta": 1501922335053,
"relativePath": "image\\default_toggle_normal.png"
},
"fc09f9bd-2cce-4605-b630-8145ef809ed6": {
"asset": 1501734526206,
"meta": 1501922335068,
"relativePath": "misc"
},
"2be36297-9abb-4fee-8049-9ed5e271da8a": {
"asset": 1499393011642,
"meta": 1499393011644,
"relativePath": "misc\\default_video.mp4"
},
"f6e6dd15-71d1-4ffe-ace7-24fd39942c05": {
"asset": 1501734539933,
"meta": 1501922335076,
"relativePath": "obsolete"
},
"b8223619-7e38-47c4-841f-9160c232495a": {
"asset": 1499393011647,
"meta": 1499393011650,
"relativePath": "obsolete\\atom.plist"
},
"f743d2b6-b7ea-4c14-a55b-547ed4d0a045": {
"asset": 1501734526226,
"meta": 1501922335082,
"relativePath": "particle"
},
"b2687ac4-099e-403c-a192-ff477686f4f5": {
"asset": 1499393011653,
"meta": 1499393011656,
"relativePath": "particle\\atom.plist"
},
"ae6c6c98-11e4-452f-8758-75f5c6a56e83": {
"asset": 1501734616746,
"meta": 1501922335085,
"relativePath": "prefab"
},
"972b9a4d-47ee-4c74-b5c3-61d8a69bc29f": {
"asset": 1499393011761,
"meta": 1501922335339,
"relativePath": "prefab\\button.prefab"
},
"2c937608-2562-40ea-b264-7395df6f0cea": {
"asset": 1499393011767,
"meta": 1501922335336,
"relativePath": "prefab\\canvas.prefab"
},
"61aeb05b-3b32-452b-8eed-2b76deeed554": {
"asset": 1499393011772,
"meta": 1501922335355,
"relativePath": "prefab\\editbox.prefab"
},
"27756ebb-3d33-44b0-9b96-e858fadd4dd4": {
"asset": 1499393011779,
"meta": 1501922335360,
"relativePath": "prefab\\label.prefab"
},
"785a442c-3ceb-45be-a46e-7317f625f3b9": {
"asset": 1499393011787,
"meta": 1501922335375,
"relativePath": "prefab\\layout.prefab"
},
"ca8401fe-ad6e-41a8-bd46-8e3e4e9945be": {
"asset": 1499393011793,
"meta": 1501922335376,
"relativePath": "prefab\\pageview.prefab"
},
"cd33edea-55f5-46c2-958d-357a01384a36": {
"asset": 1499393011799,
"meta": 1501922335384,
"relativePath": "prefab\\particlesystem.prefab"
},
"5965ffac-69da-4b55-bcde-9225d0613c28": {
"asset": 1499393011804,
"meta": 1501922335386,
"relativePath": "prefab\\progressBar.prefab"
},
"4a37dd57-78cd-4cec-aad4-f11a73d12b63": {
"asset": 1499393011813,
"meta": 1501922335395,
"relativePath": "prefab\\richtext.prefab"
},
"32044bd2-481f-4cf1-a656-e2b2fb1594eb": {
"asset": 1499393011819,
"meta": 1501922335399,
"relativePath": "prefab\\scrollview.prefab"
},
"0004d1cf-a0ad-47d8-ab17-34d3db9d35a3": {
"asset": 1499393011825,
"meta": 1501922335403,
"relativePath": "prefab\\slider.prefab"
},
"1f55e3be-b89b-4b79-88de-47fd31018044": {
"asset": 1499393011838,
"meta": 1501922335407,
"relativePath": "prefab\\sprite_splash.prefab"
},
"96083d03-c332-4a3f-9386-d03e2d19e8ee": {
"asset": 1499393011832,
"meta": 1501922335418,
"relativePath": "prefab\\sprite.prefab"
},
"7de03a80-4457-438d-95a7-3e7cdffd6086": {
"asset": 1499393011846,
"meta": 1501922335416,
"relativePath": "prefab\\tiledmap.prefab"
},
"0d784963-d024-4ea6-a7db-03be0ad63010": {
"asset": 1499393011853,
"meta": 1501922335426,
"relativePath": "prefab\\toggle.prefab"
},
"bf0a434c-84dd-4a8e-a08a-7a36f180cc75": {
"asset": 1499393011859,
"meta": 1501922335428,
"relativePath": "prefab\\toggleGroup.prefab"
},
"232d2782-c4bd-4bb4-9e01-909f03d6d3b9": {
"asset": 1499393011865,
"meta": 1501922335433,
"relativePath": "prefab\\videoplayer.prefab"
},
"8c5001fd-07ee-4a4b-a8a0-63e15195e94d": {
"asset": 1499393011871,
"meta": 1501922335435,
"relativePath": "prefab\\webview.prefab"
},
"b43ff3c2-02bb-4874-81f7-f2dea6970f18": {
"asset": 1499393011546,
"meta": 1501922335696,
"relativePath": "image\\default_btn_pressed.png"
},
"d81ec8ad-247c-4e62-aa3c-d35c4193c7af": {
"asset": 1499393011550,
"meta": 1501922335700,
"relativePath": "image\\default_panel.png"
},
"99170b0b-d210-46f1-b213-7d9e3f23098a": {
"asset": 1499393011559,
"meta": 1501922335709,
"relativePath": "image\\default_progressbar_bg.png"
},
"cfef78f1-c8df-49b7-8ed0-4c953ace2621": {
"asset": 1499393011555,
"meta": 1501922335722,
"relativePath": "image\\default_progressbar.png"
},
"567dcd80-8bf4-4535-8a5a-313f1caf078a": {
"asset": 1499393011564,
"meta": 1501922335743,
"relativePath": "image\\default_radio_button_off.png"
},
"9d60001f-b5f4-4726-a629-2659e3ded0b8": {
"asset": 1499393011570,
"meta": 1501922335745,
"relativePath": "image\\default_radio_button_on.png"
},
"b492ad5f-c227-4885-9d1c-244033ae4b05": {
"asset": 1501922361446,
"meta": 1501922361451,
"relativePath": "script\\prefab"
},
"e9755130-3682-4520-8786-4d439479ed02": {
"asset": 1501925756556,
"meta": 1501925756595,
"relativePath": "script\\prefab\\DialogPrefab.js"
},
"14bfed46-a81e-42ef-b6cf-9c8f844c9b7b": {
"asset": 1501926044151,
"meta": 1501926044192,
"relativePath": "script\\action\\login\\event.js"
}
}

View File

@@ -9,7 +9,7 @@
"id": "7280c7fe-0a27-4246-8efe-f2f40d898ff5"
},
{
"folded": true,
"folded": false,
"id": "4bd396a2-fbc3-4567-8d91-51bcb9640147"
},
{
@@ -37,7 +37,7 @@
"id": "27066a97-d0df-4fb9-89f4-fc92b7c8432f"
},
{
"folded": false,
"folded": true,
"id": "d2140a5b-ab05-43cb-8771-fe43732bded3"
},
{
@@ -45,7 +45,7 @@
"id": "1a3e3c61-a9e2-430f-b7ce-9ff486149755"
},
{
"folded": false,
"folded": true,
"id": "fc231bfc-8225-42c5-b578-27ffdd6d536e"
},
{
@@ -71,6 +71,42 @@
{
"folded": true,
"id": "7d376c4e-e72c-49a3-8bd6-73536eaabfce"
},
{
"folded": true,
"id": "8b107943-f925-469f-a62d-686c1175d380"
},
{
"folded": false,
"id": "dbc93d82-0631-4ef3-910a-3cdd666a1bee"
},
{
"folded": true,
"id": "bac701a5-52f7-4130-8dda-fe79416878aa"
},
{
"folded": true,
"id": "d58a722d-fca4-4bb3-ad96-5285b168bea6"
},
{
"folded": true,
"id": "3b173f9b-2b59-423f-84d8-3dab2a02c44a"
},
{
"folded": true,
"id": "808274c4-3acf-4bc1-93d7-fe1b9cc6f6ba"
},
{
"folded": true,
"id": "7798ac9b-1d39-44e2-a19a-578844d1f1bd"
},
{
"folded": true,
"id": "5bab29da-5833-4b6b-b300-82d89d5d4a53"
},
{
"folded": true,
"id": "19857ff4-872c-4b2c-a9d1-41255113f2ae"
}
]
}

View File

@@ -0,0 +1,18 @@
{
"androidStudio": true,
"apiLevel": "android-10",
"appABIs": [],
"buildPath": "./build",
"debug": false,
"keystoreAlias": "",
"keystoreAliasPassword": "",
"keystorePassword": "",
"keystorePath": "",
"platform": "android",
"previewHeight": "720",
"previewWidth": "1280",
"sourceMaps": false,
"template": "default",
"useDebugKeystore": true,
"vsVersion": "auto"
}

View File

@@ -1,7 +1,7 @@
{
"item-states": [
{
"folded": false,
"folded": true,
"id": "10334qFkzRJcpgLEwFJhKJP"
},
{
@@ -9,32 +9,40 @@
"id": "12aeaJVV3FFc4J+ADxMOvzK"
},
{
"folded": false,
"id": "a7610yyImBJ36e9Z29uacuy"
},
{
"folded": false,
"id": "15358oAdRhKLaJDnJSV+KCg"
},
{
"folded": false,
"id": "1db83Mga8RFgqAX1yMPOt1P"
},
{
"folded": false,
"id": "717f6BCMvJFT7itjm7p7P2C"
},
{
"folded": false,
"id": "f30aaj50iJIBIxHzz4QfH8b"
},
{
"folded": false,
"folded": true,
"id": "8b920Tvrb5O4arWstrs5QO9"
},
{
"folded": false,
"id": "88bd7bzmwpDOb7c0XQN+7lj"
},
{
"folded": true,
"id": "a7610yyImBJ36e9Z29uacuy"
},
{
"folded": true,
"id": "15358oAdRhKLaJDnJSV+KCg"
},
{
"folded": true,
"id": "1db83Mga8RFgqAX1yMPOt1P"
},
{
"folded": true,
"id": "717f6BCMvJFT7itjm7p7P2C"
},
{
"folded": true,
"id": "f30aaj50iJIBIxHzz4QfH8b"
},
{
"folded": true,
"id": "26485xNjPNF7YcP4xkDrWlb"
},
{
"folded": true,
"id": "eba33qsO1RKsIF3SnkZi9tv"
}
]
}

View File

@@ -47,7 +47,7 @@
],
"height": 683,
"type": "panel",
"width": 969.984375
"width": 790.984375
},
{
"active": 0,
@@ -56,27 +56,27 @@
],
"height": 683,
"type": "panel",
"width": 291
"width": 237
}
],
"height": 683,
"type": "dock-h",
"width": 1263.984375
"width": 1030.984375
},
{
"active": 1,
"active": 0,
"children": [
"console",
"timeline"
],
"height": 226,
"type": "panel",
"width": 1263.984375
"width": 1030.984375
}
],
"height": 912,
"type": "dock-v",
"width": 1263.984375
"width": 1030.984375
},
{
"active": 0,
@@ -85,7 +85,7 @@
],
"height": 912,
"type": "panel",
"width": 304
"width": 537
}
],
"type": "dock-h"
@@ -99,14 +99,27 @@
"node-library",
"timeline"
]
},
"window-1501924810678": {
"main": false,
"url": "packages://code-editor/panel/index.html",
"windowType": "simple",
"x": 542,
"y": 143,
"width": 782,
"height": 608,
"layout": null,
"panels": [
"code-editor"
]
}
},
"panels": {
"code-editor": {
"x": -9,
"y": -9,
"width": 1938,
"height": 1048
"x": 542,
"y": 143,
"width": 782,
"height": 608
},
"timeline.event": {
"x": 751,
@@ -119,6 +132,12 @@
"y": 281,
"width": 418,
"height": 447
},
"builder": {
"x": 1020,
"y": 57,
"width": 518,
"height": 747
}
}
}

View File

@@ -1,53 +1,140 @@
2017-08-04T13:46:50.915Z - normal: Load ~/.CocosCreator/settings.json
2017-08-04T13:46:50.921Z - normal: checking language setting...
2017-08-04T13:46:50.921Z - normal: Language: zh
2017-08-04T13:46:52.437Z - success: protocol editor-framework registered
2017-08-04T13:46:52.438Z - success: protocol app registered
2017-08-04T13:46:52.438Z - success: protocol theme registered
2017-08-04T13:46:52.438Z - success: protocol profile registered
2017-08-04T13:46:52.438Z - success: protocol packages registered
2017-08-04T13:46:52.438Z - success: protocol unpack registerred
2017-08-04T13:46:52.438Z - success: protocol disable-commonjs registerred
2017-08-04T13:46:52.722Z - normal: connected!
2017-08-04T13:46:52.734Z - normal: Check project D:\wordspace\program\beimi\chess\client\beimi
2017-08-04T13:46:52.781Z - normal: Initializing Cocos2d
2017-08-04T13:46:53.015Z - normal: Initializing Asset Database
2017-08-04T13:46:53.046Z - success: protocol uuid registerred
2017-08-04T13:46:53.046Z - success: protocol db registerred
2017-08-04T13:46:53.046Z - success: protocol thumbnail registerred
2017-08-04T13:46:53.047Z - normal: Loading editor/builtin packages
2017-08-04T13:46:53.071Z - success: anysdk loaded
2017-08-04T13:46:53.208Z - success: assets loaded
2017-08-04T13:46:53.210Z - success: builder loaded
2017-08-04T13:46:53.214Z - success: hierarchy loaded
2017-08-04T13:46:53.217Z - success: inspector loaded
2017-08-04T13:46:53.219Z - success: keystore loaded
2017-08-04T13:46:53.222Z - success: node-library loaded
2017-08-04T13:46:53.224Z - success: package-asset loaded
2017-08-04T13:46:53.226Z - success: preferences loaded
2017-08-04T13:46:53.241Z - success: project-importer loaded
2017-08-04T13:46:53.244Z - success: project-settings loaded
2017-08-04T13:46:53.246Z - success: ui-kit loaded
2017-08-04T13:46:53.248Z - success: ui-grid loaded
2017-08-04T13:46:53.251Z - success: scene loaded
2017-08-04T13:46:53.253Z - success: sprite-editor loaded
2017-08-04T13:46:53.257Z - success: store loaded
2017-08-04T13:46:53.261Z - success: timeline loaded
2017-08-04T13:46:53.261Z - normal: Loading builtin packages
2017-08-04T13:46:53.263Z - success: asset-db-debugger loaded
2017-08-04T13:46:53.264Z - success: code-editor loaded
2017-08-04T13:46:53.265Z - success: color-picker loaded
2017-08-04T13:46:53.268Z - success: console loaded
2017-08-04T13:46:53.270Z - success: package-manager loaded
2017-08-04T13:46:53.274Z - success: sdkbox loaded
2017-08-04T13:46:53.277Z - success: tester loaded
2017-08-04T13:46:53.280Z - success: ui-kit-preview-extra loaded
2017-08-04T13:46:53.282Z - success: ui-kit-preview loaded
2017-08-04T13:46:53.284Z - success: ui-tree loaded
2017-08-04T13:46:54.139Z - normal: Initializing project D:\wordspace\program\beimi\chess\client\beimi
2017-08-04T13:46:54.143Z - normal: Loading packages
2017-08-04T13:46:54.148Z - normal: Watching packages
2017-08-04T13:46:54.162Z - normal: Run Application
2017-08-04T13:46:54.932Z - success: preview server running at http://localhost:7456
2017-08-04T13:47:00.149Z - normal: 1.5.2
2017-08-04T13:48:17.295Z - normal: Compiled project javascript file successfully
2017-08-05T08:32:42.187Z - normal: Load ~/.CocosCreator/settings.json
2017-08-05T08:32:42.193Z - normal: checking language setting...
2017-08-05T08:32:42.194Z - normal: Language: zh
2017-08-05T08:32:44.038Z - success: protocol editor-framework registered
2017-08-05T08:32:44.038Z - success: protocol app registered
2017-08-05T08:32:44.038Z - success: protocol theme registered
2017-08-05T08:32:44.038Z - success: protocol profile registered
2017-08-05T08:32:44.038Z - success: protocol packages registered
2017-08-05T08:32:44.039Z - success: protocol unpack registerred
2017-08-05T08:32:44.039Z - success: protocol disable-commonjs registerred
2017-08-05T08:32:44.305Z - normal: connected!
2017-08-05T08:32:44.308Z - normal: Check project D:\wordspace\program\beimi\chess\client\beimi
2017-08-05T08:32:44.310Z - normal: Initializing Cocos2d
2017-08-05T08:32:46.053Z - normal: Initializing Asset Database
2017-08-05T08:32:46.106Z - success: protocol uuid registerred
2017-08-05T08:32:46.106Z - success: protocol db registerred
2017-08-05T08:32:46.106Z - success: protocol thumbnail registerred
2017-08-05T08:32:46.106Z - normal: Loading editor/builtin packages
2017-08-05T08:32:46.142Z - success: anysdk loaded
2017-08-05T08:32:46.328Z - success: assets loaded
2017-08-05T08:32:46.330Z - success: builder loaded
2017-08-05T08:32:46.333Z - success: hierarchy loaded
2017-08-05T08:32:46.337Z - success: inspector loaded
2017-08-05T08:32:46.338Z - success: keystore loaded
2017-08-05T08:32:46.341Z - success: node-library loaded
2017-08-05T08:32:46.342Z - success: package-asset loaded
2017-08-05T08:32:46.344Z - success: preferences loaded
2017-08-05T08:32:46.361Z - success: project-importer loaded
2017-08-05T08:32:46.363Z - success: project-settings loaded
2017-08-05T08:32:46.367Z - success: ui-kit loaded
2017-08-05T08:32:46.370Z - success: ui-grid loaded
2017-08-05T08:32:46.374Z - success: scene loaded
2017-08-05T08:32:46.375Z - success: sprite-editor loaded
2017-08-05T08:32:46.378Z - success: store loaded
2017-08-05T08:32:46.384Z - success: timeline loaded
2017-08-05T08:32:46.384Z - normal: Loading builtin packages
2017-08-05T08:32:46.387Z - success: asset-db-debugger loaded
2017-08-05T08:32:46.389Z - success: code-editor loaded
2017-08-05T08:32:46.389Z - success: color-picker loaded
2017-08-05T08:32:46.393Z - success: console loaded
2017-08-05T08:32:46.395Z - success: package-manager loaded
2017-08-05T08:32:46.400Z - success: sdkbox loaded
2017-08-05T08:32:46.403Z - success: tester loaded
2017-08-05T08:32:46.406Z - success: ui-kit-preview-extra loaded
2017-08-05T08:32:46.409Z - success: ui-kit-preview loaded
2017-08-05T08:32:46.411Z - success: ui-tree loaded
2017-08-05T08:32:47.569Z - normal: Initializing project D:\wordspace\program\beimi\chess\client\beimi
2017-08-05T08:32:47.579Z - normal: Loading packages
2017-08-05T08:32:47.592Z - normal: Watching packages
2017-08-05T08:32:47.607Z - normal: Run Application
2017-08-05T08:32:49.564Z - success: preview server running at http://localhost:7456
2017-08-05T08:32:56.612Z - normal: 1.5.2
2017-08-05T08:39:15.257Z - normal: Compiled project javascript file successfully
2017-08-05T08:39:20.816Z - normal: Compiled project javascript file successfully
2017-08-05T08:39:34.022Z - normal: Compiled project javascript file successfully
2017-08-05T08:39:51.085Z - normal: Compiled project javascript file successfully
2017-08-05T08:40:21.685Z - error: Can't init canvas 'DialogPrefab' because it conflicts with the existing 'Canvas', the scene should only have one active canvas at the same time
at Object.errorID (C:\CocosCreator\resources\engine\CCDebugger.js:367:18)
at cc_Canvas.__preload (C:\CocosCreator\resources\engine\cocos2d\core\components\CCCanvas.js:161:23)
at call__preloadInTryCatch (eval at <anonymous> (C:\CocosCreator\resources\engine\cocos2d\core\utils\misc.js:1:1), <anonymous>:5:24)
at CCClass.activateComp (C:\CocosCreator\resources\engine\cocos2d\core\node-activator.js:251:25)
at cc_Node.addComponent (C:\CocosCreator\resources\engine\cocos2d\core\utils\base-node.js:879:40)
at Object.addComponent (C:\CocosCreator\resources\app.asar\editor\page\scene-utils\index.js:1:12112)
at editor-scene.scene:add-component (file:///C:/CocosCreator/resources/app.asar/editor/builtin/scene/panel/scene.js:1:8863)
at Object.Panel._dispatch (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\panel.js:1:2294)
at EventEmitter.<anonymous> (C:\CocosCreator\resources\app.asar\editor-framework\lib\renderer\ipc.js:1:5098)
2017-08-05T08:44:52.479Z - normal: Compiled project javascript file successfully
2017-08-05T08:47:33.906Z - normal: Compiled project javascript file successfully
2017-08-05T08:53:36.405Z - normal: Compiled project javascript file successfully
2017-08-05T08:53:52.482Z - warn: The Node referenced by component "cc.Button" is invalid. Detailed information:
Node path: "Canvas/button"
2017-08-05T08:54:31.465Z - normal: Compiled project javascript file successfully
2017-08-05T08:54:32.956Z - warn: The Node referenced by component "cc.Button" is invalid. Detailed information:
Node path: "Canvas/button"
2017-08-05T08:55:27.472Z - normal: Compiled project javascript file successfully
2017-08-05T08:56:51.607Z - normal: Compiled project javascript file successfully
2017-08-05T08:58:18.545Z - normal: Compiled project javascript file successfully
2017-08-05T08:58:53.363Z - normal: Compiled project javascript file successfully
2017-08-05T09:00:24.920Z - normal: Compiled project javascript file successfully
2017-08-05T09:00:56.262Z - normal: Compiled project javascript file successfully
2017-08-05T09:05:10.266Z - normal: Compiled project javascript file successfully
2017-08-05T09:05:24.156Z - normal: Compiled project javascript file successfully
2017-08-05T09:08:42.005Z - normal: Compiled project javascript file successfully
2017-08-05T09:09:05.382Z - normal: Compiled project javascript file successfully
2017-08-05T09:09:28.183Z - normal: Compiled project javascript file successfully
2017-08-05T09:10:20.751Z - normal: Compiled project javascript file successfully
2017-08-05T09:10:28.298Z - normal: Compiled project javascript file successfully
2017-08-05T09:13:19.622Z - error: Failed to update asset db://assets/script/action/login/dialog.js, messages: Compile error: SyntaxError: unknown: Unexpected token, expected , (23:11)
21 | }
22 | },
> 23 | onClick:function(){
| ^
24 | let root = cc.find("Canvas");
25 | this.dialog.parent = root ;
26 | this.dialog.position = cc.p(0 , 0 ) ;
at Parser.pp$5.raise (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:4443:13)
at Parser.pp.unexpected (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:1755:8)
at Parser.pp.expect (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:1743:33)
at Parser.pp$3.parseCallExpressionArguments (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3554:12)
at Parser.pp$3.parseSubscripts (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3523:31)
at Parser.pp$3.parseExprSubscripts (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3494:15)
at Parser.pp$3.parseMaybeUnary (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3464:19)
at Parser.pp$3.parseExprOps (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3394:19)
at Parser.pp$3.parseMaybeConditional (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3371:19)
at Parser.pp$3.parseMaybeAssign (C:\CocosCreator\resources\app.asar\node_modules\babylon\lib\index.js:3334:19)
at s.AssetDB.error (C:\CocosCreator\resources\app.asar\asset-db\lib\utils.js:1:2582)
at Object.callback (C:\CocosCreator\resources\app.asar\asset-db\lib\interface.js:1:5731)
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:906:35
at _arrayEach (C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:85:13)
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:898:17
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:44:16
at s.<anonymous> (C:\CocosCreator\resources\app.asar\asset-db\index.js:1:1683)
at C:\CocosCreator\resources\app.asar\asset-db\lib\tasks.js:1:22641
at C:\CocosCreator\resources\app.asar\node_modules\async\lib\async.js:52:16
2017-08-05T09:13:29.137Z - normal: Compiled project javascript file successfully
2017-08-05T09:16:49.563Z - normal: Compiled project javascript file successfully
2017-08-05T09:17:32.897Z - normal: Compiled project javascript file successfully
2017-08-05T09:18:36.219Z - normal: Compiled project javascript file successfully
2017-08-05T09:20:42.592Z - normal: Compiled project javascript file successfully
2017-08-05T09:22:01.335Z - normal: Compiled project javascript file successfully
2017-08-05T09:23:52.909Z - normal: Compiled project javascript file successfully
2017-08-05T09:24:04.721Z - normal: Compiled project javascript file successfully
2017-08-05T09:24:43.736Z - normal: Compiled project javascript file successfully
2017-08-05T09:28:33.763Z - normal: Compiled project javascript file successfully
2017-08-05T09:34:19.440Z - normal: Compiled project javascript file successfully
2017-08-05T09:35:16.292Z - normal: Compiled project javascript file successfully
2017-08-05T09:35:41.631Z - normal: Compiled project javascript file successfully
2017-08-05T09:35:59.225Z - normal: Compiled project javascript file successfully
2017-08-05T09:37:07.303Z - normal: Compiled project javascript file successfully
2017-08-05T09:38:22.462Z - normal: Compiled project javascript file successfully
2017-08-05T09:38:27.025Z - normal: Compiled project javascript file successfully
2017-08-05T09:39:10.475Z - normal: Compiled project javascript file successfully
2017-08-05T09:40:03.561Z - normal: Compiled project javascript file successfully
2017-08-05T09:40:16.713Z - normal: Compiled project javascript file successfully
2017-08-05T09:40:35.131Z - normal: Compiled project javascript file successfully
2017-08-05T09:40:46.943Z - normal: Compiled project javascript file successfully
2017-08-05T09:44:08.765Z - normal: Compiled project javascript file successfully
2017-08-05T09:51:20.065Z - normal: Compiled project javascript file successfully

View File

@@ -0,0 +1,27 @@
{
"appKey": "",
"appSecret": "",
"excludeScenes": [],
"includeAnySDK": false,
"includeSDKBox": false,
"includeSdk": [
"anysdk"
],
"inlineSpriteFrames": true,
"inlineSpriteFrames_native": true,
"mergeStartScene": false,
"oauthLoginServer": "",
"optimizeHotUpdate": false,
"orientation": {
"landscapeLeft": true,
"landscapeRight": true,
"portrait": false,
"upsideDown": false
},
"packageName": "org.cocos2d.beimi",
"privateKey": "",
"renderMode": "0",
"startScene": "9ffef9bb-4c0f-40bb-b096-cd5b6c6281d8",
"title": "beimi",
"webOrientation": "auto"
}

View File

@@ -1 +1 @@
{"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\9e\\9e146e9e-d85e-4863-b061-aece26cbd6c3.js":{"size":1075,"mtime":1501772749509},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\fb\\fb977eef-db8f-432a-8f42-bf3d8d970e95.js":{"size":3596,"mtime":1501772749740},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\08\\088657d1-aafb-450b-8525-cc8d95776cca.js":{"size":2917,"mtime":1501839082352},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\c3\\c3362f07-3cd8-4e58-8025-6ae3c744fd20.js":{"size":243069,"mtime":1501842144929},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\cb\\cb804921-c57f-4d32-84f3-5ba70007a34b.js":{"size":2453,"mtime":1501842211278},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\16\\16d18a3f-c622-4bff-bac5-0eb1238388ab.js":{"size":1554,"mtime":1501854494729}}
{"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\9e\\9e146e9e-d85e-4863-b061-aece26cbd6c3.js":{"size":1075,"mtime":1501772749509},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\fb\\fb977eef-db8f-432a-8f42-bf3d8d970e95.js":{"size":3596,"mtime":1501772749740},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\08\\088657d1-aafb-450b-8525-cc8d95776cca.js":{"size":2917,"mtime":1501839082352},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\c3\\c3362f07-3cd8-4e58-8025-6ae3c744fd20.js":{"size":243069,"mtime":1501842144929},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\cb\\cb804921-c57f-4d32-84f3-5ba70007a34b.js":{"size":2453,"mtime":1501842211278},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\e9\\e9755130-3682-4520-8786-4d439479ed02.js":{"size":679,"mtime":1501925756581},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\14\\14bfed46-a81e-42ef-b6cf-9c8f844c9b7b.js":{"size":944,"mtime":1501926044184},"D:\\wordspace\\program\\beimi\\chess\\client\\beimi\\library\\imports\\16\\16d18a3f-c622-4bff-bac5-0eb1238388ab.js":{"size":2258,"mtime":1501926677378}}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,987 @@
[
{
"__type__": "cc.Prefab",
"_name": "",
"_objFlags": 0,
"_rawFiles": null,
"data": {
"__id__": 1
}
},
{
"__type__": "cc.Node",
"_name": "dialog",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 7
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": {
"__id__": 31
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "shade",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"_prefab": {
"__id__": 6
},
"_id": "",
"_opacity": 100,
"_color": {
"__type__": "cc.Color",
"r": 167,
"g": 167,
"b": 167,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 1280,
"height": 720
},
"_resize": 0,
"_N$layoutType": 0,
"_N$padding": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0
},
{
"__type__": "14bfe1GqB5C77bPnI+ETJt7",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "4c78ajn2H9JjZqvvf3CZWUx",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "layout",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [
{
"__id__": 8
},
{
"__id__": 21
},
{
"__id__": 16
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 28
},
{
"__id__": 29
}
],
"_prefab": {
"__id__": 30
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 167,
"g": 167,
"b": 167,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 815,
"height": 473
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 19,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 9
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 12
},
{
"__id__": 13
}
],
"_prefab": {
"__id__": 20
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 167,
"height": 68
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": -129,
"y": -67
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 8
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 10
}
],
"_prefab": {
"__id__": 11
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 9
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "确认按钮",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "031fehFnPhAdYJluBGIOemf",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 8
},
"_enabled": true,
"transition": 3,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"clickEvents": [
{
"__id__": 14
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 8
}
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 15
},
"component": "dialog",
"handler": "onCloseClick",
"customEventData": ""
},
{
"__type__": "cc.Node",
"_name": "dialog",
"_objFlags": 0,
"_parent": {
"__id__": 16
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 18
}
],
"_prefab": {
"__id__": 19
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "action",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 15
}
],
"_tag": -1,
"_active": true,
"_components": [],
"_prefab": {
"__id__": 17
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "1db83Mga8RFgqAX1yMPOt1P",
"sync": false
},
{
"__type__": "16d18o/xiJL/7rFDrEjg4ir",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "92e92oXAfZAv604wDznNSp6",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "a7610yyImBJ36e9Z29uacuy",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "button",
"_objFlags": 0,
"_parent": {
"__id__": 7
},
"_children": [
{
"__id__": 22
}
],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 25
},
{
"__id__": 26
}
],
"_prefab": {
"__id__": 27
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 150,
"height": 70
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 189,
"y": -70
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 21
},
"_children": [],
"_tag": -1,
"_active": true,
"_components": [
{
"__id__": 23
}
],
"_prefab": {
"__id__": 24
},
"_id": "",
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_rotationX": 0,
"_rotationY": 0,
"_scaleX": 1,
"_scaleY": 1,
"_position": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_opacityModifyRGB": false,
"groupIndex": 0
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 22
},
"_enabled": true,
"_useOriginalSize": false,
"_actualFontSize": 20,
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$string": "关闭按钮",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "e6813+yf0BOtZm/bosRkKH4",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 21
},
"_enabled": true,
"transition": 3,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"hoverSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 21
}
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "15358oAdRhKLaJDnJSV+KCg",
"sync": false
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 3,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 7
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 815,
"height": 473
},
"_resize": 0,
"_N$layoutType": 0,
"_N$padding": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "717f6BCMvJFT7itjm7p7P2C",
"sync": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "fc609d55-9908-4bbe-ab60-f53f3a411653"
},
"fileId": "f30aaj50iJIBIxHzz4QfH8b",
"sync": false
}
]

File diff suppressed because it is too large Load Diff

View File

@@ -16,22 +16,41 @@ cc.Class({
onLoad: function () {
var self = this;
this._dialog = cc.find("Canvas/dialog");
this._button = cc.find("Canvas/button");
this._button.active = false ;
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
},
onClick:function(){
this._dialog.active = false ;
this._button.active = true ;
let root = cc.find("Canvas");
if (cc.tools.dialogNodePool.size() > 0) {
cc.tools.dialog = cc.tools.dialogNodePool.get();
if(cc.tools.dialog !== null){
cc.tools.dialog.parent = root ;
cc.tools.dialog.position = cc.p(0 , 0 ) ;
cc.tools.dialog.on(cc.Node.EventType.TOUCH_START, function(e){
e.stopPropagation();
});
}
}
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
this._animCtrl.play("girl_to_left");
},
onShowClick:function(){
this._button.active = false ;
this._dialog.active = true ;
var anim = this.getComponent(cc.Animation);
onCloseClick:function(){
if(cc.tools.dialog){
/**
* 对象池返回, 释放资源 同时 解除 事件绑定
*
*/
cc.tools.dialog.off(cc.Node.EventType.TOUCH_START, function(e){
e.stopPropagation();
});
cc.tools.dialogNodePool.put(cc.tools.dialog);
cc.tools.dialog = null ;
}
this._girl = cc.find("Canvas/splash/background/girl");
this._animCtrl = this._girl.getComponent(cc.Animation);
this._animCtrl.play("girl_to_right");
//this._animCtrl.play("girl_to_right");
}
// called every frame, uncomment this function to activate update callback

View File

@@ -0,0 +1,29 @@
cc.Class({
extends: cc.Component,
properties: {
// foo: {
// default: null, // The default value will be used only when the component attaching
// to a node for the first time
// url: cc.Texture2D, // optional, default is typeof default
// serializable: true, // optional, default is true
// visible: true, // optional, default is true
// displayName: 'Foo', // optional
// readonly: false, // optional, default is false
// },
// ...
},
// use this for initialization
onLoad: function () {
this.node.opacity = 50;
this.node.on(cc.Node.EventType.TOUCH_START, function (e) {
e.stopPropagation();
});
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});

View File

@@ -0,0 +1,30 @@
cc.Class({
extends: cc.Component,
properties: {
root: {
default: null,
type: cc.Node
},
prefab: {
default: null,
type: cc.Prefab
},
canvas: {
default: null,
type: cc.Canvas
}
},
// use this for initialization
onLoad: function () {
cc.tools.dialogNodePool = new cc.NodePool();
let dialog = cc.instantiate(this.prefab);
cc.tools.dialogNodePool.put(dialog);
},
// called every frame, uncomment this function to activate update callback
// update: function (dt) {
// },
});